(all): 发布 1.1.6 版本

更新文档
This commit is contained in:
就眠儀式 2022-06-11 00:45:58 +08:00
parent dae5a0c53a
commit 787b5b22ff
5 changed files with 22 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layui-vue", "name": "@layui/layui-vue",
"version": "1.1.6-alpha.1", "version": "1.1.6",
"author": "就眠儀式", "author": "就眠儀式",
"license": "MIT", "license": "MIT",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",

View File

@ -78,7 +78,11 @@ const classes = computed(() => {
<div class="layui-input-wrapper"> <div class="layui-input-wrapper">
<span class="layui-input-prefix" v-if="slots.prefix || props.prefixIcon"> <span class="layui-input-prefix" v-if="slots.prefix || props.prefixIcon">
<slot name="prefix" v-if="slots.prefix"></slot> <slot name="prefix" v-if="slots.prefix"></slot>
<lay-icon v-else :type="props.prefixIcon" class="layui-input-prefix-icon"></lay-icon> <lay-icon
v-else
:type="props.prefixIcon"
class="layui-input-prefix-icon"
></lay-icon>
</span> </span>
<input <input
:type="type" :type="type"
@ -98,7 +102,11 @@ const classes = computed(() => {
/> />
<span class="layui-input-suffix" v-if="slots.suffix || props.suffixIcon"> <span class="layui-input-suffix" v-if="slots.suffix || props.suffixIcon">
<slot name="suffix" v-if="slots.suffix"></slot> <slot name="suffix" v-if="slots.suffix"></slot>
<lay-icon v-else :type="props.suffixIcon" class="layui-input-suffix-icon"></lay-icon> <lay-icon
v-else
:type="props.suffixIcon"
class="layui-input-suffix-icon"
></lay-icon>
</span> </span>
<span class="layui-input-clear" v-if="allowClear && hasContent"> <span class="layui-input-clear" v-if="allowClear && hasContent">
<lay-icon type="layui-icon-close-fill" @click="onClear"></lay-icon> <lay-icon type="layui-icon-close-fill" @click="onClear"></lay-icon>

View File

@ -204,6 +204,8 @@ export default {
| autofocus | 原生属性 autofocus | `true` `false` | | autofocus | 原生属性 autofocus | `true` `false` |
| autocomplete | 原生属性 autocomplete | `true` `false` | | autocomplete | 原生属性 autocomplete | `true` `false` |
| allow-clear | 允许清空 allow-clear | `true` `false` | | allow-clear | 允许清空 allow-clear | `true` `false` |
| prefix-icon | 前置图标 | -- |
| suffix-icon | 后置图标 | -- |
::: :::

View File

@ -14,11 +14,14 @@
<ul> <ul>
<a name="1-1-6"></a> <a name="1-1-6"></a>
<li> <li>
<h3>1.1.6 <span class="layui-badge-rim">2022-06-07</span></h3> <h3>1.1.6 <span class="layui-badge-rim">2022-06-11</span></h3>
<ul> <ul>
<li>[新增] input 组件 prefix-icon 属性, 用于设置输入框前置图标</li>
<li>[新增] input 组件 suffix-icon 属性, 用于设置输入框后置图标</li>
<li>[修复] date-picker 组件 v-model 无法解析 yy-mm-dd 年月日, 会显示现在日期的问题</li> <li>[修复] date-picker 组件 v-model 无法解析 yy-mm-dd 年月日, 会显示现在日期的问题</li>
<li>[优化] dropdown 组件 trigger 属性为 context-menu 值, 不再根据鼠标位置展示内容</li> <li>[优化] dropdown 组件 trigger 属性为 context-menu 值, 不再根据鼠标位置展示内容</li>
<li>[优化] input-number 组件 v-model 内容默认对齐方式为 center, 更符合普遍的审美</li> <li>[优化] input-number 组件 v-model 内容默认对齐方式为 center, 更符合普遍的审美</li>
<li>[升级] vue, vueuse, vue-i18n, darkreader, rollup 等核心依赖 </li>
</ul> </ul>
</li> </li>
</ul> </ul>

10
pnpm-lock.yaml generated
View File

@ -29,7 +29,7 @@ importers:
eslint-plugin-vue: ^8.2.0 eslint-plugin-vue: ^8.2.0
husky: ^8.0.1 husky: ^8.0.1
less: ^4.1.2 less: ^4.1.2
prettier: ^2.5.1 prettier: ^2.6.2
rimraf: ^3.0.2 rimraf: ^3.0.2
rollup: ^2.75.5 rollup: ^2.75.5
typescript: ^4.7.3 typescript: ^4.7.3
@ -113,13 +113,13 @@ importers:
vite: 2.9.8 vite: 2.9.8
vite-plugin-md: ^0.13.1 vite-plugin-md: ^0.13.1
vue-i18n: ^9.1.10 vue-i18n: ^9.1.10
vue-router: ^4.0.12 vue-router: ^4.0.15
dependencies: dependencies:
'@vueuse/core': 8.3.0_vue@3.2.37 '@vueuse/core': 8.3.0_vue@3.2.37
pinia: 2.0.14_typescript@4.6.3+vue@3.2.37 pinia: 2.0.14_typescript@4.6.3+vue@3.2.37
pinia-plugin-persist: 1.0.0_pinia@2.0.14+vue@3.2.37 pinia-plugin-persist: 1.0.0_pinia@2.0.14+vue@3.2.37
vue-i18n: 9.1.10_vue@3.2.37 vue-i18n: 9.1.10_vue@3.2.37
vue-router: 4.0.14_vue@3.2.37 vue-router: 4.0.16_vue@3.2.37
devDependencies: devDependencies:
'@types/markdown-it': 12.2.3 '@types/markdown-it': 12.2.3
'@types/markdown-it-container': 2.0.5 '@types/markdown-it-container': 2.0.5
@ -5014,8 +5014,8 @@ packages:
vue: 3.2.37 vue: 3.2.37
dev: false dev: false
/vue-router/4.0.14_vue@3.2.37: /vue-router/4.0.16_vue@3.2.37:
resolution: {integrity: sha512-wAO6zF9zxA3u+7AkMPqw9LjoUCjSxfFvINQj3E/DceTt6uEz1XZLraDhdg2EYmvVwTBSGlLYsUw8bDmx0754Mw==} resolution: {integrity: sha512-JcO7cb8QJLBWE+DfxGUL3xUDOae/8nhM1KVdnudadTAORbuxIC/xAydC5Zr/VLHUDQi1ppuTF5/rjBGzgzrJNA==}
peerDependencies: peerDependencies:
vue: ^3.2.0 vue: ^3.2.0
dependencies: dependencies: