jb-mobile-ui 1.4.18 → 1.4.20
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/index.es.js
CHANGED
|
@@ -4812,6 +4812,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4812
4812
|
beforeConfirm: {
|
|
4813
4813
|
type: Function,
|
|
4814
4814
|
default: () => true
|
|
4815
|
+
},
|
|
4816
|
+
/**
|
|
4817
|
+
* 弹出层是否需要适配底部安全区域
|
|
4818
|
+
*/
|
|
4819
|
+
safeAreaInsetBottom: {
|
|
4820
|
+
type: Boolean,
|
|
4821
|
+
default: true
|
|
4815
4822
|
}
|
|
4816
4823
|
},
|
|
4817
4824
|
emits: [
|
|
@@ -4889,14 +4896,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4889
4896
|
]))
|
|
4890
4897
|
], 2),
|
|
4891
4898
|
createElementVNode("div", {
|
|
4892
|
-
class: normalizeClass$1(["jb-mobile-popup__content", { "safe-area-inset-bottom": !__props.confirmButton && unref(checkHasSafeAreaInsetBottom)() }]),
|
|
4899
|
+
class: normalizeClass$1(["jb-mobile-popup__content", { "safe-area-inset-bottom": __props.safeAreaInsetBottom && !__props.confirmButton && unref(checkHasSafeAreaInsetBottom)() }]),
|
|
4893
4900
|
style: normalizeStyle$1({ height: contentHeightComputed.value })
|
|
4894
4901
|
}, [
|
|
4895
4902
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4896
4903
|
], 6),
|
|
4897
4904
|
unref(slots).footButton || __props.confirmButton ? (openBlock(), createElementBlock("div", {
|
|
4898
4905
|
key: 0,
|
|
4899
|
-
class: normalizeClass$1(["jb-mobile-popup__bottom", { "safe-area-inset-bottom": unref(checkHasSafeAreaInsetBottom)() }])
|
|
4906
|
+
class: normalizeClass$1(["jb-mobile-popup__bottom", { "safe-area-inset-bottom": __props.safeAreaInsetBottom && unref(checkHasSafeAreaInsetBottom)() }])
|
|
4900
4907
|
}, [
|
|
4901
4908
|
unref(slots).footButton ? renderSlot(_ctx.$slots, "footButton", { key: 0 }, void 0, true) : (openBlock(), createBlock(JbMobileButton, {
|
|
4902
4909
|
key: 1,
|
|
@@ -4918,7 +4925,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4918
4925
|
};
|
|
4919
4926
|
}
|
|
4920
4927
|
});
|
|
4921
|
-
const JbMobilePopup = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
4928
|
+
const JbMobilePopup = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-1f576f62"]]);
|
|
4922
4929
|
const _hoisted_1$6 = {
|
|
4923
4930
|
key: 0,
|
|
4924
4931
|
class: "jb-mobile-date-picker"
|
|
@@ -4927,7 +4934,7 @@ const _hoisted_2$5 = { class: "jb-mobile-date-picker__value" };
|
|
|
4927
4934
|
const _hoisted_3$4 = ["src"];
|
|
4928
4935
|
const _hoisted_4$4 = { class: "jb-mobile-date-picker__date-text" };
|
|
4929
4936
|
const _hoisted_5$3 = ["src"];
|
|
4930
|
-
const _hoisted_6$
|
|
4937
|
+
const _hoisted_6$3 = { class: "jb-mobile-time-picker__calendar__inner" };
|
|
4931
4938
|
const _hoisted_7$2 = { class: "jb-mobile-time-picker__group-wrap" };
|
|
4932
4939
|
const _hoisted_8$2 = {
|
|
4933
4940
|
key: 0,
|
|
@@ -5427,7 +5434,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5427
5434
|
handleFinishSelectDate(
|
|
5428
5435
|
dayjs(endTime).subtract(1, timeKey.value).toDate()
|
|
5429
5436
|
);
|
|
5430
|
-
selectedTimeValue.value = dayjs(endTime).format("YYYY-MM-DD");
|
|
5437
|
+
selectedTimeValue.value = dayjs(props.timePickerType === "examine" ? endTime : startTime).format("YYYY-MM-DD");
|
|
5431
5438
|
handleConfirm();
|
|
5432
5439
|
};
|
|
5433
5440
|
const toNextDate = () => {
|
|
@@ -5435,7 +5442,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5435
5442
|
handleFinishSelectDate(
|
|
5436
5443
|
dayjs(endTime).add(1, timeKey.value).toDate()
|
|
5437
5444
|
);
|
|
5438
|
-
selectedTimeValue.value = dayjs(endTime).format("YYYY-MM-DD");
|
|
5445
|
+
selectedTimeValue.value = dayjs(props.timePickerType === "examine" ? endTime : startTime).format("YYYY-MM-DD");
|
|
5439
5446
|
handleConfirm();
|
|
5440
5447
|
});
|
|
5441
5448
|
};
|
|
@@ -5601,7 +5608,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5601
5608
|
onConfirm: handleFinishSelectDate
|
|
5602
5609
|
}, {
|
|
5603
5610
|
text: withCtx(({ text }) => [
|
|
5604
|
-
createElementVNode("div", _hoisted_6$
|
|
5611
|
+
createElementVNode("div", _hoisted_6$3, toDisplayString(text), 1)
|
|
5605
5612
|
]),
|
|
5606
5613
|
_: 1
|
|
5607
5614
|
}, 8, ["type", "min-date", "max-date", "default-date"]), [
|
|
@@ -5639,7 +5646,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
5639
5646
|
};
|
|
5640
5647
|
}
|
|
5641
5648
|
});
|
|
5642
|
-
const JbMobileTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
5649
|
+
const JbMobileTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-4902b537"]]);
|
|
5643
5650
|
const _hoisted_1$5 = { class: "jb-mobile-date-picker" };
|
|
5644
5651
|
const _hoisted_2$4 = { class: "jb-mobile-date-picker__value" };
|
|
5645
5652
|
const _hoisted_3$3 = ["src"];
|
|
@@ -6006,11 +6013,15 @@ const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYA
|
|
|
6006
6013
|
const _hoisted_1$2 = { class: "jb-mobile-select__value" };
|
|
6007
6014
|
const _hoisted_2$2 = { class: "jb-mobile-select__content flex-column" };
|
|
6008
6015
|
const _hoisted_3$2 = {
|
|
6016
|
+
key: 0,
|
|
6017
|
+
class: "jb-mobile-select__search-input"
|
|
6018
|
+
};
|
|
6019
|
+
const _hoisted_4$2 = {
|
|
6009
6020
|
key: 1,
|
|
6010
|
-
class: "jb-mobile-select__option-list
|
|
6021
|
+
class: "jb-mobile-select__option-list"
|
|
6011
6022
|
};
|
|
6012
|
-
const
|
|
6013
|
-
const
|
|
6023
|
+
const _hoisted_5$2 = ["onClick"];
|
|
6024
|
+
const _hoisted_6$2 = {
|
|
6014
6025
|
key: 2,
|
|
6015
6026
|
class: "jb-mobile-select__empty-wrap"
|
|
6016
6027
|
};
|
|
@@ -6171,23 +6182,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6171
6182
|
}), {
|
|
6172
6183
|
default: withCtx(() => [
|
|
6173
6184
|
createElementVNode("div", _hoisted_2$2, [
|
|
6174
|
-
__props.showSearch ? (openBlock(),
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
placeholder
|
|
6181
|
-
|
|
6182
|
-
options.value.length ? (openBlock(), createElementBlock("div",
|
|
6185
|
+
__props.showSearch ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
6186
|
+
createVNode(JbMobileSearchInput, {
|
|
6187
|
+
modelValue: searchValue.value,
|
|
6188
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchValue.value = $event),
|
|
6189
|
+
"grey-bg": false,
|
|
6190
|
+
placeholder: __props.searchPlaceholder
|
|
6191
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
6192
|
+
])) : createCommentVNode("", true),
|
|
6193
|
+
options.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
6183
6194
|
(openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item) => {
|
|
6184
6195
|
return openBlock(), createElementBlock("div", {
|
|
6185
6196
|
class: normalizeClass$1(["jb-mobile-select__option-item", [`type-${__props.selectedType}`, { selected: item[fieldNames.value.value] === modelValue.value }]]),
|
|
6186
6197
|
key: item[fieldNames.value.value],
|
|
6187
6198
|
onClick: ($event) => handleSelectOptionItem(item)
|
|
6188
|
-
}, toDisplayString(item[fieldNames.value.label]), 11,
|
|
6199
|
+
}, toDisplayString(item[fieldNames.value.label]), 11, _hoisted_5$2);
|
|
6189
6200
|
}), 128))
|
|
6190
|
-
])) : (openBlock(), createElementBlock("div",
|
|
6201
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
6191
6202
|
createVNode(JbMobileEmpty)
|
|
6192
6203
|
]))
|
|
6193
6204
|
])
|
|
@@ -6198,7 +6209,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6198
6209
|
};
|
|
6199
6210
|
}
|
|
6200
6211
|
});
|
|
6201
|
-
const JbMobileSelect = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
6212
|
+
const JbMobileSelect = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-85c75528"]]);
|
|
6202
6213
|
const _imports_0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e图标(24)/巡检%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='我的服务备份-14'%20transform='translate(-339,%20-371)'%20fill='%237B52FE'%20fill-rule='nonzero'%3e%3cg%20id='编组-28'%20transform='translate(0,%20134)'%3e%3cg%20id='编组-28备份'%20transform='translate(0,%2051)'%3e%3cg%20id='编组-32备份-4'%20transform='translate(0,%20176)'%3e%3cg%20id='编组-27'%20transform='translate(132,%200)'%3e%3cg%20id='编组'%20transform='translate(211.3571,%2016)'%3e%3cpath%20d='M0.127476811,5.43301045%20L5.51144105,11.8129903%20C5.70234462,12.0384575%206.03582177,12.0632342%206.25572336,11.8699765%20C6.27022237,11.8575882%206.28472138,11.8427223%206.29680387,11.8278563%20L16.146462,0.901366518%20C16.3325325,0.695720566%2016.3325325,0.37610216%2016.1440455,0.170456209%20C15.9555584,-0.0351897433%2015.6438297,-0.0574886986%2015.4287612,0.118425301%20L6.19289432,7.77687878%20C6.01407325,7.92553851%205.76275714,7.93792683%205.57185357,7.80908838%20L0.813763084,4.63520326%20C0.593861494,4.4890212%200.303881373,4.52866379%200.12989331,4.72935442%20C-0.0416782539,4.93004505%20-0.0440947695,5.22984216%200.127476811,5.43301045%20Z'%20id='路径'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
6203
6214
|
const _hoisted_1$1 = { class: "jb-mobile-tree-select-popup__search" };
|
|
6204
6215
|
const _hoisted_2$1 = { class: "jb-mobile-tree-select-popup__list" };
|