zartui 3.1.21 → 3.1.22
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 +6 -2
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/lib/hierarchy-select/HierarchySelect.js +6 -2
- 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 +7 -3
- package/lib/zartui.es.js +7 -3
- package/lib/zartui.js +7 -3
- package/lib/zartui.min.js +1 -1
- package/package.json +6 -6
|
@@ -134,7 +134,11 @@ var stdin_default = defineComponent({
|
|
|
134
134
|
}
|
|
135
135
|
emitChange && emit("change", checkedList.value);
|
|
136
136
|
};
|
|
137
|
-
const selected = (item) => {
|
|
137
|
+
const selected = (item, index) => {
|
|
138
|
+
if (showSub(item) && props.disableParent && !item.disabled) {
|
|
139
|
+
toNextLevel(item, index);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
138
142
|
if (showSub(item) && !props.showParentChecked) {
|
|
139
143
|
return;
|
|
140
144
|
}
|
|
@@ -327,7 +331,7 @@ var stdin_default = defineComponent({
|
|
|
327
331
|
selected: !props.multiple && choosedValue.value === item[props.valueKey]
|
|
328
332
|
}),
|
|
329
333
|
"onClick": () => {
|
|
330
|
-
selected(item);
|
|
334
|
+
selected(item, index);
|
|
331
335
|
}
|
|
332
336
|
}, [slots.content ? slots.content(item) : item[props.textKey]]), _createVNode("div", {
|
|
333
337
|
"class": bem("item-nav"),
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ import { TimePicker } from "./time-picker/index.mjs";
|
|
|
74
74
|
import { Timeline } from "./timeline/index.mjs";
|
|
75
75
|
import { Toast } from "./toast/index.mjs";
|
|
76
76
|
import { Uploader } from "./uploader/index.mjs";
|
|
77
|
-
const version = "3.1.
|
|
77
|
+
const version = "3.1.22";
|
|
78
78
|
function install(app) {
|
|
79
79
|
const components = [
|
|
80
80
|
ActionSheet,
|
|
@@ -166,7 +166,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
166
166
|
}
|
|
167
167
|
emitChange && emit("change", checkedList.value);
|
|
168
168
|
};
|
|
169
|
-
const selected = (item) => {
|
|
169
|
+
const selected = (item, index) => {
|
|
170
|
+
if (showSub(item) && props.disableParent && !item.disabled) {
|
|
171
|
+
toNextLevel(item, index);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
170
174
|
if (showSub(item) && !props.showParentChecked) {
|
|
171
175
|
return;
|
|
172
176
|
}
|
|
@@ -359,7 +363,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
359
363
|
selected: !props.multiple && choosedValue.value === item[props.valueKey]
|
|
360
364
|
}),
|
|
361
365
|
"onClick": () => {
|
|
362
|
-
selected(item);
|
|
366
|
+
selected(item, index);
|
|
363
367
|
}
|
|
364
368
|
}, [slots.content ? slots.content(item) : item[props.textKey]]), (0, import_vue.createVNode)("div", {
|
|
365
369
|
"class": bem("item-nav"),
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -176,7 +176,7 @@ __reExport(stdin_exports, require("./time-picker"), module.exports);
|
|
|
176
176
|
__reExport(stdin_exports, require("./timeline"), module.exports);
|
|
177
177
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
|
178
178
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
179
|
-
const version = "3.1.
|
|
179
|
+
const version = "3.1.22";
|
|
180
180
|
function install(app) {
|
|
181
181
|
const components = [
|
|
182
182
|
import_action_sheet.ActionSheet,
|