chore: 日志

This commit is contained in:
就眠儀式 2022-04-20 09:48:35 +08:00
parent 5bb97e9232
commit 5aeb4efd40
5 changed files with 7 additions and 7 deletions

View File

@ -256,7 +256,6 @@ export default {
align: "left" align: "left"
},{ },{
title:"密码", title:"密码",
width: "180px",
customSlot:"password", customSlot:"password",
key:"password", key:"password",
align: "center" align: "center"

View File

@ -20,6 +20,7 @@
<li>[修复] checkbox 组件夜间模式样式不兼容。</li> <li>[修复] checkbox 组件夜间模式样式不兼容。</li>
<li>[修复] table 组件 columns 配置 width 属性不生效。</li> <li>[修复] table 组件 columns 配置 width 属性不生效。</li>
<li>[优化] table 组件 columns 配置 width 未设置时自动分配宽度。</li> <li>[优化] table 组件 columns 配置 width 未设置时自动分配宽度。</li>
<li>[优化] layer 方法 option callback 参数为可选。</li>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layer-vue", "name": "@layui/layer-vue",
"version": "1.3.11", "version": "1.3.12",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",
"homepage": "http://www.layui-vue.com", "homepage": "http://www.layui-vue.com",
"module": "lib/layer-vue.es.js", "module": "lib/layer-vue.es.js",

View File

@ -77,7 +77,7 @@ const layer = {
return layer.create(option, defaultOption, callback); return layer.create(option, defaultOption, callback);
}, },
// 消息 // 消息
msg: (message: string, option: any, callback: Function) => { msg: (message: string, option?: any, callback?: Function) => {
let defaultOption = { let defaultOption = {
type: 0, type: 0,
title: false, title: false,
@ -92,7 +92,7 @@ const layer = {
return layer.create(option, defaultOption, callback); return layer.create(option, defaultOption, callback);
}, },
// 加载 // 加载
load: (load: number, option: any, callback: Function) => { load: (load: number, option?: any, callback?: Function) => {
let defaultOption = { let defaultOption = {
type: 3, type: 3,
load: load, load: load,
@ -103,7 +103,7 @@ const layer = {
return layer.create(option, defaultOption, callback); return layer.create(option, defaultOption, callback);
}, },
// 确认 // 确认
confirm: (msg: string, option: any, callback: Function) => { confirm: (msg: string, option?: any, callback?: Function) => {
let defaultOption = { let defaultOption = {
type: 0, type: 0,
content: msg, content: msg,
@ -112,7 +112,7 @@ const layer = {
return layer.create(option, defaultOption, callback); return layer.create(option, defaultOption, callback);
}, },
// 创建弹出层 // 创建弹出层
create: (option: any, defaultOption: any, callback: Function) => { create: (option: any, defaultOption: any, callback?: Function) => {
// 销毁定时 // 销毁定时
let timer: NodeJS.Timeout; let timer: NodeJS.Timeout;
// 聚合配置 Opt // 聚合配置 Opt

View File

@ -45,7 +45,7 @@ importers:
'@babel/preset-env': ^7.15.8 '@babel/preset-env': ^7.15.8
'@babel/preset-typescript': ^7.15.0 '@babel/preset-typescript': ^7.15.0
'@layui/icons-vue': ^1.0.7 '@layui/icons-vue': ^1.0.7
'@layui/layer-vue': ^1.3.11 '@layui/layer-vue': ^1.3.12
'@rollup/plugin-babel': ^5.3.0 '@rollup/plugin-babel': ^5.3.0
'@types/node': ^16.11.9 '@types/node': ^16.11.9
'@vitejs/plugin-vue': ^2.3.1 '@vitejs/plugin-vue': ^2.3.1