diff --git a/src/cascader/Cascader.tsx b/src/cascader/Cascader.tsx index 7137311eb..28dc16c8e 100644 --- a/src/cascader/Cascader.tsx +++ b/src/cascader/Cascader.tsx @@ -48,6 +48,10 @@ export default defineComponent({ type: String, default: 'cross', }, + swipeable: { + type: Boolean, + default: true, + }, }, emits: ['close', 'change', 'finish', 'update:modelValue'], @@ -243,10 +247,10 @@ export default defineComponent({ {state.tabs.map(renderTab)} diff --git a/src/cascader/README.md b/src/cascader/README.md index 612f0e631..58d1f7fff 100644 --- a/src/cascader/README.md +++ b/src/cascader/README.md @@ -204,6 +204,7 @@ export default { | options | Options | _Option[]_ | `[]` | | placeholder | Placeholder of unselected tab | _string_ | `Select` | | active-color | Active color | _string_ | `#ee0a24` | +| swipeable `v3.0.11` | Whether to enable gestures to slide left and right | _boolean_ | `false` | | closeable | Whether to show close icon | _boolean_ | `true` | | close-icon `v3.0.10` | Close icon name | _string_ | `cross` | | field-names `v3.0.4` | Custom the fields of options | _object_ | `{ text: 'text', value: 'value', children: 'children' }` | diff --git a/src/cascader/README.zh-CN.md b/src/cascader/README.zh-CN.md index bbc4bb983..379b1deb9 100644 --- a/src/cascader/README.zh-CN.md +++ b/src/cascader/README.zh-CN.md @@ -218,6 +218,7 @@ export default { | options | 可选项数据源 | _Option[]_ | `[]` | | placeholder | 未选中时的提示文案 | _string_ | `请选择` | | active-color | 选中状态的高亮颜色 | _string_ | `#ee0a24` | +| swipeable `v3.0.11` | 是否开启手势左右滑动切换 | _boolean_ | `false` | | closeable | 是否显示关闭图标 | _boolean_ | `true` | | close-icon `v3.0.10` | 关闭[图标名称](#/zh-CN/icon)或图片链接 | _string_ | `cross` | | field-names `v3.0.4` | 自定义 `options` 结构中的字段 | _object_ | `{ text: 'text', value: 'value', children: 'children' }` | diff --git a/src/image/README.zh-CN.md b/src/image/README.zh-CN.md index 360691feb..80753aaa5 100644 --- a/src/image/README.zh-CN.md +++ b/src/image/README.zh-CN.md @@ -104,9 +104,9 @@ app.use(Lazyload); | src | 图片链接 | _string_ | - | | fit | 图片填充模式 | _string_ | `fill` | | alt | 替代文本 | _string_ | - | -| width | 宽度,默认单位为`px` | _number \| string_ | - | -| height | 高度,默认单位为`px` | _number \| string_ | - | -| radius | 圆角大小,默认单位为`px` | _number \| string_ | `0` | +| width | 宽度,默认单位为 `px` | _number \| string_ | - | +| height | 高度,默认单位为 `px` | _number \| string_ | - | +| radius | 圆角大小,默认单位为 `px` | _number \| string_ | `0` | | round | 是否显示为圆形 | _boolean_ | `false` | | lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | _boolean_ | `false` | | show-error | 是否展示图片加载失败提示 | _boolean_ | `true` | diff --git a/src/tab/README.md b/src/tab/README.md index 60f910148..66141cc84 100644 --- a/src/tab/README.md +++ b/src/tab/README.md @@ -241,7 +241,7 @@ export default { | border | Whether to show border when `type="line"` | _boolean_ | `false` | | ellipsis | Whether to ellipsis too long title | _boolean_ | `true` | | sticky | Whether to use sticky mode | _boolean_ | `false` | -| swipeable | Whether to switch tabs with swipe gestrue in the content | _boolean_ | `false` | +| swipeable | Whether to enable gestures to slide left and right | _boolean_ | `false` | | lazy-render | Whether to enable tab content lazy render | _boolean_ | `true` | | scrollspy | Whether to use scrollspy mode | _boolean_ | `false` | | offset-top | Sticky offset top , supports `px` `vw` `vh` `rem` unit, default `px` | _number \| string_ | `0` | diff --git a/src/tab/README.zh-CN.md b/src/tab/README.zh-CN.md index 418ec9f99..347bfdefc 100644 --- a/src/tab/README.zh-CN.md +++ b/src/tab/README.zh-CN.md @@ -252,7 +252,7 @@ export default { | border | 是否显示标签栏外边框,仅在 `type="line"` 时有效 | _boolean_ | `false` | | ellipsis | 是否省略过长的标题文字 | _boolean_ | `true` | | sticky | 是否使用粘性定位布局 | _boolean_ | `false` | -| swipeable | 是否开启手势滑动切换 | _boolean_ | `false` | +| swipeable | 是否开启手势左右滑动切换 | _boolean_ | `false` | | lazy-render | 是否开启延迟渲染(首次切换到标签时才触发内容渲染) | _boolean_ | `true` | | scrollspy | 是否开启滚动导航 | _boolean_ | `false` | | offset-top | 粘性定位布局下与顶部的最小距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px` | _number \| string_ | `0` |