cnhis-design-vue 3.1.19-beta.2 → 3.1.19-beta.4
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 +123 -0
- package/es/components/big-table/index.d.ts +1 -1
- package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-date.js +2 -1
- package/es/components/big-table/src/hooks/useEvent2.js +18 -24
- package/es/components/button-print/index.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
- package/es/components/drag-layout/index.d.ts +1 -1
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +1 -1
- package/es/components/fabric-chart/index.d.ts +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint2.js +2 -2
- package/es/components/fabric-chart/src/hooks/useOther2.js +18 -14
- package/es/components/form-config/index.d.ts +10 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +10 -3
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +9 -2
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/index2.js +1 -0
- package/es/components/form-render/src/FormRender.js +3 -3
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/cascader.d.ts +9 -2
- package/es/components/form-render/src/components/renderer/cascader.js +39 -5
- package/es/components/form-render/src/components/renderer/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/index.js +1 -0
- package/es/components/form-render/src/components/renderer/index2.js +1 -0
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/search.d.ts +48 -0
- package/es/components/form-render/src/components/renderer/search.js +172 -0
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/select.js +4 -11
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +23 -6
- package/es/components/form-render/src/hooks/useFormContext2.js +2 -10
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +10 -0
- package/es/components/form-render/src/hooks/useFormRequest2.js +8 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +16 -4
- package/es/components/form-render/src/utils/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +24 -1
- package/es/components/form-render/src/utils/schema.d.ts +3 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/form-render/src/utils/schema2.js +9 -1
- package/es/components/form-table/index.d.ts +1 -1
- package/es/components/form-table/src/FormTable.vue.d.ts +1 -1
- package/es/components/form-table/src/components/index.d.ts +1 -1
- package/es/components/form-table/src/components/table-age.vue.d.ts +1 -1
- package/es/components/grid/src/hooks2.js +1 -0
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.vue.d.ts +1 -1
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +2 -2
- package/es/components/select-label/index.d.ts +4 -4
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +2 -2
- package/es/components/select-label/src/SelectLabel.vue.d.ts +2 -2
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +9 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +9 -2
- package/es/components/steps-wheel/index.d.ts +30 -0
- package/es/components/steps-wheel/src/StepsWheel.js +152 -103
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +30 -0
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/time-line/index.d.ts +1 -1
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/package.json +6 -5
|
@@ -19,6 +19,14 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
+
noDataMsg: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
placement: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
22
30
|
}, {
|
|
23
31
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
24
32
|
stepInfo: {
|
|
@@ -40,11 +48,22 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
40
48
|
type: BooleanConstructor;
|
|
41
49
|
default: boolean;
|
|
42
50
|
};
|
|
51
|
+
noDataMsg: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
placement: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
43
59
|
}>> & {
|
|
44
60
|
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
45
61
|
}>>;
|
|
46
62
|
nodeRowCount: import("vue").ComputedRef<number>;
|
|
47
63
|
lastNodeRenderShow: import("vue").ComputedRef<boolean>;
|
|
64
|
+
noDataMsg: import("vue").Ref<string>;
|
|
65
|
+
stepItemRef: any;
|
|
66
|
+
countBoxWidth: import("vue").ComputedRef<string>;
|
|
48
67
|
stepInfoList: import("vue").Ref<any[]>;
|
|
49
68
|
handleNode: (nodeList: any[], cols: number) => void;
|
|
50
69
|
lineCircleLeft: (stepItem: any) => boolean;
|
|
@@ -55,6 +74,7 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
55
74
|
handleFinishLastNodeCss: (index: number) => boolean;
|
|
56
75
|
handleFinishLastNodeLine: (index: number) => boolean;
|
|
57
76
|
NTooltip: any;
|
|
77
|
+
NEmpty: any;
|
|
58
78
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
79
|
stepInfo: {
|
|
60
80
|
type: ObjectConstructor;
|
|
@@ -75,7 +95,17 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
75
95
|
type: BooleanConstructor;
|
|
76
96
|
default: boolean;
|
|
77
97
|
};
|
|
98
|
+
noDataMsg: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
placement: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
78
106
|
}>>, {
|
|
107
|
+
noDataMsg: string;
|
|
108
|
+
placement: string;
|
|
79
109
|
stepInfo: Record<string, any>;
|
|
80
110
|
currentStep: number;
|
|
81
111
|
toolTipShow: boolean;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, createCommentVNode, renderSlot, toDisplayString, createBlock,
|
|
2
|
-
import { NTooltip } from 'naive-ui';
|
|
1
|
+
import { defineComponent, computed, toRefs, ref, watch, openBlock, createElementBlock, normalizeStyle, unref, createElementVNode, Fragment, renderList, normalizeClass, createCommentVNode, renderSlot, toDisplayString, createBlock, withCtx, withDirectives, vShow, createVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { NTooltip, NEmpty } from 'naive-ui';
|
|
3
3
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
4
4
|
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "stepOut"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_2 = { style: { "list-style": "none", "width": "100%" } };
|
|
7
10
|
const _hoisted_3 = ["title"];
|
|
8
11
|
const _hoisted_4 = /* @__PURE__ */ createElementVNode("ul", { class: "nodeTipContent" }, [
|
|
9
12
|
/* @__PURE__ */ createElementVNode("li", null, [
|
|
@@ -25,11 +28,10 @@ const _hoisted_4 = /* @__PURE__ */ createElementVNode("ul", { class: "nodeTipCon
|
|
|
25
28
|
/* @__PURE__ */ createElementVNode("p", null, "\u54B1\u8FD9\u662F\u4E2A\u6D4B\u8BD5\u6848\u4F8B,\u8BF7\u4F7F\u7528\u63D2\u69FD\uFF1A#nodeTipBox \u81EA\u5B9A\u4E49")
|
|
26
29
|
])
|
|
27
30
|
], -1);
|
|
28
|
-
const _hoisted_5 =
|
|
31
|
+
const _hoisted_5 = ["title"];
|
|
29
32
|
const _hoisted_6 = ["title"];
|
|
30
|
-
const _hoisted_7 =
|
|
31
|
-
const _hoisted_8 = {
|
|
32
|
-
const _hoisted_9 = { key: 1 };
|
|
33
|
+
const _hoisted_7 = { key: 1 };
|
|
34
|
+
const _hoisted_8 = { key: 1 };
|
|
33
35
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
36
|
__name: "StepsWheel",
|
|
35
37
|
props: {
|
|
@@ -53,6 +55,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
55
|
lastNodeRender: {
|
|
54
56
|
type: Boolean,
|
|
55
57
|
default: false
|
|
58
|
+
},
|
|
59
|
+
noDataMsg: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: "\u6682\u65E0\u8282\u70B9\u6570\u636E"
|
|
62
|
+
},
|
|
63
|
+
placement: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "center"
|
|
56
66
|
}
|
|
57
67
|
},
|
|
58
68
|
setup(__props) {
|
|
@@ -63,12 +73,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
73
|
const lastNodeRenderShow = computed(() => {
|
|
64
74
|
return props.lastNodeRender;
|
|
65
75
|
});
|
|
76
|
+
const { noDataMsg } = toRefs(props);
|
|
77
|
+
const stepItemRef = ref(null);
|
|
78
|
+
const countBoxWidth = computed(() => {
|
|
79
|
+
var _a;
|
|
80
|
+
let min = 72;
|
|
81
|
+
if ((_a = stepItemRef == null ? void 0 : stepItemRef.value) == null ? void 0 : _a.length) {
|
|
82
|
+
let element = stepItemRef.value[0];
|
|
83
|
+
let style = window.getComputedStyle ? window.getComputedStyle(element) : element.currentStyle;
|
|
84
|
+
min = isNaN(parseInt(style["min-width"])) ? 72 : parseInt(style["min-width"]);
|
|
85
|
+
}
|
|
86
|
+
let width = 20 + props.stepInfo.cols * min;
|
|
87
|
+
return `${width}px`;
|
|
88
|
+
});
|
|
66
89
|
const stepInfoList = ref([]);
|
|
67
90
|
const handleNode = (nodeList, cols) => {
|
|
68
91
|
let length = nodeList.length + 1;
|
|
69
|
-
let rows = Math.ceil(length / cols);
|
|
92
|
+
let rows = Math.ceil(nodeList.length / cols);
|
|
70
93
|
let sort = true;
|
|
71
|
-
let arr =
|
|
94
|
+
let arr = [];
|
|
72
95
|
for (var i = 0; i < rows; i++) {
|
|
73
96
|
arr[i] = new Array(cols);
|
|
74
97
|
arr[i].fill(null);
|
|
@@ -105,10 +128,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
128
|
stepInfoList.value = list;
|
|
106
129
|
};
|
|
107
130
|
const lineCircleLeft = (stepItem) => {
|
|
108
|
-
|
|
131
|
+
const { list = [] } = props.stepInfo;
|
|
132
|
+
return stepItem.rowIndex % 2 == 0 && stepItem.nodeType == "frist" && stepItem.nodeIndex !== list.length;
|
|
109
133
|
};
|
|
110
134
|
const lineCircleRight = (stepItem) => {
|
|
111
|
-
|
|
135
|
+
const { list = [] } = props.stepInfo;
|
|
136
|
+
return stepItem.rowIndex % 2 != 0 && stepItem.nodeType == "last" && stepItem.nodeIndex !== list.length;
|
|
112
137
|
};
|
|
113
138
|
const lineActiveShow = (stepItem, index) => {
|
|
114
139
|
if (stepItem.rowIndex % 2 == 0) {
|
|
@@ -164,99 +189,123 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
189
|
}
|
|
165
190
|
}, { immediate: true, deep: true });
|
|
166
191
|
return (_ctx, _cache) => {
|
|
167
|
-
return openBlock(), createElementBlock("div",
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
createElementVNode("div", {
|
|
195
|
-
class: normalizeClass(["icon", {
|
|
196
|
-
active: __props.currentStep >= stepItem.nodeIndex,
|
|
197
|
-
finished: handleFinishLastNodeCss(index)
|
|
198
|
-
}])
|
|
199
|
-
}, null, 2)
|
|
200
|
-
]),
|
|
201
|
-
default: withCtx(() => [
|
|
202
|
-
renderSlot(_ctx.$slots, "nodeTipBox", {
|
|
203
|
-
stepId: stepItem.stepId
|
|
204
|
-
}, () => [
|
|
205
|
-
_hoisted_4
|
|
192
|
+
return openBlock(), createElementBlock("div", {
|
|
193
|
+
class: "step-wheel-box",
|
|
194
|
+
style: normalizeStyle({ minWidth: unref(countBoxWidth) })
|
|
195
|
+
}, [
|
|
196
|
+
stepInfoList.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
197
|
+
createElementVNode("ul", _hoisted_2, [
|
|
198
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(stepInfoList.value, (stepItem, index) => {
|
|
199
|
+
return openBlock(), createElementBlock("li", {
|
|
200
|
+
class: normalizeClass(["stepItem", { [`stepItem_${index + 1}`]: true, [`${stepItem == null ? void 0 : stepItem.stepId}`]: (stepItem == null ? void 0 : stepItem.stepId) ? true : false }]),
|
|
201
|
+
ref_for: true,
|
|
202
|
+
ref_key: "stepItemRef",
|
|
203
|
+
ref: stepItemRef,
|
|
204
|
+
key: (stepItem == null ? void 0 : stepItem.stepId) || index
|
|
205
|
+
}, [
|
|
206
|
+
stepItem ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
207
|
+
createCommentVNode(" \u6B65\u9AA4\u5934\u90E8\u4FE1\u606F "),
|
|
208
|
+
createElementVNode("div", {
|
|
209
|
+
class: normalizeClass(["stepTopBox", {
|
|
210
|
+
finished: handleFinishLastNodeCss(index),
|
|
211
|
+
stepTopBox_right: __props.placement === "right",
|
|
212
|
+
stepTopBox_left: __props.placement === "left"
|
|
213
|
+
}])
|
|
214
|
+
}, [
|
|
215
|
+
renderSlot(_ctx.$slots, "stepTopBox", {}, () => [
|
|
216
|
+
createElementVNode("span", {
|
|
217
|
+
title: stepItem.title
|
|
218
|
+
}, toDisplayString(stepItem.title), 9, _hoisted_3)
|
|
206
219
|
])
|
|
207
|
-
]),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
lineCircleActive: __props.currentStep > stepItem.nodeIndex,
|
|
231
|
-
lineCircleRight: lineCircleRight(stepItem),
|
|
232
|
-
lineCircleLeft: lineCircleLeft(stepItem)
|
|
233
|
-
})
|
|
234
|
-
}, null, 2)) : createCommentVNode("v-if", true),
|
|
235
|
-
createCommentVNode(" \u6B65\u9AA4\u5E95\u90E8\u4FE1\u606F "),
|
|
236
|
-
createElementVNode("div", _hoisted_5, [
|
|
237
|
-
renderSlot(_ctx.$slots, "stepBottomBox", {}, () => [
|
|
238
|
-
createCommentVNode(" \u6B65\u9AA4\u540D\u79F0 "),
|
|
239
|
-
createElementVNode("p", {
|
|
240
|
-
class: normalizeClass(["stepLabel", { labelFinsh: handleFinishLastNodeCss(index) }]),
|
|
241
|
-
title: stepItem.label
|
|
242
|
-
}, toDisplayString(stepItem.label), 11, _hoisted_6),
|
|
243
|
-
withDirectives(createElementVNode("p", {
|
|
244
|
-
class: "stepExtra",
|
|
245
|
-
title: stepItem.person
|
|
246
|
-
}, toDisplayString(stepItem.person), 9, _hoisted_7), [
|
|
247
|
-
[vShow, stepItem.person]
|
|
220
|
+
], 2),
|
|
221
|
+
createCommentVNode(" \u6B65\u9AA4\u6761\u7684\u8282\u70B9\uFF0C\u6B64\u5904\u4E3A\u5706\u5708 "),
|
|
222
|
+
__props.toolTipShow ? (openBlock(), createBlock(unref(NTooltip), {
|
|
223
|
+
key: 0,
|
|
224
|
+
placement: "top",
|
|
225
|
+
"show-arrow": true,
|
|
226
|
+
trigger: "hover",
|
|
227
|
+
style: normalizeStyle({ opacity: "0.88" })
|
|
228
|
+
}, {
|
|
229
|
+
trigger: withCtx(() => [
|
|
230
|
+
createElementVNode("div", {
|
|
231
|
+
class: normalizeClass(["icon", {
|
|
232
|
+
active: __props.currentStep >= stepItem.nodeIndex,
|
|
233
|
+
finished: handleFinishLastNodeCss(index)
|
|
234
|
+
}])
|
|
235
|
+
}, null, 2)
|
|
236
|
+
]),
|
|
237
|
+
default: withCtx(() => [
|
|
238
|
+
renderSlot(_ctx.$slots, "nodeTipBox", {
|
|
239
|
+
stepId: stepItem.stepId
|
|
240
|
+
}, () => [
|
|
241
|
+
_hoisted_4
|
|
242
|
+
])
|
|
248
243
|
]),
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
244
|
+
_: 2
|
|
245
|
+
}, 1032, ["style"])) : (openBlock(), createElementBlock("div", {
|
|
246
|
+
key: 1,
|
|
247
|
+
class: normalizeClass(["icon", {
|
|
248
|
+
active: __props.currentStep >= stepItem.nodeIndex,
|
|
249
|
+
finished: handleFinishLastNodeCss(index)
|
|
250
|
+
}])
|
|
251
|
+
}, null, 2)),
|
|
252
|
+
createCommentVNode(" \u6B65\u9AA4\u6761\u8FDE\u63A5\u7EBF\uFF0C\u52A8\u6001\u663E\u793A "),
|
|
253
|
+
stepItem.nodeType !== "last" ? withDirectives((openBlock(), createElementBlock("div", {
|
|
254
|
+
key: 2,
|
|
255
|
+
class: normalizeClass(["line", {
|
|
256
|
+
lineActive: lineActiveShow(stepItem, index),
|
|
257
|
+
finished: handleFinishLastNodeLine(index)
|
|
258
|
+
}])
|
|
259
|
+
}, null, 2)), [
|
|
260
|
+
[vShow, lastLineHidden(index)]
|
|
261
|
+
]) : createCommentVNode("v-if", true),
|
|
262
|
+
createCommentVNode(" \u6B65\u9AA4\u6761\u5F2F\u66F2\u8FDE\u7EBF\uFF0C\u52A8\u6001\u6E32\u67D3 "),
|
|
263
|
+
lineCircleLeft(stepItem) || lineCircleRight(stepItem) ? (openBlock(), createElementBlock("div", {
|
|
264
|
+
key: 3,
|
|
265
|
+
class: normalizeClass({
|
|
266
|
+
lineCircleActive: __props.currentStep > stepItem.nodeIndex,
|
|
267
|
+
lineCircleRight: lineCircleRight(stepItem),
|
|
268
|
+
lineCircleLeft: lineCircleLeft(stepItem)
|
|
269
|
+
})
|
|
270
|
+
}, null, 2)) : createCommentVNode("v-if", true),
|
|
271
|
+
createCommentVNode(" \u6B65\u9AA4\u5E95\u90E8\u4FE1\u606F "),
|
|
272
|
+
createElementVNode("div", {
|
|
273
|
+
class: normalizeClass(["stepBottomBox", { stepBottomBox_right: __props.placement === "right", stepBottomBox_left: __props.placement === "left" }])
|
|
274
|
+
}, [
|
|
275
|
+
renderSlot(_ctx.$slots, "stepBottomBox", {}, () => [
|
|
276
|
+
createCommentVNode(" \u6B65\u9AA4\u540D\u79F0 "),
|
|
277
|
+
withDirectives(createElementVNode("p", {
|
|
278
|
+
class: normalizeClass(["stepLabel", {
|
|
279
|
+
labelFinsh: handleFinishLastNodeCss(index),
|
|
280
|
+
stepLabel_right: __props.placement === "right",
|
|
281
|
+
stepLabel_left: __props.placement === "left"
|
|
282
|
+
}]),
|
|
283
|
+
title: stepItem.label
|
|
284
|
+
}, toDisplayString(stepItem.label), 11, _hoisted_5), [
|
|
285
|
+
[vShow, stepItem.label]
|
|
286
|
+
]),
|
|
287
|
+
withDirectives(createElementVNode("p", {
|
|
288
|
+
class: "stepExtra",
|
|
289
|
+
title: stepItem.person
|
|
290
|
+
}, toDisplayString(stepItem.person), 9, _hoisted_6), [
|
|
291
|
+
[vShow, stepItem.person]
|
|
292
|
+
]),
|
|
293
|
+
createCommentVNode(" \u6B65\u9AA4\u65F6\u95F4 "),
|
|
294
|
+
withDirectives(createElementVNode("p", { class: "statusTime" }, toDisplayString(stepItem.statusTime), 513), [
|
|
295
|
+
[vShow, stepItem.statusTime]
|
|
296
|
+
])
|
|
297
|
+
])
|
|
298
|
+
], 2)
|
|
299
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
300
|
+
createCommentVNode("null\u5143\u7D20\u5360\u4F4D")
|
|
301
|
+
]))
|
|
302
|
+
], 2);
|
|
303
|
+
}), 128))
|
|
304
|
+
])
|
|
305
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
306
|
+
createVNode(unref(NEmpty), { description: unref(noDataMsg) }, null, 8, ["description"])
|
|
307
|
+
]))
|
|
308
|
+
], 4);
|
|
260
309
|
};
|
|
261
310
|
}
|
|
262
311
|
});
|
|
@@ -18,6 +18,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
+
noDataMsg: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
placement: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
21
29
|
}, {
|
|
22
30
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
23
31
|
stepInfo: {
|
|
@@ -39,11 +47,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
47
|
type: BooleanConstructor;
|
|
40
48
|
default: boolean;
|
|
41
49
|
};
|
|
50
|
+
noDataMsg: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
placement: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
42
58
|
}>> & {
|
|
43
59
|
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
44
60
|
}>>;
|
|
45
61
|
nodeRowCount: import("vue").ComputedRef<number>;
|
|
46
62
|
lastNodeRenderShow: import("vue").ComputedRef<boolean>;
|
|
63
|
+
noDataMsg: import("vue").Ref<string>;
|
|
64
|
+
stepItemRef: any;
|
|
65
|
+
countBoxWidth: import("vue").ComputedRef<string>;
|
|
47
66
|
stepInfoList: import("vue").Ref<any[]>;
|
|
48
67
|
handleNode: (nodeList: any[], cols: number) => void;
|
|
49
68
|
lineCircleLeft: (stepItem: any) => boolean;
|
|
@@ -54,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
73
|
handleFinishLastNodeCss: (index: number) => boolean;
|
|
55
74
|
handleFinishLastNodeLine: (index: number) => boolean;
|
|
56
75
|
NTooltip: any;
|
|
76
|
+
NEmpty: any;
|
|
57
77
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
78
|
stepInfo: {
|
|
59
79
|
type: ObjectConstructor;
|
|
@@ -74,7 +94,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
94
|
type: BooleanConstructor;
|
|
75
95
|
default: boolean;
|
|
76
96
|
};
|
|
97
|
+
noDataMsg: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
placement: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
77
105
|
}>>, {
|
|
106
|
+
noDataMsg: string;
|
|
107
|
+
placement: string;
|
|
78
108
|
stepInfo: Record<string, any>;
|
|
79
109
|
currentStep: number;
|
|
80
110
|
toolTipShow: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepItem{float:left;font-family:SimSun;font-size:16px;height:180px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border:1px dashed rgba(3,2,2,.4);border-left:none;border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:none;border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border:1px solid #2563f4}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:#2563f4}.step-wheel-box .stepOut .stepItem .finished{background-color:#5dc055!important;border-color:#5dc055!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:#5dc055!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid #2563f4}.step-wheel-box .stepOut .stepItem .stepTopBox{background:rgba(110,153,255,.11);border-radius:4px;color:#2563f4;cursor:pointer;height:40px;left:50%;line-height:40px;max-width:70%;min-width:73px;overflow:hidden;padding:0 5px;position:absolute;text-overflow:ellipsis;top:-48px;transform:translateX(-50%);white-space:nowrap}.step-wheel-box .stepOut .stepItem .stepTopBox_right{transform:translateX(-10%)}.step-wheel-box .stepOut .stepItem .stepTopBox_left{transform:translateX(-90%)}.step-wheel-box .stepOut .stepItem .stepBottomBox{align-items:center;cursor:pointer;display:flex;flex-direction:column;min-width:73px;width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox_right{align-items:flex-start;left:45%;position:relative}.step-wheel-box .stepOut .stepItem .stepBottomBox_left{align-items:flex-end;left:-45%;position:relative}.step-wheel-box .stepOut .stepItem .stepLabel{color:#212121;line-height:36px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.step-wheel-box .stepOut .stepItem .stepLabel_right{text-align:left}.step-wheel-box .stepOut .stepItem .stepLabel_left{text-align:right}.step-wheel-box .stepOut .stepItem .stepExtra{border:1px solid #cacaca;border-radius:4px;height:26px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:73px}.step-wheel-box .stepOut .stepItem .statusTime{color:rgba(0,0,0,.6);font-size:14px;font-weight:400;height:34px;margin:0;width:73px}.nodeTipContent{margin:0;max-height:200px;max-width:400px;overflow:auto;padding:0;text-align:center}.nodeTipContent li{list-style:none;margin-bottom:5px}.nodeTipContent li p{margin:0}
|
|
@@ -50,7 +50,7 @@ declare const TimeLine: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
50
50
|
}> | undefined;
|
|
51
51
|
themeClass: import("vue").Ref<string> | undefined;
|
|
52
52
|
onRender: (() => void) | undefined;
|
|
53
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
53
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
54
|
time: import("vue").PropType<string | number>;
|
|
55
55
|
title: StringConstructor;
|
|
56
56
|
content: StringConstructor;
|
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
}> | undefined;
|
|
54
54
|
themeClass: import("vue").Ref<string> | undefined;
|
|
55
55
|
onRender: (() => void) | undefined;
|
|
56
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
57
|
time: PropType<string | number>;
|
|
58
58
|
title: StringConstructor;
|
|
59
59
|
content: StringConstructor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.19-beta.
|
|
3
|
+
"version": "3.1.19-beta.4",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"es/components/*(.css,.less)"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
|
-
"es"
|
|
13
|
+
"es",
|
|
14
|
+
"README.md"
|
|
14
15
|
],
|
|
15
16
|
"peerDependencies": {
|
|
16
|
-
"naive-ui": "^2.
|
|
17
|
+
"naive-ui": "^2.30.0",
|
|
17
18
|
"vue": "^3.2.0"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"min-dash": "^3.8.1",
|
|
43
44
|
"min-dom": "^3.2.1",
|
|
44
45
|
"moment": "^2.29.1",
|
|
45
|
-
"naive-ui": "^2.
|
|
46
|
+
"naive-ui": "^2.30.0",
|
|
46
47
|
"rimraf": "^3.0.2",
|
|
47
48
|
"spark-md5": "^3.0.2",
|
|
48
49
|
"tiny-svg": "^2.2.4",
|
|
@@ -65,5 +66,5 @@
|
|
|
65
66
|
"iOS 7",
|
|
66
67
|
"last 3 iOS versions"
|
|
67
68
|
],
|
|
68
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "0b7947b3fce24ea999c0b8e54be9da41e0757c1a"
|
|
69
70
|
}
|