cnhis-design-vue 3.3.3-beta.69 → 3.3.3-beta.70

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 (26) hide show
  1. package/README.md +87 -87
  2. package/es/components/classification/index.d.ts +1 -1
  3. package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -1
  4. package/es/components/classification/src/components/set-classification/index.vue.d.ts +1 -1
  5. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  6. package/es/components/classification/src/index.vue.d.ts +4 -1
  7. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  8. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
  9. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  10. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  11. package/es/components/form-render/src/components/renderer/radio_checkbox.js +7 -2
  12. package/es/components/form-render/style/index.css +1 -1
  13. package/es/components/iho-chat/index.d.ts +1 -1
  14. package/es/components/iho-chat/src/Index.vue.d.ts +1 -1
  15. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  16. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  17. package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
  18. package/es/components/index.css +1 -1
  19. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -1
  20. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
  21. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +12 -10
  22. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +1 -1
  23. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -1
  24. package/es/env.d.ts +25 -25
  25. package/es/shared/package.json.js +1 -1
  26. package/package.json +2 -2
@@ -1071,7 +1071,7 @@ declare const _default: import("vue").DefineComponent<{
1071
1071
  value: string;
1072
1072
  }[]>;
1073
1073
  presetValCp: import("vue").WritableComputedRef<string>;
1074
- customDateCp: import("vue").WritableComputedRef<string>;
1074
+ valueDateCp: import("vue").WritableComputedRef<unknown>;
1075
1075
  handleChange: (val: any, type: "start" | "end") => void;
1076
1076
  isStartDateDisabled: (ts: number) => boolean;
1077
1077
  timeStartDisabled: (ts: number) => {
@@ -69,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
69
69
  value: string;
70
70
  }[]>;
71
71
  presetValCp: import("vue").WritableComputedRef<string>;
72
- customDateCp: import("vue").WritableComputedRef<string>;
72
+ valueDateCp: import("vue").WritableComputedRef<unknown>;
73
73
  handleChange: (val: any, type: 'start' | 'end') => void;
74
74
  isStartDateDisabled: (ts: number) => boolean;
75
75
  timeStartDisabled: (ts: number) => {
@@ -229,16 +229,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
229
229
  return props.presetVal;
230
230
  }
231
231
  });
232
- computed({
232
+ const valueDateCp = computed({
233
233
  set(val) {
234
- emit("update:customDate", val);
234
+ if (val && filterType.value !== "1") {
235
+ const v = typeof val === "number" ? String(val) : val;
236
+ emit("update:modelValue", v);
237
+ }
235
238
  },
236
239
  get() {
237
- return props.customDate;
240
+ if (props.modelValue && filterType.value !== "1") {
241
+ return props.modelValue;
242
+ }
243
+ return null;
238
244
  }
239
245
  });
240
246
  watch(() => props.modelValue, (val) => {
241
- if (val && isString(val) && val.includes("~")) {
247
+ if (val && filterType.value !== "1" && isString(val) && val.includes("~")) {
242
248
  const [start, end] = val.split("~");
243
249
  if (start.trim())
244
250
  startDate.value = moment(start.trim()).valueOf();
@@ -246,10 +252,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
246
252
  endDate.value = moment(end.trim()).valueOf();
247
253
  return;
248
254
  }
249
- if (val && filterType.value !== "1") {
250
- const v = typeof val === "number" ? String(val) : val;
251
- emit("update:modelValue", v);
252
- }
253
255
  startDate.value = endDate.value = null;
254
256
  }, {
255
257
  immediate: true
@@ -335,8 +337,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
335
337
  filterType: unref(filterType),
336
338
  dateType: unref(dateType),
337
339
  valueFormat: unref(valueFormat),
338
- modelValue: __props.modelValue,
339
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
340
+ modelValue: unref(valueDateCp),
341
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(valueDateCp) ? valueDateCp.value = $event : null),
340
342
  presetVal: unref(presetValCp),
341
343
  "onUpdate:presetVal": _cache[4] || (_cache[4] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null)
342
344
  }, null, 8, ["filterType", "dateType", "valueFormat", "modelValue", "presetVal"]))]);
@@ -1010,7 +1010,7 @@ declare const DateRange: import("vue").DefineComponent<{
1010
1010
  value: string;
1011
1011
  }[]>;
1012
1012
  presetValCp: import("vue").WritableComputedRef<string>;
1013
- customDateCp: import("vue").WritableComputedRef<string>;
1013
+ valueDateCp: import("vue").WritableComputedRef<unknown>;
1014
1014
  handleChange: (val: any, type: "start" | "end") => void;
1015
1015
  isStartDateDisabled: (ts: number) => boolean;
1016
1016
  timeStartDisabled: (ts: number) => {
@@ -1201,7 +1201,7 @@ declare const _default: import("vue").DefineComponent<{
1201
1201
  value: string;
1202
1202
  }[]>;
1203
1203
  presetValCp: import("vue").WritableComputedRef<string>;
1204
- customDateCp: import("vue").WritableComputedRef<string>;
1204
+ valueDateCp: import("vue").WritableComputedRef<unknown>;
1205
1205
  handleChange: (val: any, type: "start" | "end") => void;
1206
1206
  isStartDateDisabled: (ts: number) => boolean;
1207
1207
  timeStartDisabled: (ts: number) => {
package/es/env.d.ts CHANGED
@@ -1,25 +1,25 @@
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';
25
-
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';
25
+
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.3.3-beta.69";
2
+ var version = "3.3.3-beta.70";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.3.3-beta.69",
3
+ "version": "3.3.3-beta.70",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -74,5 +74,5 @@
74
74
  "iOS 7",
75
75
  "last 3 iOS versions"
76
76
  ],
77
- "gitHead": "9d93ee205dff646c62e3b97d0787942d3df46bb4"
77
+ "gitHead": "de4b2b644125c3a247095747b62852bf71ac2aef"
78
78
  }