cnhis-design-vue 3.1.40-beta.5 → 3.1.40-beta.7

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.
@@ -182,6 +182,7 @@ declare const _default: import("vue").DefineComponent<{
182
182
  inputValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
183
183
  numeratorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
184
184
  denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
185
+ inputSelect: import("vue").Ref<boolean>;
185
186
  keyboardRef: import("vue").Ref<HTMLElement | null>;
186
187
  style: import("vue").ComputedRef<string> | undefined;
187
188
  init: () => import("vue").ComputedRef<string> | undefined;
@@ -208,6 +209,10 @@ declare const _default: import("vue").DefineComponent<{
208
209
  type: PropType<import("naive-ui/es/form/src/interface").FormValidationStatus>;
209
210
  default: string;
210
211
  };
212
+ select: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ };
211
216
  }, {
212
217
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
213
218
  modelValue: {
@@ -222,22 +227,29 @@ declare const _default: import("vue").DefineComponent<{
222
227
  type: PropType<import("naive-ui/es/form/src/interface").FormValidationStatus>;
223
228
  default: string;
224
229
  };
230
+ select: {
231
+ type: BooleanConstructor;
232
+ default: boolean;
233
+ };
225
234
  }>> & {
226
235
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
227
236
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
237
+ "onUpdate:select"?: ((...args: any[]) => any) | undefined;
228
238
  }>>;
229
- emit: (event: "update:modelValue" | "update:status", ...args: any[]) => void;
239
+ emit: (event: "update:modelValue" | "update:status" | "update:select", ...args: any[]) => void;
230
240
  inputRef: any;
231
241
  toSelectInputContent: import("vue").Ref<number>;
232
242
  update: (value: string | [string, string]) => void;
233
243
  validator: (value: string) => boolean;
234
244
  calculate: (type: string) => void;
245
+ unSelect: () => void;
246
+ onSelect: () => void;
235
247
  NInput: any;
236
248
  NIcon: any;
237
249
  NSpace: any;
238
250
  CaretDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
239
251
  CaretUp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
240
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status")[], "update:modelValue" | "update:status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
252
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status" | "update:select")[], "update:modelValue" | "update:status" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
241
253
  modelValue: {
242
254
  type: StringConstructor;
243
255
  default: string;
@@ -250,13 +262,19 @@ declare const _default: import("vue").DefineComponent<{
250
262
  type: PropType<import("naive-ui/es/form/src/interface").FormValidationStatus>;
251
263
  default: string;
252
264
  };
265
+ select: {
266
+ type: BooleanConstructor;
267
+ default: boolean;
268
+ };
253
269
  }>> & {
254
270
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
255
271
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
272
+ "onUpdate:select"?: ((...args: any[]) => any) | undefined;
256
273
  }, {
257
274
  modelValue: string;
258
275
  status: import("naive-ui/es/form/src/interface").FormValidationStatus;
259
276
  integer: boolean;
277
+ select: boolean;
260
278
  }>;
261
279
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
262
280
  defaultValue: {
@@ -13,6 +13,10 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: PropType<FormValidationStatus>;
14
14
  default: string;
15
15
  };
16
+ select: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
16
20
  }, {
17
21
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
18
22
  modelValue: {
@@ -27,22 +31,29 @@ declare const _default: import("vue").DefineComponent<{
27
31
  type: PropType<FormValidationStatus>;
28
32
  default: string;
29
33
  };
34
+ select: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
30
38
  }>> & {
31
39
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
40
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
41
+ "onUpdate:select"?: ((...args: any[]) => any) | undefined;
33
42
  }>>;
34
- emit: (event: "update:modelValue" | "update:status", ...args: any[]) => void;
43
+ emit: (event: "update:modelValue" | "update:status" | "update:select", ...args: any[]) => void;
35
44
  inputRef: any;
36
45
  toSelectInputContent: Ref<number>;
37
46
  update: (value: string | [string, string]) => void;
38
47
  validator: (value: string) => boolean;
39
48
  calculate: (type: string) => void;
49
+ unSelect: () => void;
50
+ onSelect: () => void;
40
51
  NInput: any;
41
52
  NIcon: any;
42
53
  NSpace: any;
43
54
  CaretDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
44
55
  CaretUp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
45
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status")[], "update:modelValue" | "update:status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status" | "update:select")[], "update:modelValue" | "update:status" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
57
  modelValue: {
47
58
  type: StringConstructor;
48
59
  default: string;
@@ -55,12 +66,18 @@ declare const _default: import("vue").DefineComponent<{
55
66
  type: PropType<FormValidationStatus>;
56
67
  default: string;
57
68
  };
69
+ select: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
58
73
  }>> & {
59
74
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
60
75
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
76
+ "onUpdate:select"?: ((...args: any[]) => any) | undefined;
61
77
  }, {
62
78
  modelValue: string;
63
79
  status: FormValidationStatus;
64
80
  integer: boolean;
81
+ select: boolean;
65
82
  }>;
66
83
  export default _default;
@@ -9,9 +9,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  props: {
10
10
  modelValue: { type: String, default: "" },
11
11
  integer: { type: Boolean, default: false },
12
- status: { type: String, default: "success" }
12
+ status: { type: String, default: "success" },
13
+ select: { type: Boolean, default: false }
13
14
  },
14
- emits: ["update:modelValue", "update:status"],
15
+ emits: ["update:modelValue", "update:status", "update:select"],
15
16
  setup(__props, { emit }) {
16
17
  const props = __props;
17
18
  const inputRef = ref(null);
@@ -35,16 +36,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
36
  emit("update:modelValue", newValue.toString());
36
37
  emit("update:status", "success");
37
38
  }
39
+ function unSelect() {
40
+ setTimeout(() => {
41
+ emit("update:select", false);
42
+ }, 1e3);
43
+ }
44
+ function onSelect() {
45
+ emit("update:select", true);
46
+ }
38
47
  watch(
39
48
  () => toSelectInputContent.value,
40
49
  (value) => {
41
50
  var _a, _b;
42
- (_b = (_a = inputRef.value) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a);
51
+ !props.integer && ((_b = (_a = inputRef.value) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a));
43
52
  }
44
53
  );
45
54
  return (_ctx, _cache) => {
46
55
  return openBlock(), createBlock(unref(NInput), {
47
- autofocus: "",
48
56
  ref_key: "inputRef",
49
57
  ref: inputRef,
50
58
  value: __props.modelValue,
@@ -52,7 +60,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
60
  "allow-input": validator,
53
61
  placeholder: "",
54
62
  status: __props.status,
55
- clearable: !__props.integer
63
+ clearable: !__props.integer,
64
+ onBlur: unSelect,
65
+ onSelect
56
66
  }, {
57
67
  suffix: withCtx(() => [
58
68
  createVNode(unref(NSpace), {
@@ -79,6 +79,7 @@ declare const _default: import("vue").DefineComponent<{
79
79
  inputValueStatus: Ref<FormValidationStatus>;
80
80
  numeratorValueStatus: Ref<FormValidationStatus>;
81
81
  denominatorValueStatus: Ref<FormValidationStatus>;
82
+ inputSelect: Ref<boolean>;
82
83
  keyboardRef: Ref<HTMLElement | null>;
83
84
  style: import("vue").ComputedRef<string> | undefined;
84
85
  init: () => import("vue").ComputedRef<string> | undefined;
@@ -105,6 +106,10 @@ declare const _default: import("vue").DefineComponent<{
105
106
  type: PropType<FormValidationStatus>;
106
107
  default: string;
107
108
  };
109
+ select: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
108
113
  }, {
109
114
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
110
115
  modelValue: {
@@ -119,22 +124,29 @@ declare const _default: import("vue").DefineComponent<{
119
124
  type: PropType<FormValidationStatus>;
120
125
  default: string;
121
126
  };
127
+ select: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
122
131
  }>> & {
123
132
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
124
133
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
134
+ "onUpdate:select"?: ((...args: any[]) => any) | undefined;
125
135
  }>>;
126
- emit: (event: "update:modelValue" | "update:status", ...args: any[]) => void;
136
+ emit: (event: "update:modelValue" | "update:status" | "update:select", ...args: any[]) => void;
127
137
  inputRef: any;
128
138
  toSelectInputContent: Ref<number>;
129
139
  update: (value: string | [string, string]) => void;
130
140
  validator: (value: string) => boolean;
131
141
  calculate: (type: string) => void;
142
+ unSelect: () => void;
143
+ onSelect: () => void;
132
144
  NInput: any;
133
145
  NIcon: any;
134
146
  NSpace: any;
135
147
  CaretDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
136
148
  CaretUp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
137
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status")[], "update:modelValue" | "update:status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
149
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status" | "update:select")[], "update:modelValue" | "update:status" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
138
150
  modelValue: {
139
151
  type: StringConstructor;
140
152
  default: string;
@@ -147,13 +159,19 @@ declare const _default: import("vue").DefineComponent<{
147
159
  type: PropType<FormValidationStatus>;
148
160
  default: string;
149
161
  };
162
+ select: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
150
166
  }>> & {
151
167
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
152
168
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
169
+ "onUpdate:select"?: ((...args: any[]) => any) | undefined;
153
170
  }, {
154
171
  modelValue: string;
155
172
  status: FormValidationStatus;
156
173
  integer: boolean;
174
+ select: boolean;
157
175
  }>;
158
176
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
159
177
  defaultValue: {
@@ -44,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  const inputValueStatus = ref("success");
45
45
  const numeratorValueStatus = ref("success");
46
46
  const denominatorValueStatus = ref("success");
47
+ const inputSelect = ref(false);
47
48
  const keyboardRef = ref(null);
48
49
  const style = init();
49
50
  function init() {
@@ -87,12 +88,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
88
  arr.splice(-1, 1, key);
88
89
  inputValue.value = arr.join("");
89
90
  } else {
90
- inputValue.value = (((_b = (_a = inputValue.value) == null ? void 0 : _a.toString) == null ? void 0 : _b.call(_a)) || "") + key;
91
+ inputValue.value = inputSelect.value ? key.toString() : (((_b = (_a = inputValue.value) == null ? void 0 : _a.toString) == null ? void 0 : _b.call(_a)) || "") + key;
91
92
  }
92
93
  }
93
94
  setInputValueStatus();
94
95
  break;
95
96
  }
97
+ inputSelect.value = false;
96
98
  }
97
99
  function validator() {
98
100
  if (!inputValue.value)
@@ -175,8 +177,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
175
177
  modelValue: inputValue.value,
176
178
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
177
179
  status: inputValueStatus.value,
178
- "onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event)
179
- }, null, 8, ["modelValue", "status"]),
180
+ "onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event),
181
+ select: inputSelect.value,
182
+ "onUpdate:select": _cache[2] || (_cache[2] = ($event) => inputSelect.value = $event)
183
+ }, null, 8, ["modelValue", "status", "select"]),
180
184
  createElementVNode("div", _hoisted_1, [
181
185
  createVNode(unref(NSpace), {
182
186
  class: "margin-offset",
@@ -200,13 +204,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
200
204
  default: withCtx(() => [
201
205
  createElementVNode("span", {
202
206
  class: "opt",
203
- onClick: _cache[2] || (_cache[2] = ($event) => keydown("Undo"))
207
+ onClick: _cache[3] || (_cache[3] = ($event) => keydown("Undo"))
204
208
  }, [
205
209
  createVNode(unref(NIcon), { component: unref(ArrowUndoSharp) }, null, 8, ["component"])
206
210
  ]),
207
211
  createElementVNode("span", {
208
212
  class: "opt",
209
- onClick: _cache[3] || (_cache[3] = ($event) => keydown("Enter"))
213
+ onClick: _cache[4] || (_cache[4] = ($event) => keydown("Enter"))
210
214
  }, "\u786E\u5B9A")
211
215
  ]),
212
216
  _: 1
@@ -256,23 +260,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
256
260
  createVNode(InputNumber, {
257
261
  integer: "",
258
262
  modelValue: integerValue.value,
259
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => integerValue.value = $event)
263
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => integerValue.value = $event)
260
264
  }, null, 8, ["modelValue"]),
261
265
  createElementVNode("div", _hoisted_7, [
262
266
  createVNode(InputNumber, {
263
267
  integer: "",
264
268
  modelValue: numeratorValue.value,
265
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => numeratorValue.value = $event),
269
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => numeratorValue.value = $event),
266
270
  status: numeratorValueStatus.value,
267
- "onUpdate:status": _cache[6] || (_cache[6] = ($event) => numeratorValueStatus.value = $event)
271
+ "onUpdate:status": _cache[7] || (_cache[7] = ($event) => numeratorValueStatus.value = $event)
268
272
  }, null, 8, ["modelValue", "status"]),
269
273
  _hoisted_8,
270
274
  createVNode(InputNumber, {
271
275
  integer: "",
272
276
  modelValue: denominatorValue.value,
273
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => denominatorValue.value = $event),
277
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => denominatorValue.value = $event),
274
278
  status: denominatorValueStatus.value,
275
- "onUpdate:status": _cache[8] || (_cache[8] = ($event) => denominatorValueStatus.value = $event)
279
+ "onUpdate:status": _cache[9] || (_cache[9] = ($event) => denominatorValueStatus.value = $event)
276
280
  }, null, 8, ["modelValue", "status"])
277
281
  ])
278
282
  ]),
