cnhis-design-vue 3.1.18-beta.9 → 3.1.18
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/components/annotation-edit/style/index.css +1 -15
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +12 -4
- package/es/components/big-table/src/components/edit-form/edit-input.js +4 -1
- package/es/components/big-table/src/hooks/useEvent2.js +22 -7
- package/es/components/big-table/style/index.css +1 -634
- package/es/components/bpmn-workflow/style/index.css +1 -29
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print2.js +12 -14
- package/es/components/button-print/style/index.css +1 -24
- package/es/components/chunk-upload/style/index.css +1 -365
- package/es/components/drag-layout/style/index.css +1 -175
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter2.js +58 -38
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw2.js +30 -1
- package/es/components/fabric-chart/src/hooks/useLeft2.js +8 -1
- package/es/components/fabric-chart/style/index.css +1 -43
- package/es/components/field-set/style/index.css +1 -139
- package/es/components/form-config/src/utils/index2.js +1 -1
- package/es/components/form-config/style/index.css +1 -158
- package/es/components/form-render/style/index.css +1 -146
- package/es/components/form-table/style/index.css +1 -214
- package/es/components/grid/src/hooks2.js +1 -0
- package/es/components/grid/style/index.css +1 -10
- package/es/components/index.css +1 -3346
- package/es/components/info-header/style/index.css +1 -121
- package/es/components/map/style/index.css +1 -61
- package/es/components/scale-view/style/index.css +1 -738
- package/es/components/select-label/style/index.css +1 -164
- package/es/components/select-person/style/index.css +1 -193
- package/es/components/shortcut-provider/style/index.css +1 -3
- package/es/components/shortcut-setter/style/index.css +1 -8
- package/es/components/steps-wheel/style/index.css +1 -161
- package/es/components/time-line/style/index.css +1 -37
- package/es/env.d.ts +0 -18
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, onMounted, nextTick } from 'vue';
|
|
2
2
|
import { fabric } from '../utils/index.js';
|
|
3
|
-
import { drawLine, defaultStyle, drawPoint,
|
|
3
|
+
import { drawLine, defaultStyle, drawPoint, drawText, drawArrow } from './useDraw2.js';
|
|
4
4
|
import useGrid from './useGrid2.js';
|
|
5
5
|
import { useShadow } from './useShadow2.js';
|
|
6
6
|
import { TEMPERATURE_MENU, PAIN_MENU } from './constant2.js';
|
|
@@ -228,8 +228,22 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
function drawPolyLine(item, dataIndex, scaleValue) {
|
|
231
|
-
const {
|
|
232
|
-
|
|
231
|
+
const {
|
|
232
|
+
pointAttr = {},
|
|
233
|
+
lineAttr = {},
|
|
234
|
+
type: pointType = "circle",
|
|
235
|
+
upArrowShow = false,
|
|
236
|
+
limitValueShow = false
|
|
237
|
+
} = item;
|
|
238
|
+
const {
|
|
239
|
+
type,
|
|
240
|
+
noRiseStyle = {},
|
|
241
|
+
verifiedStyle = {},
|
|
242
|
+
reduceStyle = {},
|
|
243
|
+
pacemaker = {},
|
|
244
|
+
upArrowStyle = {},
|
|
245
|
+
limitValueStyle = {}
|
|
246
|
+
} = scaleValue;
|
|
233
247
|
const pointList = [];
|
|
234
248
|
const lineList = [];
|
|
235
249
|
const otherList = [];
|
|
@@ -239,7 +253,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
239
253
|
const nextV = item.list[index + 1];
|
|
240
254
|
const nextPoint = getPointer(nextV, scaleValue);
|
|
241
255
|
let reduceLine, reducePoint, noRiseText, arrowGroup, verifiedText;
|
|
242
|
-
if ((points == null ? void 0 : points.length) && (
|
|
256
|
+
if ((points == null ? void 0 : points.length) && (type === "temperature" || type === "pain")) {
|
|
243
257
|
if (v.noRise) {
|
|
244
258
|
if (typeof v.noRise === "string") {
|
|
245
259
|
noRiseText = drawText([points[0], points[1] + 5], {
|
|
@@ -250,22 +264,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
250
264
|
otherList.push(noRiseText);
|
|
251
265
|
} else {
|
|
252
266
|
const top = points[1] + yCellHeight * 2;
|
|
253
|
-
|
|
254
|
-
...lineAttr,
|
|
255
|
-
stroke: noRiseStyle.fill
|
|
256
|
-
});
|
|
257
|
-
const arrow = drawText([points[0] + 0.5, top + 3], {
|
|
258
|
-
value: "v",
|
|
259
|
-
originX: "center",
|
|
260
|
-
originY: "bottom",
|
|
261
|
-
fontSize: 16,
|
|
262
|
-
...noRiseStyle
|
|
263
|
-
});
|
|
264
|
-
arrowGroup = new fabric.Group([arrowLine, arrow], {
|
|
265
|
-
...defaultStyle,
|
|
266
|
-
originX: "center",
|
|
267
|
-
originY: "top"
|
|
268
|
-
});
|
|
267
|
+
arrowGroup = drawArrow([points[0], points[1], top], noRiseStyle);
|
|
269
268
|
otherList.push(arrowGroup);
|
|
270
269
|
}
|
|
271
270
|
}
|
|
@@ -279,7 +278,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
279
278
|
otherList.push(verifiedText);
|
|
280
279
|
}
|
|
281
280
|
if (v.physicsReduce || v.drugReduce) {
|
|
282
|
-
const reduceY = cumputedY(
|
|
281
|
+
const reduceY = cumputedY(type, scaleValue.list, v.physicsReduce || v.drugReduce);
|
|
283
282
|
reduceLine = drawLine([...points, points[0], reduceY], {
|
|
284
283
|
...lineAttr,
|
|
285
284
|
...reduceStyle.line,
|
|
@@ -295,13 +294,43 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
295
294
|
reducePoint && otherList.push(reducePoint);
|
|
296
295
|
}
|
|
297
296
|
}
|
|
297
|
+
if ((points == null ? void 0 : points.length) && type === "pulse") {
|
|
298
|
+
let upArrow;
|
|
299
|
+
if (upArrowShow && v.value > 180) {
|
|
300
|
+
let top = points[1] - yCellHeight * 2.5;
|
|
301
|
+
let yArr = [points[1] - yCellHeight / 2, top];
|
|
302
|
+
if (top < vitalSignsOriginY.originY) {
|
|
303
|
+
top = points[1] + yCellHeight * 2.5;
|
|
304
|
+
yArr = [top, points[1] + yCellHeight / 2];
|
|
305
|
+
}
|
|
306
|
+
upArrow = drawArrow([points[0], yArr[0], yArr[1]], upArrowStyle, "up");
|
|
307
|
+
otherList.push(upArrow);
|
|
308
|
+
}
|
|
309
|
+
if (limitValueShow) {
|
|
310
|
+
const commonOptions = {
|
|
311
|
+
value: v.value,
|
|
312
|
+
originX: "center",
|
|
313
|
+
originY: "center",
|
|
314
|
+
...limitValueStyle
|
|
315
|
+
};
|
|
316
|
+
if (v.value > Math.max(...scaleValue.list)) {
|
|
317
|
+
const top = upArrow ? points[1] + yCellHeight / 2 + upArrow.height : points[1] + yCellHeight;
|
|
318
|
+
const limitValue = drawText([points[0], top], commonOptions);
|
|
319
|
+
otherList.push(limitValue);
|
|
320
|
+
}
|
|
321
|
+
if (v.value < Math.min(...scaleValue.list)) {
|
|
322
|
+
const limitValue = drawText([points[0], points[1] - yCellHeight], commonOptions);
|
|
323
|
+
otherList.push(limitValue);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
298
327
|
let point;
|
|
299
328
|
let line;
|
|
300
329
|
if (points && nextPoint && !v.breakpoint) {
|
|
301
330
|
line = drawLine([...points, ...nextPoint], {
|
|
302
331
|
...lineAttr
|
|
303
332
|
});
|
|
304
|
-
} else if (points && !nextPoint && !v.breakpoint &&
|
|
333
|
+
} else if (points && !nextPoint && !v.breakpoint && type === "temperature" && dataIndex < scaleValue.dataList.length - 1 && index === item.list.length - 1) {
|
|
305
334
|
const nextV2 = (_b = scaleValue.dataList[dataIndex + 1].list) == null ? void 0 : _b[0];
|
|
306
335
|
const nextLinePoint = getPointer(nextV2, scaleValue);
|
|
307
336
|
line = nextLinePoint ? drawLine([...points, ...nextLinePoint], {
|
|
@@ -319,7 +348,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
319
348
|
title: item.title,
|
|
320
349
|
key: item.key || "",
|
|
321
350
|
unit: scaleValue.unit,
|
|
322
|
-
type
|
|
351
|
+
type,
|
|
323
352
|
dataIndex,
|
|
324
353
|
index
|
|
325
354
|
},
|
|
@@ -331,12 +360,12 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
331
360
|
reduceLine,
|
|
332
361
|
reducePoint,
|
|
333
362
|
lockMovementX: true,
|
|
334
|
-
...
|
|
363
|
+
...v.pacemakerShow && type == "pulse" ? pacemaker.style : pointAttr,
|
|
335
364
|
...propItems.event
|
|
336
365
|
};
|
|
337
|
-
const
|
|
366
|
+
const currentPointType = v.pacemakerShow && type == "pulse" ? pacemaker.value : pointType;
|
|
338
367
|
if (previousLine) {
|
|
339
|
-
point = drawPoint(
|
|
368
|
+
point = drawPoint(currentPointType, {
|
|
340
369
|
left: previousLine.get("x2"),
|
|
341
370
|
top: previousLine.get("y2"),
|
|
342
371
|
...pointAttrNew
|
|
@@ -344,13 +373,13 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
344
373
|
} else {
|
|
345
374
|
if (points) {
|
|
346
375
|
pointAttrNew.leftLine = null;
|
|
347
|
-
if (
|
|
376
|
+
if (type == "temperature" && index === 0) {
|
|
348
377
|
const objLine = [...prevLines].find((v2) => v2.dataIndex === dataIndex - 1);
|
|
349
378
|
if (objLine) {
|
|
350
379
|
pointAttrNew.leftLine = objLine.line;
|
|
351
380
|
}
|
|
352
381
|
}
|
|
353
|
-
point = drawPoint(
|
|
382
|
+
point = drawPoint(currentPointType, {
|
|
354
383
|
left: points[0],
|
|
355
384
|
top: points[1],
|
|
356
385
|
...pointAttrNew
|
|
@@ -368,7 +397,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
368
397
|
pointList.push(point);
|
|
369
398
|
}
|
|
370
399
|
});
|
|
371
|
-
|
|
400
|
+
type === "pulse" && shadowPointCache.push(pointList);
|
|
372
401
|
Promise.all(pointList).then((res) => {
|
|
373
402
|
const lineListFilter = lineList.filter((v) => v);
|
|
374
403
|
let prevPoint = null;
|
|
@@ -476,15 +505,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
476
505
|
}
|
|
477
506
|
drawShaDow(point);
|
|
478
507
|
}
|
|
479
|
-
function drawText([x, y], style) {
|
|
480
|
-
const text = new fabric.Text(style.value, {
|
|
481
|
-
...defaultTextStyle,
|
|
482
|
-
left: x,
|
|
483
|
-
top: y,
|
|
484
|
-
...style
|
|
485
|
-
});
|
|
486
|
-
return text;
|
|
487
|
-
}
|
|
488
508
|
function isLimit(time) {
|
|
489
509
|
const [minScale] = xScaleList;
|
|
490
510
|
const maxScale = xScaleList.at(-1);
|
|
@@ -38,5 +38,7 @@ export declare const defaultTextStyle: {
|
|
|
38
38
|
lineHeight: number;
|
|
39
39
|
};
|
|
40
40
|
export declare function drawLine(points: number[], style: Partial<ILineOptions>): fabric.Line;
|
|
41
|
+
export declare function drawText([x, y]: [x: number, y: number], style: ITextOptions): fabric.Text;
|
|
42
|
+
export declare function drawArrow([x, y1, y2]: [x: number, y1: number, y2: number], style: ITextOptions | any, type?: string): fabric.Group;
|
|
41
43
|
export declare function drawTextGroup(rectStyle: Partial<fabric.IRectOptions>, fontStyle: Partial<ITextOptions>, groupStyle: Partial<fabric.IGroupOptions>): fabric.Group;
|
|
42
44
|
export declare function drawPoint(type: string | undefined, style: any): fabric.Object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawLine, drawPoint, drawTextGroup } from './useDraw2.js';
|
|
1
|
+
export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawArrow, drawLine, drawPoint, drawText, drawTextGroup } from './useDraw2.js';
|
|
@@ -39,6 +39,35 @@ function drawLine(points, style) {
|
|
|
39
39
|
...style
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
+
function drawText([x, y], style) {
|
|
43
|
+
const text = new fabric.Text(String(style.value), {
|
|
44
|
+
...defaultTextStyle,
|
|
45
|
+
left: x,
|
|
46
|
+
top: y,
|
|
47
|
+
...style
|
|
48
|
+
});
|
|
49
|
+
return text;
|
|
50
|
+
}
|
|
51
|
+
function drawArrow([x, y1, y2], style, type = "down") {
|
|
52
|
+
const arrowLine = drawLine([x, y1, x, y2], {
|
|
53
|
+
strokeWidth: 1,
|
|
54
|
+
stroke: style.fill
|
|
55
|
+
});
|
|
56
|
+
const arrow = drawText([x + 0.5, type === "up" ? y2 - 3 : y2 + 3], {
|
|
57
|
+
value: "v",
|
|
58
|
+
originX: "center",
|
|
59
|
+
originY: "bottom",
|
|
60
|
+
fontSize: 16,
|
|
61
|
+
angle: type === "up" ? 180 : 0,
|
|
62
|
+
...style
|
|
63
|
+
});
|
|
64
|
+
const arrowGroup = new fabric.Group([arrowLine, arrow], {
|
|
65
|
+
...defaultStyle,
|
|
66
|
+
originX: "center",
|
|
67
|
+
originY: "top"
|
|
68
|
+
});
|
|
69
|
+
return arrowGroup;
|
|
70
|
+
}
|
|
42
71
|
function drawTextGroup(rectStyle, fontStyle, groupStyle) {
|
|
43
72
|
const rect = new fabric.Rect({
|
|
44
73
|
...defaultRectStyle,
|
|
@@ -150,4 +179,4 @@ function drawPoint(type = "circle", style) {
|
|
|
150
179
|
}
|
|
151
180
|
}
|
|
152
181
|
|
|
153
|
-
export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawLine, drawPoint, drawTextGroup };
|
|
182
|
+
export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawArrow, drawLine, drawPoint, drawText, drawTextGroup };
|
|
@@ -136,7 +136,14 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
136
136
|
const isMaxMinNumber = i === 0 || i === listLen - 1;
|
|
137
137
|
if (item.showNumber && (isMaxMinNumber ? item.showMaxMinNumber : true)) {
|
|
138
138
|
const y = i == 0 ? top - 5 : top;
|
|
139
|
-
|
|
139
|
+
const scaleNumber = drawScaleNumber(v, item, textLeft, y);
|
|
140
|
+
const limitY = vitalSignsOriginY.originY + scaleNumber.height / 2;
|
|
141
|
+
if (y < limitY) {
|
|
142
|
+
scaleNumber.set({
|
|
143
|
+
top: limitY
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
list.push(scaleNumber);
|
|
140
147
|
}
|
|
141
148
|
if (item.showScale && i !== listLen - 1) {
|
|
142
149
|
for (let j = 0; j < 5; j++) {
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
.c-fabric-chart-popup-tip,
|
|
2
|
-
.c-fabric-chart-popup-menu {
|
|
3
|
-
position: absolute;
|
|
4
|
-
z-index: 1001;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-flow: column nowrap;
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 8px 12px;
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
}
|
|
11
|
-
.c-fabric-chart-popup-tip > li,
|
|
12
|
-
.c-fabric-chart-popup-menu > li {
|
|
13
|
-
list-style: none;
|
|
14
|
-
}
|
|
15
|
-
.c-fabric-chart-popup-tip {
|
|
16
|
-
border-radius: 4px;
|
|
17
|
-
background: rgba(0, 0, 0, 0.7);
|
|
18
|
-
}
|
|
19
|
-
.c-fabric-chart-popup-tip > li {
|
|
20
|
-
color: #fff;
|
|
21
|
-
}
|
|
22
|
-
.c-fabric-chart-popup-menu {
|
|
23
|
-
padding: 8px 5px !important;
|
|
24
|
-
z-index: 1001;
|
|
25
|
-
background: #fff;
|
|
26
|
-
box-shadow: 0 2px 12px 0 rgba(56, 56, 56, 0.2);
|
|
27
|
-
border: 1px solid #e2e6ed;
|
|
28
|
-
border-radius: 2px;
|
|
29
|
-
}
|
|
30
|
-
.c-fabric-chart-popup-menu > li {
|
|
31
|
-
padding: 5px;
|
|
32
|
-
background: #fff;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
}
|
|
35
|
-
.c-fabric-chart-popup-menu > li:hover {
|
|
36
|
-
background: #f0f7ff;
|
|
37
|
-
}
|
|
38
|
-
.c-fabric-chart-popup-menu > li.no-click {
|
|
39
|
-
cursor: default;
|
|
40
|
-
}
|
|
41
|
-
.c-fabric-chart-popup-menu > li.no-click:hover {
|
|
42
|
-
background: #fff;
|
|
43
|
-
}
|
|
1
|
+
.c-fabric-chart-popup-menu,.c-fabric-chart-popup-tip{display:flex;flex-flow:column nowrap;font-size:12px;margin:0;padding:8px 12px;position:absolute;z-index:1001}.c-fabric-chart-popup-menu>li,.c-fabric-chart-popup-tip>li{list-style:none}.c-fabric-chart-popup-tip{background:rgba(0,0,0,.7);border-radius:4px}.c-fabric-chart-popup-tip>li{color:#fff}.c-fabric-chart-popup-menu{background:#fff;border:1px solid #e2e6ed;border-radius:2px;box-shadow:0 2px 12px 0 rgba(56,56,56,.2);padding:8px 5px!important;z-index:1001}.c-fabric-chart-popup-menu>li{background:#fff;cursor:pointer;padding:5px}.c-fabric-chart-popup-menu>li:hover{background:#f0f7ff}.c-fabric-chart-popup-menu>li.no-click{cursor:default}.c-fabric-chart-popup-menu>li.no-click:hover{background:#fff}
|
|
@@ -1,139 +1 @@
|
|
|
1
|
-
.c-field-set {
|
|
2
|
-
height: 100%;
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
.c-field-set ul {
|
|
6
|
-
margin: 0;
|
|
7
|
-
padding: 0;
|
|
8
|
-
}
|
|
9
|
-
.c-field-set .fields-set-content {
|
|
10
|
-
height: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
}
|
|
15
|
-
.c-field-set .fields-set-content .fields-table {
|
|
16
|
-
flex: 1;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
overflow: auto;
|
|
20
|
-
}
|
|
21
|
-
.c-field-set .n-spin-container {
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
|
-
}
|
|
25
|
-
.c-field-set .n-spin-content {
|
|
26
|
-
height: 100%;
|
|
27
|
-
}
|
|
28
|
-
.c-field-set .setting-title {
|
|
29
|
-
background: #f2f2f4;
|
|
30
|
-
border: 1px solid #f2f2f2;
|
|
31
|
-
height: 52px;
|
|
32
|
-
line-height: 52px;
|
|
33
|
-
}
|
|
34
|
-
.c-field-set .setting-title span {
|
|
35
|
-
display: inline-block;
|
|
36
|
-
}
|
|
37
|
-
.c-field-set .setting-title.seting-title-api .width-large {
|
|
38
|
-
width: 15%;
|
|
39
|
-
}
|
|
40
|
-
.c-field-set .set-show {
|
|
41
|
-
min-height: 100px;
|
|
42
|
-
overflow-y: auto;
|
|
43
|
-
}
|
|
44
|
-
.c-field-set .set-show.set-show-api .width-large {
|
|
45
|
-
width: 15%;
|
|
46
|
-
}
|
|
47
|
-
.c-field-set .set-show .left-style.sortable-chosen {
|
|
48
|
-
background: #fafafa;
|
|
49
|
-
box-shadow: 0px 0px 10px 0px #d5d5d5;
|
|
50
|
-
}
|
|
51
|
-
.c-field-set .set-show li {
|
|
52
|
-
padding: 5px 0;
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
border-bottom: 1px solid #e8e8e8;
|
|
56
|
-
height: 52px;
|
|
57
|
-
line-height: 52px;
|
|
58
|
-
}
|
|
59
|
-
.c-field-set .set-show .is-sort-style {
|
|
60
|
-
outline: none;
|
|
61
|
-
border-radius: 4px 4px 4px 4px;
|
|
62
|
-
border: solid 1px #d5d5d5;
|
|
63
|
-
height: 32px;
|
|
64
|
-
text-indent: 6px;
|
|
65
|
-
color: #38454f;
|
|
66
|
-
width: 87px;
|
|
67
|
-
margin-right: 5px;
|
|
68
|
-
}
|
|
69
|
-
.c-field-set .set-show .is-sort-style:disabled {
|
|
70
|
-
cursor: not-allowed;
|
|
71
|
-
background: #f5f5f5;
|
|
72
|
-
}
|
|
73
|
-
.c-field-set .set-show .col-width-style {
|
|
74
|
-
width: 70px;
|
|
75
|
-
}
|
|
76
|
-
.c-field-set .set-show .title-item {
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
justify-content: flex-start;
|
|
79
|
-
align-items: center;
|
|
80
|
-
text-align: left;
|
|
81
|
-
}
|
|
82
|
-
.c-field-set .set-show .title-item > span {
|
|
83
|
-
display: inline-block;
|
|
84
|
-
max-width: calc(100% - 20px);
|
|
85
|
-
overflow: hidden;
|
|
86
|
-
white-space: nowrap;
|
|
87
|
-
text-overflow: ellipsis;
|
|
88
|
-
}
|
|
89
|
-
.c-field-set .alias-style {
|
|
90
|
-
outline: none;
|
|
91
|
-
border-radius: 4px 4px 4px 4px;
|
|
92
|
-
border: solid 1px #d4dee5;
|
|
93
|
-
height: 32px;
|
|
94
|
-
text-indent: 16px;
|
|
95
|
-
color: #38454f;
|
|
96
|
-
}
|
|
97
|
-
.c-field-set .btn-operate {
|
|
98
|
-
border-top: 1px solid #d5d5d5;
|
|
99
|
-
padding: 12px 0 12px;
|
|
100
|
-
}
|
|
101
|
-
.c-field-set .width-show {
|
|
102
|
-
display: inline-block;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
white-space: nowrap;
|
|
105
|
-
text-overflow: ellipsis;
|
|
106
|
-
width: var(--width-show);
|
|
107
|
-
}
|
|
108
|
-
.c-field-set .drag-icon-wrap {
|
|
109
|
-
width: 5% !important;
|
|
110
|
-
cursor: pointer;
|
|
111
|
-
text-align: center;
|
|
112
|
-
}
|
|
113
|
-
.c-field-set .width-showed {
|
|
114
|
-
display: inline-block;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
white-space: nowrap;
|
|
117
|
-
text-overflow: ellipsis;
|
|
118
|
-
width: 15%;
|
|
119
|
-
}
|
|
120
|
-
.c-field-set .width-showed select {
|
|
121
|
-
width: 90% !important;
|
|
122
|
-
}
|
|
123
|
-
.c-field-set .width-word {
|
|
124
|
-
display: inline-block;
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
white-space: nowrap;
|
|
127
|
-
width: var(--width-large);
|
|
128
|
-
line-height: 52px;
|
|
129
|
-
}
|
|
130
|
-
.c-field-set .width-word input {
|
|
131
|
-
width: 90% !important;
|
|
132
|
-
}
|
|
133
|
-
.c-field-set .width-large {
|
|
134
|
-
display: inline-block;
|
|
135
|
-
overflow: hidden;
|
|
136
|
-
white-space: nowrap;
|
|
137
|
-
text-overflow: ellipsis;
|
|
138
|
-
width: var(--width-large);
|
|
139
|
-
}
|
|
1
|
+
.c-field-set{height:100%;position:relative}.c-field-set ul{margin:0;padding:0}.c-field-set .fields-set-content{display:flex;flex-direction:column;height:100%;overflow:hidden}.c-field-set .fields-set-content .fields-table{display:flex;flex:1;flex-direction:column;overflow:auto}.c-field-set .n-spin-container{height:100%;width:100%}.c-field-set .n-spin-content{height:100%}.c-field-set .setting-title{background:#f2f2f4;border:1px solid #f2f2f2;height:52px;line-height:52px}.c-field-set .setting-title span{display:inline-block}.c-field-set .setting-title.seting-title-api .width-large{width:15%}.c-field-set .set-show{min-height:100px;overflow-y:auto}.c-field-set .set-show.set-show-api .width-large{width:15%}.c-field-set .set-show .left-style.sortable-chosen{background:#fafafa;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .set-show li{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:52px;line-height:52px;padding:5px 0}.c-field-set .set-show .is-sort-style{border:1px solid #d5d5d5;border-radius:4px 4px 4px 4px;color:#38454f;height:32px;margin-right:5px;outline:none;text-indent:6px;width:87px}.c-field-set .set-show .is-sort-style:disabled{background:#f5f5f5;cursor:not-allowed}.c-field-set .set-show .col-width-style{width:70px}.c-field-set .set-show .title-item{align-items:center;display:inline-flex;justify-content:flex-start;text-align:left}.c-field-set .set-show .title-item>span{display:inline-block;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-field-set .alias-style{border:1px solid #d4dee5;border-radius:4px 4px 4px 4px;color:#38454f;height:32px;outline:none;text-indent:16px}.c-field-set .btn-operate{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .width-show{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--width-show)}.c-field-set .drag-icon-wrap{cursor:pointer;text-align:center;width:5%!important}.c-field-set .width-showed{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:15%}.c-field-set .width-showed select{width:90%!important}.c-field-set .width-word{display:inline-block;line-height:52px;overflow:hidden;white-space:nowrap;width:var(--width-large)}.c-field-set .width-word input{width:90%!important}.c-field-set .width-large{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--width-large)}
|
|
@@ -1,158 +1 @@
|
|
|
1
|
-
.form-config {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-between;
|
|
4
|
-
}
|
|
5
|
-
.form-config__material {
|
|
6
|
-
padding: 16px;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
flex-shrink: 0;
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
width: 200px;
|
|
11
|
-
}
|
|
12
|
-
.form-config__materialHeader {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
height: 40px;
|
|
17
|
-
}
|
|
18
|
-
.form-config__materialContent {
|
|
19
|
-
padding: 16px;
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
border-radius: 8px;
|
|
23
|
-
border: 1px dashed rgba(128, 128, 128, 0.35);
|
|
24
|
-
overflow-y: auto;
|
|
25
|
-
max-height: var(--max-height);
|
|
26
|
-
min-height: 200px;
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
gap: 8px;
|
|
30
|
-
}
|
|
31
|
-
.form-config__materialContentItem {
|
|
32
|
-
cursor: move;
|
|
33
|
-
justify-content: flex-start;
|
|
34
|
-
grid-column: span var(--item-column) / span var(--item-column);
|
|
35
|
-
}
|
|
36
|
-
.form-config__displayWrapper {
|
|
37
|
-
padding: 16px;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
flex-shrink: 0;
|
|
40
|
-
border-radius: 8px;
|
|
41
|
-
min-width: 400px;
|
|
42
|
-
flex: 1;
|
|
43
|
-
padding: 16px 0;
|
|
44
|
-
}
|
|
45
|
-
.form-config__displayHeader {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
height: 40px;
|
|
50
|
-
}
|
|
51
|
-
.form-config__displayContent {
|
|
52
|
-
padding: 16px;
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
flex-shrink: 0;
|
|
55
|
-
border-radius: 8px;
|
|
56
|
-
border: 1px dashed rgba(128, 128, 128, 0.35);
|
|
57
|
-
overflow-y: auto;
|
|
58
|
-
max-height: var(--max-height);
|
|
59
|
-
height: fit-content;
|
|
60
|
-
display: grid !important;
|
|
61
|
-
grid-template-columns: repeat(24, minmax(0px, 1fr));
|
|
62
|
-
gap: 8px;
|
|
63
|
-
}
|
|
64
|
-
.form-config__displayContentItem {
|
|
65
|
-
grid-column: span var(--item-column) / span var(--item-column);
|
|
66
|
-
position: relative;
|
|
67
|
-
}
|
|
68
|
-
.form-config__config {
|
|
69
|
-
padding: 16px;
|
|
70
|
-
box-sizing: border-box;
|
|
71
|
-
flex-shrink: 0;
|
|
72
|
-
border-radius: 8px;
|
|
73
|
-
width: 240px;
|
|
74
|
-
}
|
|
75
|
-
.form-config__configHeader {
|
|
76
|
-
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: space-between;
|
|
79
|
-
height: 40px;
|
|
80
|
-
}
|
|
81
|
-
.form-config__configContent {
|
|
82
|
-
padding: 16px;
|
|
83
|
-
box-sizing: border-box;
|
|
84
|
-
flex-shrink: 0;
|
|
85
|
-
border-radius: 8px;
|
|
86
|
-
border: 1px dashed rgba(128, 128, 128, 0.35);
|
|
87
|
-
overflow-y: auto;
|
|
88
|
-
border: none;
|
|
89
|
-
max-height: var(--max-height);
|
|
90
|
-
}
|
|
91
|
-
.form-config__renderer {
|
|
92
|
-
cursor: move;
|
|
93
|
-
width: 100%;
|
|
94
|
-
height: 100%;
|
|
95
|
-
justify-content: flex-start;
|
|
96
|
-
}
|
|
97
|
-
.form-config__renderer--default {
|
|
98
|
-
width: 100%;
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
padding: 8px 0;
|
|
102
|
-
box-sizing: border-box;
|
|
103
|
-
user-select: none;
|
|
104
|
-
position: relative;
|
|
105
|
-
}
|
|
106
|
-
.form-config__renderer--complex {
|
|
107
|
-
border: 1px dashed skyblue;
|
|
108
|
-
border-radius: 8px;
|
|
109
|
-
padding: 8px;
|
|
110
|
-
}
|
|
111
|
-
.form-config__renderer--complexHeader {
|
|
112
|
-
display: flex;
|
|
113
|
-
justify-content: center;
|
|
114
|
-
padding: 8px;
|
|
115
|
-
margin-top: -8px;
|
|
116
|
-
position: relative;
|
|
117
|
-
}
|
|
118
|
-
.form-config__renderer--complex--grid {
|
|
119
|
-
display: grid !important;
|
|
120
|
-
grid-template-columns: repeat(24, minmax(0px, 1fr));
|
|
121
|
-
gap: 8px;
|
|
122
|
-
grid-column: span var(--item-column) / span var(--item-column);
|
|
123
|
-
}
|
|
124
|
-
.form-config__renderer--complex--flex {
|
|
125
|
-
display: flex;
|
|
126
|
-
}
|
|
127
|
-
.form-config .is-disabled {
|
|
128
|
-
background: #e5e5e5 !important;
|
|
129
|
-
}
|
|
130
|
-
.form-config .is-required {
|
|
131
|
-
padding-left: 16px !important;
|
|
132
|
-
}
|
|
133
|
-
.form-config .is-required::before {
|
|
134
|
-
position: absolute;
|
|
135
|
-
content: '*';
|
|
136
|
-
left: 8px;
|
|
137
|
-
color: red;
|
|
138
|
-
}
|
|
139
|
-
.form-config .is-active {
|
|
140
|
-
color: #5585f5 !important;
|
|
141
|
-
}
|
|
142
|
-
.form-config .is-choosing {
|
|
143
|
-
box-shadow: #5585f5 0 0 0 2px !important;
|
|
144
|
-
opacity: 0.7;
|
|
145
|
-
}
|
|
146
|
-
.form-config .is-choosing-area {
|
|
147
|
-
background: rgba(128, 128, 128, 0.1);
|
|
148
|
-
}
|
|
149
|
-
.form-config [is-hovering='true'] .form-config__renderer--closeButton {
|
|
150
|
-
visibility: visible;
|
|
151
|
-
}
|
|
152
|
-
.form-config .form-config__renderer--closeButton {
|
|
153
|
-
position: absolute;
|
|
154
|
-
visibility: hidden;
|
|
155
|
-
top: 50%;
|
|
156
|
-
transform: translateY(-50%);
|
|
157
|
-
right: 4px;
|
|
158
|
-
}
|
|
1
|
+
.form-config{display:flex;justify-content:space-between}.form-config__material{border-radius:8px;box-sizing:border-box;flex-shrink:0;padding:16px;width:200px}.form-config__materialHeader{align-items:center;display:flex;height:40px;justify-content:space-between}.form-config__materialContent{border:1px dashed hsla(0,0%,50%,.35);border-radius:8px;box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;gap:8px;max-height:var(--max-height);min-height:200px;overflow-y:auto;padding:16px}.form-config__materialContentItem{cursor:move;grid-column:span var(--item-column) /span var(--item-column);justify-content:flex-start}.form-config__displayWrapper{border-radius:8px;box-sizing:border-box;flex-shrink:0;flex:1;min-width:400px;padding:16px 0}.form-config__displayHeader{align-items:center;display:flex;height:40px;justify-content:space-between}.form-config__displayContent{border:1px dashed hsla(0,0%,50%,.35);border-radius:8px;box-sizing:border-box;display:grid!important;flex-shrink:0;gap:8px;grid-template-columns:repeat(24,minmax(0,1fr));height:fit-content;max-height:var(--max-height);overflow-y:auto;padding:16px}.form-config__displayContentItem{grid-column:span var(--item-column) /span var(--item-column);position:relative}.form-config__config{border-radius:8px;box-sizing:border-box;flex-shrink:0;padding:16px;width:240px}.form-config__configHeader{align-items:center;display:flex;height:40px;justify-content:space-between}.form-config__configContent{border:none;border-radius:8px;box-sizing:border-box;flex-shrink:0;max-height:var(--max-height);overflow-y:auto;padding:16px}.form-config__renderer{cursor:move;justify-content:flex-start;width:100%}.form-config__renderer--default{align-items:center;box-sizing:border-box;display:flex;padding:8px 0;position:relative;user-select:none;width:100%}.form-config__renderer--complex{border:1px dashed skyblue;border-radius:8px;padding:8px}.form-config__renderer--complexHeader{display:flex;justify-content:center;margin-top:-8px;padding:8px;position:relative}.form-config__renderer--complex--grid{display:grid!important;gap:8px;grid-column:span var(--item-column) /span var(--item-column);grid-template-columns:repeat(24,minmax(0,1fr))}.form-config__renderer--complex--flex{display:flex}.form-config .is-disabled{background:#e5e5e5!important}.form-config .is-required{padding-left:16px!important}.form-config .is-required:before{color:red;content:"*";left:8px;position:absolute}.form-config .is-active{color:#5585f5!important}.form-config .is-choosing{box-shadow:0 0 0 2px #5585f5!important;opacity:.7}.form-config .is-choosing-area{background:hsla(0,0%,50%,.1)}.form-config [is-hovering=true] .form-config__renderer--closeButton{visibility:visible}.form-config .form-config__renderer--closeButton{position:absolute;right:4px;top:50%;transform:translateY(-50%);visibility:hidden}
|