@fecp/mobile 1.1.7 → 1.1.8

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.
Files changed (38) hide show
  1. package/es/_virtual/less.mjs +2 -0
  2. package/es/_virtual/less2.mjs +4 -0
  3. package/es/mobile.css +9 -2
  4. package/es/node_modules/.pnpm/less@4.2.2/node_modules/less/dist/less.mjs +10504 -0
  5. package/es/packages/mobile/src/components/feedback/floatingBubble/FloatingBubble.vue.mjs +5 -3
  6. package/es/packages/mobile/src/components/form/field/Field.vue.mjs +116 -24
  7. package/es/packages/mobile/src/components/form/field/index.mjs +2 -2
  8. package/es/packages/mobile/src/components/form/fieldArea/FieldArea.vue.mjs +1 -1
  9. package/es/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.mjs +1 -1
  10. package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs +1 -1
  11. package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +1 -1
  12. package/es/packages/mobile/src/components/form/fieldDateTimePicker/FieldDateTimePicker.vue.mjs +1 -1
  13. package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +1 -1
  14. package/es/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.mjs +1 -1
  15. package/es/packages/mobile/src/components/form/form/Form.vue.mjs +8 -4
  16. package/es/packages/mobile/src/components/form/formItem/FormItem.vue.mjs +2 -1
  17. package/es/packages/mobile/src/utils/formatterUtil.mjs +84 -5
  18. package/es/packages/mobile/src/utils/use-cursor.mjs +41 -0
  19. package/es/packages/mobile/src/utils/use-route.mjs +0 -1
  20. package/lib/_virtual/less.js +3 -0
  21. package/lib/_virtual/less2.js +4 -0
  22. package/lib/mobile.css +9 -2
  23. package/lib/node_modules/.pnpm/less@4.2.2/node_modules/less/dist/less.js +10504 -0
  24. package/lib/packages/mobile/src/components/feedback/floatingBubble/FloatingBubble.vue.js +4 -2
  25. package/lib/packages/mobile/src/components/form/field/Field.vue.js +115 -23
  26. package/lib/packages/mobile/src/components/form/fieldArea/FieldArea.vue.js +1 -1
  27. package/lib/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.js +1 -1
  28. package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js +1 -1
  29. package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +1 -1
  30. package/lib/packages/mobile/src/components/form/fieldDateTimePicker/FieldDateTimePicker.vue.js +1 -1
  31. package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +1 -1
  32. package/lib/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.js +1 -1
  33. package/lib/packages/mobile/src/components/form/form/Form.vue.js +7 -3
  34. package/lib/packages/mobile/src/components/form/formItem/FormItem.vue.js +2 -1
  35. package/lib/packages/mobile/src/utils/formatterUtil.js +83 -4
  36. package/lib/packages/mobile/src/utils/use-cursor.js +41 -0
  37. package/lib/packages/mobile/src/utils/use-route.js +0 -1
  38. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
- import { computed, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot } from "vue";
1
+ import { ref, computed, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot } from "vue";
2
2
  import stdin_default from "./FloatingBubble.mjs";
3
3
  /* empty css */
4
4
  import { routeProps, useRoute } from "../../../utils/use-route.mjs";
