@fecp/mobile 1.0.4 → 1.0.6
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/node_modules/.pnpm/@vue_shared@3.5.13/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +0 -2
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/back-top/BackTop.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/collapse/Collapse.mjs +0 -14
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/collapse-item/CollapseItem.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/composables/use-id.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/date-picker/DatePicker.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dropdown-item/DropdownItem.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/grid-item/GridItem.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/index-anchor/IndexAnchor.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/sidebar-item/SidebarItem.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/step/Step.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-item/SwipeItem.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/tab/Tab.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/tabbar-item/TabbarItem.mjs +0 -3
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/time-picker/TimePicker.mjs +0 -3
- package/es/packages/mobile/index.mjs +2 -2
- package/es/packages/mobile/src/components/all.mjs +2 -0
- package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +106 -0
- package/es/packages/mobile/src/components/form/fieldPicker/index.mjs +10 -0
- package/lib/node_modules/.pnpm/@vue_shared@3.5.13/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -2
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/back-top/BackTop.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/collapse/Collapse.js +0 -14
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/collapse-item/CollapseItem.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/composables/use-id.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/date-picker/DatePicker.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dropdown-item/DropdownItem.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/grid-item/GridItem.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/index-anchor/IndexAnchor.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/sidebar-item/SidebarItem.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/step/Step.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-item/SwipeItem.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/tab/Tab.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/tabbar-item/TabbarItem.js +0 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/time-picker/TimePicker.js +0 -3
- package/lib/packages/mobile/index.js +58 -58
- package/lib/packages/mobile/src/components/all.js +48 -46
- package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +106 -0
- package/lib/packages/mobile/src/components/form/fieldPicker/index.js +10 -0
- package/package.json +1 -1
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
7
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
8
6
|
const isArray = Array.isArray;
|
|
9
7
|
const isString = (val) => typeof val === "string";
|
|
10
8
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
@@ -58,9 +58,6 @@ var stdin_default = defineComponent({
|
|
|
58
58
|
if (el) {
|
|
59
59
|
return el;
|
|
60
60
|
}
|
|
61
|
-
if (process.env.NODE_ENV !== "production") {
|
|
62
|
-
console.error(`[Vant] BackTop: target element "${target}" was not found, the BackTop component will not be rendered.`);
|
|
63
|
-
}
|
|
64
61
|
} else {
|
|
65
62
|
return target;
|
|
66
63
|
}
|
|
@@ -14,17 +14,6 @@ const collapseProps = {
|
|
|
14
14
|
default: ""
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
function validateModelValue(modelValue, accordion) {
|
|
18
|
-
if (accordion && Array.isArray(modelValue)) {
|
|
19
|
-
console.error('[Vant] Collapse: "v-model" should not be Array in accordion mode');
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
if (!accordion && !Array.isArray(modelValue)) {
|
|
23
|
-
console.error('[Vant] Collapse: "v-model" should be Array in non-accordion mode');
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
17
|
var stdin_default = defineComponent({
|
|
29
18
|
name,
|
|
30
19
|
props: collapseProps,
|
|
@@ -81,9 +70,6 @@ var stdin_default = defineComponent({
|
|
|
81
70
|
accordion,
|
|
82
71
|
modelValue
|
|
83
72
|
} = props;
|
|
84
|
-
if (process.env.NODE_ENV !== "production" && !validateModelValue(modelValue, accordion)) {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
73
|
return accordion ? modelValue === name2 : modelValue.includes(name2);
|
|
88
74
|
};
|
|
89
75
|
useExpose({
|
|
@@ -30,9 +30,6 @@ var stdin_default = defineComponent({
|
|
|
30
30
|
index
|
|
31
31
|
} = useParent(COLLAPSE_KEY);
|
|
32
32
|
if (!parent) {
|
|
33
|
-
if (process.env.NODE_ENV !== "production") {
|
|
34
|
-
console.error("[Vant] <CollapseItem> must be a child component of <Collapse>.");
|
|
35
|
-
}
|
|
36
33
|
return;
|
|
37
34
|
}
|
|
38
35
|
const name2 = computed(() => {
|
|
@@ -40,9 +40,6 @@ var stdin_default = defineComponent({
|
|
|
40
40
|
index
|
|
41
41
|
} = useParent(DROPDOWN_KEY);
|
|
42
42
|
if (!parent) {
|
|
43
|
-
if (process.env.NODE_ENV !== "production") {
|
|
44
|
-
console.error("[Vant] <DropdownItem> must be a child component of <DropdownMenu>.");
|
|
45
|
-
}
|
|
46
43
|
return;
|
|
47
44
|
}
|
|
48
45
|
const getEmitter = (name2) => () => emit(name2);
|
|
@@ -31,9 +31,6 @@ var stdin_default = defineComponent({
|
|
|
31
31
|
} = useParent(GRID_KEY);
|
|
32
32
|
const route = useRoute();
|
|
33
33
|
if (!parent) {
|
|
34
|
-
if (process.env.NODE_ENV !== "production") {
|
|
35
|
-
console.error("[Vant] <GridItem> must be a child component of <Grid>.");
|
|
36
|
-
}
|
|
37
34
|
return;
|
|
38
35
|
}
|
|
39
36
|
const rootStyle = computed(() => {
|
|
@@ -33,9 +33,6 @@ var stdin_default = defineComponent({
|
|
|
33
33
|
parent
|
|
34
34
|
} = useParent(INDEX_BAR_KEY);
|
|
35
35
|
if (!parent) {
|
|
36
|
-
if (process.env.NODE_ENV !== "production") {
|
|
37
|
-
console.error("[Vant] <IndexAnchor> must be a child component of <IndexBar>.");
|
|
38
|
-
}
|
|
39
36
|
return;
|
|
40
37
|
}
|
|
41
38
|
const isSticky = () => state.active && parent.props.sticky;
|
|
@@ -28,9 +28,6 @@ var stdin_default = defineComponent({
|
|
|
28
28
|
index
|
|
29
29
|
} = useParent(SIDEBAR_KEY);
|
|
30
30
|
if (!parent) {
|
|
31
|
-
if (process.env.NODE_ENV !== "production") {
|
|
32
|
-
console.error("[Vant] <SidebarItem> must be a child component of <Sidebar>.");
|
|
33
|
-
}
|
|
34
31
|
return;
|
|
35
32
|
}
|
|
36
33
|
const onClick = () => {
|
|
@@ -15,9 +15,6 @@ var stdin_default = defineComponent({
|
|
|
15
15
|
index
|
|
16
16
|
} = useParent(STEPS_KEY);
|
|
17
17
|
if (!parent) {
|
|
18
|
-
if (process.env.NODE_ENV !== "production") {
|
|
19
|
-
console.error("[Vant] <Step> must be a child component of <Steps>.");
|
|
20
|
-
}
|
|
21
18
|
return;
|
|
22
19
|
}
|
|
23
20
|
const parentProps = parent.props;
|
|
@@ -20,9 +20,6 @@ var stdin_default = defineComponent({
|
|
|
20
20
|
index
|
|
21
21
|
} = useParent(SWIPE_KEY);
|
|
22
22
|
if (!parent) {
|
|
23
|
-
if (process.env.NODE_ENV !== "production") {
|
|
24
|
-
console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");
|
|
25
|
-
}
|
|
26
23
|
return;
|
|
27
24
|
}
|
|
28
25
|
const style = computed(() => {
|
|
@@ -36,9 +36,6 @@ var stdin_default = defineComponent({
|
|
|
36
36
|
index
|
|
37
37
|
} = useParent(TABS_KEY);
|
|
38
38
|
if (!parent) {
|
|
39
|
-
if (process.env.NODE_ENV !== "production") {
|
|
40
|
-
console.error("[Vant] <Tab> must be a child component of <Tabs>.");
|
|
41
|
-
}
|
|
42
39
|
return;
|
|
43
40
|
}
|
|
44
41
|
const getName = () => {
|
|
@@ -31,9 +31,6 @@ var stdin_default = defineComponent({
|
|
|
31
31
|
index
|
|
32
32
|
} = useParent(TABBAR_KEY);
|
|
33
33
|
if (!parent) {
|
|
34
|
-
if (process.env.NODE_ENV !== "production") {
|
|
35
|
-
console.error("[Vant] <TabbarItem> must be a child component of <Tabbar>.");
|
|
36
|
-
}
|
|
37
34
|
return;
|
|
38
35
|
}
|
|
39
36
|
const active = computed(() => {
|
|
@@ -96,9 +96,6 @@ var stdin_default = defineComponent({
|
|
|
96
96
|
case "second":
|
|
97
97
|
return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
|
|
98
98
|
default:
|
|
99
|
-
if (process.env.NODE_ENV !== "production") {
|
|
100
|
-
throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
|
|
101
|
-
}
|
|
102
99
|
return [];
|
|
103
100
|
}
|
|
104
101
|
});
|
|
@@ -29,6 +29,7 @@ import { MobileCheckbox } from "./src/components/form/checkbox/index.mjs";
|
|
|
29
29
|
import { MobileCheckboxGroup } from "./src/components/form/checkboxGroup/index.mjs";
|
|
30
30
|
import { MobileDatePicker } from "./src/components/form/datePicker/index.mjs";
|
|
31
31
|
import { MobileField } from "./src/components/form/field/index.mjs";
|
|
32
|
+
import { MobileFieldPicker } from "./src/components/form/fieldPicker/index.mjs";
|
|
32
33
|
import { MobileForm } from "./src/components/form/form/index.mjs";
|
|
33
34
|
import { MobilePicker } from "./src/components/form/picker/index.mjs";
|
|
34
35
|
import { MobilePickerGroup } from "./src/components/form/pickerGroup/index.mjs";
|
|
@@ -53,7 +54,6 @@ import { MobileTabbar } from "./src/components/navigation/tabbar/index.mjs";
|
|
|
53
54
|
import { MobileTabbarItem } from "./src/components/navigation/tabbarItem/index.mjs";
|
|
54
55
|
import { MobileTreeSelect } from "./src/components/navigation/treeSelect/index.mjs";
|
|
55
56
|
import { closeDialog, showConfirmDialog, showDialog } from "../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.mjs";
|
|
56
|
-
import { showImagePreview } from "../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/image-preview/function-call.mjs";
|
|
57
57
|
import { closeNotify, showNotify } from "../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/notify/function-call.mjs";
|
|
58
58
|
import { allowMultipleToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, showToast } from "../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/toast/function-call.mjs";
|
|
59
59
|
const index = {
|
|
@@ -82,6 +82,7 @@ export {
|
|
|
82
82
|
MobileDropdownMenu,
|
|
83
83
|
MobileEmpty,
|
|
84
84
|
MobileField,
|
|
85
|
+
MobileFieldPicker,
|
|
85
86
|
MobileFloatingBubble,
|
|
86
87
|
MobileFloatingPanel,
|
|
87
88
|
MobileForm,
|
|
@@ -125,7 +126,6 @@ export {
|
|
|
125
126
|
showConfirmDialog,
|
|
126
127
|
showDialog,
|
|
127
128
|
showFailToast,
|
|
128
|
-
showImagePreview,
|
|
129
129
|
showLoadingToast,
|
|
130
130
|
showNotify,
|
|
131
131
|
showSuccessToast,
|
|
@@ -28,6 +28,7 @@ import { MobileCheckbox } from "./form/checkbox/index.mjs";
|
|
|
28
28
|
import { MobileCheckboxGroup } from "./form/checkboxGroup/index.mjs";
|
|
29
29
|
import { MobileDatePicker } from "./form/datePicker/index.mjs";
|
|
30
30
|
import { MobileField } from "./form/field/index.mjs";
|
|
31
|
+
import { MobileFieldPicker } from "./form/fieldPicker/index.mjs";
|
|
31
32
|
import { MobileForm } from "./form/form/index.mjs";
|
|
32
33
|
import { MobilePicker } from "./form/picker/index.mjs";
|
|
33
34
|
import { MobilePickerGroup } from "./form/pickerGroup/index.mjs";
|
|
@@ -70,6 +71,7 @@ export {
|
|
|
70
71
|
MobileDropdownMenu,
|
|
71
72
|
MobileEmpty,
|
|
72
73
|
MobileField,
|
|
74
|
+
MobileFieldPicker,
|
|
73
75
|
MobileFloatingBubble,
|
|
74
76
|
MobileFloatingPanel,
|
|
75
77
|
MobileForm,
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
import { computed, ref, createElementBlock, openBlock, Fragment, createVNode, mergeProps, unref, isRef, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
17
|
+
import { Picker } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/picker/index.mjs";
|
|
18
|
+
import { Field } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.mjs";
|
|
19
|
+
import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.mjs";
|
|
20
|
+
const _sfc_main = {
|
|
21
|
+
__name: "FieldPicker",
|
|
22
|
+
props: {
|
|
23
|
+
columns: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: []
|
|
26
|
+
},
|
|
27
|
+
columnsFieldNames: {
|
|
28
|
+
type: Object,
|
|
29
|
+
default: {
|
|
30
|
+
text: "text",
|
|
31
|
+
value: "value"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:modelValue", "update:pickerValue", "submit"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
const emit = __emit;
|
|
43
|
+
const fieldValue = computed({
|
|
44
|
+
get: () => {
|
|
45
|
+
let value = props.modelValue;
|
|
46
|
+
return value;
|
|
47
|
+
},
|
|
48
|
+
set: (val) => {
|
|
49
|
+
emit("update:modelValue", val);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const pickerValue = ref([]);
|
|
53
|
+
const showPicker = ref(false);
|
|
54
|
+
const onConfirm = ({ selectedValues, selectedOptions }) => {
|
|
55
|
+
var _a;
|
|
56
|
+
fieldValue.value = (_a = selectedOptions[0]) == null ? void 0 : _a.text;
|
|
57
|
+
pickerValue.value = selectedValues;
|
|
58
|
+
showPicker.value = false;
|
|
59
|
+
};
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
const _component_van_field = Field;
|
|
62
|
+
const _component_van_picker = Picker;
|
|
63
|
+
const _component_van_popup = Popup;
|
|
64
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
65
|
+
createVNode(_component_van_field, mergeProps({
|
|
66
|
+
modelValue: unref(fieldValue),
|
|
67
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(fieldValue) ? fieldValue.value = $event : null),
|
|
68
|
+
"is-link": "",
|
|
69
|
+
readonly: "",
|
|
70
|
+
name: "picker"
|
|
71
|
+
}, _ctx.$attrs, {
|
|
72
|
+
onClick: _cache[1] || (_cache[1] = ($event) => showPicker.value = true)
|
|
73
|
+
}), createSlots({ _: 2 }, [
|
|
74
|
+
renderList(_ctx.$slots, (item, key) => {
|
|
75
|
+
return {
|
|
76
|
+
name: key,
|
|
77
|
+
fn: withCtx(() => [
|
|
78
|
+
renderSlot(_ctx.$slots, key)
|
|
79
|
+
])
|
|
80
|
+
};
|
|
81
|
+
})
|
|
82
|
+
]), 1040, ["modelValue"]),
|
|
83
|
+
createVNode(_component_van_popup, {
|
|
84
|
+
show: unref(showPicker),
|
|
85
|
+
"onUpdate:show": _cache[3] || (_cache[3] = ($event) => isRef(showPicker) ? showPicker.value = $event : null),
|
|
86
|
+
"destroy-on-close": "",
|
|
87
|
+
position: "bottom"
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(() => [
|
|
90
|
+
createVNode(_component_van_picker, {
|
|
91
|
+
columns: __props.columns,
|
|
92
|
+
"columns-field-names": __props.columnsFieldNames,
|
|
93
|
+
"model-value": unref(pickerValue),
|
|
94
|
+
onConfirm,
|
|
95
|
+
onCancel: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
|
|
96
|
+
}, null, 8, ["columns", "columns-field-names", "model-value"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["show"])
|
|
100
|
+
], 64);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
_sfc_main as default
|
|
106
|
+
};
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
5
5
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
6
|
* @license MIT
|
|
7
7
|
**/
|
|
8
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
9
|
-
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
10
8
|
const isArray = Array.isArray;
|
|
11
9
|
const isString = (val) => typeof val === "string";
|
|
12
10
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
@@ -60,9 +60,6 @@ var stdin_default = vue.defineComponent({
|
|
|
60
60
|
if (el) {
|
|
61
61
|
return el;
|
|
62
62
|
}
|
|
63
|
-
if (process.env.NODE_ENV !== "production") {
|
|
64
|
-
console.error(`[Vant] BackTop: target element "${target}" was not found, the BackTop component will not be rendered.`);
|
|
65
|
-
}
|
|
66
63
|
} else {
|
|
67
64
|
return target;
|
|
68
65
|
}
|
|
@@ -16,17 +16,6 @@ const collapseProps = {
|
|
|
16
16
|
default: ""
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
function validateModelValue(modelValue, accordion) {
|
|
20
|
-
if (accordion && Array.isArray(modelValue)) {
|
|
21
|
-
console.error('[Vant] Collapse: "v-model" should not be Array in accordion mode');
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
if (!accordion && !Array.isArray(modelValue)) {
|
|
25
|
-
console.error('[Vant] Collapse: "v-model" should be Array in non-accordion mode');
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
19
|
var stdin_default = vue.defineComponent({
|
|
31
20
|
name,
|
|
32
21
|
props: collapseProps,
|
|
@@ -83,9 +72,6 @@ var stdin_default = vue.defineComponent({
|
|
|
83
72
|
accordion,
|
|
84
73
|
modelValue
|
|
85
74
|
} = props2;
|
|
86
|
-
if (process.env.NODE_ENV !== "production" && !validateModelValue(modelValue, accordion)) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
75
|
return accordion ? modelValue === name2 : modelValue.includes(name2);
|
|
90
76
|
};
|
|
91
77
|
useExpose.useExpose({
|
|
@@ -32,9 +32,6 @@ var stdin_default = vue.defineComponent({
|
|
|
32
32
|
index: index$1
|
|
33
33
|
} = index_esm.useParent(Collapse.COLLAPSE_KEY);
|
|
34
34
|
if (!parent) {
|
|
35
|
-
if (process.env.NODE_ENV !== "production") {
|
|
36
|
-
console.error("[Vant] <CollapseItem> must be a child component of <Collapse>.");
|
|
37
|
-
}
|
|
38
35
|
return;
|
|
39
36
|
}
|
|
40
37
|
const name2 = vue.computed(() => {
|
|
@@ -5,9 +5,6 @@ let current = 0;
|
|
|
5
5
|
function useId() {
|
|
6
6
|
const vm = vue.getCurrentInstance();
|
|
7
7
|
const { name = "unknown" } = (vm == null ? void 0 : vm.type) || {};
|
|
8
|
-
if (process.env.NODE_ENV === "test") {
|
|
9
|
-
return name;
|
|
10
|
-
}
|
|
11
8
|
return `${name}-${++current}`;
|
|
12
9
|
}
|
|
13
10
|
exports.useId = useId;
|
|
@@ -42,9 +42,6 @@ var stdin_default = vue.defineComponent({
|
|
|
42
42
|
index: index$3
|
|
43
43
|
} = index_esm.useParent(DropdownMenu.DROPDOWN_KEY);
|
|
44
44
|
if (!parent) {
|
|
45
|
-
if (process.env.NODE_ENV !== "production") {
|
|
46
|
-
console.error("[Vant] <DropdownItem> must be a child component of <DropdownMenu>.");
|
|
47
|
-
}
|
|
48
45
|
return;
|
|
49
46
|
}
|
|
50
47
|
const getEmitter = (name2) => () => emit(name2);
|
|
@@ -33,9 +33,6 @@ var stdin_default = vue.defineComponent({
|
|
|
33
33
|
} = index_esm.useParent(Grid.GRID_KEY);
|
|
34
34
|
const route = useRoute.useRoute();
|
|
35
35
|
if (!parent) {
|
|
36
|
-
if (process.env.NODE_ENV !== "production") {
|
|
37
|
-
console.error("[Vant] <GridItem> must be a child component of <Grid>.");
|
|
38
|
-
}
|
|
39
36
|
return;
|
|
40
37
|
}
|
|
41
38
|
const rootStyle = vue.computed(() => {
|
|
@@ -35,9 +35,6 @@ var stdin_default = vue.defineComponent({
|
|
|
35
35
|
parent
|
|
36
36
|
} = index_esm.useParent(IndexBar.INDEX_BAR_KEY);
|
|
37
37
|
if (!parent) {
|
|
38
|
-
if (process.env.NODE_ENV !== "production") {
|
|
39
|
-
console.error("[Vant] <IndexAnchor> must be a child component of <IndexBar>.");
|
|
40
|
-
}
|
|
41
38
|
return;
|
|
42
39
|
}
|
|
43
40
|
const isSticky = () => state.active && parent.props.sticky;
|
|
@@ -30,9 +30,6 @@ var stdin_default = vue.defineComponent({
|
|
|
30
30
|
index: index$1
|
|
31
31
|
} = index_esm.useParent(Sidebar.SIDEBAR_KEY);
|
|
32
32
|
if (!parent) {
|
|
33
|
-
if (process.env.NODE_ENV !== "production") {
|
|
34
|
-
console.error("[Vant] <SidebarItem> must be a child component of <Sidebar>.");
|
|
35
|
-
}
|
|
36
33
|
return;
|
|
37
34
|
}
|
|
38
35
|
const onClick = () => {
|
|
@@ -17,9 +17,6 @@ var stdin_default = vue.defineComponent({
|
|
|
17
17
|
index: index$1
|
|
18
18
|
} = index_esm.useParent(Steps.STEPS_KEY);
|
|
19
19
|
if (!parent) {
|
|
20
|
-
if (process.env.NODE_ENV !== "production") {
|
|
21
|
-
console.error("[Vant] <Step> must be a child component of <Steps>.");
|
|
22
|
-
}
|
|
23
20
|
return;
|
|
24
21
|
}
|
|
25
22
|
const parentProps = parent.props;
|
|
@@ -22,9 +22,6 @@ var stdin_default = vue.defineComponent({
|
|
|
22
22
|
index
|
|
23
23
|
} = index_esm.useParent(Swipe.SWIPE_KEY);
|
|
24
24
|
if (!parent) {
|
|
25
|
-
if (process.env.NODE_ENV !== "production") {
|
|
26
|
-
console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");
|
|
27
|
-
}
|
|
28
25
|
return;
|
|
29
26
|
}
|
|
30
27
|
const style = vue.computed(() => {
|
|
@@ -38,9 +38,6 @@ var stdin_default = vue.defineComponent({
|
|
|
38
38
|
index: index$1
|
|
39
39
|
} = index_esm.useParent(Tabs.TABS_KEY);
|
|
40
40
|
if (!parent) {
|
|
41
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42
|
-
console.error("[Vant] <Tab> must be a child component of <Tabs>.");
|
|
43
|
-
}
|
|
44
41
|
return;
|
|
45
42
|
}
|
|
46
43
|
const getName = () => {
|
|
@@ -33,9 +33,6 @@ var stdin_default = vue.defineComponent({
|
|
|
33
33
|
index: index$2
|
|
34
34
|
} = index_esm.useParent(Tabbar.TABBAR_KEY);
|
|
35
35
|
if (!parent) {
|
|
36
|
-
if (process.env.NODE_ENV !== "production") {
|
|
37
|
-
console.error("[Vant] <TabbarItem> must be a child component of <Tabbar>.");
|
|
38
|
-
}
|
|
39
36
|
return;
|
|
40
37
|
}
|
|
41
38
|
const active = vue.computed(() => {
|
|
@@ -98,9 +98,6 @@ var stdin_default = vue.defineComponent({
|
|
|
98
98
|
case "second":
|
|
99
99
|
return utils.genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
|
|
100
100
|
default:
|
|
101
|
-
if (process.env.NODE_ENV !== "production") {
|
|
102
|
-
throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
|
|
103
|
-
}
|
|
104
101
|
return [];
|
|
105
102
|
}
|
|
106
103
|
});
|
|
@@ -31,33 +31,33 @@ const index$r = require("./src/components/form/checkbox/index.js");
|
|
|
31
31
|
const index$s = require("./src/components/form/checkboxGroup/index.js");
|
|
32
32
|
const index$t = require("./src/components/form/datePicker/index.js");
|
|
33
33
|
const index$u = require("./src/components/form/field/index.js");
|
|
34
|
-
const index$v = require("./src/components/form/
|
|
35
|
-
const index$w = require("./src/components/form/
|
|
36
|
-
const index$x = require("./src/components/form/
|
|
37
|
-
const index$y = require("./src/components/form/
|
|
38
|
-
const index$z = require("./src/components/form/
|
|
39
|
-
const index$A = require("./src/components/form/
|
|
40
|
-
const index$B = require("./src/components/form/
|
|
41
|
-
const index$C = require("./src/components/form/
|
|
42
|
-
const index$D = require("./src/components/
|
|
43
|
-
const index$E = require("./src/components/navigation/
|
|
44
|
-
const index$F = require("./src/components/navigation/
|
|
45
|
-
const index$G = require("./src/components/navigation/
|
|
46
|
-
const index$H = require("./src/components/navigation/
|
|
47
|
-
const index$I = require("./src/components/navigation/
|
|
48
|
-
const index$J = require("./src/components/navigation/
|
|
49
|
-
const index$K = require("./src/components/navigation/
|
|
50
|
-
const index$L = require("./src/components/navigation/
|
|
51
|
-
const index$M = require("./src/components/navigation/
|
|
52
|
-
const index$N = require("./src/components/navigation/
|
|
53
|
-
const index$O = require("./src/components/navigation/
|
|
54
|
-
const index$P = require("./src/components/navigation/
|
|
55
|
-
const index$Q = require("./src/components/navigation/
|
|
56
|
-
const index$R = require("./src/components/navigation/
|
|
34
|
+
const index$v = require("./src/components/form/fieldPicker/index.js");
|
|
35
|
+
const index$w = require("./src/components/form/form/index.js");
|
|
36
|
+
const index$x = require("./src/components/form/picker/index.js");
|
|
37
|
+
const index$y = require("./src/components/form/pickerGroup/index.js");
|
|
38
|
+
const index$z = require("./src/components/form/radio/index.js");
|
|
39
|
+
const index$A = require("./src/components/form/radioGroup/index.js");
|
|
40
|
+
const index$B = require("./src/components/form/search/index.js");
|
|
41
|
+
const index$C = require("./src/components/form/timePicker/index.js");
|
|
42
|
+
const index$D = require("./src/components/form/uploader/index.js");
|
|
43
|
+
const index$E = require("./src/components/navigation/actionBar/index.js");
|
|
44
|
+
const index$F = require("./src/components/navigation/backTop/index.js");
|
|
45
|
+
const index$G = require("./src/components/navigation/grid/index.js");
|
|
46
|
+
const index$H = require("./src/components/navigation/gridItem/index.js");
|
|
47
|
+
const index$I = require("./src/components/navigation/indexBar/index.js");
|
|
48
|
+
const index$J = require("./src/components/navigation/indexAnchor/index.js");
|
|
49
|
+
const index$K = require("./src/components/navigation/navBar/index.js");
|
|
50
|
+
const index$L = require("./src/components/navigation/pagination/index.js");
|
|
51
|
+
const index$M = require("./src/components/navigation/sidebar/index.js");
|
|
52
|
+
const index$N = require("./src/components/navigation/sidebarItem/index.js");
|
|
53
|
+
const index$O = require("./src/components/navigation/tab/index.js");
|
|
54
|
+
const index$P = require("./src/components/navigation/tabs/index.js");
|
|
55
|
+
const index$Q = require("./src/components/navigation/tabbar/index.js");
|
|
56
|
+
const index$R = require("./src/components/navigation/tabbarItem/index.js");
|
|
57
|
+
const index$S = require("./src/components/navigation/treeSelect/index.js");
|
|
57
58
|
const functionCall = require("../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.js");
|
|
58
|
-
const functionCall$1 = require("../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/
|
|
59
|
-
const functionCall$2 = require("../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/
|
|
60
|
-
const functionCall$3 = require("../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/toast/function-call.js");
|
|
59
|
+
const functionCall$1 = require("../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/notify/function-call.js");
|
|
60
|
+
const functionCall$2 = require("../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/toast/function-call.js");
|
|
61
61
|
const index = {
|
|
62
62
|
install: (app) => {
|
|
63
63
|
for (let c in all) {
|
|
@@ -95,39 +95,39 @@ exports.MobileCheckbox = index$r.MobileCheckbox;
|
|
|
95
95
|
exports.MobileCheckboxGroup = index$s.MobileCheckboxGroup;
|
|
96
96
|
exports.MobileDatePicker = index$t.MobileDatePicker;
|
|
97
97
|
exports.MobileField = index$u.MobileField;
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
104
|
-
exports.
|
|
105
|
-
exports.
|
|
106
|
-
exports.
|
|
107
|
-
exports.
|
|
108
|
-
exports.
|
|
109
|
-
exports.
|
|
110
|
-
exports.
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
98
|
+
exports.MobileFieldPicker = index$v.MobileFieldPicker;
|
|
99
|
+
exports.MobileForm = index$w.MobileForm;
|
|
100
|
+
exports.MobilePicker = index$x.MobilePicker;
|
|
101
|
+
exports.MobilePickerGroup = index$y.MobilePickerGroup;
|
|
102
|
+
exports.MobileRadio = index$z.MobileRadio;
|
|
103
|
+
exports.MobileRadioGroup = index$A.MobileRadioGroup;
|
|
104
|
+
exports.MobileSearch = index$B.MobileSearch;
|
|
105
|
+
exports.MobileTimePicker = index$C.MobileTimePicker;
|
|
106
|
+
exports.MobileUploader = index$D.MobileUploader;
|
|
107
|
+
exports.MobileActionBar = index$E.MobileActionBar;
|
|
108
|
+
exports.MobileBackTop = index$F.MobileBackTop;
|
|
109
|
+
exports.MobileGrid = index$G.MobileGrid;
|
|
110
|
+
exports.MobileGridItem = index$H.MobileGridItem;
|
|
111
|
+
exports.MobileIndexBar = index$I.MobileIndexBar;
|
|
112
|
+
exports.MobileIndexAnchor = index$J.MobileIndexAnchor;
|
|
113
|
+
exports.MobileNavBar = index$K.MobileNavBar;
|
|
114
|
+
exports.MobilePagination = index$L.MobilePagination;
|
|
115
|
+
exports.MobileSidebar = index$M.MobileSidebar;
|
|
116
|
+
exports.MobileSidebarItem = index$N.MobileSidebarItem;
|
|
117
|
+
exports.MobileTab = index$O.MobileTab;
|
|
118
|
+
exports.MobileTabs = index$P.MobileTabs;
|
|
119
|
+
exports.MobileTabbar = index$Q.MobileTabbar;
|
|
120
|
+
exports.MobileTabbarItem = index$R.MobileTabbarItem;
|
|
121
|
+
exports.MobileTreeSelect = index$S.MobileTreeSelect;
|
|
121
122
|
exports.closeDialog = functionCall.closeDialog;
|
|
122
123
|
exports.showConfirmDialog = functionCall.showConfirmDialog;
|
|
123
124
|
exports.showDialog = functionCall.showDialog;
|
|
124
|
-
exports.
|
|
125
|
-
exports.
|
|
126
|
-
exports.
|
|
127
|
-
exports.
|
|
128
|
-
exports.
|
|
129
|
-
exports.
|
|
130
|
-
exports.
|
|
131
|
-
exports.
|
|
132
|
-
exports.showToast = functionCall$3.showToast;
|
|
125
|
+
exports.closeNotify = functionCall$1.closeNotify;
|
|
126
|
+
exports.showNotify = functionCall$1.showNotify;
|
|
127
|
+
exports.allowMultipleToast = functionCall$2.allowMultipleToast;
|
|
128
|
+
exports.closeToast = functionCall$2.closeToast;
|
|
129
|
+
exports.showFailToast = functionCall$2.showFailToast;
|
|
130
|
+
exports.showLoadingToast = functionCall$2.showLoadingToast;
|
|
131
|
+
exports.showSuccessToast = functionCall$2.showSuccessToast;
|
|
132
|
+
exports.showToast = functionCall$2.showToast;
|
|
133
133
|
exports.default = index;
|
|
@@ -30,29 +30,30 @@ const index$q = require("./form/checkbox/index.js");
|
|
|
30
30
|
const index$r = require("./form/checkboxGroup/index.js");
|
|
31
31
|
const index$s = require("./form/datePicker/index.js");
|
|
32
32
|
const index$t = require("./form/field/index.js");
|
|
33
|
-
const index$u = require("./form/
|
|
34
|
-
const index$v = require("./form/
|
|
35
|
-
const index$w = require("./form/
|
|
36
|
-
const index$x = require("./form/
|
|
37
|
-
const index$y = require("./form/
|
|
38
|
-
const index$z = require("./form/
|
|
39
|
-
const index$A = require("./form/
|
|
40
|
-
const index$B = require("./form/
|
|
41
|
-
const index$C = require("./
|
|
42
|
-
const index$D = require("./navigation/
|
|
43
|
-
const index$E = require("./navigation/
|
|
44
|
-
const index$F = require("./navigation/
|
|
45
|
-
const index$G = require("./navigation/
|
|
46
|
-
const index$H = require("./navigation/
|
|
47
|
-
const index$I = require("./navigation/
|
|
48
|
-
const index$J = require("./navigation/
|
|
49
|
-
const index$K = require("./navigation/
|
|
50
|
-
const index$L = require("./navigation/
|
|
51
|
-
const index$M = require("./navigation/
|
|
52
|
-
const index$N = require("./navigation/
|
|
53
|
-
const index$O = require("./navigation/
|
|
54
|
-
const index$P = require("./navigation/
|
|
55
|
-
const index$Q = require("./navigation/
|
|
33
|
+
const index$u = require("./form/fieldPicker/index.js");
|
|
34
|
+
const index$v = require("./form/form/index.js");
|
|
35
|
+
const index$w = require("./form/picker/index.js");
|
|
36
|
+
const index$x = require("./form/pickerGroup/index.js");
|
|
37
|
+
const index$y = require("./form/radio/index.js");
|
|
38
|
+
const index$z = require("./form/radioGroup/index.js");
|
|
39
|
+
const index$A = require("./form/search/index.js");
|
|
40
|
+
const index$B = require("./form/timePicker/index.js");
|
|
41
|
+
const index$C = require("./form/uploader/index.js");
|
|
42
|
+
const index$D = require("./navigation/actionBar/index.js");
|
|
43
|
+
const index$E = require("./navigation/backTop/index.js");
|
|
44
|
+
const index$F = require("./navigation/grid/index.js");
|
|
45
|
+
const index$G = require("./navigation/gridItem/index.js");
|
|
46
|
+
const index$H = require("./navigation/indexBar/index.js");
|
|
47
|
+
const index$I = require("./navigation/indexAnchor/index.js");
|
|
48
|
+
const index$J = require("./navigation/navBar/index.js");
|
|
49
|
+
const index$K = require("./navigation/pagination/index.js");
|
|
50
|
+
const index$L = require("./navigation/sidebar/index.js");
|
|
51
|
+
const index$M = require("./navigation/sidebarItem/index.js");
|
|
52
|
+
const index$N = require("./navigation/tab/index.js");
|
|
53
|
+
const index$O = require("./navigation/tabs/index.js");
|
|
54
|
+
const index$P = require("./navigation/tabbar/index.js");
|
|
55
|
+
const index$Q = require("./navigation/tabbarItem/index.js");
|
|
56
|
+
const index$R = require("./navigation/treeSelect/index.js");
|
|
56
57
|
exports.MobileButton = index.MobileButton;
|
|
57
58
|
exports.MobileCell = index$1.MobileCell;
|
|
58
59
|
exports.MobileCellGroup = index$2.MobileCellGroup;
|
|
@@ -83,26 +84,27 @@ exports.MobileCheckbox = index$q.MobileCheckbox;
|
|
|
83
84
|
exports.MobileCheckboxGroup = index$r.MobileCheckboxGroup;
|
|
84
85
|
exports.MobileDatePicker = index$s.MobileDatePicker;
|
|
85
86
|
exports.MobileField = index$t.MobileField;
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
104
|
-
exports.
|
|
105
|
-
exports.
|
|
106
|
-
exports.
|
|
107
|
-
exports.
|
|
108
|
-
exports.
|
|
87
|
+
exports.MobileFieldPicker = index$u.MobileFieldPicker;
|
|
88
|
+
exports.MobileForm = index$v.MobileForm;
|
|
89
|
+
exports.MobilePicker = index$w.MobilePicker;
|
|
90
|
+
exports.MobilePickerGroup = index$x.MobilePickerGroup;
|
|
91
|
+
exports.MobileRadio = index$y.MobileRadio;
|
|
92
|
+
exports.MobileRadioGroup = index$z.MobileRadioGroup;
|
|
93
|
+
exports.MobileSearch = index$A.MobileSearch;
|
|
94
|
+
exports.MobileTimePicker = index$B.MobileTimePicker;
|
|
95
|
+
exports.MobileUploader = index$C.MobileUploader;
|
|
96
|
+
exports.MobileActionBar = index$D.MobileActionBar;
|
|
97
|
+
exports.MobileBackTop = index$E.MobileBackTop;
|
|
98
|
+
exports.MobileGrid = index$F.MobileGrid;
|
|
99
|
+
exports.MobileGridItem = index$G.MobileGridItem;
|
|
100
|
+
exports.MobileIndexBar = index$H.MobileIndexBar;
|
|
101
|
+
exports.MobileIndexAnchor = index$I.MobileIndexAnchor;
|
|
102
|
+
exports.MobileNavBar = index$J.MobileNavBar;
|
|
103
|
+
exports.MobilePagination = index$K.MobilePagination;
|
|
104
|
+
exports.MobileSidebar = index$L.MobileSidebar;
|
|
105
|
+
exports.MobileSidebarItem = index$M.MobileSidebarItem;
|
|
106
|
+
exports.MobileTab = index$N.MobileTab;
|
|
107
|
+
exports.MobileTabs = index$O.MobileTabs;
|
|
108
|
+
exports.MobileTabbar = index$P.MobileTabbar;
|
|
109
|
+
exports.MobileTabbarItem = index$Q.MobileTabbarItem;
|
|
110
|
+
exports.MobileTreeSelect = index$R.MobileTreeSelect;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
|
+
;/* empty css */
|
|
12
|
+
;/* empty css */
|
|
13
|
+
;/* empty css */
|
|
14
|
+
;/* empty css */
|
|
15
|
+
;/* empty css */
|
|
16
|
+
;/* empty css */
|
|
17
|
+
;/* empty css */
|
|
18
|
+
const vue = require("vue");
|
|
19
|
+
const index$2 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/picker/index.js");
|
|
20
|
+
const index = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.js");
|
|
21
|
+
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.js");
|
|
22
|
+
const _sfc_main = {
|
|
23
|
+
__name: "FieldPicker",
|
|
24
|
+
props: {
|
|
25
|
+
columns: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: []
|
|
28
|
+
},
|
|
29
|
+
columnsFieldNames: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: {
|
|
32
|
+
text: "text",
|
|
33
|
+
value: "value"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:modelValue", "update:pickerValue", "submit"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const emit = __emit;
|
|
45
|
+
const fieldValue = vue.computed({
|
|
46
|
+
get: () => {
|
|
47
|
+
let value = props.modelValue;
|
|
48
|
+
return value;
|
|
49
|
+
},
|
|
50
|
+
set: (val) => {
|
|
51
|
+
emit("update:modelValue", val);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const pickerValue = vue.ref([]);
|
|
55
|
+
const showPicker = vue.ref(false);
|
|
56
|
+
const onConfirm = ({ selectedValues, selectedOptions }) => {
|
|
57
|
+
var _a;
|
|
58
|
+
fieldValue.value = (_a = selectedOptions[0]) == null ? void 0 : _a.text;
|
|
59
|
+
pickerValue.value = selectedValues;
|
|
60
|
+
showPicker.value = false;
|
|
61
|
+
};
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
const _component_van_field = index.Field;
|
|
64
|
+
const _component_van_picker = index$2.Picker;
|
|
65
|
+
const _component_van_popup = index$1.Popup;
|
|
66
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
67
|
+
vue.createVNode(_component_van_field, vue.mergeProps({
|
|
68
|
+
modelValue: vue.unref(fieldValue),
|
|
69
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(fieldValue) ? fieldValue.value = $event : null),
|
|
70
|
+
"is-link": "",
|
|
71
|
+
readonly: "",
|
|
72
|
+
name: "picker"
|
|
73
|
+
}, _ctx.$attrs, {
|
|
74
|
+
onClick: _cache[1] || (_cache[1] = ($event) => showPicker.value = true)
|
|
75
|
+
}), vue.createSlots({ _: 2 }, [
|
|
76
|
+
vue.renderList(_ctx.$slots, (item, key) => {
|
|
77
|
+
return {
|
|
78
|
+
name: key,
|
|
79
|
+
fn: vue.withCtx(() => [
|
|
80
|
+
vue.renderSlot(_ctx.$slots, key)
|
|
81
|
+
])
|
|
82
|
+
};
|
|
83
|
+
})
|
|
84
|
+
]), 1040, ["modelValue"]),
|
|
85
|
+
vue.createVNode(_component_van_popup, {
|
|
86
|
+
show: vue.unref(showPicker),
|
|
87
|
+
"onUpdate:show": _cache[3] || (_cache[3] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
|
|
88
|
+
"destroy-on-close": "",
|
|
89
|
+
position: "bottom"
|
|
90
|
+
}, {
|
|
91
|
+
default: vue.withCtx(() => [
|
|
92
|
+
vue.createVNode(_component_van_picker, {
|
|
93
|
+
columns: __props.columns,
|
|
94
|
+
"columns-field-names": __props.columnsFieldNames,
|
|
95
|
+
"model-value": vue.unref(pickerValue),
|
|
96
|
+
onConfirm,
|
|
97
|
+
onCancel: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
|
|
98
|
+
}, null, 8, ["columns", "columns-field-names", "model-value"])
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["show"])
|
|
102
|
+
], 64);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const FieldPicker = require("./FieldPicker.vue.js");
|
|
4
|
+
const install = require("../../../utils/install.js");
|
|
5
|
+
const MobileFieldPicker = install.default.withInstall(
|
|
6
|
+
"MobileFieldPicker",
|
|
7
|
+
FieldPicker.default
|
|
8
|
+
);
|
|
9
|
+
exports.MobileFieldPicker = MobileFieldPicker;
|
|
10
|
+
exports.default = MobileFieldPicker;
|