让企业管理更智慧、更快捷

Skip to content
源代码提交(5)
## [1.0.16](http://git.leadwaycloud.com/package/lwc-ui-components/compare/v1.0.15...v1.0.16) (2022-12-26)
### Bug Fixes
* 修复下拉表格白屏问题 修复弹窗表格第一次没有loading错误 ([12bdff9](http://git.leadwaycloud.com/package/lwc-ui-components/commits/12bdff97d590fb0a9cc9253efc2101ba3642c792))
## [1.0.15](http://git.leadwaycloud.com/package/lwc-ui-components/compare/v1.0.14...v1.0.15) (2022-12-14)
......
{
"name": "@package/lwc-ui-components",
"version": "1.0.16",
"version": "1.0.17",
"private": false,
"description": "立威云UI组件库",
"author": "",
......
......@@ -209,7 +209,7 @@ if (typeof window !== 'undefined' && window.Vue) {
}
export default {
version: '1.0.15',
version: '1.0.16',
install,
LwcBasicButton,
LwcBasicButtonIcon,
......
......@@ -52,3 +52,24 @@ $vxe-checkbox-border-width: 1px;
// .vxe-form .vxe-row {
// margin-right: -30px;
// }
.lwc-toolbar .vxe-tools--operate .vxe-button.type--button {
border: none !important;
padding: 0 !important;
min-width: 20px !important;
}
.lwc-toolbar-margin .vxe-tools--operate {
margin-left: 10px;
}
.lwc-toolbar.vxe-toolbar .vxe-custom--wrapper.is--active > .vxe-button {
background-color: transparent;
box-shadow: none;
}
.lwc-toolbar.vxe-toolbar .vxe-button.type--button:not(.is--disabled):active {
background-color: transparent;
}
.lwc-toolbar.vxe-toolbar .vxe-button.type--button:not(.is--disabled):focus {
box-shadow: none;
}
\ No newline at end of file
......@@ -8,6 +8,15 @@
`新特性`
`非兼容性更新`
---
### **v1.0.16 20221226**
#### 新增
- 修复 lwc-select-down-table 组件 表格数据虚拟滚动时出现白屏错误
- 修复 lwc-dialog-form 组件 表格第一次loading未正常显示错误
- 修复 lwc-dialog-basic 组件 表格第一次loading未正常显示错误
---
### **v1.0.15 20221214**
......
......@@ -143,7 +143,7 @@ export default {
width: width,
height: height,
showFooter: showFooter,
"esc-closable": true // 允许ESC关闭
// "esc-closable": true // 允许ESC关闭
},
scopedSlots: {
default: () => {
......
......@@ -129,7 +129,7 @@ export default {
width: width,
height: height,
showFooter: showFooter,
"esc-closable": true // 允许ESC关闭
// "esc-closable": true // 允许ESC关闭
},
scopedSlots: {
default: () => {
......
......@@ -158,7 +158,7 @@ const getData = (data) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve(data);
}, 20000)
}, 2000)
})
}
const getData1 = (page) => {
......@@ -171,6 +171,13 @@ const getData1 = (page) => {
}
export const DefaultList = Template.bind({});
let filedProperty = {
id: false,
nickname: true,
name: true,
code: true
}
DefaultList.args = {
className: { grid: [], table: ['px-4'], form: ['px-4'], toolbar: ['px-4'] },
gridConfig: {
......@@ -193,6 +200,7 @@ DefaultList.args = {
printConfig: {},
importConfig: {},
exportConfig: {},
id: "purchase_order",
pagerConfig: {
currentPage: 1,
pageSize: 5,
......
......@@ -58,18 +58,22 @@ const renderCard = (h, cardConfig, contentConfig, _vm) => {
]
}
const renderToolbar = (h, toolbarConfig, contentConfig, _vm) => {
const { toolbar } = toolbarConfig
const { toolbar, margin, custom } = toolbarConfig
const { border } = contentConfig
return h("vxe-toolbar", {
ref: _vm.gridToolbar,
class: [
border === 'inner' ? "border-b" : '',
..._vm.widgetClass.toolbar
..._vm.widgetClass.toolbar,
'lwc-toolbar',
margin ? 'lwc-toolbar-margin' : ''
],
style: border === 'inner' ? {
"border-bottom": "1px solid #e8eaec"
} : {},
props: {
...toolbarConfig
...toolbarConfig,
custom: toolbar.custom || custom || false
},
scopedSlots: toolbar ? {
tools: () => {
......@@ -156,88 +160,88 @@ const renderToolbar = (h, toolbarConfig, contentConfig, _vm) => {
}
}
}) : null,
toolbar.custom && _vm.currentGridType === 'list'? h("el-popover", {
props: {
placement: "bottom",
trigger: "click"
},
style: {
"margin-left": "10px"
},
on: {
show: () => {
_vm.onShow()
}
}
}, [
h(LwcBasicButtonIcon,{
props: {
content: "自定义列",
icon: "setting-config"
},
slot: "reference"
}),
h("el-row", {
class: "flex flex-col"
}, [
h("el-checkbox", {
props: {
value: _vm.isAllColumns,
key: "all"
},
on: {
change: (val) => {
_vm.tableColumns.map(col => {
_vm.$set(col, "visible", val)
})
// _vm.allTableColumns(_vm.isAllColumns)
}
}
}, "全部"),
h("el-divider", {
class: "my-4"
}),
_vm.tableColumns.map(col => {
return h("el-checkbox", {
props: {
value: col.visible,
disabled: _vm.isIngoreColumn(col)
},
on: {
change: (val) => {
_vm.$set(col, "visible", val)
}
}
}, col.title)
}),
h("el-divider", {
class: "my-4"
}),
h("el-row", [
h("el-button", {
props: {
type: "primary",
size: "mini"
},
on: {
click: () => {
_vm.onCustomComfirm()
}
}
}, "确认"),
h("el-button", {
props: {
size: "mini"
},
on: {
click: () => {
_vm.resetTableColumns()
}
}
}, "重置")
])
])
]) : null
// toolbar.custom && _vm.currentGridType === 'list'? h("el-popover", {
// props: {
// placement: "bottom",
// trigger: "click"
// },
// style: {
// "margin-left": "10px"
// },
// on: {
// show: () => {
// _vm.onShow()
// }
// }
// }, [
// h(LwcBasicButtonIcon,{
// props: {
// content: "自定义列",
// icon: "setting-config"
// },
// slot: "reference"
// }),
// h("el-row", {
// class: "flex flex-col"
// }, [
// h("el-checkbox", {
// props: {
// value: _vm.isAllColumns,
// key: "all"
// },
// on: {
// change: (val) => {
// _vm.tableColumns.map(col => {
// _vm.$set(col, "visible", val)
// })
// // _vm.allTableColumns(_vm.isAllColumns)
// }
// }
// }, "全部"),
// h("el-divider", {
// class: "my-4"
// }),
// _vm.tableColumns.map(col => {
// return h("el-checkbox", {
// props: {
// value: col.visible,
// disabled: _vm.isIngoreColumn(col)
// },
// on: {
// change: (val) => {
// _vm.$set(col, "visible", val)
// }
// }
// }, col.title)
// }),
// h("el-divider", {
// class: "my-4"
// }),
// h("el-row", [
// h("el-button", {
// props: {
// type: "primary",
// size: "mini"
// },
// on: {
// click: () => {
// _vm.onCustomComfirm()
// }
// }
// }, "确认"),
// h("el-button", {
// props: {
// size: "mini"
// },
// on: {
// click: () => {
// _vm.resetTableColumns()
// }
// }
// }, "重置")
// ])
// ])
// ]) : null
]
}
} : null
......@@ -328,6 +332,11 @@ const renderTable = (h, contentConfig, formConfig, _vm, height) => {
get props() {
return {
// loading: false,
customConfig: {
storage: {
visible: true
}
},
...tableConfig,
formConfig: { data: _vm.getFormData(_vm.btnType) }
}
......