@@ -499,9 +499,6 @@ declare const _default: import("vue").DefineComponent<{
499
499
  getTotalLen: () => void;
500
500
  countdown: (startTime: any) => void;
501
501
  clearTimer: () => void;
502
- /**
503
- * wacth
504
- */
505
502
  init: () => void;
506
503
  checkType: (val: any) => string;
507
504
  diffAnswered: (form: any) => void;
@@ -315,7 +315,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
315
315
  return openBlock(), createElementBlock("div", {
316
316
  class: normalizeClass(["c-scale", { "c-scale-nobtn": unref(showSaveBtn) }])
317
317
  }, [
318
- createCommentVNode(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="\u52A0\u8F7D\u4E2D"></n-spin>\n </template> '),
318
+ createCommentVNode(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="\u52A0\u8F7D\u4E2D"></n-spin>\r\n </template> '),
319
319
  !state.spinning && !state.hasFrontAddress ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
320
320
  unref(noDataState).noData ? (openBlock(), createBlock(NoData, {
321
321
  key: 0,
package/es/env.d.ts CHANGED
@@ -1,24 +1,24 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv;
10
- }
11
-
12
- declare module '*.vue' {
13
- // @ts-ignore
14
- import type { App, defineComponent } from 'vue';
15
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
- // // const component: DefineComponent<{}, {}, any>
17
- const component: ReturnType<typeof defineComponent> & {
18
- install(app: App): void;
19
- };
20
- // @ts-ignore
21
- export default component;
22
- }
23
-
24
- declare module '*.js';
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv;
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ // @ts-ignore
14
+ import type { App, defineComponent } from 'vue';
15
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
+ // // const component: DefineComponent<{}, {}, any>
17
+ const component: ReturnType<typeof defineComponent> & {
18
+ install(app: App): void;
19
+ };
20
+ // @ts-ignore
21
+ export default component;
22
+ }
23
+
24
+ declare module '*.js';
@@ -652,6 +652,41 @@ const expandXEUtils = (() => {
652
652
  notEmpty(text) {
653
653
  return XEUtils.isBoolean(text) || String(text) === "0" || !!text;
654
654
  },
655
+ anyNotEmpty(text) {
656
+ if (Array.isArray(text))
657
+ return text.length > 0;
658
+ if (XEUtils.isObject(text))
659
+ return Object.keys(text || {}).length > 0;
660
+ return XEUtils.notEmpty(text);
661
+ },
662
+ handleMultiTips(str2, arr = {}) {
663
+ if (!str2.includes("/*###*/"))
664
+ return str2;
665
+ let compileList = str2.split("/*###*/");
666
+ if (compileList.length != 3)
667
+ return str2;
668
+ let compileStr = compileList[1];
669
+ let list = [...arr];
670
+ let len = list.length > 100 ? 100 : list.length;
671
+ let result = [];
672
+ let resultStr = "";
673
+ const getVal2 = (t, i, r) => {
674
+ return t.replace(r, function() {
675
+ let pKey = arguments[1];
676
+ return list[i][pKey] || "";
677
+ });
678
+ };
679
+ for (let i = 0; i < len; i++) {
680
+ result.push(getVal2(compileStr, i, /\${form.selectRows.(.*?)\}/g));
681
+ }
682
+ resultStr = compileList[0] + result.join(",");
683
+ if (list.length > 100) {
684
+ resultStr = resultStr + `\u7B49${list.length}\u6761\u6570\u636E\u5417\uFF1F`;
685
+ } else {
686
+ resultStr = resultStr + compileList[2];
687
+ }
688
+ return resultStr;
689
+ },
655
690
  handleSysParams(str, obj = {}, noval = "") {
656
691
  let p = {
657
692
  ...obj
@@ -703,6 +738,37 @@ const expandXEUtils = (() => {
703
738
  }
704
739
  return str;
705
740
  },
741
+ setParamsValue(paramsList, dbData) {
742
+ const pmDB = {};
743
+ if (paramsList && paramsList.length > 0) {
744
+ paramsList.forEach((it) => {
745
+ if (it.p_value) {
746
+ it.p_name = it.p_name.trim();
747
+ if (it.p_value.includes(".") && it.p_value.split(".").length == 2) {
748
+ const p_key = it.p_value.split(".")[0].trim();
749
+ const c_key = it.p_value.split(".")[1].trim();
750
+ if (dbData[p_key] && (dbData[p_key][c_key] || dbData[p_key][c_key] == 0)) {
751
+ if (typeof dbData[p_key][c_key] == "string" && dbData[p_key][c_key].includes("###{")) {
752
+ try {
753
+ dbData[p_key][c_key] = JSON.parse(dbData[p_key][c_key].split("###")[1]).value;
754
+ pmDB[it.p_name] = dbData[p_key][c_key];
755
+ } catch (error) {
756
+ console.log(error);
757
+ }
758
+ } else {
759
+ pmDB[it.p_name] = dbData[p_key][c_key];
760
+ }
761
+ } else {
762
+ pmDB[it.p_name] = "";
763
+ }
764
+ } else {
765
+ pmDB[it.p_name] = it.p_value;
766
+ }
767
+ }
768
+ });
769
+ }
770
+ return pmDB;
771
+ },
706
772
  isPlainObject(obj2) {
707
773
  return _toString.call(obj2) === "[object Object]";
708
774
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.40-beta.5",
3
+ "version": "3.1.40-beta.7",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -62,5 +62,5 @@
62
62
  "iOS 7",
63
63
  "last 3 iOS versions"
64
64
  ],
65
- "gitHead": "c414b97bdd24f868f447733009d7c321de3b3564"
65
+ "gitHead": "2b472060f09f5ff60c42e6012a72eb2564b226d1"
66
66
  }
File without changes
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/Viewer';
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/features/modeling';
@@ -1 +0,0 @@
1
- declare module 'diagram-js/lib/navigation/movecanvas';