diff --git a/packages/nutui-taro-demo/src/nav/pages/indicator/basic.vue b/packages/nutui-taro-demo/src/nav/pages/indicator/basic.vue new file mode 100644 index 0000000000..726eb50a33 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/indicator/basic.vue @@ -0,0 +1,7 @@ + diff --git a/packages/nutui-taro-demo/src/nav/pages/indicator/block.vue b/packages/nutui-taro-demo/src/nav/pages/indicator/block.vue new file mode 100644 index 0000000000..878cc29b00 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/indicator/block.vue @@ -0,0 +1,5 @@ + diff --git a/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue b/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue index 661099a1d8..578285347f 100644 --- a/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue +++ b/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue @@ -1,32 +1,32 @@ + + diff --git a/packages/nutui-taro-demo/src/nav/pages/indicator/zero.vue b/packages/nutui-taro-demo/src/nav/pages/indicator/zero.vue new file mode 100644 index 0000000000..3d24ff21e5 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/indicator/zero.vue @@ -0,0 +1,3 @@ + diff --git a/src/packages/__VUE/indicator/demo.vue b/src/packages/__VUE/indicator/demo.vue deleted file mode 100644 index 96dcbcad5b..0000000000 --- a/src/packages/__VUE/indicator/demo.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/src/packages/__VUE/indicator/demo/basic.vue b/src/packages/__VUE/indicator/demo/basic.vue new file mode 100644 index 0000000000..726eb50a33 --- /dev/null +++ b/src/packages/__VUE/indicator/demo/basic.vue @@ -0,0 +1,7 @@ + diff --git a/src/packages/__VUE/indicator/demo/block.vue b/src/packages/__VUE/indicator/demo/block.vue new file mode 100644 index 0000000000..878cc29b00 --- /dev/null +++ b/src/packages/__VUE/indicator/demo/block.vue @@ -0,0 +1,5 @@ + diff --git a/src/packages/__VUE/indicator/demo/index.vue b/src/packages/__VUE/indicator/demo/index.vue new file mode 100644 index 0000000000..1cf0d0cedb --- /dev/null +++ b/src/packages/__VUE/indicator/demo/index.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/packages/__VUE/indicator/demo/zero.vue b/src/packages/__VUE/indicator/demo/zero.vue new file mode 100644 index 0000000000..3d24ff21e5 --- /dev/null +++ b/src/packages/__VUE/indicator/demo/zero.vue @@ -0,0 +1,3 @@ + diff --git a/src/packages/__VUE/indicator/doc.en-US.md b/src/packages/__VUE/indicator/doc.en-US.md index 7ca2448e66..4ce606382b 100644 --- a/src/packages/__VUE/indicator/doc.en-US.md +++ b/src/packages/__VUE/indicator/doc.en-US.md @@ -16,73 +16,27 @@ app.use(Indicator); ### Basic Usage -:::demo - -```vue - -``` - -::: +> demo: indicator basic ### Block usage -:::demo - -```vue - -``` - -::: +> demo: indicator block ### Do not make up 0 -:::demo - -```vue - -``` - -::: +> demo: indicator zero ## API ### Props -| Attribute | Description | Type | Default | -| --------- | --------------------------------------------------------------------------------------------------- | ------- | ------- | -| current | Current step | number | `1` | -| size | Step length | number | `3` | -| block | Enable block level layout | boolean | `false` | -| align | Alignment, which takes effect only when `block` is `true`. optional value `left`, `right`, `center` | string | `left` | -| fill-zero | Whether to add 0 before singular number | boolean | `true` | +| Attribute | Description | Type | Default | +| --- | --- | --- | --- | +| current | Current step | number | `1` | +| size | Step length | number | `3` | +| block | Enable block level layout | boolean | `false` | +| align | Alignment, which takes effect only when `block` is `true`. optional value `left`, `right`, `center` | string | `left` | +| fill-zero | Whether to add 0 before singular number | boolean | `true` | ## Theming @@ -90,12 +44,12 @@ app.use(Indicator); The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/component/configprovider). -| Name | Default Value | -| -------------------------------- | ------------------------------------- | -| --nut-indicator-bg-color | _var(--nut-primary-color)_ | -| --nut-indicator-dot-color | _var(--nut-disable-color)_ | -| --nut-indicator-color | _var(--nut-white)_ | -| --nut-indicator-size | _18px_ | -| --nut-indicator-dot-size | _calc(var(--nut-indicator-size) / 3)_ | -| --nut-indicator-border-size | _calc(var(--nut-indicator-size)+ 2)_ | -| --nut-indicator-number-font-size | _10px_ | +| Name | Default Value | +| --- | --- | +| --nut-indicator-bg-color | _var(--nut-primary-color)_ | +| --nut-indicator-dot-color | _var(--nut-disable-color)_ | +| --nut-indicator-color | _var(--nut-white)_ | +| --nut-indicator-size | _18px_ | +| --nut-indicator-dot-size | _calc(var(--nut-indicator-size) / 3)_ | +| --nut-indicator-border-size | _calc(var(--nut-indicator-size)+ 2)_ | +| --nut-indicator-number-font-size | _10px_ | diff --git a/src/packages/__VUE/indicator/doc.md b/src/packages/__VUE/indicator/doc.md index 19a08f41c7..cc44bd17e7 100644 --- a/src/packages/__VUE/indicator/doc.md +++ b/src/packages/__VUE/indicator/doc.md @@ -16,73 +16,27 @@ app.use(Indicator); ### 基础用法 -:::demo - -```vue - -``` - -::: +> demo: indicator basic ### block 用法 -:::demo - -```vue - -``` - -::: +> demo: indicator block ### 不补 0 -:::demo - -```vue - -``` - -::: +> demo: indicator zero ## API ### Props -| 参数 | 说明 | 类型 | 默认值 | -| --------- | ------------------------------------------------------------------------- | ------- | ------- | -| current | 当前步骤 | number | `1` | -| size | 步骤长度 | number | `3` | -| block | 是否启用块级布局 | boolean | `false` | -| align | 对齐方式,仅在 `block` 为 `true` 时生效, 可选值 `left`, `right`, `center` | string | `left` | -| fill-zero | 单数前面是否补 0 | boolean | `true` | +| 参数 | 说明 | 类型 | 默认值 | +| --- | --- | --- | --- | +| current | 当前步骤 | number | `1` | +| size | 步骤长度 | number | `3` | +| block | 是否启用块级布局 | boolean | `false` | +| align | 对齐方式,仅在 `block` 为 `true` 时生效, 可选值 `left`, `right`, `center` | string | `left` | +| fill-zero | 单数前面是否补 0 | boolean | `true` | ## 主题定制 @@ -90,12 +44,12 @@ app.use(Indicator); 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。 -| 名称 | 默认值 | -| -------------------------------- | ------------------------------------- | -| --nut-indicator-bg-color | _var(--nut-primary-color)_ | -| --nut-indicator-dot-color | _var(--nut-disable-color)_ | -| --nut-indicator-color | _var(--nut-white)_ | -| --nut-indicator-size | _18px_ | -| --nut-indicator-dot-size | _calc(var(--nut-indicator-size) / 3)_ | -| --nut-indicator-border-size | _calc(var(--nut-indicator-size)+ 2)_ | -| --nut-indicator-number-font-size | _10px_ | +| 名称 | 默认值 | +| --- | --- | +| --nut-indicator-bg-color | _var(--nut-primary-color)_ | +| --nut-indicator-dot-color | _var(--nut-disable-color)_ | +| --nut-indicator-color | _var(--nut-white)_ | +| --nut-indicator-size | _18px_ | +| --nut-indicator-dot-size | _calc(var(--nut-indicator-size) / 3)_ | +| --nut-indicator-border-size | _calc(var(--nut-indicator-size)+ 2)_ | +| --nut-indicator-number-font-size | _10px_ | diff --git a/src/packages/__VUE/indicator/doc.taro.md b/src/packages/__VUE/indicator/doc.taro.md index e0aa278483..45fe564e22 100644 --- a/src/packages/__VUE/indicator/doc.taro.md +++ b/src/packages/__VUE/indicator/doc.taro.md @@ -16,73 +16,27 @@ app.use(Indicator); ### 基础用法 -:::demo - -```vue - -``` - -::: +> demo: indicator basic nav ### block 用法 -:::demo - -```vue - -``` - -::: +> demo: indicator block nav ### 不补 0 -:::demo - -```vue - -``` - -::: +> demo: indicator zero nav ## API ### Props -| 参数 | 说明 | 类型 | 默认值 | -| --------- | ------------------------------------------------------------------------- | ------- | ------- | -| current | 当前步骤 | number | `1` | -| size | 步骤长度 | number | `3` | -| block | 是否启用块级布局 | boolean | `false` | -| align | 对齐方式,仅在 `block` 为 `true` 时生效, 可选值 `left`, `right`, `center` | string | `left` | -| fill-zero | 单数前面是否补 0 | boolean | `true` | +| 参数 | 说明 | 类型 | 默认值 | +| --- | --- | --- | --- | +| current | 当前步骤 | number | `1` | +| size | 步骤长度 | number | `3` | +| block | 是否启用块级布局 | boolean | `false` | +| align | 对齐方式,仅在 `block` 为 `true` 时生效, 可选值 `left`, `right`, `center` | string | `left` | +| fill-zero | 单数前面是否补 0 | boolean | `true` | ## 主题定制 @@ -90,12 +44,12 @@ app.use(Indicator); 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。 -| 名称 | 默认值 | -| -------------------------------- | ------------------------------------- | -| --nut-indicator-bg-color | _var(--nut-primary-color)_ | -| --nut-indicator-dot-color | _var(--nut-disable-color)_ | -| --nut-indicator-color | _var(--nut-white)_ | -| --nut-indicator-size | _18px_ | -| --nut-indicator-dot-size | _calc(var(--nut-indicator-size) / 3)_ | -| --nut-indicator-border-size | _calc(var(--nut-indicator-size)+ 2)_ | -| --nut-indicator-number-font-size | _10px_ | +| 名称 | 默认值 | +| --- | --- | +| --nut-indicator-bg-color | _var(--nut-primary-color)_ | +| --nut-indicator-dot-color | _var(--nut-disable-color)_ | +| --nut-indicator-color | _var(--nut-white)_ | +| --nut-indicator-size | _18px_ | +| --nut-indicator-dot-size | _calc(var(--nut-indicator-size) / 3)_ | +| --nut-indicator-border-size | _calc(var(--nut-indicator-size)+ 2)_ | +| --nut-indicator-number-font-size | _10px_ |