5
+ import "../../../../../../_virtual/less.mjs";
5
6
  const _sfc_main = {
6
7
  __name: "FloatingBubble",
7
8
  props: {
@@ -20,6 +21,7 @@ const _sfc_main = {
20
21
  setup(__props) {
21
22
  const route = useRoute();
22
23
  const props = __props;
24
+ const dropAxis = ref(props.axis);
23
25
  const compMagnetic = computed(() => {
24
26
  if (props.axis == "xy") {
25
27
  return props.magnetic;
@@ -28,8 +30,8 @@ const _sfc_main = {
28
30
  }
29
31
  });
30
32
  return (_ctx, _cache) => {
31
- return openBlock(), createBlock(unref(stdin_default), mergeProps(_ctx.$attrs, {
32
- axis: __props.axis,
33
+ return openBlock(), createBlock(unref(stdin_default), mergeProps({ class: "fec-floating-bubble" }, _ctx.$attrs, {
34
+ axis: unref(dropAxis),
33
35
  magnetic: compMagnetic.value,
34
36
  onClick: unref(route)
35
37
  }), createSlots({ _: 2 }, [
@@ -3,31 +3,123 @@
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { createElementBlock, openBlock, Fragment, createVNode, renderSlot, mergeProps, createSlots, renderList, withCtx } from "vue";
6
+ import { ref, computed, createElementBlock, openBlock, Fragment, createVNode, withDirectives, renderSlot, mergeProps, unref, isRef, createSlots, renderList, withCtx, createTextVNode, toDisplayString, createElementVNode, vModelText } from "vue";
7
+ import "../../../../../../_virtual/index.mjs";
8
+ import { getUnit, textFormatter, textFormatter4Input, reverseTextFormatter } from "../../../utils/formatterUtil.mjs";
9
+ import { useCursor } from "../../../utils/use-cursor.mjs";
7
10
  /* empty css */
8
- import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
9
11
  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";
10
- const _sfc_main = {};
11
- function _sfc_render(_ctx, _cache) {
12
- const _component_van_field = Field;
13
- return openBlock(), createElementBlock(Fragment, null, [
14
- createVNode(_component_van_field, mergeProps(_ctx.$attrs, {
15
- clearable: "",
16
- "clear-trigger": "always"
17
- }), createSlots({ _: 2 }, [
18
- renderList(_ctx.$slots, (item, key) => {
19
- return {
20
- name: key,
21
- fn: withCtx(() => [
22
- renderSlot(_ctx.$slots, key)
23
- ])
24
- };
25
- })
26
- ]), 1040),
27
- renderSlot(_ctx.$slots, "default")
28
- ], 64);
29
- }
30
- const _Field = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
12
+ const _sfc_main = {
13
+ __name: "Field",
14
+ props: {
15
+ modelValue: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ fieldType: {
20
+ type: String
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ clickable: {
27
+ type: Boolean,
28
+ default: false
29
+ },
30
+ dataFormatter: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ showUnit: {
35
+ type: Boolean,
36
+ default: true
37
+ }
38
+ },
39
+ emits: ["openPicker", "update:modelValue"],
40
+ setup(__props, { emit: __emit }) {
41
+ const props = __props;
42
+ const unit = ref("");
43
+ const fieldInputRef = ref();
44
+ const [recordCursor, setCursor] = useCursor();
45
+ const emit = __emit;
46
+ const compValue = computed({
47
+ get: () => {
48
+ return props.modelValue;
49
+ },
50
+ set: (val) => {
51
+ emit("update:modelValue", val);
52
+ }
53
+ });
54
+ const textValue = computed(() => {
55
+ if (props.fieldType == "text") {
56
+ unit.value = getUnit(props.dataFormatter);
57
+ return textFormatter(props.modelValue, props.dataFormatter);
58
+ }
59
+ return props.modelValue;
60
+ });
61
+ const compClickable = computed(() => {
62
+ if (props.disabled) {
63
+ return false;
64
+ }
65
+ return true;
66
+ });
67
+ const handleInput = (e) => {
68
+ const inputElement = e.target;
69
+ recordCursor(inputElement);
70
+ inputElement.value = textFormatter4Input(
71
+ inputElement.value,
72
+ props.dataFormatter
73
+ );
74
+ setCursor(inputElement);
75
+ const unformattedValue = reverseTextFormatter(
76
+ inputElement.value,
77
+ props.dataFormatter
78
+ );
79
+ compValue.value = unformattedValue;
80
+ };
81
+ return (_ctx, _cache) => {
82
+ const _component_van_field = Field;
83
+ return openBlock(), createElementBlock(Fragment, null, [
84
+ createVNode(_component_van_field, mergeProps(_ctx.$attrs, {
85
+ modelValue: unref(textValue),
86
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(textValue) ? textValue.value = $event : null),
87
+ disabled: __props.disabled,
88
+ clearable: "",
89
+ clickable: unref(compClickable),
90
+ "clear-trigger": "always",
91
+ onClick: _cache[1] || (_cache[1] = ($event) => !__props.disabled && emit("openPicker")),
92
+ ref_key: "fieldInputRef",
93
+ ref: fieldInputRef,
94
+ onInput: handleInput
95
+ }), createSlots({ _: 2 }, [
96
+ renderList(_ctx.$slots, (item, key) => {
97
+ return {
98
+ name: key,
99
+ fn: withCtx(() => [
100
+ renderSlot(_ctx.$slots, key)
101
+ ])
102
+ };
103
+ }),
104
+ __props.showUnit && unref(unit) ? {
105
+ name: "button",
106
+ fn: withCtx(() => [
107
+ createTextVNode(toDisplayString(unref(unit)), 1)
108
+ ]),
109
+ key: "0"
110
+ } : void 0
111
+ ]), 1040, ["modelValue", "disabled", "clickable"]),
112
+ withDirectives(createElementVNode("input", {
113
+ type: "hidden",
114
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(compValue) ? compValue.value = $event : null)
115
+ }, null, 512), [
116
+ [vModelText, unref(compValue)]
117
+ ]),
118
+ renderSlot(_ctx.$slots, "default")
119
+ ], 64);
120
+ };
121
+ }
122
+ };
31
123
  export {
32
- _Field as default
124
+ _sfc_main as default
33
125
  };
@@ -1,6 +1,6 @@
1
- import _Field from "./Field.vue.mjs";
1
+ import _sfc_main from "./Field.vue.mjs";
2
2
  import install from "../../../utils/install.mjs";
3
- const MobileField = install.withInstall("MobileField", _Field);
3
+ const MobileField = install.withInstall("MobileField", _sfc_main);
4
4
  export {
5
5
  MobileField,
6
6
  MobileField as default
@@ -140,7 +140,7 @@ const _sfc_main = {
140
140
  isLink: __props.readonly ? false : true,
141
141
  readonly: "",
142
142
  disabled: __props.disabled,
143
- onClick: _cache[5] || (_cache[5] = () => {
143
+ onOpenPicker: _cache[5] || (_cache[5] = () => {
144
144
  if (!__props.readonly) {
145
145
  showPicker.value = true;
146
146
  }
@@ -140,7 +140,7 @@ const _sfc_main = {
140
140
  isLink: __props.readonly ? false : true,
141
141
  readonly: "",
142
142
  disabled: __props.disabled,
143
- onClick: _cache[3] || (_cache[3] = () => {
143
+ onOpenPicker: _cache[3] || (_cache[3] = () => {
144
144
  if (!__props.readonly) {
145
145
  showCalendar.value = true;
146
146
  }
@@ -135,7 +135,7 @@ const _sfc_main = {
135
135
  isLink: __props.readonly ? false : true,
136
136
  readonly: "",
137
137
  disabled: __props.disabled,
138
- onClick: _cache[5] || (_cache[5] = () => {
138
+ onOpenPicker: _cache[5] || (_cache[5] = () => {
139
139
  if (!__props.readonly) {
140
140
  showPicker.value = true;
141
141
  }
@@ -126,7 +126,7 @@ const _sfc_main = {
126
126
  isLink: __props.readonly ? false : true,
127
127
  readonly: "",
128
128
  disabled: __props.disabled,
129
- onClick: _cache[5] || (_cache[5] = () => {
129
+ onOpenPicker: _cache[5] || (_cache[5] = () => {
130
130
  if (!__props.readonly) {
131
131
  showPicker.value = true;
132
132
  }
@@ -125,7 +125,7 @@ const _sfc_main = {
125
125
  isLink: __props.readonly ? false : true,
126
126
  readonly: "",
127
127
  disabled: __props.disabled,
128
- onClick: _cache[6] || (_cache[6] = () => {
128
+ onOpenPicker: _cache[6] || (_cache[6] = () => {
129
129
  if (!__props.readonly) {
130
130
  showPicker.value = true;
131
131
  }
@@ -115,7 +115,7 @@ const _sfc_main = {
115
115
  isLink: __props.readonly ? false : true,
116
116
  readonly: "",
117
117
  disabled: __props.disabled,
118
- onClick: _cache[4] || (_cache[4] = () => {
118
+ onOpenPicker: _cache[4] || (_cache[4] = () => {
119
119
  if (!__props.readonly) {
120
120
  showPicker.value = true;
121
121
  }
@@ -128,7 +128,7 @@ const _sfc_main = {
128
128
  isLink: __props.readonly ? false : true,
129
129
  readonly: "",
130
130
  disabled: __props.disabled,
131
- onClick: _cache[5] || (_cache[5] = () => {
131
+ onOpenPicker: _cache[5] || (_cache[5] = () => {
132
132
  if (!__props.readonly) {
133
133
  showPicker.value = true;
134
134
  }
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { computed, provide, ref, useSlots, createBlock, openBlock, mergeProps, withCtx, createVNode, renderSlot, createCommentVNode, unref } from "vue";
3
+ import { computed, provide, ref, useSlots, createBlock, openBlock, mergeProps, withCtx, createVNode, renderSlot, createCommentVNode, unref, toRaw } from "vue";
4
4
  import { getParmDicMapByKeys } from "../../../utils/optionUtil.mjs";
5
5
  /* empty css */
6
6
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -32,7 +32,7 @@ const _sfc_main = {
32
32
  default: true
33
33
  }
34
34
  },
35
- emits: ["update:modelValue"],
35
+ emits: ["update:modelValue", "submit"],
36
36
  setup(__props, { emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
@@ -75,12 +75,16 @@ const _sfc_main = {
75
75
  };
76
76
  provide("dicListMap", dicListMap);
77
77
  processSlotComponents();
78
+ function submitForm(oriFormData) {
79
+ emit("submit", toRaw(formData.value));
80
+ }
78
81
  return (_ctx, _cache) => {
79
82
  const _component_van_cell_group = CellGroup;
80
83
  const _component_van_form = Form;
81
84
  return openBlock(), createBlock(_component_van_form, mergeProps(_ctx.$attrs, {
82
85
  required: "auto",
83
- class: { fecMForm: true, isShadow: __props.isCard && __props.isShadow }
86
+ class: { fecMForm: true, isShadow: __props.isCard && __props.isShadow },
87
+ onSubmit: submitForm
84
88
  }), {
85
89
  default: withCtx(() => [
86
90
  createVNode(_component_van_cell_group, { inset: __props.isCard }, {
@@ -95,7 +99,7 @@ const _sfc_main = {
95
99
  };
96
100
  }
97
101
  };
98
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-69b5b14f"]]);
102
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a3cc552b"]]);
99
103
  export {
100
104
  _Form as default
101
105
  };
@@ -88,13 +88,14 @@ const _sfc_main = {
88
88
  return openBlock(), createBlock(resolveDynamicComponent(unref(formItem)), mergeProps(_ctx.$attrs, {
89
89
  modelValue: unref(compValue),
90
90
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(compValue) ? compValue.value = $event : null),
91
+ fieldType: __props.fieldType,
91
92
  rules: unref(rules),
92
93
  required: unref(formItemReadonly) ? false : "auto",
93
94
  disabled: unref(formItemDisabled),
94
95
  readonly: unref(formItemReadonly),
95
96
  placeholder: unref(formItemReadonly) ? "" : __props.placeholder,
96
97
  dicList: (_a = unref(dicListMap)) == null ? void 0 : _a[unref(attrs).dicKey]
97
- }), null, 16, ["modelValue", "rules", "required", "disabled", "readonly", "placeholder", "dicList"]);
98
+ }), null, 16, ["modelValue", "fieldType", "rules", "required", "disabled", "readonly", "placeholder", "dicList"]);
98
99
  };
99
100
  }
100
101
  };
@@ -51,21 +51,20 @@ const textFormatter = (value, dataFormatter) => {
51
51
  case "money(yi)":
52
52
  return moneyFormatter(value, dataFormatter);
53
53
  case "bankCard":
54
- return XEUtils.commafy(XEUtils.toValueString(value), {
54
+ value = XEUtils.toValueString(value);
55
+ value = value.replace(/\s+/g, "");
56
+ return XEUtils.commafy(value, {
55
57
  spaceNumber: 4,
56
58
  separator: " "
57
59
  });
58
60
  case "percent":
59
61
  value = XEUtils.multiply(XEUtils.toNumber(value), 100);
60
- value = XEUtils.toFixed(value, 2);
61
62
  return value;
62
63
  case "thousand":
63
64
  value = XEUtils.multiply(XEUtils.toNumber(value), 1e3);
64
- value = XEUtils.toFixed(value, 2);
65
65
  return value;
66
66
  case "tenThousand":
67
67
  value = XEUtils.multiply(XEUtils.toNumber(value), 1e4);
68
- value = XEUtils.toFixed(value, 2);
69
68
  return value;
70
69
  default:
71
70
  return value;
@@ -89,11 +88,91 @@ const moneyFormatter = (value, dataFormatter) => {
89
88
  }
90
89
  return XEUtils.commafy(moneyValue, { digits: 2 });
91
90
  };
91
+ const textFormatter4Input = (value, dataFormatter) => {
92
+ switch (dataFormatter) {
93
+ case "money(yuan)":
94
+ case "money(wan)":
95
+ case "money(yi)":
96
+ return XEUtils.toNumberString(XEUtils.toNumber(value)).replace(
97
+ /\B(?=(\d{3})+(?!\d))/g,
98
+ ","
99
+ );
100
+ case "bankCard":
101
+ return XEUtils.toValueString(value.replace(/\s+/g, "")).replace(
102
+ /\B(?=(\d{4})+(?!\d))/g,
103
+ " "
104
+ );
105
+ default:
106
+ return value;
107
+ }
108
+ };
109
+ const reverseTextFormatter = (value, dataFormatter) => {
110
+ switch (dataFormatter) {
111
+ case "money(yuan)":
112
+ case "money(wan)":
113
+ case "money(yi)":
114
+ return reverseMoneyFormatter(value, dataFormatter);
115
+ case "bankCard":
116
+ return value.replace(/\s+/g, "");
117
+ case "percent":
118
+ value = XEUtils.divide(XEUtils.toNumber(value), 100);
119
+ return value;
120
+ case "thousand":
121
+ value = XEUtils.divide(XEUtils.toNumber(value), 1e3);
122
+ return value;
123
+ case "tenThousand":
124
+ value = XEUtils.divide(XEUtils.toNumber(value), 1e4);
125
+ return value;
126
+ default:
127
+ return value;
128
+ }
129
+ };
130
+ const reverseMoneyFormatter = (value, dataFormatter) => {
131
+ let moneyValue;
132
+ value = value.replace(/,/gi, "");
133
+ switch (dataFormatter) {
134
+ case "money(yuan)":
135
+ moneyValue = XEUtils.toNumber(value);
136
+ break;
137
+ case "money(wan)":
138
+ moneyValue = XEUtils.multiply(XEUtils.toNumber(value), 1e4);
139
+ break;
140
+ case "money(yi)":
141
+ moneyValue = XEUtils.multiply(XEUtils.toNumber(value), 1e8);
142
+ break;
143
+ default:
144
+ moneyValue = XEUtils.toNumber(value);
145
+ break;
146
+ }
147
+ return XEUtils.toNumberString(moneyValue);
148
+ };
149
+ const getUnit = (dataFormatter) => {
150
+ switch (dataFormatter) {
151
+ case "money(yuan)":
152
+ return "元";
153
+ case "money(wan)":
154
+ return "万";
155
+ case "money(yi)":
156
+ return "亿";
157
+ case "percent":
158
+ return "%";
159
+ case "thousand":
160
+ return "‰";
161
+ case "tenThousand":
162
+ return "‱";
163
+ default:
164
+ return "";
165
+ }
166
+ };
92
167
  export {
93
168
  cascadeFormatter,
94
169
  dateFormatter,
170
+ getUnit,
95
171
  moneyFormatter,
96
172
  multipleFormatter,
173
+ reverseMoneyFormatter,
174
+ reverseTextFormatter,
97
175
  selectFormatter,
98
- textFormatter
176
+ textFormatter,
177
+ textFormatter4Input
99
178
  };
@@ -0,0 +1,41 @@
1
+ function useCursor() {
2
+ let selectionInfo;
3
+ function recordCursor(inputElement) {
4
+ if (inputElement == void 0) return;
5
+ const { selectionStart, selectionEnd, value } = inputElement;
6
+ if (selectionStart == null || selectionEnd == null) return;
7
+ const beforeTxt = value.slice(0, Math.max(0, selectionStart));
8
+ const afterTxt = value.slice(Math.max(0, selectionEnd));
9
+ selectionInfo = {
10
+ selectionStart,
11
+ selectionEnd,
12
+ value,
13
+ beforeTxt,
14
+ afterTxt
15
+ };
16
+ }
17
+ function setCursor(inputElement) {
18
+ if (inputElement == void 0 || selectionInfo == void 0) return;
19
+ const { value } = inputElement;
20
+ const { beforeTxt, afterTxt, selectionStart } = selectionInfo;
21
+ if (beforeTxt == void 0 || afterTxt == void 0 || selectionStart == void 0)
22
+ return;
23
+ let startPos = value.length;
24
+ if (value.endsWith(afterTxt)) {
25
+ startPos = value.length - afterTxt.length;
26
+ } else if (value.startsWith(beforeTxt)) {
27
+ startPos = beforeTxt.length;
28
+ } else {
29
+ const beforeLastChar = beforeTxt[selectionStart - 1];
30
+ const newIndex = value.indexOf(beforeLastChar, selectionStart - 1);
31
+ if (newIndex !== -1) {
32
+ startPos = newIndex + 1;
33
+ }
34
+ }
35
+ inputElement.setSelectionRange(startPos, startPos);
36
+ }
37
+ return [recordCursor, setCursor];
38
+ }
39
+ export {
40
+ useCursor
41
+ };
@@ -5,7 +5,6 @@ const routeProps = {
5
5
  replace: Boolean
6
6
  };
7
7
  function route({ to, url, replace, $router: router }) {
8
- debugger;
9
8
  if (to && router) {
10
9
  router[replace ? "replace" : "push"](to);
11
10
  } else if (url) {
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const less = require("../node_modules/.pnpm/less@4.2.2/node_modules/less/dist/less.js");
3
+ less.__require();
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var less = { exports: {} };
4
+ exports.__module = less;
package/lib/mobile.css CHANGED
@@ -109,6 +109,13 @@
109
109
  color: var(--van-field-clear-icon-color);
110
110
  font-size: var(--van-field-clear-icon-size);
111
111
  cursor: pointer;
112
+ }
113
+ .van-field--disabled .van-cell__left-icon,
114
+ .van-field--disabled .van-cell__right-icon {
115
+ color: var(--van-field-disabled-text-color);
116
+ }
117
+ .van-field--disabled {
118
+ cursor: not-allowed;
112
119
  }
113
120
  :root,:host{--van-sticky-z-index: 99}.van-sticky--fixed{position:fixed;z-index:var(--van-sticky-z-index)}
114
121
  :root,:host{--van-tab-text-color: var(--van-gray-7);--van-tab-active-text-color: var(--van-text-color);--van-tab-disabled-text-color: var(--van-text-color-3);--van-tab-font-size: var(--van-font-size-md);--van-tab-line-height: var(--van-line-height-md);--van-tabs-default-color: var(--van-primary-color);--van-tabs-line-height: 44px;--van-tabs-card-height: 30px;--van-tabs-nav-background: var(--van-background-2);--van-tabs-bottom-bar-width: 40px;--van-tabs-bottom-bar-height: 3px;--van-tabs-bottom-bar-color: var(--van-primary-color)}.van-tab{position:relative;display:flex;flex:1;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--van-padding-base);color:var(--van-tab-text-color);font-size:var(--van-tab-font-size);line-height:var(--van-tab-line-height);cursor:pointer}.van-tab--active{color:var(--van-tab-active-text-color);font-weight:var(--van-font-bold)}.van-tab--disabled{color:var(--van-tab-disabled-text-color);cursor:not-allowed}.van-tab--grow{flex:1 0 auto;padding:0 var(--van-padding-sm)}.van-tab--shrink{flex:none;padding:0 var(--van-padding-xs)}.van-tab--card{color:var(--van-tabs-default-color);border-right:var(--van-border-width) solid var(--van-tabs-default-color)}.van-tab--card:last-child{border-right:none}.van-tab--card.van-tab--active{color:var(--van-white);background-color:var(--van-tabs-default-color)}.van-tab--card.van-tab--disabled{color:var(--van-tab-disabled-text-color)}.van-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.van-tabs{position:relative}.van-tabs__wrap{overflow:hidden}.van-tabs__wrap--page-top{position:fixed}.van-tabs__wrap--content-bottom{top:auto;bottom:0}.van-tabs__nav{position:relative;display:flex;background:var(--van-tabs-nav-background);-webkit-user-select:none;user-select:none}.van-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-tabs__nav--complete::-webkit-scrollbar{display:none}.van-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:15px}.van-tabs__nav--line.van-tabs__nav--shrink,.van-tabs__nav--line.van-tabs__nav--complete{padding-right:var(--van-padding-xs);padding-left:var(--van-padding-xs)}.van-tabs__nav--card{box-sizing:border-box;height:var(--van-tabs-card-height);margin:0 var(--van-padding-md);border:var(--van-border-width) solid var(--van-tabs-default-color);border-radius:var(--van-radius-sm)}.van-tabs__nav--card.van-tabs__nav--shrink{display:inline-flex}.van-tabs__line{position:absolute;bottom:15px;left:0;z-index:1;width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}.van-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.van-tabs__content--animated{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:var(--van-tabs-line-height)}.van-tabs--card>.van-tabs__wrap{height:var(--van-tabs-card-height)}
@@ -121,10 +128,10 @@
121
128
  .van-radio-group--horizontal{display:flex;flex-wrap:wrap}
122
129
  :root,:host{--van-radio-size: 20px;--van-radio-dot-size: 8px;--van-radio-border-color: var(--van-gray-5);--van-radio-duration: var(--van-duration-fast);--van-radio-label-margin: var(--van-padding-xs);--van-radio-label-color: var(--van-text-color);--van-radio-checked-icon-color: var(--van-primary-color);--van-radio-disabled-icon-color: var(--van-gray-5);--van-radio-disabled-label-color: var(--van-text-color-3);--van-radio-disabled-background: var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--dot{position:relative;border-radius:100%;box-sizing:border-box;width:var(--van-radio-size);height:var(--van-radio-size);border:1px solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:border-color}.van-radio__icon--dot__icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;height:calc(100% - var(--van-radio-dot-size));width:calc(100% - var(--van-radio-dot-size));transition-duration:var(--van-radio-duration);transition-property:background-color}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--checked.van-radio__icon--dot{border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--checked.van-radio__icon--dot .van-radio__icon--dot__icon{background:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}
123
130
 
124
- .fecMForm[data-v-69b5b14f] .van-cell-group--inset {
131
+ .fecMForm[data-v-a3cc552b] .van-cell-group--inset {
125
132
  margin: 12px;
126
133
  }
127
- .fecMForm.isShadow[data-v-69b5b14f] .van-cell-group--inset {
134
+ .fecMForm.isShadow[data-v-a3cc552b] .van-cell-group--inset {
128
135
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
129
136
  }
130
137
  :root,:host{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: 34px;--van-search-label-padding: 0 5px;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;align-items:center;padding:0 var(--van-padding-xs) 0 0;height:var(--van-search-input-height);background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search__field--with-message{height:auto;align-items:flex-start;padding-top:5px;padding-bottom:5px}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}