byt-ui 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/lib/byt-ui.common.js +21 -14
- package/lib/byt-ui.css +1 -1
- package/lib/byt-ui.umd.js +21 -14
- package/lib/byt-ui.umd.min.js +3 -3
- package/package.json +1 -1
- package/packages/components/basic-view/index.vue +8 -1
- package/packages/components/form-view/index.vue +3 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-07-12 17:47:20
|
|
5
|
-
* @LastEditTime: 2023-09-
|
|
5
|
+
* @LastEditTime: 2023-09-14 12:24:33
|
|
6
6
|
* @LastEditors: hcm
|
|
7
7
|
-->
|
|
8
8
|
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
:column-config="{resizable: true}"
|
|
44
44
|
:row-config="{isCurrent: true, isHover: true}"
|
|
45
45
|
:show-overflow="showOverflow"
|
|
46
|
+
v-bind="vxeTableProp"
|
|
46
47
|
>
|
|
47
48
|
<template v-for="(column,index) in columns">
|
|
48
49
|
<vxe-column
|
|
@@ -156,6 +157,11 @@ export default {
|
|
|
156
157
|
type: Boolean,
|
|
157
158
|
default: true
|
|
158
159
|
},
|
|
160
|
+
// add by hcm 更灵活的修改vxe table组件属性
|
|
161
|
+
vxeTableProp: {
|
|
162
|
+
type: Object,
|
|
163
|
+
default: null
|
|
164
|
+
},
|
|
159
165
|
/** 表格数据*/
|
|
160
166
|
tableData: {
|
|
161
167
|
type: Array,
|
|
@@ -266,6 +272,7 @@ export default {
|
|
|
266
272
|
onReset() {
|
|
267
273
|
this.pageOpt.page = 1;
|
|
268
274
|
this.searchForm = {};
|
|
275
|
+
this.$emit('reset') // add by hcm filters插槽时用到
|
|
269
276
|
this.fetchData();
|
|
270
277
|
},
|
|
271
278
|
clear(){
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-07-13 08:46:34
|
|
5
|
-
* @LastEditTime: 2023-09-
|
|
5
|
+
* @LastEditTime: 2023-09-14 11:59:28
|
|
6
6
|
* @LastEditors: hcm
|
|
7
7
|
-->
|
|
8
8
|
<!-- -->
|
|
@@ -74,10 +74,11 @@
|
|
|
74
74
|
>
|
|
75
75
|
</el-date-picker>
|
|
76
76
|
</template>
|
|
77
|
+
</el-form-item>
|
|
78
|
+
<el-form-item>
|
|
77
79
|
<!-- add by hcm 加插槽 增加灵活性 -->
|
|
78
80
|
<slot name="filters"></slot>
|
|
79
81
|
</el-form-item>
|
|
80
|
-
|
|
81
82
|
<el-form-item>
|
|
82
83
|
<el-button icon="el-icon-search" type="primary" @click="onSearch">查询</el-button>
|
|
83
84
|
<el-button icon="el-icon-refresh-right" @click="onReset">重置</el-button>
|