@opentiny/vue-renderless 3.22.0 → 3.24.0
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/autocomplete/index.js +3 -0
- package/base-select/index.js +1 -2
- package/calendar-view/index.js +25 -3
- package/calendar-view/vue.js +4 -1
- package/cascader-node/vue.js +11 -1
- package/date-panel/index.js +7 -1
- package/date-range/index.js +3 -0
- package/dialog-select/index.js +19 -6
- package/dialog-select/vue.js +2 -2
- package/file-upload/index.js +30 -9
- package/grid/plugins/export.js +6 -0
- package/image-viewer/vue.js +1 -1
- package/month-range/index.js +3 -0
- package/number-animation/index.js +53 -0
- package/number-animation/vue.js +27 -0
- package/package.json +3 -3
- package/picker/index.js +18 -13
- package/picker/vue.js +5 -5
- package/qr-code/vue.js +1 -1
- package/select/index.js +2 -1
- package/tabs-mf/index.js +4 -0
- package/tabs-mf/vue-bar.js +4 -3
- package/transfer/index.js +41 -0
- package/transfer/vue.js +64 -24
- package/transfer-panel/index.js +5 -0
- package/tree-select/index.js +67 -21
- package/tree-select/vue.js +27 -3
- package/types/action-menu.type.d.ts +1 -0
- package/types/action-sheet.type.d.ts +1 -0
- package/types/alert.type.d.ts +1 -0
- package/types/amount.type.d.ts +1 -0
- package/types/area.type.d.ts +1 -0
- package/types/async-flowchart.type.d.ts +1 -0
- package/types/autocomplete.type.d.ts +1 -0
- package/types/badge.type.d.ts +1 -0
- package/types/breadcrumb-item.type.d.ts +1 -0
- package/types/breadcrumb.type.d.ts +1 -0
- package/types/button-group.type.d.ts +1 -0
- package/types/button.type.d.ts +2 -1
- package/types/cascader.type.d.ts +1 -0
- package/types/checkbox.type.d.ts +1 -0
- package/types/collapse-item.type.d.ts +1 -0
- package/types/collapse.type.d.ts +1 -0
- package/types/dialog-box.type.d.ts +1 -0
- package/types/divider.type.d.ts +1 -0
- package/types/drawer.type.d.ts +1 -0
- package/types/{dropdown-item.type-c9badbc1.d.ts → dropdown-item.type-b3ced3ce.d.ts} +2 -0
- package/types/dropdown-item.type.d.ts +1 -1
- package/types/dropdown-menu.type.d.ts +1 -1
- package/types/dropdown.type.d.ts +1 -0
- package/types/fall-menu.type.d.ts +1 -0
- package/types/file-upload.type.d.ts +1 -1
- package/types/float-button.type.d.ts +1 -0
- package/types/floatbar.type.d.ts +1 -0
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-4e0ec0a1.d.ts → form.type-dd403065.d.ts} +2 -0
- package/types/form.type.d.ts +1 -1
- package/types/image.type.d.ts +1 -0
- package/types/{index-a975a7a2.d.ts → index-cada95ca.d.ts} +2 -0
- package/types/input.type.d.ts +1 -0
- package/types/ip-address.type.d.ts +1 -0
- package/types/link.type.d.ts +1 -0
- package/types/load-list.type.d.ts +1 -0
- package/types/loading.type.d.ts +1 -0
- package/types/milestone.type.d.ts +1 -0
- package/types/mind-map.type.d.ts +1 -0
- package/types/modal.type.d.ts +1 -0
- package/types/nav-menu.type.d.ts +1 -0
- package/types/numeric.type.d.ts +1 -0
- package/types/pager.type.d.ts +1 -0
- package/types/popconfirm.type.d.ts +1 -0
- package/types/popeditor.type.d.ts +5 -0
- package/types/popover.type.d.ts +1 -0
- package/types/progress.type.d.ts +1 -0
- package/types/radio-button.type.d.ts +1 -0
- package/types/radio-group.type.d.ts +1 -0
- package/types/radio.type.d.ts +1 -0
- package/types/rate.type.d.ts +1 -0
- package/types/search.type.d.ts +1 -0
- package/types/skeleton-item.type.d.ts +1 -0
- package/types/skeleton.type.d.ts +1 -0
- package/types/slider.type.d.ts +1 -0
- package/types/statistic.type.d.ts +1 -0
- package/types/steps.type.d.ts +5 -0
- package/types/switch.type.d.ts +1 -0
- package/types/tab-bar.type.d.ts +1 -1
- package/types/tab-item.type.d.ts +1 -0
- package/types/tab-nav.type.d.ts +1 -1
- package/types/tabs.type.d.ts +1 -0
- package/types/tag-group.type.d.ts +1 -0
- package/types/tag.type.d.ts +1 -0
- package/types/{time-line.type-9fb16096.d.ts → time-line.type-ad280ca5.d.ts} +2 -0
- package/types/time-line.type.d.ts +1 -1
- package/types/timeline-item.type.d.ts +1 -1
- package/types/tooltip.type.d.ts +1 -0
- package/types/transfer.type.d.ts +4 -0
- package/types/tree-menu.type.d.ts +1 -0
- package/types/upload-dragger.type.d.ts +2 -1
- package/types/{upload-list.type-eaf82b7a.d.ts → upload-list.type-36a8374a.d.ts} +4 -1
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/user-contact.type.d.ts +1 -0
- package/types/user-head.type.d.ts +3 -2
- package/types/wizard.type.d.ts +1 -0
- package/year-table/index.js +4 -1
package/transfer/index.js
CHANGED
|
@@ -202,6 +202,44 @@ const sortableEvent = ({
|
|
|
202
202
|
};
|
|
203
203
|
const getLeftCheckedData = ({ props, state }) => () => state.sourceData.filter((item) => !item[props.props.disabled]);
|
|
204
204
|
const getRightCheckedData = ({ props, state }) => () => state.targetData.filter((item) => !item[props.props.disabled]);
|
|
205
|
+
const recurseTreeDataToDisabled = (treeData, childrenProp, idProp, currentValue = []) => {
|
|
206
|
+
treeData.forEach((item) => {
|
|
207
|
+
if (item[childrenProp]) {
|
|
208
|
+
recurseTreeDataToDisabled(item[childrenProp], childrenProp, idProp, currentValue);
|
|
209
|
+
}
|
|
210
|
+
if (currentValue.includes(item[idProp])) {
|
|
211
|
+
item.disabled = true;
|
|
212
|
+
} else if (item.__disabled) {
|
|
213
|
+
item.disabled = true;
|
|
214
|
+
} else {
|
|
215
|
+
item.disabled = false;
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
const recurseTreeDataToFlagInitDisabled = (treeData, childrenProp, idProp, modelValue) => {
|
|
220
|
+
if (treeData.__inited)
|
|
221
|
+
return;
|
|
222
|
+
treeData.__inited = true;
|
|
223
|
+
treeData.forEach((item) => {
|
|
224
|
+
if (item[childrenProp]) {
|
|
225
|
+
recurseTreeDataToFlagInitDisabled(item[childrenProp], childrenProp, idProp, modelValue);
|
|
226
|
+
}
|
|
227
|
+
if (item.disabled) {
|
|
228
|
+
item.__disabled = true;
|
|
229
|
+
}
|
|
230
|
+
if (modelValue.includes(item[idProp])) {
|
|
231
|
+
item.disabled = true;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
const setCheckedOnMounted = ({ props, vm, Tree }) => () => {
|
|
236
|
+
if (props.render && props.render.plugin.name === Tree) {
|
|
237
|
+
setTimeout(() => {
|
|
238
|
+
var _a, _b, _c;
|
|
239
|
+
(_c = (_b = (_a = vm.$refs.leftPanel) == null ? void 0 : _a.$refs) == null ? void 0 : _b.plugin) == null ? void 0 : _c.setCheckedKeys(props.modelValue);
|
|
240
|
+
}, 50);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
205
243
|
export {
|
|
206
244
|
addToLeft,
|
|
207
245
|
addToRight,
|
|
@@ -215,5 +253,8 @@ export {
|
|
|
215
253
|
logicFun,
|
|
216
254
|
onSourceCheckedChange,
|
|
217
255
|
onTargetCheckedChange,
|
|
256
|
+
recurseTreeDataToDisabled,
|
|
257
|
+
recurseTreeDataToFlagInitDisabled,
|
|
258
|
+
setCheckedOnMounted,
|
|
218
259
|
sortableEvent
|
|
219
260
|
};
|
package/transfer/vue.js
CHANGED
|
@@ -11,34 +11,48 @@ import {
|
|
|
11
11
|
addToLeft,
|
|
12
12
|
addToRight,
|
|
13
13
|
clearQuery,
|
|
14
|
-
sortableEvent
|
|
14
|
+
sortableEvent,
|
|
15
|
+
recurseTreeDataToFlagInitDisabled,
|
|
16
|
+
recurseTreeDataToDisabled,
|
|
17
|
+
setCheckedOnMounted
|
|
15
18
|
} from "./index";
|
|
16
19
|
const api = ["state", "onSourceCheckedChange", "onTargetCheckedChange", "addToLeft", "addToRight", "clearQuery"];
|
|
17
|
-
const initState = ({ reactive, computed, api: api2, props, h, slots }) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
})
|
|
37
|
-
|
|
20
|
+
const initState = ({ reactive, computed, api: api2, props, h, slots, Tree }) => {
|
|
21
|
+
const state = reactive({
|
|
22
|
+
leftChecked: [],
|
|
23
|
+
rightChecked: [],
|
|
24
|
+
rightData: computed(() => api2.getRightCheckedData()),
|
|
25
|
+
leftData: computed(() => api2.getLeftCheckedData()),
|
|
26
|
+
dataObj: computed(() => api2.getObj()),
|
|
27
|
+
sourceData: computed(() => api2.getSourceData()),
|
|
28
|
+
targetData: computed(() => api2.getTargetData()),
|
|
29
|
+
hasButtonTexts: computed(() => props.buttonTexts.length === 2),
|
|
30
|
+
isToLeft: false,
|
|
31
|
+
optionRender: computed(() => (option) => {
|
|
32
|
+
if (props.renderContent) {
|
|
33
|
+
return props.renderContent(h, option);
|
|
34
|
+
}
|
|
35
|
+
if (slots.default) {
|
|
36
|
+
return slots.default({ option });
|
|
37
|
+
}
|
|
38
|
+
return h("span", option[props.props.label] || option[props.props.key]);
|
|
39
|
+
}),
|
|
40
|
+
isToLeftBtnDisabled: computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
if (((_b = (_a = props.render) == null ? void 0 : _a.plugin) == null ? void 0 : _b.name) === Tree) {
|
|
43
|
+
return props.toLeftDisable && state.leftChecked.length <= props.modelValue.length;
|
|
44
|
+
}
|
|
45
|
+
return props.toLeftDisable && state.leftChecked.length === 0;
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
return state;
|
|
49
|
+
};
|
|
50
|
+
const renderless = (props, { computed, onMounted, reactive, h, watch }, { $prefix, emit, refs, parent, slots, vm }) => {
|
|
51
|
+
var _a, _b;
|
|
38
52
|
const api2 = {};
|
|
39
53
|
const Tree = $prefix + "Tree";
|
|
40
54
|
const Table = $prefix + "Table";
|
|
41
|
-
const state = initState({ reactive, computed, api: api2, props, h, slots });
|
|
55
|
+
const state = initState({ reactive, computed, api: api2, props, h, slots, Tree });
|
|
42
56
|
const { DROPPANEL, TRANSFERPANEL } = parent.$constants;
|
|
43
57
|
Object.assign(api2, {
|
|
44
58
|
state,
|
|
@@ -53,9 +67,35 @@ const renderless = (props, { computed, onMounted, reactive, h }, { $prefix, emit
|
|
|
53
67
|
onSourceCheckedChange: onSourceCheckedChange({ emit, state }),
|
|
54
68
|
logicFun: logicFun({ props, emit, state, vm }),
|
|
55
69
|
getTargetData: getTargetData({ props, state, Tree, Table }),
|
|
56
|
-
sortableEvent: sortableEvent({ api: api2, droppanel: DROPPANEL, props, queryDom: TRANSFERPANEL, refs })
|
|
70
|
+
sortableEvent: sortableEvent({ api: api2, droppanel: DROPPANEL, props, queryDom: TRANSFERPANEL, refs }),
|
|
71
|
+
setCheckedOnMounted: setCheckedOnMounted({ props, vm, Tree })
|
|
57
72
|
});
|
|
73
|
+
if (((_b = (_a = props.render) == null ? void 0 : _a.plugin) == null ? void 0 : _b.name) === Tree) {
|
|
74
|
+
watch(
|
|
75
|
+
props.data,
|
|
76
|
+
(value) => {
|
|
77
|
+
recurseTreeDataToFlagInitDisabled(
|
|
78
|
+
value,
|
|
79
|
+
props.props.children || "children",
|
|
80
|
+
props.props.key || "key",
|
|
81
|
+
props.modelValue
|
|
82
|
+
);
|
|
83
|
+
},
|
|
84
|
+
{ immediate: true }
|
|
85
|
+
);
|
|
86
|
+
watch(
|
|
87
|
+
() => props.modelValue,
|
|
88
|
+
(value) => {
|
|
89
|
+
var _a2, _b2;
|
|
90
|
+
if (((_b2 = (_a2 = props.render) == null ? void 0 : _a2.plugin) == null ? void 0 : _b2.name) === Tree) {
|
|
91
|
+
recurseTreeDataToDisabled(props.data, props.props.children || "children", props.props.key || "key", value);
|
|
92
|
+
api2.setCheckedOnMounted();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
58
97
|
onMounted(api2.sortableEvent);
|
|
98
|
+
onMounted(api2.setCheckedOnMounted);
|
|
59
99
|
return api2;
|
|
60
100
|
};
|
|
61
101
|
export {
|
package/transfer-panel/index.js
CHANGED
|
@@ -185,6 +185,11 @@ const handlePageChange = (state) => (currentPage) => {
|
|
|
185
185
|
const getFilterTreeData = ({ props, state }) => (data) => {
|
|
186
186
|
const getChild = (data2, query) => {
|
|
187
187
|
data2.forEach((node) => {
|
|
188
|
+
if (node.__disabled) {
|
|
189
|
+
node.disabled = true;
|
|
190
|
+
} else if (!props.showLeft) {
|
|
191
|
+
node.disabled = false;
|
|
192
|
+
}
|
|
188
193
|
const label = node[state.labelProp];
|
|
189
194
|
if (typeof props.treeOp.filterNodeMethod === "function") {
|
|
190
195
|
const result = props.treeOp.filterNodeMethod(state.query, node);
|
package/tree-select/index.js
CHANGED
|
@@ -28,8 +28,7 @@ const check = ({ props, vm, emit }) => (data, { checkedNodes }) => {
|
|
|
28
28
|
currentValue.push(node[props.valueField]);
|
|
29
29
|
return __spreadProps(__spreadValues({}, node), {
|
|
30
30
|
currentLabel: node[props.textField],
|
|
31
|
-
value: node[props.valueField]
|
|
32
|
-
isTree: true
|
|
31
|
+
value: node[props.valueField]
|
|
33
32
|
});
|
|
34
33
|
})
|
|
35
34
|
);
|
|
@@ -63,40 +62,51 @@ const getPluginOption = ({ api, props, state }) => (value) => {
|
|
|
63
62
|
}
|
|
64
63
|
return items;
|
|
65
64
|
};
|
|
66
|
-
const getCheckedData = ({ props, state }) => () => {
|
|
65
|
+
const getCheckedData = ({ props, state }) => (selected) => {
|
|
67
66
|
const checkedKey = [];
|
|
68
|
-
if (!Array.isArray(
|
|
69
|
-
return props.modelValue ? [props.modelValue] : [
|
|
67
|
+
if (!Array.isArray(selected)) {
|
|
68
|
+
return props.modelValue ? [props.modelValue] : [selected[props.valueField]];
|
|
70
69
|
} else {
|
|
71
|
-
|
|
70
|
+
selected.length > 0 && selected.forEach((item) => {
|
|
72
71
|
checkedKey.push(item[props.valueField]);
|
|
73
72
|
});
|
|
74
73
|
return checkedKey;
|
|
75
74
|
}
|
|
76
75
|
};
|
|
76
|
+
const getChildValue = () => (childNodes, key) => {
|
|
77
|
+
const ids = [];
|
|
78
|
+
const getChild = (nodes) => {
|
|
79
|
+
nodes.forEach((node) => {
|
|
80
|
+
ids.push(node.data[key]);
|
|
81
|
+
if (node.childNodes.length > 0) {
|
|
82
|
+
getChild(node.childNodes);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
getChild(childNodes);
|
|
87
|
+
return ids;
|
|
88
|
+
};
|
|
77
89
|
const mounted = ({ api, state, props, vm }) => () => {
|
|
78
|
-
if (!state.
|
|
90
|
+
if (!state.modelValue || state.modelValue.length === 0)
|
|
79
91
|
return;
|
|
80
92
|
if (props.multiple) {
|
|
81
93
|
let initialNodes = [];
|
|
82
|
-
if (Array.isArray(state.
|
|
83
|
-
state.
|
|
94
|
+
if (Array.isArray(state.modelValue)) {
|
|
95
|
+
state.modelValue.forEach((value) => {
|
|
84
96
|
const option = api.getPluginOption(value);
|
|
85
97
|
initialNodes = initialNodes.concat(option);
|
|
86
98
|
});
|
|
87
99
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
);
|
|
97
|
-
state.defaultCheckedKeys = api.getCheckedData()[0];
|
|
100
|
+
const selected = initialNodes.map((node) => {
|
|
101
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
102
|
+
currentLabel: node[props.textField],
|
|
103
|
+
value: node[props.valueField]
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
vm.$refs.baseSelectRef.updateSelectedData(selected);
|
|
107
|
+
state.defaultCheckedKeys = api.getCheckedData(selected);
|
|
98
108
|
} else {
|
|
99
|
-
const data = api.getPluginOption(state.
|
|
109
|
+
const data = api.getPluginOption(state.modelValue)[0];
|
|
100
110
|
vm.$refs.baseSelectRef.updateSelectedData(__spreadProps(__spreadValues({}, data), {
|
|
101
111
|
currentLabel: data[props.textField],
|
|
102
112
|
value: data[props.valueField],
|
|
@@ -107,12 +117,48 @@ const mounted = ({ api, state, props, vm }) => () => {
|
|
|
107
117
|
state.currentKey = data[props.valueField];
|
|
108
118
|
}
|
|
109
119
|
};
|
|
120
|
+
const watchValue = ({ api, props, vm, state }) => (newValue, oldValue) => {
|
|
121
|
+
if (props.multiple) {
|
|
122
|
+
const xorResult = oldValue.filter((item) => !newValue.includes(item));
|
|
123
|
+
const tagId = xorResult[0];
|
|
124
|
+
const treeIds = [tagId];
|
|
125
|
+
let checkedKeys = newValue;
|
|
126
|
+
if (xorResult.length === 1 && !props.treeOp.checkStrictly) {
|
|
127
|
+
let node = vm.$refs.treeRef.getNode(tagId);
|
|
128
|
+
if (!node.isLeaf) {
|
|
129
|
+
treeIds.push(...api.getChildValue(node.childNodes, props.valueField));
|
|
130
|
+
}
|
|
131
|
+
while (node.parent && !Array.isArray(node.parent.data)) {
|
|
132
|
+
node.parent.data && treeIds.push(node.parent.data[props.valueField]);
|
|
133
|
+
node = node.parent;
|
|
134
|
+
}
|
|
135
|
+
checkedKeys = newValue.filter((item) => !treeIds.includes(item));
|
|
136
|
+
}
|
|
137
|
+
let initialNodes = [];
|
|
138
|
+
if (Array.isArray(checkedKeys)) {
|
|
139
|
+
checkedKeys.forEach((value) => {
|
|
140
|
+
const option = api.getPluginOption(value);
|
|
141
|
+
initialNodes = initialNodes.concat(option);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
const selected = initialNodes.map((node) => {
|
|
145
|
+
return __spreadProps(__spreadValues({}, node), {
|
|
146
|
+
currentLabel: node[props.textField],
|
|
147
|
+
value: node[props.valueField]
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
vm.$refs.baseSelectRef.updateSelectedData(selected);
|
|
151
|
+
vm.$refs.treeRef.setCheckedKeys(checkedKeys);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
110
154
|
export {
|
|
111
155
|
check,
|
|
112
156
|
filter,
|
|
113
157
|
getCheckedData,
|
|
158
|
+
getChildValue,
|
|
114
159
|
getPluginOption,
|
|
115
160
|
getTreeData,
|
|
116
161
|
mounted,
|
|
117
|
-
nodeClick
|
|
162
|
+
nodeClick,
|
|
163
|
+
watchValue
|
|
118
164
|
};
|
package/tree-select/vue.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import "../chunk-G2ADBYYC.js";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
check,
|
|
4
|
+
filter,
|
|
5
|
+
getCheckedData,
|
|
6
|
+
getPluginOption,
|
|
7
|
+
getTreeData,
|
|
8
|
+
mounted,
|
|
9
|
+
nodeClick,
|
|
10
|
+
watchValue,
|
|
11
|
+
getChildValue
|
|
12
|
+
} from "./index";
|
|
3
13
|
const api = ["state", "check", "filter", "nodeClick"];
|
|
4
14
|
const renderless = (props, { reactive, computed, watch, onMounted }, { vm, emit }) => {
|
|
5
15
|
const api2 = {};
|
|
@@ -9,7 +19,7 @@ const renderless = (props, { reactive, computed, watch, onMounted }, { vm, emit
|
|
|
9
19
|
defaultCheckedKeys: [],
|
|
10
20
|
remoteData: [],
|
|
11
21
|
treeData: props.treeOp.data,
|
|
12
|
-
|
|
22
|
+
modelValue: []
|
|
13
23
|
});
|
|
14
24
|
Object.assign(api2, {
|
|
15
25
|
state,
|
|
@@ -19,13 +29,27 @@ const renderless = (props, { reactive, computed, watch, onMounted }, { vm, emit
|
|
|
19
29
|
getPluginOption: getPluginOption({ api: api2, props, state }),
|
|
20
30
|
getTreeData: getTreeData({ props, state }),
|
|
21
31
|
mounted: mounted({ api: api2, state, props, vm }),
|
|
22
|
-
nodeClick: nodeClick({ props, vm, emit })
|
|
32
|
+
nodeClick: nodeClick({ props, vm, emit }),
|
|
33
|
+
watchValue: watchValue({ api: api2, props, vm, state }),
|
|
34
|
+
getChildValue: getChildValue()
|
|
23
35
|
});
|
|
24
36
|
watch(
|
|
25
37
|
() => props.treeOp.data,
|
|
26
38
|
(data) => data && (state.treeData = data),
|
|
27
39
|
{ immediate: true, deep: true }
|
|
28
40
|
);
|
|
41
|
+
watch(
|
|
42
|
+
() => props.modelValue,
|
|
43
|
+
() => {
|
|
44
|
+
if (props.multiple && Array.isArray(props.modelValue)) {
|
|
45
|
+
state.modelValue = [...props.modelValue];
|
|
46
|
+
} else {
|
|
47
|
+
state.modelValue = props.modelValue;
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{ immediate: true, deep: true }
|
|
51
|
+
);
|
|
52
|
+
watch(() => state.modelValue, api2.watchValue);
|
|
29
53
|
onMounted(api2.mounted);
|
|
30
54
|
return api2;
|
|
31
55
|
};
|
package/types/alert.type.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ declare const alertProps: {
|
|
|
100
100
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
101
101
|
tiny_renderless: FunctionConstructor;
|
|
102
102
|
tiny_theme: StringConstructor;
|
|
103
|
+
tiny_mcp_config: ObjectConstructor;
|
|
103
104
|
tiny_chart_theme: ObjectConstructor;
|
|
104
105
|
};
|
|
105
106
|
|
package/types/amount.type.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ declare const amountProps: {
|
|
|
121
121
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
122
122
|
tiny_renderless: FunctionConstructor;
|
|
123
123
|
tiny_theme: StringConstructor;
|
|
124
|
+
tiny_mcp_config: ObjectConstructor;
|
|
124
125
|
tiny_chart_theme: ObjectConstructor;
|
|
125
126
|
};
|
|
126
127
|
|
package/types/area.type.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare const asyncFlowchartProps: {
|
|
|
12
12
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
13
13
|
tiny_renderless: FunctionConstructor;
|
|
14
14
|
tiny_theme: StringConstructor;
|
|
15
|
+
tiny_mcp_config: ObjectConstructor;
|
|
15
16
|
tiny_chart_theme: ObjectConstructor;
|
|
16
17
|
};
|
|
17
18
|
|
package/types/badge.type.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare const breadcrumbItemProps: {
|
|
|
21
21
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
22
22
|
tiny_renderless: FunctionConstructor;
|
|
23
23
|
tiny_theme: StringConstructor;
|
|
24
|
+
tiny_mcp_config: ObjectConstructor;
|
|
24
25
|
tiny_chart_theme: ObjectConstructor;
|
|
25
26
|
};
|
|
26
27
|
|
package/types/button.type.d.ts
CHANGED
|
@@ -75,10 +75,11 @@ declare const buttonProps: {
|
|
|
75
75
|
type: PropType<(ev: MouseEvent) => void>;
|
|
76
76
|
};
|
|
77
77
|
tiny_mode: StringConstructor;
|
|
78
|
-
tiny_mode_root: BooleanConstructor;
|
|
78
|
+
tiny_mode_root: BooleanConstructor; /** 是否圆角按钮 */
|
|
79
79
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
80
80
|
tiny_renderless: FunctionConstructor;
|
|
81
81
|
tiny_theme: StringConstructor;
|
|
82
|
+
tiny_mcp_config: ObjectConstructor;
|
|
82
83
|
tiny_chart_theme: ObjectConstructor;
|
|
83
84
|
};
|
|
84
85
|
|
package/types/cascader.type.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ declare const cascaderProps: {
|
|
|
98
98
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
99
99
|
tiny_renderless: FunctionConstructor;
|
|
100
100
|
tiny_theme: StringConstructor;
|
|
101
|
+
tiny_mcp_config: ObjectConstructor;
|
|
101
102
|
tiny_chart_theme: ObjectConstructor;
|
|
102
103
|
};
|
|
103
104
|
|
package/types/checkbox.type.d.ts
CHANGED
package/types/collapse.type.d.ts
CHANGED
|
@@ -143,6 +143,7 @@ declare const dialogBoxProps: {
|
|
|
143
143
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
144
144
|
tiny_renderless: FunctionConstructor;
|
|
145
145
|
tiny_theme: StringConstructor;
|
|
146
|
+
tiny_mcp_config: ObjectConstructor;
|
|
146
147
|
tiny_chart_theme: ObjectConstructor;
|
|
147
148
|
};
|
|
148
149
|
|
package/types/divider.type.d.ts
CHANGED
package/types/drawer.type.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ declare const dropdownItemProps: {
|
|
|
91
91
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
92
92
|
tiny_renderless: FunctionConstructor;
|
|
93
93
|
tiny_theme: StringConstructor;
|
|
94
|
+
tiny_mcp_config: ObjectConstructor;
|
|
94
95
|
tiny_chart_theme: ObjectConstructor;
|
|
95
96
|
};
|
|
96
97
|
|
|
@@ -164,6 +165,7 @@ declare const dropdownMenuProps: {
|
|
|
164
165
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
165
166
|
tiny_renderless: FunctionConstructor;
|
|
166
167
|
tiny_theme: StringConstructor;
|
|
168
|
+
tiny_mcp_config: ObjectConstructor;
|
|
167
169
|
tiny_chart_theme: ObjectConstructor;
|
|
168
170
|
};
|
|
169
171
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { k as IDropdownItemApi, i as IDropdownItemConstants, q as IDropdownItemMfDataStore, p as IDropdownItemOptionStyle, h as IDropdownItemProps, m as IDropdownItemRenderlessParamUtils, l as IDropdownItemRenderlessParams, j as IDropdownItemState, n as IDropdownItemStyle, o as IDropdownItemTag, g as IDropdownItemVm } from './dropdown-item.type-
|
|
2
|
+
export { k as IDropdownItemApi, i as IDropdownItemConstants, q as IDropdownItemMfDataStore, p as IDropdownItemOptionStyle, h as IDropdownItemProps, m as IDropdownItemRenderlessParamUtils, l as IDropdownItemRenderlessParams, j as IDropdownItemState, n as IDropdownItemStyle, o as IDropdownItemTag, g as IDropdownItemVm } from './dropdown-item.type-b3ced3ce.js';
|
|
3
3
|
import './shared.type.js';
|
|
4
4
|
import './dropdown.type.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { b as IDropdownMenuApi, e as IDropdownMenuPopperParams, I as IDropdownMenuProps, d as IDropdownMenuRenderlessParamUtils, c as IDropdownMenuRenderlessParams, a as IDropdownMenuState, f as IDropdownMenuVm } from './dropdown-item.type-
|
|
2
|
+
export { b as IDropdownMenuApi, e as IDropdownMenuPopperParams, I as IDropdownMenuProps, d as IDropdownMenuRenderlessParamUtils, c as IDropdownMenuRenderlessParams, a as IDropdownMenuState, f as IDropdownMenuVm } from './dropdown-item.type-b3ced3ce.js';
|
|
3
3
|
import './shared.type.js';
|
|
4
4
|
import './dropdown.type.js';
|
package/types/dropdown.type.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-
|
|
2
|
+
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-36a8374a.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/floatbar.type.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-
|
|
2
|
+
export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-dd403065.js';
|
|
3
3
|
import './shared.type.js';
|
|
@@ -106,6 +106,7 @@ declare const formProps: {
|
|
|
106
106
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
107
107
|
tiny_renderless: FunctionConstructor;
|
|
108
108
|
tiny_theme: StringConstructor;
|
|
109
|
+
tiny_mcp_config: ObjectConstructor;
|
|
109
110
|
tiny_chart_theme: ObjectConstructor;
|
|
110
111
|
};
|
|
111
112
|
|
|
@@ -174,6 +175,7 @@ declare const formItemProps: {
|
|
|
174
175
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
175
176
|
tiny_renderless: FunctionConstructor;
|
|
176
177
|
tiny_theme: StringConstructor;
|
|
178
|
+
tiny_mcp_config: ObjectConstructor;
|
|
177
179
|
tiny_chart_theme: ObjectConstructor;
|
|
178
180
|
};
|
|
179
181
|
|
package/types/form.type.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-
|
|
2
|
+
export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-dd403065.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/image.type.d.ts
CHANGED