zartui 3.1.8 → 3.1.9
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 +2 -4
- package/es/action-sheet/index.css +1 -1
- package/es/avatar/index.css +1 -1
- package/es/badge/index.css +1 -1
- package/es/button/index.css +1 -1
- package/es/calendar/index.css +1 -1
- package/es/cell/index.css +1 -1
- package/es/checkbox/index.css +1 -1
- package/es/collapse-item/index.css +1 -1
- package/es/dialog/index.css +1 -1
- package/es/empty/index.css +1 -1
- package/es/field/Field.mjs +2 -0
- package/es/field/index.css +1 -1
- package/es/hierarchy-select/HierarchySelect.d.ts +16 -1
- package/es/hierarchy-select/HierarchySelect.mjs +8 -5
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.d.ts +11 -1
- package/es/image/index.css +1 -1
- package/es/index-bar/IndexBar.d.ts +16 -1
- package/es/index-bar/IndexBar.mjs +6 -3
- package/es/index-bar/index.d.ts +12 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/index.css +1 -1
- package/es/loading/index.css +1 -1
- package/es/media-picker/index.css +1 -1
- package/es/multiple-picker/index.css +1 -1
- package/es/number-keyboard/NumberKeyboard.mjs +5 -20
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/style/index.mjs +0 -1
- package/es/picker/index.css +1 -1
- package/es/popup/index.css +1 -1
- package/es/radio/index.css +1 -1
- package/es/radio-picker/index.css +1 -1
- package/es/search/index.css +1 -1
- package/es/step/index.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/table/index.css +1 -1
- package/es/text-ellipsis/index.css +1 -1
- package/es/time-picker/index.css +1 -1
- package/es/timeline/index.css +1 -1
- package/es/toast/index.css +1 -1
- package/es/uploader/index.css +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/avatar/index.css +1 -1
- package/lib/badge/index.css +1 -1
- package/lib/button/index.css +1 -1
- package/lib/calendar/index.css +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/checkbox/index.css +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/field/Field.js +2 -0
- package/lib/field/index.css +1 -1
- package/lib/hierarchy-select/HierarchySelect.d.ts +16 -1
- package/lib/hierarchy-select/HierarchySelect.js +7 -4
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.d.ts +11 -1
- package/lib/image/index.css +1 -1
- package/lib/index-bar/IndexBar.d.ts +16 -1
- package/lib/index-bar/IndexBar.js +5 -2
- package/lib/index-bar/index.d.ts +12 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.css +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/media-picker/index.css +1 -1
- package/lib/multiple-picker/index.css +1 -1
- package/lib/number-keyboard/NumberKeyboard.js +4 -19
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/style/index.js +0 -1
- package/lib/picker/index.css +1 -1
- package/lib/popup/index.css +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/radio-picker/index.css +1 -1
- package/lib/search/index.css +1 -1
- package/lib/step/index.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/table/index.css +1 -1
- package/lib/text-ellipsis/index.css +1 -1
- package/lib/time-picker/index.css +1 -1
- package/lib/timeline/index.css +1 -1
- package/lib/toast/index.css +1 -1
- package/lib/uploader/index.css +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +31 -39
- package/lib/zartui.es.js +31 -39
- package/lib/zartui.js +31 -39
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
package/lib/zartui.cjs.js
CHANGED
|
@@ -9219,6 +9219,7 @@ var stdin_default$_ = vue.defineComponent({
|
|
|
9219
9219
|
});
|
|
9220
9220
|
return () => {
|
|
9221
9221
|
const disabled = getProp("disabled");
|
|
9222
|
+
const readonly = getProp("readonly");
|
|
9222
9223
|
const labelAlign = getProp("labelAlign");
|
|
9223
9224
|
const Label = renderLabel();
|
|
9224
9225
|
const TitleIcon = renderTitleIcon();
|
|
@@ -9230,6 +9231,7 @@ var stdin_default$_ = vue.defineComponent({
|
|
|
9230
9231
|
"class": bem$G({
|
|
9231
9232
|
error: showError.value,
|
|
9232
9233
|
disabled,
|
|
9234
|
+
readonly,
|
|
9233
9235
|
[`label-${labelAlign}`]: labelAlign,
|
|
9234
9236
|
"error-message": props.errorMessage !== "" && typeof props.errorMessage !== "undefined",
|
|
9235
9237
|
description: props.description !== "" && typeof props.description !== "undefined",
|
|
@@ -9678,12 +9680,27 @@ var stdin_default$U = vue.defineComponent({
|
|
|
9678
9680
|
}, [item[props.textKey]])]))])]);
|
|
9679
9681
|
}
|
|
9680
9682
|
});
|
|
9683
|
+
const useSyncPropRef = (getProp, setProp) => {
|
|
9684
|
+
const propRef = vue.ref(getProp());
|
|
9685
|
+
vue.watch(getProp, (value) => {
|
|
9686
|
+
if (value !== propRef.value) {
|
|
9687
|
+
propRef.value = value;
|
|
9688
|
+
}
|
|
9689
|
+
});
|
|
9690
|
+
vue.watch(propRef, (value) => {
|
|
9691
|
+
if (value !== getProp()) {
|
|
9692
|
+
setProp(value);
|
|
9693
|
+
}
|
|
9694
|
+
});
|
|
9695
|
+
return propRef;
|
|
9696
|
+
};
|
|
9681
9697
|
const [name$B, bem$B] = createNamespace("hierarchy-select");
|
|
9682
9698
|
const hierarchySelectProps = {
|
|
9683
9699
|
treeData: {
|
|
9684
9700
|
type: Array,
|
|
9685
9701
|
default: () => []
|
|
9686
9702
|
},
|
|
9703
|
+
checkedList: makeArrayProp([]),
|
|
9687
9704
|
disableParent: {
|
|
9688
9705
|
type: Boolean,
|
|
9689
9706
|
default: false
|
|
@@ -9703,11 +9720,12 @@ const hierarchySelectProps = {
|
|
|
9703
9720
|
var stdin_default$T = vue.defineComponent({
|
|
9704
9721
|
name: name$B,
|
|
9705
9722
|
props: hierarchySelectProps,
|
|
9706
|
-
emits: ["asyncGetter", "selected", "change"],
|
|
9723
|
+
emits: ["asyncGetter", "selected", "change", "update:checkedList"],
|
|
9707
9724
|
setup(props, {
|
|
9708
|
-
emit
|
|
9725
|
+
emit,
|
|
9726
|
+
slots
|
|
9709
9727
|
}) {
|
|
9710
|
-
const checkedList =
|
|
9728
|
+
const checkedList = useSyncPropRef(() => props.checkedList, (value) => emit("update:checkedList", value));
|
|
9711
9729
|
const choosedValue = vue.ref();
|
|
9712
9730
|
const dataList = vue.ref(deepClone(props.treeData));
|
|
9713
9731
|
const breadcrumbData = vue.ref([]);
|
|
@@ -9876,7 +9894,7 @@ var stdin_default$T = vue.defineComponent({
|
|
|
9876
9894
|
"onClick": () => {
|
|
9877
9895
|
selected(item);
|
|
9878
9896
|
}
|
|
9879
|
-
}, [item[props.textKey]]), vue.createVNode("div", {
|
|
9897
|
+
}, [slots.content ? slots.content(item) : item[props.textKey]]), vue.createVNode("div", {
|
|
9880
9898
|
"class": bem$B("item-nav"),
|
|
9881
9899
|
"onClick": () => {
|
|
9882
9900
|
toNextLevel(item, index);
|
|
@@ -10414,6 +10432,7 @@ const [name$z, bem$y] = createNamespace("index-bar");
|
|
|
10414
10432
|
const indexBarProps = {
|
|
10415
10433
|
sticky: truthProp,
|
|
10416
10434
|
zIndex: numericProp,
|
|
10435
|
+
activeAnchor: makeNumericProp(""),
|
|
10417
10436
|
teleport: [String, Object],
|
|
10418
10437
|
highlightColor: String,
|
|
10419
10438
|
stickyOffsetTop: makeNumberProp(0),
|
|
@@ -10426,14 +10445,14 @@ const INDEX_BAR_KEY = Symbol(name$z);
|
|
|
10426
10445
|
var stdin_default$Q = vue.defineComponent({
|
|
10427
10446
|
name: name$z,
|
|
10428
10447
|
props: indexBarProps,
|
|
10429
|
-
emits: ["select", "change"],
|
|
10448
|
+
emits: ["select", "change", "anchorClick", "update:activeAnchor"],
|
|
10430
10449
|
setup(props, {
|
|
10431
10450
|
emit,
|
|
10432
10451
|
slots
|
|
10433
10452
|
}) {
|
|
10434
10453
|
const root = vue.ref();
|
|
10435
10454
|
const sidebar = vue.ref();
|
|
10436
|
-
const activeAnchor =
|
|
10455
|
+
const activeAnchor = useSyncPropRef(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
|
|
10437
10456
|
const touchIndex = vue.ref("");
|
|
10438
10457
|
const touch = useTouch();
|
|
10439
10458
|
const scrollParent = use.useScrollParent(root);
|
|
@@ -10535,6 +10554,7 @@ var stdin_default$Q = vue.defineComponent({
|
|
|
10535
10554
|
}
|
|
10536
10555
|
});
|
|
10537
10556
|
const scrollTo = (index) => {
|
|
10557
|
+
emit("anchorClick", index);
|
|
10538
10558
|
selectActiveIndex = String(index);
|
|
10539
10559
|
const match = getMatchAnchor(selectActiveIndex);
|
|
10540
10560
|
if (match) {
|
|
@@ -13907,13 +13927,10 @@ var stdin_default$v = vue.defineComponent({
|
|
|
13907
13927
|
};
|
|
13908
13928
|
const renderTitle = () => {
|
|
13909
13929
|
const {
|
|
13910
|
-
title
|
|
13911
|
-
theme,
|
|
13912
|
-
closeButtonText
|
|
13930
|
+
title
|
|
13913
13931
|
} = props;
|
|
13914
13932
|
const leftSlot = slots["title-left"];
|
|
13915
|
-
const
|
|
13916
|
-
const showTitle = title || showClose || leftSlot;
|
|
13933
|
+
const showTitle = title || leftSlot;
|
|
13917
13934
|
if (!showTitle) {
|
|
13918
13935
|
return;
|
|
13919
13936
|
}
|
|
@@ -13921,7 +13938,7 @@ var stdin_default$v = vue.defineComponent({
|
|
|
13921
13938
|
"class": bem$n("header")
|
|
13922
13939
|
}, [leftSlot && vue.createVNode("span", {
|
|
13923
13940
|
"class": bem$n("title-left")
|
|
13924
|
-
}, [leftSlot()]), title && vue.createVNode("
|
|
13941
|
+
}, [leftSlot()]), title && vue.createVNode("div", {
|
|
13925
13942
|
"class": bem$n("title")
|
|
13926
13943
|
}, [title])]);
|
|
13927
13944
|
};
|
|
@@ -13976,11 +13993,8 @@ var stdin_default$v = vue.defineComponent({
|
|
|
13976
13993
|
return () => {
|
|
13977
13994
|
const Title = renderTitle();
|
|
13978
13995
|
const {
|
|
13979
|
-
theme,
|
|
13980
|
-
closeButtonText,
|
|
13981
13996
|
title
|
|
13982
13997
|
} = props;
|
|
13983
|
-
const showClose = closeButtonText && theme === "default";
|
|
13984
13998
|
const Content = vue.createVNode(vue.Transition, {
|
|
13985
13999
|
"name": props.transition ? "zt-slide-up" : ""
|
|
13986
14000
|
}, {
|
|
@@ -13997,15 +14011,7 @@ var stdin_default$v = vue.defineComponent({
|
|
|
13997
14011
|
"class": [bem$n("body"), title ? "" : bem$n("body-no-title")]
|
|
13998
14012
|
}, [vue.createVNode("div", {
|
|
13999
14013
|
"class": bem$n("keys")
|
|
14000
|
-
}, [renderKeys()]), renderSidebar()]),
|
|
14001
|
-
"class": bem$n("finish-button-box")
|
|
14002
|
-
}, [vue.createVNode(stdin_default$1B, {
|
|
14003
|
-
"type": "primary",
|
|
14004
|
-
"block": true,
|
|
14005
|
-
"text": closeButtonText,
|
|
14006
|
-
"class": [bem$n("finish-button"), HAPTICS_FEEDBACK],
|
|
14007
|
-
"onClick": onClose
|
|
14008
|
-
}, null)])]), [[vue.vShow, props.show]])]
|
|
14014
|
+
}, [renderKeys()]), renderSidebar()])]), [[vue.vShow, props.show]])]
|
|
14009
14015
|
});
|
|
14010
14016
|
if (props.teleport) {
|
|
14011
14017
|
return vue.createVNode(vue.Teleport, {
|
|
@@ -14092,20 +14098,6 @@ var stdin_default$u = vue.defineComponent({
|
|
|
14092
14098
|
}
|
|
14093
14099
|
});
|
|
14094
14100
|
const PasswordInput = withInstall(stdin_default$u);
|
|
14095
|
-
const useSyncPropRef = (getProp, setProp) => {
|
|
14096
|
-
const propRef = vue.ref(getProp());
|
|
14097
|
-
vue.watch(getProp, (value) => {
|
|
14098
|
-
if (value !== propRef.value) {
|
|
14099
|
-
propRef.value = value;
|
|
14100
|
-
}
|
|
14101
|
-
});
|
|
14102
|
-
vue.watch(propRef, (value) => {
|
|
14103
|
-
if (value !== getProp()) {
|
|
14104
|
-
setProp(value);
|
|
14105
|
-
}
|
|
14106
|
-
});
|
|
14107
|
-
return propRef;
|
|
14108
|
-
};
|
|
14109
14101
|
var __async = (__this, __arguments, generator) => {
|
|
14110
14102
|
return new Promise((resolve, reject) => {
|
|
14111
14103
|
var fulfilled = (value) => {
|
|
@@ -18971,7 +18963,7 @@ const Lazyload = {
|
|
|
18971
18963
|
});
|
|
18972
18964
|
}
|
|
18973
18965
|
};
|
|
18974
|
-
const version = "3.1.
|
|
18966
|
+
const version = "3.1.9";
|
|
18975
18967
|
function install(app) {
|
|
18976
18968
|
const components = [
|
|
18977
18969
|
ActionSheet,
|
package/lib/zartui.es.js
CHANGED
|
@@ -9217,6 +9217,7 @@ var stdin_default$_ = defineComponent({
|
|
|
9217
9217
|
});
|
|
9218
9218
|
return () => {
|
|
9219
9219
|
const disabled = getProp("disabled");
|
|
9220
|
+
const readonly = getProp("readonly");
|
|
9220
9221
|
const labelAlign = getProp("labelAlign");
|
|
9221
9222
|
const Label = renderLabel();
|
|
9222
9223
|
const TitleIcon = renderTitleIcon();
|
|
@@ -9228,6 +9229,7 @@ var stdin_default$_ = defineComponent({
|
|
|
9228
9229
|
"class": bem$G({
|
|
9229
9230
|
error: showError.value,
|
|
9230
9231
|
disabled,
|
|
9232
|
+
readonly,
|
|
9231
9233
|
[`label-${labelAlign}`]: labelAlign,
|
|
9232
9234
|
"error-message": props.errorMessage !== "" && typeof props.errorMessage !== "undefined",
|
|
9233
9235
|
description: props.description !== "" && typeof props.description !== "undefined",
|
|
@@ -9676,12 +9678,27 @@ var stdin_default$U = defineComponent({
|
|
|
9676
9678
|
}, [item[props.textKey]])]))])]);
|
|
9677
9679
|
}
|
|
9678
9680
|
});
|
|
9681
|
+
const useSyncPropRef = (getProp, setProp) => {
|
|
9682
|
+
const propRef = ref(getProp());
|
|
9683
|
+
watch(getProp, (value) => {
|
|
9684
|
+
if (value !== propRef.value) {
|
|
9685
|
+
propRef.value = value;
|
|
9686
|
+
}
|
|
9687
|
+
});
|
|
9688
|
+
watch(propRef, (value) => {
|
|
9689
|
+
if (value !== getProp()) {
|
|
9690
|
+
setProp(value);
|
|
9691
|
+
}
|
|
9692
|
+
});
|
|
9693
|
+
return propRef;
|
|
9694
|
+
};
|
|
9679
9695
|
const [name$B, bem$B] = createNamespace("hierarchy-select");
|
|
9680
9696
|
const hierarchySelectProps = {
|
|
9681
9697
|
treeData: {
|
|
9682
9698
|
type: Array,
|
|
9683
9699
|
default: () => []
|
|
9684
9700
|
},
|
|
9701
|
+
checkedList: makeArrayProp([]),
|
|
9685
9702
|
disableParent: {
|
|
9686
9703
|
type: Boolean,
|
|
9687
9704
|
default: false
|
|
@@ -9701,11 +9718,12 @@ const hierarchySelectProps = {
|
|
|
9701
9718
|
var stdin_default$T = defineComponent({
|
|
9702
9719
|
name: name$B,
|
|
9703
9720
|
props: hierarchySelectProps,
|
|
9704
|
-
emits: ["asyncGetter", "selected", "change"],
|
|
9721
|
+
emits: ["asyncGetter", "selected", "change", "update:checkedList"],
|
|
9705
9722
|
setup(props, {
|
|
9706
|
-
emit
|
|
9723
|
+
emit,
|
|
9724
|
+
slots
|
|
9707
9725
|
}) {
|
|
9708
|
-
const checkedList =
|
|
9726
|
+
const checkedList = useSyncPropRef(() => props.checkedList, (value) => emit("update:checkedList", value));
|
|
9709
9727
|
const choosedValue = ref();
|
|
9710
9728
|
const dataList = ref(deepClone(props.treeData));
|
|
9711
9729
|
const breadcrumbData = ref([]);
|
|
@@ -9874,7 +9892,7 @@ var stdin_default$T = defineComponent({
|
|
|
9874
9892
|
"onClick": () => {
|
|
9875
9893
|
selected(item);
|
|
9876
9894
|
}
|
|
9877
|
-
}, [item[props.textKey]]), createVNode("div", {
|
|
9895
|
+
}, [slots.content ? slots.content(item) : item[props.textKey]]), createVNode("div", {
|
|
9878
9896
|
"class": bem$B("item-nav"),
|
|
9879
9897
|
"onClick": () => {
|
|
9880
9898
|
toNextLevel(item, index);
|
|
@@ -10412,6 +10430,7 @@ const [name$z, bem$y] = createNamespace("index-bar");
|
|
|
10412
10430
|
const indexBarProps = {
|
|
10413
10431
|
sticky: truthProp,
|
|
10414
10432
|
zIndex: numericProp,
|
|
10433
|
+
activeAnchor: makeNumericProp(""),
|
|
10415
10434
|
teleport: [String, Object],
|
|
10416
10435
|
highlightColor: String,
|
|
10417
10436
|
stickyOffsetTop: makeNumberProp(0),
|
|
@@ -10424,14 +10443,14 @@ const INDEX_BAR_KEY = Symbol(name$z);
|
|
|
10424
10443
|
var stdin_default$Q = defineComponent({
|
|
10425
10444
|
name: name$z,
|
|
10426
10445
|
props: indexBarProps,
|
|
10427
|
-
emits: ["select", "change"],
|
|
10446
|
+
emits: ["select", "change", "anchorClick", "update:activeAnchor"],
|
|
10428
10447
|
setup(props, {
|
|
10429
10448
|
emit,
|
|
10430
10449
|
slots
|
|
10431
10450
|
}) {
|
|
10432
10451
|
const root = ref();
|
|
10433
10452
|
const sidebar = ref();
|
|
10434
|
-
const activeAnchor =
|
|
10453
|
+
const activeAnchor = useSyncPropRef(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
|
|
10435
10454
|
const touchIndex = ref("");
|
|
10436
10455
|
const touch = useTouch();
|
|
10437
10456
|
const scrollParent = useScrollParent(root);
|
|
@@ -10533,6 +10552,7 @@ var stdin_default$Q = defineComponent({
|
|
|
10533
10552
|
}
|
|
10534
10553
|
});
|
|
10535
10554
|
const scrollTo = (index) => {
|
|
10555
|
+
emit("anchorClick", index);
|
|
10536
10556
|
selectActiveIndex = String(index);
|
|
10537
10557
|
const match = getMatchAnchor(selectActiveIndex);
|
|
10538
10558
|
if (match) {
|
|
@@ -13905,13 +13925,10 @@ var stdin_default$v = defineComponent({
|
|
|
13905
13925
|
};
|
|
13906
13926
|
const renderTitle = () => {
|
|
13907
13927
|
const {
|
|
13908
|
-
title
|
|
13909
|
-
theme,
|
|
13910
|
-
closeButtonText
|
|
13928
|
+
title
|
|
13911
13929
|
} = props;
|
|
13912
13930
|
const leftSlot = slots["title-left"];
|
|
13913
|
-
const
|
|
13914
|
-
const showTitle = title || showClose || leftSlot;
|
|
13931
|
+
const showTitle = title || leftSlot;
|
|
13915
13932
|
if (!showTitle) {
|
|
13916
13933
|
return;
|
|
13917
13934
|
}
|
|
@@ -13919,7 +13936,7 @@ var stdin_default$v = defineComponent({
|
|
|
13919
13936
|
"class": bem$n("header")
|
|
13920
13937
|
}, [leftSlot && createVNode("span", {
|
|
13921
13938
|
"class": bem$n("title-left")
|
|
13922
|
-
}, [leftSlot()]), title && createVNode("
|
|
13939
|
+
}, [leftSlot()]), title && createVNode("div", {
|
|
13923
13940
|
"class": bem$n("title")
|
|
13924
13941
|
}, [title])]);
|
|
13925
13942
|
};
|
|
@@ -13974,11 +13991,8 @@ var stdin_default$v = defineComponent({
|
|
|
13974
13991
|
return () => {
|
|
13975
13992
|
const Title = renderTitle();
|
|
13976
13993
|
const {
|
|
13977
|
-
theme,
|
|
13978
|
-
closeButtonText,
|
|
13979
13994
|
title
|
|
13980
13995
|
} = props;
|
|
13981
|
-
const showClose = closeButtonText && theme === "default";
|
|
13982
13996
|
const Content = createVNode(Transition, {
|
|
13983
13997
|
"name": props.transition ? "zt-slide-up" : ""
|
|
13984
13998
|
}, {
|
|
@@ -13995,15 +14009,7 @@ var stdin_default$v = defineComponent({
|
|
|
13995
14009
|
"class": [bem$n("body"), title ? "" : bem$n("body-no-title")]
|
|
13996
14010
|
}, [createVNode("div", {
|
|
13997
14011
|
"class": bem$n("keys")
|
|
13998
|
-
}, [renderKeys()]), renderSidebar()]),
|
|
13999
|
-
"class": bem$n("finish-button-box")
|
|
14000
|
-
}, [createVNode(stdin_default$1B, {
|
|
14001
|
-
"type": "primary",
|
|
14002
|
-
"block": true,
|
|
14003
|
-
"text": closeButtonText,
|
|
14004
|
-
"class": [bem$n("finish-button"), HAPTICS_FEEDBACK],
|
|
14005
|
-
"onClick": onClose
|
|
14006
|
-
}, null)])]), [[vShow, props.show]])]
|
|
14012
|
+
}, [renderKeys()]), renderSidebar()])]), [[vShow, props.show]])]
|
|
14007
14013
|
});
|
|
14008
14014
|
if (props.teleport) {
|
|
14009
14015
|
return createVNode(Teleport, {
|
|
@@ -14090,20 +14096,6 @@ var stdin_default$u = defineComponent({
|
|
|
14090
14096
|
}
|
|
14091
14097
|
});
|
|
14092
14098
|
const PasswordInput = withInstall(stdin_default$u);
|
|
14093
|
-
const useSyncPropRef = (getProp, setProp) => {
|
|
14094
|
-
const propRef = ref(getProp());
|
|
14095
|
-
watch(getProp, (value) => {
|
|
14096
|
-
if (value !== propRef.value) {
|
|
14097
|
-
propRef.value = value;
|
|
14098
|
-
}
|
|
14099
|
-
});
|
|
14100
|
-
watch(propRef, (value) => {
|
|
14101
|
-
if (value !== getProp()) {
|
|
14102
|
-
setProp(value);
|
|
14103
|
-
}
|
|
14104
|
-
});
|
|
14105
|
-
return propRef;
|
|
14106
|
-
};
|
|
14107
14099
|
var __async = (__this, __arguments, generator) => {
|
|
14108
14100
|
return new Promise((resolve, reject) => {
|
|
14109
14101
|
var fulfilled = (value) => {
|
|
@@ -18969,7 +18961,7 @@ const Lazyload = {
|
|
|
18969
18961
|
});
|
|
18970
18962
|
}
|
|
18971
18963
|
};
|
|
18972
|
-
const version = "3.1.
|
|
18964
|
+
const version = "3.1.9";
|
|
18973
18965
|
function install(app) {
|
|
18974
18966
|
const components = [
|
|
18975
18967
|
ActionSheet,
|
package/lib/zartui.js
CHANGED
|
@@ -9460,6 +9460,7 @@
|
|
|
9460
9460
|
});
|
|
9461
9461
|
return () => {
|
|
9462
9462
|
const disabled = getProp("disabled");
|
|
9463
|
+
const readonly = getProp("readonly");
|
|
9463
9464
|
const labelAlign = getProp("labelAlign");
|
|
9464
9465
|
const Label = renderLabel();
|
|
9465
9466
|
const TitleIcon = renderTitleIcon();
|
|
@@ -9471,6 +9472,7 @@
|
|
|
9471
9472
|
"class": bem$G({
|
|
9472
9473
|
error: showError.value,
|
|
9473
9474
|
disabled,
|
|
9475
|
+
readonly,
|
|
9474
9476
|
[`label-${labelAlign}`]: labelAlign,
|
|
9475
9477
|
"error-message": props.errorMessage !== "" && typeof props.errorMessage !== "undefined",
|
|
9476
9478
|
description: props.description !== "" && typeof props.description !== "undefined",
|
|
@@ -9916,12 +9918,27 @@
|
|
|
9916
9918
|
}, [item[props.textKey]])]))])]);
|
|
9917
9919
|
}
|
|
9918
9920
|
});
|
|
9921
|
+
const useSyncPropRef = (getProp, setProp) => {
|
|
9922
|
+
const propRef = vue.ref(getProp());
|
|
9923
|
+
vue.watch(getProp, (value) => {
|
|
9924
|
+
if (value !== propRef.value) {
|
|
9925
|
+
propRef.value = value;
|
|
9926
|
+
}
|
|
9927
|
+
});
|
|
9928
|
+
vue.watch(propRef, (value) => {
|
|
9929
|
+
if (value !== getProp()) {
|
|
9930
|
+
setProp(value);
|
|
9931
|
+
}
|
|
9932
|
+
});
|
|
9933
|
+
return propRef;
|
|
9934
|
+
};
|
|
9919
9935
|
const [name$B, bem$B] = createNamespace("hierarchy-select");
|
|
9920
9936
|
const hierarchySelectProps = {
|
|
9921
9937
|
treeData: {
|
|
9922
9938
|
type: Array,
|
|
9923
9939
|
default: () => []
|
|
9924
9940
|
},
|
|
9941
|
+
checkedList: makeArrayProp([]),
|
|
9925
9942
|
disableParent: {
|
|
9926
9943
|
type: Boolean,
|
|
9927
9944
|
default: false
|
|
@@ -9941,11 +9958,12 @@
|
|
|
9941
9958
|
var stdin_default$T = vue.defineComponent({
|
|
9942
9959
|
name: name$B,
|
|
9943
9960
|
props: hierarchySelectProps,
|
|
9944
|
-
emits: ["asyncGetter", "selected", "change"],
|
|
9961
|
+
emits: ["asyncGetter", "selected", "change", "update:checkedList"],
|
|
9945
9962
|
setup(props, {
|
|
9946
|
-
emit
|
|
9963
|
+
emit,
|
|
9964
|
+
slots
|
|
9947
9965
|
}) {
|
|
9948
|
-
const checkedList =
|
|
9966
|
+
const checkedList = useSyncPropRef(() => props.checkedList, (value) => emit("update:checkedList", value));
|
|
9949
9967
|
const choosedValue = vue.ref();
|
|
9950
9968
|
const dataList = vue.ref(deepClone(props.treeData));
|
|
9951
9969
|
const breadcrumbData = vue.ref([]);
|
|
@@ -10114,7 +10132,7 @@
|
|
|
10114
10132
|
"onClick": () => {
|
|
10115
10133
|
selected(item);
|
|
10116
10134
|
}
|
|
10117
|
-
}, [item[props.textKey]]), vue.createVNode("div", {
|
|
10135
|
+
}, [slots.content ? slots.content(item) : item[props.textKey]]), vue.createVNode("div", {
|
|
10118
10136
|
"class": bem$B("item-nav"),
|
|
10119
10137
|
"onClick": () => {
|
|
10120
10138
|
toNextLevel(item, index);
|
|
@@ -10652,6 +10670,7 @@
|
|
|
10652
10670
|
const indexBarProps = {
|
|
10653
10671
|
sticky: truthProp,
|
|
10654
10672
|
zIndex: numericProp,
|
|
10673
|
+
activeAnchor: makeNumericProp(""),
|
|
10655
10674
|
teleport: [String, Object],
|
|
10656
10675
|
highlightColor: String,
|
|
10657
10676
|
stickyOffsetTop: makeNumberProp(0),
|
|
@@ -10664,14 +10683,14 @@
|
|
|
10664
10683
|
var stdin_default$Q = vue.defineComponent({
|
|
10665
10684
|
name: name$z,
|
|
10666
10685
|
props: indexBarProps,
|
|
10667
|
-
emits: ["select", "change"],
|
|
10686
|
+
emits: ["select", "change", "anchorClick", "update:activeAnchor"],
|
|
10668
10687
|
setup(props, {
|
|
10669
10688
|
emit,
|
|
10670
10689
|
slots
|
|
10671
10690
|
}) {
|
|
10672
10691
|
const root = vue.ref();
|
|
10673
10692
|
const sidebar = vue.ref();
|
|
10674
|
-
const activeAnchor =
|
|
10693
|
+
const activeAnchor = useSyncPropRef(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
|
|
10675
10694
|
const touchIndex = vue.ref("");
|
|
10676
10695
|
const touch = useTouch();
|
|
10677
10696
|
const scrollParent = useScrollParent(root);
|
|
@@ -10773,6 +10792,7 @@
|
|
|
10773
10792
|
}
|
|
10774
10793
|
});
|
|
10775
10794
|
const scrollTo = (index) => {
|
|
10795
|
+
emit("anchorClick", index);
|
|
10776
10796
|
selectActiveIndex = String(index);
|
|
10777
10797
|
const match = getMatchAnchor(selectActiveIndex);
|
|
10778
10798
|
if (match) {
|
|
@@ -14224,13 +14244,10 @@
|
|
|
14224
14244
|
};
|
|
14225
14245
|
const renderTitle = () => {
|
|
14226
14246
|
const {
|
|
14227
|
-
title
|
|
14228
|
-
theme,
|
|
14229
|
-
closeButtonText
|
|
14247
|
+
title
|
|
14230
14248
|
} = props;
|
|
14231
14249
|
const leftSlot = slots["title-left"];
|
|
14232
|
-
const
|
|
14233
|
-
const showTitle = title || showClose || leftSlot;
|
|
14250
|
+
const showTitle = title || leftSlot;
|
|
14234
14251
|
if (!showTitle) {
|
|
14235
14252
|
return;
|
|
14236
14253
|
}
|
|
@@ -14238,7 +14255,7 @@
|
|
|
14238
14255
|
"class": bem$n("header")
|
|
14239
14256
|
}, [leftSlot && vue.createVNode("span", {
|
|
14240
14257
|
"class": bem$n("title-left")
|
|
14241
|
-
}, [leftSlot()]), title && vue.createVNode("
|
|
14258
|
+
}, [leftSlot()]), title && vue.createVNode("div", {
|
|
14242
14259
|
"class": bem$n("title")
|
|
14243
14260
|
}, [title])]);
|
|
14244
14261
|
};
|
|
@@ -14293,11 +14310,8 @@
|
|
|
14293
14310
|
return () => {
|
|
14294
14311
|
const Title = renderTitle();
|
|
14295
14312
|
const {
|
|
14296
|
-
theme,
|
|
14297
|
-
closeButtonText,
|
|
14298
14313
|
title
|
|
14299
14314
|
} = props;
|
|
14300
|
-
const showClose = closeButtonText && theme === "default";
|
|
14301
14315
|
const Content = vue.createVNode(vue.Transition, {
|
|
14302
14316
|
"name": props.transition ? "zt-slide-up" : ""
|
|
14303
14317
|
}, {
|
|
@@ -14314,15 +14328,7 @@
|
|
|
14314
14328
|
"class": [bem$n("body"), title ? "" : bem$n("body-no-title")]
|
|
14315
14329
|
}, [vue.createVNode("div", {
|
|
14316
14330
|
"class": bem$n("keys")
|
|
14317
|
-
}, [renderKeys()]), renderSidebar()]),
|
|
14318
|
-
"class": bem$n("finish-button-box")
|
|
14319
|
-
}, [vue.createVNode(stdin_default$1B, {
|
|
14320
|
-
"type": "primary",
|
|
14321
|
-
"block": true,
|
|
14322
|
-
"text": closeButtonText,
|
|
14323
|
-
"class": [bem$n("finish-button"), HAPTICS_FEEDBACK],
|
|
14324
|
-
"onClick": onClose
|
|
14325
|
-
}, null)])]), [[vue.vShow, props.show]])]
|
|
14331
|
+
}, [renderKeys()]), renderSidebar()])]), [[vue.vShow, props.show]])]
|
|
14326
14332
|
});
|
|
14327
14333
|
if (props.teleport) {
|
|
14328
14334
|
return vue.createVNode(vue.Teleport, {
|
|
@@ -15733,20 +15739,6 @@
|
|
|
15733
15739
|
requires: ["popperOffsets"],
|
|
15734
15740
|
fn: offset
|
|
15735
15741
|
};
|
|
15736
|
-
const useSyncPropRef = (getProp, setProp) => {
|
|
15737
|
-
const propRef = vue.ref(getProp());
|
|
15738
|
-
vue.watch(getProp, (value) => {
|
|
15739
|
-
if (value !== propRef.value) {
|
|
15740
|
-
propRef.value = value;
|
|
15741
|
-
}
|
|
15742
|
-
});
|
|
15743
|
-
vue.watch(propRef, (value) => {
|
|
15744
|
-
if (value !== getProp()) {
|
|
15745
|
-
setProp(value);
|
|
15746
|
-
}
|
|
15747
|
-
});
|
|
15748
|
-
return propRef;
|
|
15749
|
-
};
|
|
15750
15742
|
var __async = (__this, __arguments, generator) => {
|
|
15751
15743
|
return new Promise((resolve, reject) => {
|
|
15752
15744
|
var fulfilled = (value) => {
|
|
@@ -20589,7 +20581,7 @@
|
|
|
20589
20581
|
});
|
|
20590
20582
|
}
|
|
20591
20583
|
};
|
|
20592
|
-
const version = "3.1.
|
|
20584
|
+
const version = "3.1.9";
|
|
20593
20585
|
function install(app) {
|
|
20594
20586
|
const components = [
|
|
20595
20587
|
ActionSheet,
|