diff --git a/package/component/package.json b/package/component/package.json index dee4f1cb..538b4f5b 100644 --- a/package/component/package.json +++ b/package/component/package.json @@ -1,6 +1,6 @@ { "name": "@layui/layui-vue", - "version": "1.4.11", + "version": "1.4.12", "author": "就眠儀式", "license": "MIT", "description": "a component library for Vue 3 base on layui-vue", diff --git a/package/document-component/src/document/zh-CN/components/form.md b/package/document-component/src/document/zh-CN/components/form.md index 45adab05..a84de027 100644 --- a/package/document-component/src/document/zh-CN/components/form.md +++ b/package/document-component/src/document/zh-CN/components/form.md @@ -536,9 +536,10 @@ export default { | label | 子项前边描述值,**尽量填写**,中文校验错误需要用到 | `string` | - | - | | label-position| 子项前边描述值的位置 | `string` | `left` `top` `right` |`right` | | label-width | 子项前边描述值的宽度 | `string` `number` | - | `95` | -| required | 是否必填 | `boolean` | `true` `false` | `false` | -| rules | 表单校验规则;
可查看[async-validator](https://github.com/yiminghe/async-validator) | `object` | - | - | -| error-message | 表单校验失败固定提示语 | `string` |`block` `inline`| `block` | +| required | 表单必填 | `boolean` | `true` `false` | `false` | +| required-error-message | 表单必填校验失败固定提示语 | `string` | -- | -- | +| rules | 表单校验规则;
可查看[async-validator](https://github.com/yiminghe/async-validator) | `object` | - | - | +| error-message | 表单校验失败固定提示语 | `string` | -- | -- | | mode | 表单项显示的模式,`块元素` / `行元素` | `string` |`block` `inline`| `block` | ::: @@ -572,8 +573,11 @@ export default { ::: title 关于 async-validator 的使用 ::: -查看: https://github.com/yiminghe/async-validator -中文翻译: https://www.cnblogs.com/wozho/p/10955525.html +::: describe 查看: https://github.com/yiminghe/async-validator。 +::: + +::: describe 翻译: ttps://www.cnblogs.com/wozho/p/10955525.html。 +::: ::: title async-validator 基本校验类型 ::: diff --git a/package/document-component/src/document/zh-CN/guide/dark.md b/package/document-component/src/document/zh-CN/guide/dark.md index 19bd4ae5..a5d8f9ea 100644 --- a/package/document-component/src/document/zh-CN/guide/dark.md +++ b/package/document-component/src/document/zh-CN/guide/dark.md @@ -4,7 +4,7 @@ ::: describe 默认情况下, 网站主题为日间模式。 ::: -::: describe 若启用夜间模式, 使用 "全局配置" 组件配合 theme 属性, 设置为 `dark` 值。 +::: describe 若启用夜间模式, 使用 "全局配置" 组件配合 theme 属性, 设置为 dark 值。 ::: ```vue @@ -19,7 +19,7 @@ const theme = ref('dark') ``` -::: title 偏好设置 +::: title 选项配置 ::: ::: describe 若内置的夜间模式不满足要求时, 可通过 dark-partial 属性进行偏好设置。 diff --git a/package/document-component/src/document/zh-CN/guide/getStarted.md b/package/document-component/src/document/zh-CN/guide/getStarted.md index 5e87b6cb..7c8691bf 100644 --- a/package/document-component/src/document/zh-CN/guide/getStarted.md +++ b/package/document-component/src/document/zh-CN/guide/getStarted.md @@ -129,41 +129,12 @@ app.mount('#app') ::: ```html - - - - Document - - - - - - - - - - - -
- Hello -
- - - + + + + + + + + ``` \ No newline at end of file diff --git a/package/document-component/src/document/zh-CN/guide/theme.md b/package/document-component/src/document/zh-CN/guide/theme.md index 49921d6c..35a4252f 100644 --- a/package/document-component/src/document/zh-CN/guide/theme.md +++ b/package/document-component/src/document/zh-CN/guide/theme.md @@ -1,4 +1,4 @@ -::: title 定制主题 +::: title 主题配置 ::: ::: describe 全局化配置设置内部组件的主题、语言和组件卸载于其他位置的 DOM 的类名。 diff --git a/package/document-component/src/view/index.vue b/package/document-component/src/view/index.vue index 86f0f314..7339936b 100644 --- a/package/document-component/src/view/index.vue +++ b/package/document-component/src/view/index.vue @@ -43,7 +43,7 @@ rel="nofollow" class="site-star" > - Star 1508 + Star 1514