@@ -93,7 +93,7 @@ app.use(Skeleton);
:::demo
-```html
+```vue
@@ -115,41 +115,34 @@ app.use(Skeleton);
-
```
@@ -159,23 +152,23 @@ app.use(Skeleton);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------ | ------------------------- | ------- | --------- |
-| loading | 是否显示骨架屏 | boolean | `true` |
-| width | 每行宽度 | string | `default` |
-| height | 每行高度 | string | `15px` |
-| animated | 是否开启骨架屏动画 | boolean | `false` |
-| avatar | 是否显示头像 | boolean | `false` |
-| avatar-shape | 头像形状:正方形/圆形 | string | `round` |
-| avatar-size | 头像大小 | string | `50px` |
-| round | 标题/段落是否采用圆角风格 | boolean | `false` |
-| row | 设置段落行数 | string | `1` |
-| title | 是否显示段落标题 | boolean | `true` |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| loading | 是否显示骨架屏 | boolean | `true` |
+| width | 每行宽度 | string | `default` |
+| height | 每行高度 | string | `15px` |
+| animated | 是否开启骨架屏动画 | boolean | `false` |
+| avatar | 是否显示头像 | boolean | `false` |
+| avatar-shape | 头像形状:正方形/圆形 | string | `round` |
+| avatar-size | 头像大小 | string | `50px` |
+| round | 标题/段落是否采用圆角风格 | boolean | `false` |
+| row | 设置段落行数 | string | `1` |
+| title | 是否显示段落标题 | boolean | `true` |
### Slots
-| 名称 | 说明 |
-| ------- | -------------- |
+| 名称 | 说明 |
+| --- | --- |
| default | 骨架屏显示内容 |
## 主题定制
@@ -184,8 +177,8 @@ app.use(Skeleton);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ---------------------------------------------- | -------------------------------------------------------------------------------------------------- |
-| --nut-skeleton-content-avatar-background-color | _#efefef_ |
-| --nut-skeleton-content-line-background-color | _#efefef_ |
-| --nut-skeleton-animation-background-color | _linear-gradient(90deg,hsla(0, 0%, 100%, 0),hsla(0, 0%, 100%, 0.5) 50%, hsla(0, 0%, 100%, 0) 80%)_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-skeleton-content-avatar-background-color | _#efefef_ |
+| --nut-skeleton-content-line-background-color | _#efefef_ |
+| --nut-skeleton-animation-background-color | _linear-gradient(90deg,hsla(0, 0%, 100%, 0),hsla(0, 0%, 100%, 0.5) 50%, hsla(0, 0%, 100%, 0) 80%)_ |
diff --git a/src/packages/__VUE/swiper/demo.vue b/src/packages/__VUE/swiper/demo.vue
index 28e6304852..3217e61ccd 100644
--- a/src/packages/__VUE/swiper/demo.vue
+++ b/src/packages/__VUE/swiper/demo.vue
@@ -2,60 +2,60 @@
-
diff --git a/src/packages/__VUE/swiper/doc.en-US.md b/src/packages/__VUE/swiper/doc.en-US.md
index 7728522919..b5d81162cc 100644
--- a/src/packages/__VUE/swiper/doc.en-US.md
+++ b/src/packages/__VUE/swiper/doc.en-US.md
@@ -6,7 +6,7 @@ Often used in a group of pictures or card rotation.
### Install
-```javascript
+```js
import { createApp } from 'vue';
import { Swiper, SwiperItem } from '@nutui/nutui';
@@ -24,7 +24,7 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
@@ -41,25 +41,18 @@ app.use(SwiperItem);
-
```
@@ -69,44 +62,39 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
-
+
+
-
```
@@ -118,44 +106,39 @@ Support dynamic addition / deletion of pictures
:::demo
-```html
+```vue
-
-
+
+
-
```
@@ -167,9 +150,9 @@ Support dynamic addition / deletion of pictures
:::demo
-```html
+```vue
-
+
@@ -184,25 +167,18 @@ Support dynamic addition / deletion of pictures
-
```
@@ -214,9 +190,9 @@ Support dynamic addition / deletion of pictures
:::demo
-```html
+```vue
-
+
@@ -230,45 +206,40 @@ Support dynamic addition / deletion of pictures
- {{ current }}/4
+ {{ state.current }}/4
-
```
@@ -278,9 +249,9 @@ Support dynamic addition / deletion of pictures
:::demo
-```html
+```vue
-
+
@@ -294,45 +265,40 @@ Support dynamic addition / deletion of pictures
- {{ current1 }}/4
+ {{ state.current1 }}/4
-
```
@@ -344,11 +310,11 @@ You can manually switch through `api` (`prev`, `next`)
:::demo
-```html
+```vue
-
-
+
+
@@ -362,63 +328,54 @@ You can manually switch through `api` (`prev`, `next`)
-
```
@@ -430,10 +387,10 @@ You can manually switch through `api` (`prev`, `next`)
:::demo
-```html
+```vue
-
```
@@ -492,40 +442,40 @@ You can manually switch through `api` (`prev`, `next`)
### Props
-| Attribute | Description | Type | Default |
-| ------------------- | ----------------------------------------------------------- | ---------------- | -------------------- |
-| width | Width of rotation card | number \| string | `window.innerWidth ` |
-| height | Height of rotation card | number \| string | `0` |
-| direction | Rotation direction, optional value:`horizontal`,`vertical` | string | `'horizontal'` |
-| pagination-visible | Is the paging indicator displayed | boolean | `false` |
-| pagination-color | The color selected by the pagination indicator | string | `'#fff'` |
-| loop | Whether to rotate | boolean | `true` |
-| duration | Animation duration(Unit ms) | number \| string | `500` |
-| auto-play | Automatic rotation duration, 0 means no automatic rotation | number \| string | `0` |
-| init-page | Initialize index value | number \| string | `0` |
-| touchable | if touchable to slide | boolean | `true` |
-| is-prevent-default | Disable default events during sliding | boolean | `true` |
-| is-stop-propagation | Is bubbling prohibited during sliding | boolean | `true` |
+| Attribute | Description | Type | Default |
+| --- | --- | --- | --- |
+| width | Width of rotation card | number \| string | `window.innerWidth ` |
+| height | Height of rotation card | number \| string | `0` |
+| direction | Rotation direction, optional value:`horizontal`,`vertical` | string | `'horizontal'` |
+| pagination-visible | Is the paging indicator displayed | boolean | `false` |
+| pagination-color | The color selected by the pagination indicator | string | `'#fff'` |
+| loop | Whether to rotate | boolean | `true` |
+| duration | Animation duration(Unit ms) | number \| string | `500` |
+| auto-play | Automatic rotation duration, 0 means no automatic rotation | number \| string | `0` |
+| init-page | Initialize index value | number \| string | `0` |
+| touchable | if touchable to slide | boolean | `true` |
+| is-prevent-default | Disable default events during sliding | boolean | `true` |
+| is-stop-propagation | Is bubbling prohibited during sliding | boolean | `true` |
### Events
-| Event | Description | Arguments |
-| ------ | ---------------------- | ------------------- |
+| Event | Description | Arguments |
+| --- | --- | --- |
| change | Callback after sliding | Current index value |
### Slots
-| Name | Description |
-| ---- | ---------------- |
+| Name | Description |
+| --- | --- |
| page | Custom Indicator |
### Methods
-| Event | Description | Arguments |
-| ----- | -------------------------------- | -------------- |
-| prev | Switch to previous page | - |
-| next | Switch to next page | - |
-| to | Switch to the specified rotation | `index:number` |
+| Event | Description | Arguments |
+| --- | --- | --- |
+| prev | Switch to previous page | - |
+| next | Switch to next page | - |
+| to | Switch to the specified rotation | `index:number` |
## Theming
@@ -533,9 +483,9 @@ You can manually switch through `api` (`prev`, `next`)
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-swiper-pagination-item-width | _8px_ |
-| --nut-swiper-pagination-item-height | _3px_ |
-| --nut-swiper-pagination-item-margin-right | _7px_ |
-| --nut-swiper-pagination-item-border-radius | _2px_ |
+| Name | Default Value |
+| --- | --- |
+| --nut-swiper-pagination-item-width | _8px_ |
+| --nut-swiper-pagination-item-height | _3px_ |
+| --nut-swiper-pagination-item-margin-right | _7px_ |
+| --nut-swiper-pagination-item-border-radius | _2px_ |
diff --git a/src/packages/__VUE/swiper/doc.md b/src/packages/__VUE/swiper/doc.md
index ab57ac7d53..2fbd183590 100644
--- a/src/packages/__VUE/swiper/doc.md
+++ b/src/packages/__VUE/swiper/doc.md
@@ -6,7 +6,7 @@
### 安装
-```javascript
+```js
import { createApp } from 'vue';
import { Swiper, SwiperItem } from '@nutui/nutui';
@@ -24,7 +24,7 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
@@ -41,25 +41,18 @@ app.use(SwiperItem);
-
```
@@ -69,44 +62,39 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
-
+
+
-
```
@@ -118,44 +106,39 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
-
+
+
-
```
@@ -167,9 +150,9 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
+
@@ -184,25 +167,18 @@ app.use(SwiperItem);
-
```
@@ -214,9 +190,9 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
+
@@ -230,45 +206,40 @@ app.use(SwiperItem);
- {{ current }}/4
+ {{ state.current }}/4
-
```
@@ -278,9 +249,9 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
+
@@ -294,45 +265,40 @@ app.use(SwiperItem);
- {{ current1 }}/4
+ {{ state.current1 }}/4
-
```
@@ -344,11 +310,11 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
-
+
+
@@ -362,64 +328,54 @@ app.use(SwiperItem);
-
```
@@ -431,10 +387,10 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
```
@@ -493,40 +442,40 @@ app.use(SwiperItem);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------------- | -------------------------------------- | ---------------- | ------------------- |
-| width | 轮播卡片的宽度 | number \| string | `window.innerWidth` |
-| height | 轮播卡片的高度 | number \| string | `0` |
-| direction | 轮播方向,可选值`horizontal`,`vertical` | string | `'horizontal'` |
-| pagination-visible | 分页指示器是否展示 | boolean | `false` |
-| pagination-color | 分页指示器选中的颜色 | string | `'#fff'` |
-| loop | 是否循环轮播 | boolean | `true` |
-| duration | 动画时长(单位是 ms) | number \| string | `500` |
-| auto-play | 自动轮播时长,0 表示不会自动轮播 | number \| string | `0` |
-| init-page | 初始化索引值 | number \| string | `0` |
-| touchable | 是否可触摸滑动 | boolean | `true` |
-| is-prevent-default | 滑动过程中是否禁用默认事件 | boolean | `true` |
-| is-stop-propagation | 滑动过程中是否禁止冒泡 | boolean | `true` |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| width | 轮播卡片的宽度 | number \| string | `window.innerWidth` |
+| height | 轮播卡片的高度 | number \| string | `0` |
+| direction | 轮播方向,可选值`horizontal`,`vertical` | string | `'horizontal'` |
+| pagination-visible | 分页指示器是否展示 | boolean | `false` |
+| pagination-color | 分页指示器选中的颜色 | string | `'#fff'` |
+| loop | 是否循环轮播 | boolean | `true` |
+| duration | 动画时长(单位是 ms) | number \| string | `500` |
+| auto-play | 自动轮播时长,0 表示不会自动轮播 | number \| string | `0` |
+| init-page | 初始化索引值 | number \| string | `0` |
+| touchable | 是否可触摸滑动 | boolean | `true` |
+| is-prevent-default | 滑动过程中是否禁用默认事件 | boolean | `true` |
+| is-stop-propagation | 滑动过程中是否禁止冒泡 | boolean | `true` |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ------ | -------------- | ------------------ |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
| change | 滑动之后的回调 | `当前索引值 index` |
### Slots
-| 名称 | 说明 |
-| ---- | ------------ |
+| 名称 | 说明 |
+| --- | --- |
| page | 自定义指示器 |
### Methods
-| 事件名 | 说明 | 参数 |
-| ------ | -------------- | -------------- |
-| prev | 切换到上一页 | - |
-| next | 切换到下一页 | - |
-| to | 切换到指定轮播 | `index:number` |
+| 事件名 | 说明 | 参数 |
+| --- | --- | --- |
+| prev | 切换到上一页 | - |
+| next | 切换到下一页 | - |
+| to | 切换到指定轮播 | `index:number` |
## 主题定制
@@ -534,9 +483,9 @@ app.use(SwiperItem);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ------------------------------------------ | ------ |
-| --nut-swiper-pagination-item-width | _8px_ |
-| --nut-swiper-pagination-item-height | _3px_ |
-| --nut-swiper-pagination-item-margin-right | _7px_ |
-| --nut-swiper-pagination-item-border-radius | _2px_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-swiper-pagination-item-width | _8px_ |
+| --nut-swiper-pagination-item-height | _3px_ |
+| --nut-swiper-pagination-item-margin-right | _7px_ |
+| --nut-swiper-pagination-item-border-radius | _2px_ |
diff --git a/src/packages/__VUE/swiper/doc.taro.md b/src/packages/__VUE/swiper/doc.taro.md
index fc552a9786..c2e9006a01 100644
--- a/src/packages/__VUE/swiper/doc.taro.md
+++ b/src/packages/__VUE/swiper/doc.taro.md
@@ -6,7 +6,7 @@
### 安装
-```javascript
+```js
import { createApp } from 'vue';
import { Swiper, SwiperItem } from '@nutui/nutui-taro';
@@ -24,7 +24,7 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
@@ -41,25 +41,18 @@ app.use(SwiperItem);
-
```
@@ -69,44 +62,39 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
-
+
+
-
```
@@ -118,44 +106,39 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
-
+
+
-
```
@@ -167,9 +150,9 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
+
@@ -184,25 +167,18 @@ app.use(SwiperItem);
-
```
@@ -214,9 +190,9 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
+
@@ -230,45 +206,40 @@ app.use(SwiperItem);
- {{ current }}/4
+ {{ state.current }}/4
-
```
@@ -278,9 +249,9 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
+
@@ -294,45 +265,40 @@ app.use(SwiperItem);
- {{ current1 }}/4
+ {{ state.current1 }}/4
-
```
@@ -344,11 +310,11 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
-
+
+
@@ -362,64 +328,54 @@ app.use(SwiperItem);
-
```
@@ -431,10 +387,10 @@ app.use(SwiperItem);
:::demo
-```html
+```vue
-
```
@@ -484,40 +433,40 @@ app.use(SwiperItem);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------------- | -------------------------------------- | ---------------- | ----------------- |
-| width | 轮播卡片的宽度 | number \| string | window.innerWidth |
-| height | 轮播卡片的高度 | number \| string | `0` |
-| direction | 轮播方向,可选值`horizontal`,`vertical` | string | `'horizontal'` |
-| pagination-visible | 分页指示器是否展示 | boolean | `false` |
-| pagination-color | 分页指示器选中的颜色 | string | `'#fff'` |
-| loop | 是否循环轮播 | boolean | `true` |
-| duration | 动画时长(单位是 ms) | number \| string | `500` |
-| auto-play | 自动轮播时长,0 表示不会自动轮播 | number \| string | `0` |
-| init-page | 初始化索引值 | number \| string | `0` |
-| touchable | 是否可触摸滑动 | boolean | `true` |
-| is-prevent-default | 滑动过程中是否禁用默认事件 | boolean | `true` |
-| is-stop-propagation | 滑动过程中是否禁止冒泡 | boolean | `true` |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| width | 轮播卡片的宽度 | number \| string | window.innerWidth |
+| height | 轮播卡片的高度 | number \| string | `0` |
+| direction | 轮播方向,可选值`horizontal`,`vertical` | string | `'horizontal'` |
+| pagination-visible | 分页指示器是否展示 | boolean | `false` |
+| pagination-color | 分页指示器选中的颜色 | string | `'#fff'` |
+| loop | 是否循环轮播 | boolean | `true` |
+| duration | 动画时长(单位是 ms) | number \| string | `500` |
+| auto-play | 自动轮播时长,0 表示不会自动轮播 | number \| string | `0` |
+| init-page | 初始化索引值 | number \| string | `0` |
+| touchable | 是否可触摸滑动 | boolean | `true` |
+| is-prevent-default | 滑动过程中是否禁用默认事件 | boolean | `true` |
+| is-stop-propagation | 滑动过程中是否禁止冒泡 | boolean | `true` |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ------ | -------------- | ------------------ |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
| change | 滑动之后的回调 | `当前索引值 index` |
### Slots
-| 名称 | 说明 |
-| ---- | ------------ |
+| 名称 | 说明 |
+| --- | --- |
| page | 自定义指示器 |
### Methods
-| 事件名 | 说明 | 参数 |
-| ------ | -------------- | ------------ |
-| prev | 切换到上一页 | - |
-| next | 切换到下一页 | - |
-| to | 切换到指定轮播 | index:number |
+| 事件名 | 说明 | 参数 |
+| --- | --- | --- |
+| prev | 切换到上一页 | - |
+| next | 切换到下一页 | - |
+| to | 切换到指定轮播 | index:number |
## 主题定制
@@ -525,9 +474,9 @@ app.use(SwiperItem);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ------------------------------------------ | ------ |
-| --nut-swiper-pagination-item-width | _8px_ |
-| --nut-swiper-pagination-item-height | _3px_ |
-| --nut-swiper-pagination-item-margin-right | _7px_ |
-| --nut-swiper-pagination-item-border-radius | _2px_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-swiper-pagination-item-width | _8px_ |
+| --nut-swiper-pagination-item-height | _3px_ |
+| --nut-swiper-pagination-item-margin-right | _7px_ |
+| --nut-swiper-pagination-item-border-radius | _2px_ |
diff --git a/src/packages/__VUE/table/demo.vue b/src/packages/__VUE/table/demo.vue
index d75249a7fd..31a6480ca9 100644
--- a/src/packages/__VUE/table/demo.vue
+++ b/src/packages/__VUE/table/demo.vue
@@ -1,32 +1,32 @@
{{ translate('basic') }}
-
+
{{ translate('title1') }}
-
+
{{ translate('title2') }}
-
+
{{ translate('title3') }}
-
+
{{ translate('title4') }}
-
+
-
+
{{ translate('title5') }}
{{ translate('title6') }}
-
+
{{ translate('title7') }}
-
+
{{ translate('title8') }}
-
+
-
diff --git a/src/packages/__VUE/table/doc.en-US.md b/src/packages/__VUE/table/doc.en-US.md
index 1963b5321a..bfb443fd76 100644
--- a/src/packages/__VUE/table/doc.en-US.md
+++ b/src/packages/__VUE/table/doc.en-US.md
@@ -6,7 +6,7 @@ Used to display the basic table
### Install
-```javascript
+```js
import { createApp } from 'vue';
import { Table } from '@nutui/nutui';
@@ -18,66 +18,58 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -87,55 +79,47 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -145,73 +129,65 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -221,68 +197,60 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -292,72 +260,65 @@ app.use(Table);
:::demo
-```html
+```vue
-
-
+
+
Here is the custom display
-
```
@@ -367,88 +328,81 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -458,74 +412,66 @@ app.use(Table);
:::demo
-```html
+```vue
Support asynchronous rendering(See the effect after 5S)
-
+
-
```
@@ -535,72 +481,62 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -610,30 +546,30 @@ app.use(Table);
### Props
-| Attribute | Description | Type | Default |
-| --------- | -------------------------------------------- | ------------------ | ------- |
-| bordered | Show border | boolean | `true` |
-| columns | Header data | TableColumnProps[] | `[]` |
-| data | Table data | object[] | `[]` |
-| summary | Show profile | Function | - |
-| striped | Whether the stripes alternate light and dark | boolean | `false` |
+| Attribute | Description | Type | Default |
+| --- | --- | --- | --- |
+| bordered | Show border | boolean | `true` |
+| columns | Header data | TableColumnProps[] | `[]` |
+| data | Table data | object[] | `[]` |
+| summary | Show profile | Function | - |
+| striped | Whether the stripes alternate light and dark | boolean | `false` |
### TableColumnProps
-| Attribute | Description | Type | Default |
-| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | ------- |
-| key | Unique identification of the column | string | `` |
-| title | Header title | string | `` |
-| stylehead | Header style | string | `` |
-| stylecolumn | Column style | string | `` |
-| align | Alignment of columns, optional values`left`,`center`,`right` | string | `left` |
-| sorter | sort,optional values `true`,`function`, `default`, Where `default` means that you may depend on the interface after clicking, `function` you can return a specific sorting function, `default` indicates that the default sorting algorithm is adopted | boolean \| Function \| string | - |
-| render | Custom render column data, high priority | Function(record) | - |
+| Attribute | Description | Type | Default |
+| --- | --- | --- | --- |
+| key | Unique identification of the column | string | `` |
+| title | Header title | string | `` |
+| stylehead | Header style | string | `` |
+| stylecolumn | Column style | string | `` |
+| align | Alignment of columns, optional values`left`,`center`,`right` | string | `left` |
+| sorter | sort,optional values `true`,`function`, `default`, Where `default` means that you may depend on the interface after clicking, `function` you can return a specific sorting function, `default` indicates that the default sorting algorithm is adopted | boolean \| Function \| string | - |
+| render | Custom render column data, high priority | Function(record) | - |
### Events
-| Event | Description | Arguments |
-| ------ | -------------------------------- | ------------------------------------------ |
+| Event | Description | Arguments |
+| --- | --- | --- |
| sorter | Click the sort button to trigger | item: Data of the currently clicked header |
## Theming
@@ -642,9 +578,9 @@ app.use(Table);
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 | Description |
-| ---------------------------- | ------------------ | ----------- |
-| --nut-table-border-color | _#ececec_ | - |
-| --nut-table-cols-padding | _10px_ | - |
-| --nut-table-tr-even-bg-color | _#f3f3f3_ | - |
-| --nut-table-tr-odd-bg-color | _var(--nut-white)_ | - |
+| Name | Default Value | Description |
+| --- | --- | --- |
+| --nut-table-border-color | _#ececec_ | - |
+| --nut-table-cols-padding | _10px_ | - |
+| --nut-table-tr-even-bg-color | _#f3f3f3_ | - |
+| --nut-table-tr-odd-bg-color | _var(--nut-white)_ | - |
diff --git a/src/packages/__VUE/table/doc.md b/src/packages/__VUE/table/doc.md
index db50e0f135..82ef3284b7 100644
--- a/src/packages/__VUE/table/doc.md
+++ b/src/packages/__VUE/table/doc.md
@@ -6,7 +6,7 @@
### 安装
-```javascript
+```js
import { createApp } from 'vue';
import { Table } from '@nutui/nutui';
@@ -18,66 +18,58 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -87,55 +79,47 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -145,73 +129,65 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -221,68 +197,60 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -292,72 +260,65 @@ app.use(Table);
:::demo
-```html
+```vue
-
-
+
+
这里是自定义展示
-
```
@@ -367,88 +328,81 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -458,74 +412,66 @@ app.use(Table);
:::demo
-```html
+```vue
支持异步渲染(5s之后看效果)
-
+
-
```
@@ -535,72 +481,62 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -610,30 +546,30 @@ app.use(Table);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| -------- | ---------------- | ------------------ | ------- |
-| bordered | 是否显示边框 | boolean | `true` |
-| columns | 表头数据 | TableColumnProps[] | `[]` |
-| data | 表格数据 | object[] | `[]` |
-| summary | 是否显示简介 | Function | - |
-| striped | 条纹是否明暗交替 | boolean | `false` |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| bordered | 是否显示边框 | boolean | `true` |
+| columns | 表头数据 | TableColumnProps[] | `[]` |
+| data | 表格数据 | object[] | `[]` |
+| summary | 是否显示简介 | Function | - |
+| striped | 条纹是否明暗交替 | boolean | `false` |
### TableColumnProps
-| 参数 | 说明 | 类型 | 默认值 |
-| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | ------ |
-| key | 列的唯一标识 | string | `` |
-| title | 表头标题 | string | `` |
-| stylehead | 表头样式 | string | `` |
-| stylecolumn | 列样式 | string | `` |
-| align | 列的对齐方式,可选值`left`,`center`,`right` | string | `left` |
-| sorter | 排序,可选值有 `true`,`function`, `default`, 其中 `default`表示点击之后可能会依赖接口, `function`可以返回具体的排序函数, `default`表示采用默认的排序算法 | boolean \| Function \| string | - |
-| render | 自定义渲染列数据,优先级高 | Function(record) | - |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| key | 列的唯一标识 | string | `` |
+| title | 表头标题 | string | `` |
+| stylehead | 表头样式 | string | `` |
+| stylecolumn | 列样式 | string | `` |
+| align | 列的对齐方式,可选值`left`,`center`,`right` | string | `left` |
+| sorter | 排序,可选值有 `true`,`function`, `default`, 其中 `default`表示点击之后可能会依赖接口, `function`可以返回具体的排序函数, `default`表示采用默认的排序算法 | boolean \| Function \| string | - |
+| render | 自定义渲染列数据,优先级高 | Function(record) | - |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ------ | ---------------- | -------------------------- |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
| sorter | 点击排序按钮触发 | item: 当前点击的表头的数据 |
## 主题定制
@@ -642,9 +578,9 @@ app.use(Table);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ---------------------------- | ------------------ |
-| --nut-table-border-color | _#ececec_ |
-| --nut-table-cols-padding | _10px_ |
-| --nut-table-tr-even-bg-color | _#f3f3f3_ |
-| --nut-table-tr-odd-bg-color | _var(--nut-white)_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-table-border-color | _#ececec_ |
+| --nut-table-cols-padding | _10px_ |
+| --nut-table-tr-even-bg-color | _#f3f3f3_ |
+| --nut-table-tr-odd-bg-color | _var(--nut-white)_ |
diff --git a/src/packages/__VUE/table/doc.taro.md b/src/packages/__VUE/table/doc.taro.md
index 468c05dbd5..0effea9113 100644
--- a/src/packages/__VUE/table/doc.taro.md
+++ b/src/packages/__VUE/table/doc.taro.md
@@ -6,7 +6,7 @@
### 安装
-```javascript
+```js
import { createApp } from 'vue';
import { Table } from '@nutui/nutui-taro';
@@ -18,66 +18,58 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -87,55 +79,47 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -145,73 +129,65 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -221,68 +197,60 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -292,72 +260,65 @@ app.use(Table);
:::demo
-```html
+```vue
-
-
+
+
这里是自定义展示
-
```
@@ -367,88 +328,81 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -458,74 +412,66 @@ app.use(Table);
:::demo
-```html
+```vue
支持异步渲染(5s之后看效果)
-
+
-
```
@@ -535,70 +481,61 @@ app.use(Table);
:::demo
-```html
+```vue
-
+
-
```
@@ -608,30 +545,30 @@ app.use(Table);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| -------- | ---------------- | ------------------ | ------- |
-| bordered | 是否显示边框 | boolean | `true` |
-| columns | 表头数据 | TableColumnProps[] | `[]` |
-| data | 表格数据 | object[] | `[]` |
-| summary | 是否显示简介 | Function | - |
-| striped | 条纹是否明暗交替 | boolean | `false` |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| bordered | 是否显示边框 | boolean | `true` |
+| columns | 表头数据 | TableColumnProps[] | `[]` |
+| data | 表格数据 | object[] | `[]` |
+| summary | 是否显示简介 | Function | - |
+| striped | 条纹是否明暗交替 | boolean | `false` |
### TableColumnProps
-| 参数 | 说明 | 类型 | 默认值 |
-| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | ------ |
-| key | 列的唯一标识 | string | `` |
-| title | 表头标题 | string | `` |
-| stylehead | 表头样式 | string | `` |
-| stylecolumn | 列样式 | string | `` |
-| align | 列的对齐方式,可选值`left`,`center`,`right` | string | `left` |
-| sorter | 排序,可选值有 `true`,`function`, `default`, 其中 `default`表示点击之后可能会依赖接口, `function`可以返回具体的排序函数, `default`表示采用默认的排序算法 | boolean \| Function \| string | - |
-| render | 自定义渲染列数据,优先级高 | Function(record) | - |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| key | 列的唯一标识 | string | `` |
+| title | 表头标题 | string | `` |
+| stylehead | 表头样式 | string | `` |
+| stylecolumn | 列样式 | string | `` |
+| align | 列的对齐方式,可选值`left`,`center`,`right` | string | `left` |
+| sorter | 排序,可选值有 `true`,`function`, `default`, 其中 `default`表示点击之后可能会依赖接口, `function`可以返回具体的排序函数, `default`表示采用默认的排序算法 | boolean \| Function \| string | - |
+| render | 自定义渲染列数据,优先级高 | Function(record) | - |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ------ | ---------------- | -------------------------- |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
| sorter | 点击排序按钮触发 | item: 当前点击的表头的数据 |
## 主题定制
@@ -640,9 +577,9 @@ app.use(Table);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ---------------------------- | ------------------ |
-| --nut-table-border-color | _#ececec_ |
-| --nut-table-cols-padding | _10px_ |
-| --nut-table-tr-even-bg-color | _#f3f3f3_ |
-| --nut-table-tr-odd-bg-color | _var(--nut-white)_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-table-border-color | _#ececec_ |
+| --nut-table-cols-padding | _10px_ |
+| --nut-table-tr-even-bg-color | _#f3f3f3_ |
+| --nut-table-tr-odd-bg-color | _var(--nut-white)_ |
diff --git a/src/packages/__VUE/tour/demo.vue b/src/packages/__VUE/tour/demo.vue
index 886714c0b5..c75901acf8 100644
--- a/src/packages/__VUE/tour/demo.vue
+++ b/src/packages/__VUE/tour/demo.vue
@@ -4,14 +4,14 @@
-
+
@@ -20,14 +20,14 @@
-
+
{{ translate('title2') }}
-
+
-
+
nutui 4.x 即将发布,敬请期待
- 知道了
+ 知道了
{{ translate('title4') }}
-
+
@@ -104,9 +104,9 @@