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.
- package/README.md +87 -87
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +4 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +7 -2
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +1 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
- package/es/components/index.css +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +12 -10
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- 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
|
-
|
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) => {
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
@@ -69,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
69
|
value: string;
|
70
70
|
}[]>;
|
71
71
|
presetValCp: import("vue").WritableComputedRef<string>;
|
72
|
-
|
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) => {
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
CHANGED
@@ -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
|
-
|
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
|
-
|
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:
|
339
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(
|
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
|
-
|
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
|
-
|
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
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.3.3-beta.
|
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": "
|
77
|
+
"gitHead": "de4b2b644125c3a247095747b62852bf71ac2aef"
|
78
78
|
}
|