hw-cus-ui 1.1.18 → 1.1.19
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.
|
@@ -96,21 +96,15 @@ import { ref, onMounted, watch, nextTick } from 'vue';
|
|
|
96
96
|
const props = defineProps({
|
|
97
97
|
range: {
|
|
98
98
|
type: Array,
|
|
99
|
-
default:
|
|
100
|
-
return [];
|
|
101
|
-
}
|
|
99
|
+
default: []
|
|
102
100
|
},
|
|
103
101
|
rangeNext: {
|
|
104
102
|
type: Array,
|
|
105
|
-
default:
|
|
106
|
-
return [];
|
|
107
|
-
}
|
|
103
|
+
default: []
|
|
108
104
|
},
|
|
109
105
|
request: {
|
|
110
106
|
type: Function,
|
|
111
|
-
default:
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
107
|
+
default: null
|
|
114
108
|
},
|
|
115
109
|
idKey: {
|
|
116
110
|
//字段key值
|
|
@@ -331,6 +325,7 @@ onMounted(() => {
|
|
|
331
325
|
});
|
|
332
326
|
|
|
333
327
|
function queryList(pageNum, pageSize) {
|
|
328
|
+
if (!props.request) return;
|
|
334
329
|
props
|
|
335
330
|
.request({
|
|
336
331
|
pageSize,
|
|
@@ -431,6 +426,8 @@ function _confirm() {
|
|
|
431
426
|
* @param {Array} parents - 父节点对象数组
|
|
432
427
|
*/
|
|
433
428
|
function _renderTreeList(list = [], rank = 0, parentId = [], parents = []) {
|
|
429
|
+
val = [];
|
|
430
|
+
temporarySelectedValue = [];
|
|
434
431
|
if (Array.isArray(props.modelValue)) {
|
|
435
432
|
val = props.modelValue || [];
|
|
436
433
|
} else {
|