cnhis-design-vue 3.1.11-beta.5 → 3.1.11-beta.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/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +9 -5
- package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +12 -6
- package/es/packages/chunk-upload/src/hooks/vod-computed.js +2 -2
- package/es/packages/chunk-upload/style/index.css +4 -4
- package/es/packages/form-render/src/components/renderer/cascader.js +25 -3
- package/es/packages/index.css +7 -4
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/packages/scale-view/src/components/formitem/r-collection.d.ts +1 -1
- package/es/packages/scale-view/src/components/formitem/r-collection.js +5 -1
- package/es/packages/scale-view/src/hooks/use-component.d.ts +5 -5
- package/es/packages/scale-view/style/index.css +3 -0
- package/package.json +1 -1
|
@@ -133,7 +133,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
133
|
handleCheckExt: (map: any, file: any) => boolean;
|
|
134
134
|
checkMaxLength: () => boolean;
|
|
135
135
|
computeMD5: (file: any) => void;
|
|
136
|
-
onFileAdded: (file: any) =>
|
|
136
|
+
onFileAdded: (file: any) => void;
|
|
137
137
|
verifyUpload: (fileName: any, fileHash: any, file: any) => Promise<unknown>;
|
|
138
138
|
computeMD5Success: (md5: any, file: any) => Promise<void>;
|
|
139
139
|
onFileProgress: () => void;
|
|
@@ -1726,7 +1726,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1726
1726
|
railHeight: string;
|
|
1727
1727
|
iconSizeCircle: string;
|
|
1728
1728
|
iconSizeLine: string;
|
|
1729
|
-
iconColor: string;
|
|
1729
|
+
iconColor: string; /**
|
|
1730
|
+
* 删除
|
|
1731
|
+
*/
|
|
1730
1732
|
iconColorInfo: string;
|
|
1731
1733
|
iconColorSuccess: string;
|
|
1732
1734
|
iconColorWarning: string;
|
|
@@ -1734,10 +1736,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1734
1736
|
textColorCircle: string;
|
|
1735
1737
|
textColorLineInner: string;
|
|
1736
1738
|
textColorLineOuter: string;
|
|
1737
|
-
fillColor: string;
|
|
1738
1739
|
/**
|
|
1739
|
-
*
|
|
1740
|
+
* 上传错误
|
|
1740
1741
|
*/
|
|
1742
|
+
fillColor: string;
|
|
1741
1743
|
fillColorInfo: string;
|
|
1742
1744
|
fillColorSuccess: string;
|
|
1743
1745
|
fillColorWarning: string;
|
|
@@ -1756,7 +1758,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1756
1758
|
'--n-font-weight-circle': string;
|
|
1757
1759
|
'--n-icon-color': string;
|
|
1758
1760
|
'--n-icon-size-circle': string;
|
|
1759
|
-
'--n-icon-size-line': string;
|
|
1761
|
+
'--n-icon-size-line': string; /**
|
|
1762
|
+
* 组件销毁后
|
|
1763
|
+
*/
|
|
1760
1764
|
'--n-line-bg-processing': string;
|
|
1761
1765
|
'--n-rail-color': string;
|
|
1762
1766
|
'--n-rail-height': string;
|
package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, onMounted, nextTick, onUnmounted, resolveComponent, openBlock, createElementBlock, createCommentVNode, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString,
|
|
1
|
+
import { defineComponent, ref, reactive, onMounted, nextTick, onUnmounted, resolveComponent, openBlock, createElementBlock, createCommentVNode, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, withDirectives, normalizeClass, toDisplayString, vShow, createTextVNode } from 'vue';
|
|
2
2
|
import SparkMD5 from 'spark-md5';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import { useMessage, NIcon, NProgress, NButton } from 'naive-ui';
|
|
@@ -138,7 +138,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
fileReader.readAsArrayBuffer(blobSlice.call(file.file, start, end));
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
|
-
const onFileAdded =
|
|
141
|
+
const onFileAdded = (file) => {
|
|
142
142
|
let sizeFlag = checkSize(file);
|
|
143
143
|
if (handleCheckExt(props.propsCategoryMap, file) || checkMaxLength() || sizeFlag) {
|
|
144
144
|
file.ignored = true;
|
|
@@ -204,7 +204,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
204
204
|
statusSet(file, "complete");
|
|
205
205
|
if (uploaderDom) {
|
|
206
206
|
let resData = (data2 == null ? void 0 : data2.data) || {};
|
|
207
|
-
let fileList = uploaderDom.fileList;
|
|
207
|
+
let fileList = uploaderDom.value.fileList;
|
|
208
208
|
fileList.forEach((v) => {
|
|
209
209
|
if (v.uniqueIdentifier == file.uniqueIdentifier) {
|
|
210
210
|
v.crm_chkuns_complete_status = "complete";
|
|
@@ -259,7 +259,11 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
259
259
|
return ["complete", "failed"].includes(getUploadShowStatus(file, "status"));
|
|
260
260
|
};
|
|
261
261
|
const handleRemove = (file) => {
|
|
262
|
-
file.cancel
|
|
262
|
+
if (file.cancel) {
|
|
263
|
+
file.cancel();
|
|
264
|
+
} else if (file.remove) {
|
|
265
|
+
file.remove();
|
|
266
|
+
}
|
|
263
267
|
let id = file.id;
|
|
264
268
|
state.configList = state.configList.filter((c) => c.id !== id);
|
|
265
269
|
};
|
|
@@ -381,7 +385,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
381
385
|
return openBlock(), createElementBlock("li", {
|
|
382
386
|
key: file.id
|
|
383
387
|
}, [
|
|
384
|
-
createVNode(_component_uploader_file, {
|
|
388
|
+
withDirectives(createVNode(_component_uploader_file, {
|
|
385
389
|
class: normalizeClass("file_" + file.id),
|
|
386
390
|
ref_for: true,
|
|
387
391
|
ref: "files",
|
|
@@ -424,7 +428,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
424
428
|
], 2)
|
|
425
429
|
]),
|
|
426
430
|
_: 2
|
|
427
|
-
}, 1032, ["class", "file"])
|
|
431
|
+
}, 1032, ["class", "file"]), [
|
|
432
|
+
[vShow, !file.ignored]
|
|
433
|
+
])
|
|
428
434
|
]);
|
|
429
435
|
}), 128))
|
|
430
436
|
])
|
|
@@ -61,8 +61,8 @@ const VodComputed = (props, state, config) => {
|
|
|
61
61
|
return max_size2 || "";
|
|
62
62
|
});
|
|
63
63
|
const maxlength = computed(() => {
|
|
64
|
-
var _a, _b;
|
|
65
|
-
return +(((_b = (_a = props == null ? void 0 : props.formData) == null ? void 0 : _a.validate) == null ? void 0 : _b.max_length) || 0);
|
|
64
|
+
var _a, _b, _c, _d;
|
|
65
|
+
return +(((_b = (_a = props == null ? void 0 : props.formData) == null ? void 0 : _a.validate) == null ? void 0 : _b.max_length) || ((_d = (_c = props == null ? void 0 : props.formData) == null ? void 0 : _c.setting) == null ? void 0 : _d.limitPic) || 0);
|
|
66
66
|
});
|
|
67
67
|
return {
|
|
68
68
|
isShowBtn,
|
|
@@ -257,10 +257,10 @@
|
|
|
257
257
|
}
|
|
258
258
|
.c-uploader-preview-wrap .uploader-preview-delete {
|
|
259
259
|
position: absolute;
|
|
260
|
-
top:
|
|
261
|
-
right:
|
|
262
|
-
width:
|
|
263
|
-
height:
|
|
260
|
+
top: 3px;
|
|
261
|
+
right: 3px;
|
|
262
|
+
width: 20px;
|
|
263
|
+
height: 20px;
|
|
264
264
|
z-index: 10;
|
|
265
265
|
}
|
|
266
266
|
.c-uploader-preview-wrap .uploader-preview-delete .pre-delete {
|
|
@@ -63,16 +63,31 @@ const script = defineComponent({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
let data = await asyncQueue.addAsync({
|
|
67
67
|
...config,
|
|
68
68
|
key: title.value,
|
|
69
69
|
params
|
|
70
70
|
});
|
|
71
|
+
if (!Array.isArray(data)) {
|
|
72
|
+
data = [];
|
|
73
|
+
}
|
|
74
|
+
if (!data.length && isObject(option)) {
|
|
75
|
+
option.isLeaf = true;
|
|
76
|
+
let currentOption = option;
|
|
77
|
+
const result2 = [option];
|
|
78
|
+
while (currentOption.parent) {
|
|
79
|
+
result2.unshift(currentOption.parent);
|
|
80
|
+
currentOption = currentOption.parent;
|
|
81
|
+
}
|
|
82
|
+
updateValue(null, null, result2);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
71
85
|
const result = data.reduce((res, d) => {
|
|
72
86
|
res.push({
|
|
73
87
|
[config.nameKey]: d[config.nameKey],
|
|
74
88
|
[config.valueKey]: d[config.valueKey],
|
|
75
89
|
depth: parentDepth + 1,
|
|
90
|
+
parent: option,
|
|
76
91
|
isLeaf: parentDepth + 2 >= props.deep
|
|
77
92
|
});
|
|
78
93
|
return res;
|
|
@@ -111,13 +126,20 @@ const script = defineComponent({
|
|
|
111
126
|
const payload = Array.isArray(options) ? options.map((option) => ({
|
|
112
127
|
...option,
|
|
113
128
|
label: option[labelKey.value],
|
|
114
|
-
children: void 0
|
|
129
|
+
children: void 0,
|
|
130
|
+
parent: void 0
|
|
115
131
|
})) : options;
|
|
116
132
|
emit("update:value", payload);
|
|
117
133
|
}
|
|
134
|
+
const show = ref(false);
|
|
135
|
+
function updateShow(v) {
|
|
136
|
+
show.value = !!v;
|
|
137
|
+
v && fetchData();
|
|
138
|
+
}
|
|
118
139
|
return () => {
|
|
119
140
|
return createVNode(NCascader, {
|
|
120
141
|
"value": _value.value,
|
|
142
|
+
"show": !!show.value,
|
|
121
143
|
"onUpdate:value": updateValue,
|
|
122
144
|
"remote": true,
|
|
123
145
|
"labelField": labelKey.value,
|
|
@@ -125,7 +147,7 @@ const script = defineComponent({
|
|
|
125
147
|
"options": renderOptions.value,
|
|
126
148
|
"checkStrategy": "child",
|
|
127
149
|
"onLoad": fetchData,
|
|
128
|
-
"onUpdate:show":
|
|
150
|
+
"onUpdate:show": updateShow
|
|
129
151
|
}, slots);
|
|
130
152
|
};
|
|
131
153
|
}
|
package/es/packages/index.css
CHANGED
|
@@ -1395,10 +1395,10 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
.c-uploader-preview-wrap .uploader-preview-delete {
|
|
1397
1397
|
position: absolute;
|
|
1398
|
-
top:
|
|
1399
|
-
right:
|
|
1400
|
-
width:
|
|
1401
|
-
height:
|
|
1398
|
+
top: 3px;
|
|
1399
|
+
right: 3px;
|
|
1400
|
+
width: 20px;
|
|
1401
|
+
height: 20px;
|
|
1402
1402
|
z-index: 10;
|
|
1403
1403
|
}
|
|
1404
1404
|
.c-uploader-preview-wrap .uploader-preview-delete .pre-delete {
|
|
@@ -1672,6 +1672,9 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
1672
1672
|
text-align: center;
|
|
1673
1673
|
margin-top: 24px;
|
|
1674
1674
|
}
|
|
1675
|
+
.c-scale .linebar-div .n-divider {
|
|
1676
|
+
margin-top: 4px;
|
|
1677
|
+
}
|
|
1675
1678
|
.c-scale .my-prompt {
|
|
1676
1679
|
padding: 10px;
|
|
1677
1680
|
box-shadow: 0 5px 13px rgba(0, 0, 0, 0.14);
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
form: {
|
|
16
16
|
type: ObjectConstructor;
|
|
17
17
|
default: () => {};
|
|
@@ -59,7 +59,11 @@ var RCollection = defineComponent({
|
|
|
59
59
|
}, [describe])]);
|
|
60
60
|
};
|
|
61
61
|
const renderLinebar = () => {
|
|
62
|
-
|
|
62
|
+
if (!props.item.title)
|
|
63
|
+
return null;
|
|
64
|
+
return createVNode("div", {
|
|
65
|
+
"class": "linebar-div"
|
|
66
|
+
}, [createVNode("span", null, [props.item.title]), createVNode(resolveComponent("n-divider"), null, null)]);
|
|
63
67
|
};
|
|
64
68
|
const renderPrompt = () => {
|
|
65
69
|
return createVNode("div", {
|
|
@@ -13,7 +13,7 @@ export declare const componentMap: {
|
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
form: {
|
|
18
18
|
type: ObjectConstructor;
|
|
19
19
|
default: () => {};
|
|
@@ -44,7 +44,7 @@ export declare const componentMap: {
|
|
|
44
44
|
type: BooleanConstructor;
|
|
45
45
|
default: boolean;
|
|
46
46
|
};
|
|
47
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
48
|
form: {
|
|
49
49
|
type: ObjectConstructor;
|
|
50
50
|
default: () => {};
|
|
@@ -10190,7 +10190,7 @@ export declare const componentMap: {
|
|
|
10190
10190
|
type: BooleanConstructor;
|
|
10191
10191
|
default: boolean;
|
|
10192
10192
|
};
|
|
10193
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10193
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10194
10194
|
form: {
|
|
10195
10195
|
type: ObjectConstructor;
|
|
10196
10196
|
default: () => {};
|
|
@@ -10221,7 +10221,7 @@ export declare const componentMap: {
|
|
|
10221
10221
|
type: BooleanConstructor;
|
|
10222
10222
|
default: boolean;
|
|
10223
10223
|
};
|
|
10224
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10224
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10225
10225
|
form: {
|
|
10226
10226
|
type: ObjectConstructor;
|
|
10227
10227
|
default: () => {};
|
|
@@ -10252,7 +10252,7 @@ export declare const componentMap: {
|
|
|
10252
10252
|
type: BooleanConstructor;
|
|
10253
10253
|
default: boolean;
|
|
10254
10254
|
};
|
|
10255
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10255
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10256
10256
|
form: {
|
|
10257
10257
|
type: ObjectConstructor;
|
|
10258
10258
|
default: () => {};
|