zartui 3.1.28 → 3.1.30
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/es/hierarchy-select/HierarchySelect.mjs +11 -2
- package/es/hierarchy-select/types.d.ts +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/lib/hierarchy-select/HierarchySelect.js +11 -2
- package/lib/hierarchy-select/types.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +12 -3
- package/lib/zartui.es.js +12 -3
- package/lib/zartui.js +46 -6
- package/lib/zartui.min.js +1 -1
- package/package.json +4 -4
|
@@ -304,15 +304,24 @@ var stdin_default = defineComponent({
|
|
|
304
304
|
const chooseSenior = (index) => {
|
|
305
305
|
updateSelectParent(index);
|
|
306
306
|
breadcrumbData.value.splice(index + 1);
|
|
307
|
-
|
|
307
|
+
if (historyLayers.value.length > 0) {
|
|
308
|
+
dataList.value = historyLayers.value[index + 1];
|
|
309
|
+
} else {
|
|
310
|
+
dataList.value = deepClone(props.treeData);
|
|
311
|
+
}
|
|
308
312
|
historyLayers.value.splice(index + 1);
|
|
309
313
|
};
|
|
310
314
|
const showRadio = (item) => {
|
|
311
315
|
return !showSub(item) || showSub(item) && props.showParentChecked;
|
|
312
316
|
};
|
|
313
317
|
adapterHierarchTree(props.treeData, false);
|
|
318
|
+
const reset = () => {
|
|
319
|
+
checkedList.value = [];
|
|
320
|
+
chooseSenior(-1);
|
|
321
|
+
};
|
|
314
322
|
useExpose({
|
|
315
|
-
toNodeLevel
|
|
323
|
+
toNodeLevel,
|
|
324
|
+
reset
|
|
316
325
|
});
|
|
317
326
|
return () => _createVNode("div", {
|
|
318
327
|
"class": bem()
|
|
@@ -9,6 +9,7 @@ export type HierarchyData = {
|
|
|
9
9
|
};
|
|
10
10
|
export type HierarchySelectExpose = {
|
|
11
11
|
toNodeLevel: (id: string | number, force?: boolean) => boolean;
|
|
12
|
+
reset: () => void;
|
|
12
13
|
};
|
|
13
14
|
export type HierarchySelectInstance = ComponentPublicInstance<HierarchySelectProps, HierarchySelectExpose>;
|
|
14
15
|
export type HierarchySelectThemeVars = {
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -76,7 +76,7 @@ import { Timeline } from "./timeline/index.mjs";
|
|
|
76
76
|
import { Toast } from "./toast/index.mjs";
|
|
77
77
|
import { Uploader } from "./uploader/index.mjs";
|
|
78
78
|
import { Video } from "./video/index.mjs";
|
|
79
|
-
const version = "3.1.
|
|
79
|
+
const version = "3.1.30";
|
|
80
80
|
function install(app) {
|
|
81
81
|
const components = [
|
|
82
82
|
ActionSheet,
|
|
@@ -336,15 +336,24 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
336
336
|
const chooseSenior = (index) => {
|
|
337
337
|
updateSelectParent(index);
|
|
338
338
|
breadcrumbData.value.splice(index + 1);
|
|
339
|
-
|
|
339
|
+
if (historyLayers.value.length > 0) {
|
|
340
|
+
dataList.value = historyLayers.value[index + 1];
|
|
341
|
+
} else {
|
|
342
|
+
dataList.value = (0, import_deep_clone.deepClone)(props.treeData);
|
|
343
|
+
}
|
|
340
344
|
historyLayers.value.splice(index + 1);
|
|
341
345
|
};
|
|
342
346
|
const showRadio = (item) => {
|
|
343
347
|
return !showSub(item) || showSub(item) && props.showParentChecked;
|
|
344
348
|
};
|
|
345
349
|
adapterHierarchTree(props.treeData, false);
|
|
350
|
+
const reset = () => {
|
|
351
|
+
checkedList.value = [];
|
|
352
|
+
chooseSenior(-1);
|
|
353
|
+
};
|
|
346
354
|
(0, import_use_expose.useExpose)({
|
|
347
|
-
toNodeLevel
|
|
355
|
+
toNodeLevel,
|
|
356
|
+
reset
|
|
348
357
|
});
|
|
349
358
|
return () => (0, import_vue.createVNode)("div", {
|
|
350
359
|
"class": bem()
|
|
@@ -9,6 +9,7 @@ export type HierarchyData = {
|
|
|
9
9
|
};
|
|
10
10
|
export type HierarchySelectExpose = {
|
|
11
11
|
toNodeLevel: (id: string | number, force?: boolean) => boolean;
|
|
12
|
+
reset: () => void;
|
|
12
13
|
};
|
|
13
14
|
export type HierarchySelectInstance = ComponentPublicInstance<HierarchySelectProps, HierarchySelectExpose>;
|
|
14
15
|
export type HierarchySelectThemeVars = {
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -180,7 +180,7 @@ __reExport(stdin_exports, require("./timeline"), module.exports);
|
|
|
180
180
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
|
181
181
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
182
182
|
__reExport(stdin_exports, require("./video"), module.exports);
|
|
183
|
-
const version = "3.1.
|
|
183
|
+
const version = "3.1.30";
|
|
184
184
|
function install(app) {
|
|
185
185
|
const components = [
|
|
186
186
|
import_action_sheet.ActionSheet,
|