-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(indicator): split demo (#2741)
- Loading branch information
Showing
12 changed files
with
147 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<nut-space :gutter="30"> | ||
<nut-indicator :size="5" :current="1" /> | ||
<nut-indicator :size="5" :current="3" /> | ||
<nut-indicator :size="5" :current="5" /> | ||
</nut-space> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<nut-indicator block align="left" :size="6" :current="5" /> | ||
<nut-indicator block algin="center" :size="6" :current="5" /> | ||
<nut-indicator block align="right" :size="6" :current="5" /> | ||
</template> |
56 changes: 28 additions & 28 deletions
56
packages/nutui-taro-demo/src/nav/pages/indicator/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<template> | ||
<Demo> | ||
<h2>基础用法</h2> | ||
<nut-cell> | ||
<nut-indicator :size="3" :current="3">step1</nut-indicator> | ||
</nut-cell> | ||
<nut-cell> | ||
<nut-row> | ||
<nut-col :span="12"> | ||
<nut-button size="small" type="primary">主要按钮</nut-button> | ||
</nut-col> | ||
<nut-col :span="12"> | ||
<nut-indicator block align="right" :size="6" :current="5">step1</nut-indicator> | ||
</nut-col> | ||
</nut-row> | ||
</nut-cell> | ||
<h2>block用法</h2> | ||
<nut-cell> | ||
<nut-indicator block algin="center" :size="6" :current="5">step1</nut-indicator> | ||
</nut-cell> | ||
<nut-cell> | ||
<nut-indicator block align="left" :size="6" :current="1">step1</nut-indicator> | ||
</nut-cell> | ||
<nut-cell> | ||
<nut-indicator block align="right" :size="6" :current="5">step1</nut-indicator> | ||
</nut-cell> | ||
<h2>不补0</h2> | ||
<nut-cell> | ||
<nut-indicator :fill-zero="false" :size="6" :current="5">step1</nut-indicator> | ||
</nut-cell> | ||
<h2>{{ t('basic') }}</h2> | ||
<Basic /> | ||
|
||
<h2>{{ t('block') }}</h2> | ||
<Block /> | ||
|
||
<h2>{{ t('zero') }}</h2> | ||
<Zero /> | ||
</Demo> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useTranslate } from '../../../utils'; | ||
import Basic from './basic.vue'; | ||
import Block from './block.vue'; | ||
import Zero from './zero.vue'; | ||
const t = useTranslate({ | ||
'zh-CN': { | ||
basic: '基础用法', | ||
block: 'block 用法', | ||
zero: '不补 0' | ||
}, | ||
'en-US': { | ||
basic: 'Basic Usage', | ||
block: 'Block', | ||
zero: 'Do not make up 0' | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<nut-indicator :fill-zero="false" :size="6" :current="5" /> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<nut-space :gutter="30"> | ||
<nut-indicator :size="5" :current="1" /> | ||
<nut-indicator :size="5" :current="3" /> | ||
<nut-indicator :size="5" :current="5" /> | ||
</nut-space> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<nut-indicator block align="left" :size="6" :current="5" /> | ||
<nut-indicator block algin="center" :size="6" :current="5" /> | ||
<nut-indicator block align="right" :size="6" :current="5" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<Demo> | ||
<h2>{{ t('basic') }}</h2> | ||
<Basic /> | ||
|
||
<h2>{{ t('block') }}</h2> | ||
<Block /> | ||
|
||
<h2>{{ t('zero') }}</h2> | ||
<Zero /> | ||
</Demo> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useTranslate } from '@/sites/utils'; | ||
import Basic from './basic.vue'; | ||
import Block from './block.vue'; | ||
import Zero from './zero.vue'; | ||
const t = useTranslate({ | ||
'zh-CN': { | ||
basic: '基础用法', | ||
block: 'block 用法', | ||
zero: '不补 0' | ||
}, | ||
'en-US': { | ||
basic: 'Basic Usage', | ||
block: 'Block', | ||
zero: 'Do not make up 0' | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<nut-indicator :fill-zero="false" :size="6" :current="5" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.