Skip to content

Commit

Permalink
build: compile 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonofweisheng committed Dec 9, 2024
1 parent a80db8e commit cff4228
Show file tree
Hide file tree
Showing 14 changed files with 113 additions and 25 deletions.
6 changes: 3 additions & 3 deletions docs/component/calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ function handleConfirm({ value }) {
| middle | 范围开始与结束之间的日期 | - |
| same | 范围开始与结束日期同一天 | - |
| current | 当前日期 | - |
| multiple-middle | 多日期范围选择,开始与结束之间的日期 | $LOWEST_VERSION$ |
| multiple-selected | 多日期范围选择,选中的日期 | $LOWEST_VERSION$ |
| multiple-middle | 多日期范围选择,开始与结束之间的日期 | 1.5.0 |
| multiple-selected | 多日期范围选择,选中的日期 | 1.5.0 |

```html
<wd-calendar type="daterange" v-model="value" allow-same-day :formatter="formatter" @confirm="handleConfirm" />
Expand Down Expand Up @@ -437,7 +437,7 @@ function handleConfirm({ value }) {
| prop | 表单域 `model` 字段名,在使用表单校验功能的情况下,该属性是必填的 | string | - | - | - |
| rules | 表单验证规则,结合`wd-form`组件使用 | `FormItemRule []` | - | `[]` | - |
| immediate-change | type 为 'datetime' 或 'datetimerange' 时有,是否在手指松开时立即触发 picker-view 的 change 事件。若不开启则会在滚动动画结束后触发 change 事件,1.2.25 版本起提供,仅微信小程序和支付宝小程序支持。 | boolean | - | false | 1.2.25 |
| with-cell | 是否使用内置 cell 选择器 | boolean | - | true | $LOWEST_VERSION$ |
| with-cell | 是否使用内置 cell 选择器 | boolean | - | true | 1.5.0 |

### FormItemRule 数据结构

Expand Down
6 changes: 3 additions & 3 deletions docs/component/curtain.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ function handleClose() {

| name | 说明 | 最低版本 |
| ----- | ------------ | ---------------- |
| close | 关闭按钮插槽 | $LOWEST_VERSION$ |
| close | 关闭按钮插槽 | 1.5.0 |

## 外部样式类

| 类名 | 说明 | 最低版本 |
| ------------------ | -------------- | ---------------- |
| custom-class | 根节点样式 | - |
| custom-close-class | 关闭按钮样式类 | $LOWEST_VERSION$ |
| custom-close-style | 关闭按钮样式 | $LOWEST_VERSION$ |
| custom-close-class | 关闭按钮样式类 | 1.5.0 |
| custom-close-style | 关闭按钮样式 | 1.5.0 |
10 changes: 5 additions & 5 deletions docs/component/divider.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Divider 分割线

:::danger 请注意
`hairline``dashed``content-position``vertical`属性为 $LOWEST_VERSION$ 版本新增支持,在此之前仅支持默认插槽显示文本和自定义`color`
`hairline``dashed``content-position``vertical`属性为 1.5.0 版本新增支持,在此之前仅支持默认插槽显示文本和自定义`color`
:::

## 基本使用
Expand Down Expand Up @@ -85,10 +85,10 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 |
| ---------------- | ------------------------------ | ------- | ----------------------- | -------- | ---------------- |
| color | 自定义颜色,支持所有颜色的写法 | string | - | - | - |
| hairline | 是否显示边框 | boolean | - | true | $LOWEST_VERSION$ |
| dashed | 是否显示为虚线 | boolean | - | false | $LOWEST_VERSION$ |
| content-position | 内容位置 | string | `left`/`center`/`right` | `center` | $LOWEST_VERSION$ |
| vertical | 是否显示为垂直分割线 | boolean | - | false | $LOWEST_VERSION$ |
| hairline | 是否显示边框 | boolean | - | true | 1.5.0 |
| dashed | 是否显示为虚线 | boolean | - | false | 1.5.0 |
| content-position | 内容位置 | string | `left`/`center`/`right` | `center` | 1.5.0 |
| vertical | 是否显示为垂直分割线 | boolean | - | false | 1.5.0 |

## Slot

Expand Down
4 changes: 2 additions & 2 deletions docs/component/drop-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,5 @@ const handleBeforeToggle: DropMenuItemBeforeToggle = ({ status, resolve }) => {
| custom-class | DropMenuItem 根节点样式 | - |
| custom-title | DropMenuItem 左侧文字样式 | - |
| custom-icon | DropMenuItem 右侧 icon 样式 | - |
| custom-popup-class | 自定义下拉菜单 popup 样式类 | $LOWEST_VERSION$ |
| custom-popup-style | 自定义下拉菜单 popup 样式 | $LOWEST_VERSION$ |
| custom-popup-class | 自定义下拉菜单 popup 样式类 | 1.5.0 |
| custom-popup-style | 自定义下拉菜单 popup 样式 | 1.5.0 |
2 changes: 1 addition & 1 deletion docs/component/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function handleChange(event) {
| clearTrigger | 显示清除图标的时机,always 表示输入框不为空时展示,focus 表示输入框聚焦且不为空时展示 | `InputClearTrigger` | `focus` / `always` | `always` | 1.3.7 |
| focusWhenClear | 是否在点击清除按钮时聚焦输入框 | boolean | - | true | 1.3.7 |
| ignoreCompositionEvent | 是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件,且在文本合成期间会触发 input 事件。 | boolean | - | true | 1.3.11|
| inputmode | 提供用户在编辑元素或其内容时可能输入的数据类型的提示。 | InputMode | - | text | $LOWEST_VERSION$ |
| inputmode | 提供用户在编辑元素或其内容时可能输入的数据类型的提示。 | InputMode | - | text | 1.5.0 |

### InputMode 可选值

Expand Down
6 changes: 3 additions & 3 deletions docs/component/message-box.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function beforeConfirm() {
}
```

## 自定义操作按钮<el-tag text style="vertical-align: middle;margin-left:8px;" effect="plain">$LOWEST_VERSION$</el-tag>
## 自定义操作按钮<el-tag text style="vertical-align: middle;margin-left:8px;" effect="plain">1.5.0</el-tag>

可以通过按钮属性 `cancel-button-props``confirm-button-props` 自定义操作按钮的样式,具体参考 [Button Attributes](/component/button.html#attributes)

Expand Down Expand Up @@ -267,8 +267,8 @@ MessageBox.prompt(options)
| selector | 指定唯一标识 | string | - | #wd-message-box | - |
| zIndex | 弹窗层级 | number | - | 99 | - |
| lazyRender | 弹层内容懒渲染,触发展示时才渲染内容 | boolean | - | true | - |
| cancel-button-props | 取消按钮的属性,具体参考 [Button Attributes](/component/button.html#attributes) | object | - | - | $LOWEST_VERSION$ |
| confirm-button-props | 确定按钮的属性,具体参考 [Button Attributes](/component/button.html#attributes) | object | - | - | $LOWEST_VERSION$ |
| cancel-button-props | 取消按钮的属性,具体参考 [Button Attributes](/component/button.html#attributes) | object | - | - | 1.5.0 |
| confirm-button-props | 确定按钮的属性,具体参考 [Button Attributes](/component/button.html#attributes) | object | - | - | 1.5.0 |

## 外部样式类

Expand Down
2 changes: 1 addition & 1 deletion docs/component/radio.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ radio设置的props优先级比radioGroup上设置的props优先级更高
| max-width | 文字位置最大宽度 | string | - | - | - |
| inline | 同行展示 | boolean | - | false | - |
| cell | 表单模式 | boolean | - | false | - |
| icon-placement | 勾选图标对齐方式 | string | left / right/ auto | auto | $LOWEST_VERSION$ |
| icon-placement | 勾选图标对齐方式 | string | left / right/ auto | auto | 1.5.0 |

## RadioGroup Events

Expand Down
4 changes: 2 additions & 2 deletions docs/component/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
用于展示多条结构类似的数据, 可对数据进行排序等操作。

::: warning 提示
`$LOWEST_VERSION$`后取消了`height`的默认值,需要自行设置,最好设置为`number`类型,方便未来适配虚拟列表。
`1.5.0`后取消了`height`的默认值,需要自行设置,最好设置为`number`类型,方便未来适配虚拟列表。
:::

## 基础用法
Expand Down Expand Up @@ -461,7 +461,7 @@ const paginationData = computed(() => {
| showHeader | 是否显示表头 | boolean | - | true | 0.0.39 |
| ellipsis | 是否超出 2 行隐藏 | boolean | - | true | 0.0.39 |
| index | 是否显示索引列,可传入`boolean`也可传入 column 配置 | `boolean / TableColumnProps` | | false | 1.2.19 |
| fixed-header | 是否固定表头,需要结合`height`才可以实现固定表头的效果。 | boolean | - | true | $LOWEST_VERSION$ |
| fixed-header | 是否固定表头,需要结合`height`才可以实现固定表头的效果。 | boolean | - | true | 1.5.0 |

## Events

Expand Down
2 changes: 1 addition & 1 deletion docs/component/textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const value = ref<string>('')
| clearTrigger | 显示清除图标的时机,always 表示输入框不为空时展示,focus 表示输入框聚焦且不为空时展示 | `InputClearTrigger` | `focus` / `always` | `always` | 1.3.7 |
| focusWhenClear | 是否在点击清除按钮时聚焦输入框 | boolean | - | true | 1.3.7 |
| ignoreCompositionEvent | 是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件,且在文本合成期间会触发 input 事件。 | boolean | - | true | 1.3.11|
| inputmode | 提供用户在编辑元素或其内容时可能输入的数据类型的提示。 | InputMode | - | text | $LOWEST_VERSION$ |
| inputmode | 提供用户在编辑元素或其内容时可能输入的数据类型的提示。 | InputMode | - | text | 1.5.0 |

### InputMode 可选值

Expand Down
2 changes: 1 addition & 1 deletion docs/component/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ const action: string = 'https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bdd86e
| header | 设置上传的请求头部 | object | - | - | - |
| multiple | 是否支持多选文件 | boolean | - | - | - |
| disabled | 是否禁用 | boolean | - | false | - |
| reupload | 是否开启覆盖上传,开启后会关闭图片预览 | boolean | - | false | $LOWEST_VERSION$ |
| reupload | 是否开启覆盖上传,开启后会关闭图片预览 | boolean | - | false | 1.5.0 |
| limit | 最大允许上传个数 | number | - | - | - |
| show-limit-num | 限制上传个数的情况下,是否展示当前上传的个数 | boolean | - | false | - |
| max-size | 文件大小限制,单位为`byte` | number | - | - | - |
Expand Down
Loading

0 comments on commit cff4228

Please sign in to comment.