让企业管理更智慧、更快捷
Skip to content
GitLab
探索
登录
注册
源代码提交(5)
docs: update changelog
· a15590f3
由
丁阳
创作于
12月 26, 2022
a15590f3
refactor: 更改弹窗不可esc关闭
· 1f424eed
由
丁阳
创作于
2月 24, 2023
1f424eed
refactor: 更改自定义列逻辑 可存储本地
· 52edd887
由
丁阳
创作于
2月 25, 2023
52edd887
docs: 更新版本
· 2ab3c0c7
由
丁阳
创作于
2月 25, 2023
2ab3c0c7
1.0.17
· ef80b52b
由
丁阳
创作于
2月 25, 2023
ef80b52b
隐藏空白变更内容
行内
左右并排
CHANGELOG.md
浏览文件 @
ef80b52b
## [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)
...
...
package.json
浏览文件 @
ef80b52b
{
"name"
:
"@package/lwc-ui-components"
,
"version"
:
"1.0.1
6
"
,
"version"
:
"1.0.1
7
"
,
"private"
:
false
,
"description"
:
"立威云UI组件库"
,
"author"
:
""
,
...
...
src/index.js
浏览文件 @
ef80b52b
...
...
@@ -209,7 +209,7 @@ if (typeof window !== 'undefined' && window.Vue) {
}
export
default
{
version
:
'
1.0.1
5
'
,
version
:
'
1.0.1
6
'
,
install
,
LwcBasicButton
,
LwcBasicButtonIcon
,
...
...
src/plugins/vxe-table/variable.scss
浏览文件 @
ef80b52b
...
...
@@ -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
src/stories/changelog.stories.mdx
浏览文件 @
ef80b52b
...
...
@@ -8,6 +8,15 @@
`新特性`
`非兼容性更新`
---
### **v1.0.16 20221226**
#### 新增
- 修复 lwc-select-down-table 组件 表格数据虚拟滚动时出现白屏错误
- 修复 lwc-dialog-form 组件 表格第一次loading未正常显示错误
- 修复 lwc-dialog-basic 组件 表格第一次loading未正常显示错误
---
### **v1.0.15 20221214**
...
...
src/stories/dialog/basic/src/index.js
浏览文件 @
ef80b52b
...
...
@@ -143,7 +143,7 @@ export default {
width
:
width
,
height
:
height
,
showFooter
:
showFooter
,
"
esc-closable
"
:
true
// 允许ESC关闭
//
"esc-closable": true // 允许ESC关闭
},
scopedSlots
:
{
default
:
()
=>
{
...
...
src/stories/dialog/form/src/index.js
浏览文件 @
ef80b52b
...
...
@@ -129,7 +129,7 @@ export default {
width
:
width
,
height
:
height
,
showFooter
:
showFooter
,
"
esc-closable
"
:
true
// 允许ESC关闭
//
"esc-closable": true // 允许ESC关闭
},
scopedSlots
:
{
default
:
()
=>
{
...
...
src/stories/table/basic/index.stories.js
浏览文件 @
ef80b52b
...
...
@@ -158,7 +158,7 @@ const getData = (data) => {
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
(
data
);
},
2000
0
)
},
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
,
...
...
src/stories/table/basic/src/index.js
浏览文件 @
ef80b52b
...
...
@@ -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
)
}
}
...
...