jb-mobile-ui 1.5.20 → 1.5.21
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/dist/components/JbMobileCascader.vue.d.ts +2 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.es.js +31 -24
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7252,30 +7252,31 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
7252
7252
|
});
|
|
7253
7253
|
const JbMobileTabs = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-8226cdc9"]]);
|
|
7254
7254
|
const _hoisted_1$2 = { class: "jb-mobile-cascader__value ellipsis" };
|
|
7255
|
-
const _hoisted_2$1 = {
|
|
7256
|
-
const _hoisted_3$1 = {
|
|
7255
|
+
const _hoisted_2$1 = { style: { "height": "100%" } };
|
|
7256
|
+
const _hoisted_3$1 = { class: "flex-align-center" };
|
|
7257
|
+
const _hoisted_4 = {
|
|
7257
7258
|
key: 0,
|
|
7258
7259
|
class: "right-arrow-icon common-icon",
|
|
7259
7260
|
src: _imports_1,
|
|
7260
7261
|
alt: ""
|
|
7261
7262
|
};
|
|
7262
|
-
const
|
|
7263
|
-
const
|
|
7263
|
+
const _hoisted_5 = { class: "jb-mobile-cascader__tabs-title ellipsis" };
|
|
7264
|
+
const _hoisted_6 = {
|
|
7264
7265
|
key: 0,
|
|
7265
7266
|
class: "jb-mobile-cascader__search"
|
|
7266
7267
|
};
|
|
7267
|
-
const
|
|
7268
|
-
const
|
|
7269
|
-
const
|
|
7270
|
-
const
|
|
7271
|
-
const
|
|
7272
|
-
const
|
|
7268
|
+
const _hoisted_7 = { class: "jb-mobile-cascader__tabs-content" };
|
|
7269
|
+
const _hoisted_8 = ["onClick"];
|
|
7270
|
+
const _hoisted_9 = { class: "flex-align-center flex-1 ellipsis" };
|
|
7271
|
+
const _hoisted_10 = ["src", "onClick"];
|
|
7272
|
+
const _hoisted_11 = { class: "ellipsis" };
|
|
7273
|
+
const _hoisted_12 = {
|
|
7273
7274
|
key: 1,
|
|
7274
7275
|
class: "common-icon",
|
|
7275
7276
|
src: _imports_1,
|
|
7276
7277
|
alt: ""
|
|
7277
7278
|
};
|
|
7278
|
-
const
|
|
7279
|
+
const _hoisted_13 = {
|
|
7279
7280
|
key: 2,
|
|
7280
7281
|
class: "jb-mobile-cascader__empty-wrap"
|
|
7281
7282
|
};
|
|
@@ -7394,6 +7395,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7394
7395
|
* 点击确定按钮时触发,返回值为选中的最底层的选项所组成的列表
|
|
7395
7396
|
*/
|
|
7396
7397
|
"confirm",
|
|
7398
|
+
/**
|
|
7399
|
+
* 点击重置按钮时触发
|
|
7400
|
+
*/
|
|
7401
|
+
"reset",
|
|
7397
7402
|
/**
|
|
7398
7403
|
* 显示选项列表时触发
|
|
7399
7404
|
*/
|
|
@@ -7634,6 +7639,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7634
7639
|
}
|
|
7635
7640
|
selectedList.value = [];
|
|
7636
7641
|
clearSelectedValue(options.value);
|
|
7642
|
+
emits("reset");
|
|
7637
7643
|
};
|
|
7638
7644
|
return (_ctx, _cache) => {
|
|
7639
7645
|
const _component_van_tab = Tab;
|
|
@@ -7661,6 +7667,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7661
7667
|
}, null, -1))
|
|
7662
7668
|
], 6)),
|
|
7663
7669
|
createVNode(JbMobilePopup, mergeProps({
|
|
7670
|
+
class: "jb-mobile-cascader__popup",
|
|
7664
7671
|
visible: isShowPopup.value,
|
|
7665
7672
|
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => isShowPopup.value = $event)
|
|
7666
7673
|
}, unref(attrs), { title: __props.popupTitle }), {
|
|
@@ -7691,7 +7698,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7691
7698
|
}, 8, ["disabled"])
|
|
7692
7699
|
]),
|
|
7693
7700
|
default: withCtx(() => [
|
|
7694
|
-
withDirectives((openBlock(), createElementBlock("div",
|
|
7701
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
7695
7702
|
__props.isShowTabs ? (openBlock(), createBlock(JbMobileTabs, {
|
|
7696
7703
|
key: 0,
|
|
7697
7704
|
modelValue: tabValue.value,
|
|
@@ -7715,20 +7722,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7715
7722
|
title: withCtx(() => {
|
|
7716
7723
|
var _a;
|
|
7717
7724
|
return [
|
|
7718
|
-
createElementVNode("div",
|
|
7719
|
-
index !== 0 ? (openBlock(), createElementBlock("img",
|
|
7720
|
-
createElementVNode("div",
|
|
7725
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
7726
|
+
index !== 0 ? (openBlock(), createElementBlock("img", _hoisted_4)) : createCommentVNode("", true),
|
|
7727
|
+
createElementVNode("div", _hoisted_5, toDisplayString(((_a = selectedList.value[index]) == null ? void 0 : _a[fieldNames.value.label]) || "请选择"), 1)
|
|
7721
7728
|
])
|
|
7722
7729
|
];
|
|
7723
7730
|
}),
|
|
7724
7731
|
default: withCtx(() => [
|
|
7725
|
-
__props.filterable ? (openBlock(), createElementBlock("div",
|
|
7732
|
+
__props.filterable ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
7726
7733
|
createVNode(JbMobileSearchInput, {
|
|
7727
7734
|
modelValue: searchValue.value,
|
|
7728
7735
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchValue.value = $event)
|
|
7729
7736
|
}, null, 8, ["modelValue"])
|
|
7730
7737
|
])) : createCommentVNode("", true),
|
|
7731
|
-
createElementVNode("div",
|
|
7738
|
+
createElementVNode("div", _hoisted_7, [
|
|
7732
7739
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentOptions2.value, (item2) => {
|
|
7733
7740
|
var _a;
|
|
7734
7741
|
return openBlock(), createElementBlock("div", {
|
|
@@ -7736,21 +7743,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7736
7743
|
class: normalizeClass$1(["jb-mobile-cascader__tabs-content__item flex-align-center", { "jb-mobile-cascader__tabs-content__item--disabled": item2.disabled }]),
|
|
7737
7744
|
onClick: ($event) => handleClickOption(item2)
|
|
7738
7745
|
}, [
|
|
7739
|
-
createElementVNode("div",
|
|
7746
|
+
createElementVNode("div", _hoisted_9, [
|
|
7740
7747
|
createElementVNode("img", {
|
|
7741
7748
|
class: "jb-mobile-cascader__checkbox",
|
|
7742
7749
|
src: item2.disabled ? unref(checkboxIconDisabled) : isOptionIndeterminate(item2) ? unref(checkboxIconIndeterminate) : isOptionSelected(item2) ? unref(checkboxIconSelected) : unref(checkboxIcon),
|
|
7743
7750
|
alt: "",
|
|
7744
7751
|
onClick: withModifiers(($event) => handleSelectOption(item2), ["stop"])
|
|
7745
|
-
}, null, 8,
|
|
7746
|
-
createElementVNode("div",
|
|
7752
|
+
}, null, 8, _hoisted_10),
|
|
7753
|
+
createElementVNode("div", _hoisted_11, toDisplayString(item2[fieldNames.value.label]), 1)
|
|
7747
7754
|
]),
|
|
7748
7755
|
item2.disabled ? renderSlot(_ctx.$slots, "disabled-tip", {
|
|
7749
7756
|
key: 0,
|
|
7750
7757
|
data: item2
|
|
7751
7758
|
}, void 0, true) : createCommentVNode("", true),
|
|
7752
|
-
((_a = item2[fieldNames.value.child]) == null ? void 0 : _a.length) > 0 ? (openBlock(), createElementBlock("img",
|
|
7753
|
-
], 10,
|
|
7759
|
+
((_a = item2[fieldNames.value.child]) == null ? void 0 : _a.length) > 0 ? (openBlock(), createElementBlock("img", _hoisted_12)) : createCommentVNode("", true)
|
|
7760
|
+
], 10, _hoisted_8);
|
|
7754
7761
|
}), 128))
|
|
7755
7762
|
])
|
|
7756
7763
|
]),
|
|
@@ -7773,7 +7780,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7773
7780
|
},
|
|
7774
7781
|
onFinish: handleCascaderFinish
|
|
7775
7782
|
}), null, 16, ["modelValue", "options", "field-names"]))
|
|
7776
|
-
], 64)) : (openBlock(), createElementBlock("div",
|
|
7783
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
7777
7784
|
createVNode(JbMobileEmpty)
|
|
7778
7785
|
]))
|
|
7779
7786
|
])), [
|
|
@@ -7786,7 +7793,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7786
7793
|
};
|
|
7787
7794
|
}
|
|
7788
7795
|
});
|
|
7789
|
-
const JbMobileCascader = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
7796
|
+
const JbMobileCascader = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-cdebf910"]]);
|
|
7790
7797
|
const _hoisted_1$1 = { class: "jb-mobile-steps__item" };
|
|
7791
7798
|
const _hoisted_2 = {
|
|
7792
7799
|
key: 0,
|