cnhis-design-vue 3.1.17-beta.7 → 3.1.17-beta.8
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/big-table/index.d.ts +0 -8
- package/es/packages/big-table/src/BigTable.vue.d.ts +6 -37
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +2 -4
- package/es/packages/big-table/src/components/edit-form/edit-date.js +15 -2
- package/es/packages/big-table/src/components/edit-form/edit-input.js +14 -3
- package/es/packages/big-table/src/components/edit-form/edit-select.d.ts +1 -1
- package/es/packages/big-table/src/components/edit-form/edit-select.js +14 -3
- package/es/packages/big-table/src/components/edit-form/edit-time.js +15 -2
- package/es/packages/big-table/src/hooks/useEdit.d.ts +1 -7
- package/es/packages/big-table/src/hooks/useEdit.js +0 -20
- package/es/packages/big-table/style/index.css +6 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +4 -3
- package/es/packages/field-set/index.d.ts +22 -26
- package/es/packages/field-set/src/FieldSet.js +107 -43
- package/es/packages/field-set/src/FieldSet.vue.d.ts +18 -26
- package/es/packages/field-set/style/index.css +5 -5
- package/es/packages/form-config/style/index.css +13 -2
- package/es/packages/form-render/src/components/renderer/formItem.js +2 -2
- package/es/packages/form-render/src/utils/dom.js +2 -2
- package/es/packages/form-render/src/utils/index.js +1 -1
- package/es/packages/form-render/src/utils/schema.d.ts +1 -1
- package/es/packages/form-render/src/utils/schema.js +4 -4
- package/es/packages/index.css +24 -7
- package/es/packages/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/packages/select-label/index.d.ts +2 -2
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/global.d.ts +8 -8
- package/package.json +1 -1
|
@@ -2845,15 +2845,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2845
2845
|
row: any;
|
|
2846
2846
|
rowIndex: any;
|
|
2847
2847
|
};
|
|
2848
|
-
initEditTable: () => Promise<void>;
|
|
2849
|
-
activeMethod: ({ row, rowIndex, column, columnIndex }: {
|
|
2850
|
-
row: any;
|
|
2851
|
-
rowIndex: number;
|
|
2852
|
-
column: any;
|
|
2853
|
-
columnIndex: number;
|
|
2854
|
-
}) => boolean;
|
|
2855
2848
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
2856
|
-
onClickSelectTable: (row: any) => Promise<void>;
|
|
2857
2849
|
onFormChange: ({ value, row, column, index }: {
|
|
2858
2850
|
value: string | number | null;
|
|
2859
2851
|
row: any;
|
|
@@ -1153,14 +1153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1153
1153
|
textColorGhostPressedError: string;
|
|
1154
1154
|
textColorGhostFocusError: string;
|
|
1155
1155
|
textColorGhostDisabledError: string;
|
|
1156
|
-
borderError: string;
|
|
1157
|
-
* 初始化props
|
|
1158
|
-
* @param {*} unionItem
|
|
1159
|
-
* @param {*} row
|
|
1160
|
-
* @param {*} column
|
|
1161
|
-
* @param {*} $rowIndex
|
|
1162
|
-
* @returns
|
|
1163
|
-
*/
|
|
1156
|
+
borderError: string;
|
|
1164
1157
|
borderHoverError: string;
|
|
1165
1158
|
borderPressedError: string;
|
|
1166
1159
|
borderFocusError: string;
|
|
@@ -1212,10 +1205,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1212
1205
|
colorTertiaryPressed: string;
|
|
1213
1206
|
colorQuaternary: string;
|
|
1214
1207
|
colorQuaternaryHover: string;
|
|
1215
|
-
/**
|
|
1216
|
-
* 单个form提交成功数据
|
|
1217
|
-
* @param {*} obj formData
|
|
1218
|
-
*/
|
|
1219
1208
|
colorQuaternaryPressed: string;
|
|
1220
1209
|
color: string;
|
|
1221
1210
|
colorHover: string;
|
|
@@ -1258,7 +1247,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1258
1247
|
textColorTextHoverPrimary: string;
|
|
1259
1248
|
textColorTextPressedPrimary: string;
|
|
1260
1249
|
textColorTextFocusPrimary: string;
|
|
1261
|
-
textColorTextDisabledPrimary: string;
|
|
1250
|
+
textColorTextDisabledPrimary: string; /**
|
|
1251
|
+
* tsx渲染表格
|
|
1252
|
+
*/
|
|
1262
1253
|
textColorGhostPrimary: string;
|
|
1263
1254
|
textColorGhostHoverPrimary: string;
|
|
1264
1255
|
textColorGhostPressedPrimary: string;
|
|
@@ -1337,6 +1328,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1337
1328
|
textColorTextPressedWarning: string;
|
|
1338
1329
|
textColorTextFocusWarning: string;
|
|
1339
1330
|
textColorTextDisabledWarning: string;
|
|
1331
|
+
/** string */
|
|
1340
1332
|
textColorGhostWarning: string;
|
|
1341
1333
|
textColorGhostHoverWarning: string;
|
|
1342
1334
|
textColorGhostPressedWarning: string;
|
|
@@ -2855,15 +2847,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2855
2847
|
row: any;
|
|
2856
2848
|
rowIndex: any;
|
|
2857
2849
|
};
|
|
2858
|
-
initEditTable: () => Promise<void>;
|
|
2859
|
-
activeMethod: ({ row, rowIndex, column, columnIndex }: {
|
|
2860
|
-
row: any;
|
|
2861
|
-
rowIndex: number;
|
|
2862
|
-
column: any;
|
|
2863
|
-
columnIndex: number;
|
|
2864
|
-
}) => boolean;
|
|
2865
2850
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
2866
|
-
onClickSelectTable: (row: any) => Promise<void>;
|
|
2867
2851
|
onFormChange: ({ value, row, column, index }: {
|
|
2868
2852
|
value: string | number | null;
|
|
2869
2853
|
row: any;
|
|
@@ -3299,22 +3283,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3299
3283
|
errorColor: string;
|
|
3300
3284
|
errorColorHover: string;
|
|
3301
3285
|
errorColorPressed: string;
|
|
3302
|
-
errorColorSuppl: string;
|
|
3303
|
-
* 针对 bigTable 的设置列
|
|
3304
|
-
* type: 列的类型
|
|
3305
|
-
* field: 列字段名(注:属性层级越深,渲染性能将直线下降)
|
|
3306
|
-
* title: 列标题(支持开启国际化)
|
|
3307
|
-
* width: 列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 "%" 或者 "min-width" 布局)
|
|
3308
|
-
* minWidth: 最小列宽度;会自动将剩余空间按比例分配
|
|
3309
|
-
* resizable: 列是否允许拖动列宽调整大小
|
|
3310
|
-
* visible: 列是否显示
|
|
3311
|
-
* fixed: 将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)
|
|
3312
|
-
* align: 列对齐方式
|
|
3313
|
-
* headerAlign: 表头列的对齐方式
|
|
3314
|
-
* footerAlign: 表尾列的对齐方式
|
|
3315
|
-
* formatter: 格式化显示内容 Function({cellValue, row, column})
|
|
3316
|
-
* sortable: 是否允许列排序
|
|
3317
|
-
*/
|
|
3286
|
+
errorColorSuppl: string;
|
|
3318
3287
|
textColorBase: string;
|
|
3319
3288
|
textColor1: string;
|
|
3320
3289
|
textColor2: string;
|
|
@@ -82,10 +82,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
getInlineOpreateRow
|
|
83
83
|
} = useBatchEditing(props, state, emit, xGrid);
|
|
84
84
|
const {
|
|
85
|
-
initEditTable,
|
|
86
|
-
activeMethod,
|
|
87
85
|
deleteRow,
|
|
88
|
-
onClickSelectTable,
|
|
89
86
|
onFormChange,
|
|
90
87
|
getDefaultValue
|
|
91
88
|
} = useEdit(props, state, emit, xGrid);
|
|
@@ -541,7 +538,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
541
538
|
column: col,
|
|
542
539
|
index: $rowIndex
|
|
543
540
|
});
|
|
544
|
-
}
|
|
541
|
+
},
|
|
542
|
+
editTrigger: state.editConfig.trigger
|
|
545
543
|
};
|
|
546
544
|
if (formType === "date" || formType === "time") {
|
|
547
545
|
propsData.formattedValue = row[col.columnName];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { generateTimeFormat } from '../../../../../src/utils';
|
|
3
3
|
import { isFunction } from 'lodash-es';
|
|
4
4
|
import { NDatePicker } from 'naive-ui';
|
|
@@ -28,6 +28,8 @@ var EditDate = defineComponent({
|
|
|
28
28
|
attrs,
|
|
29
29
|
emit
|
|
30
30
|
}) {
|
|
31
|
+
const dateRef = ref(null);
|
|
32
|
+
const isShow = ref(false);
|
|
31
33
|
const onConfirm = (value) => {
|
|
32
34
|
emit("formChange", {
|
|
33
35
|
value,
|
|
@@ -124,7 +126,18 @@ var EditDate = defineComponent({
|
|
|
124
126
|
if (config.type.includes("time")) {
|
|
125
127
|
config.isTimeDisabled = customDateDisabledDecorator(props.col.isTimeDisabled) || isTimeDisabled;
|
|
126
128
|
}
|
|
127
|
-
|
|
129
|
+
onMounted(() => {
|
|
130
|
+
var _a;
|
|
131
|
+
if (attrs.editTrigger !== "manual") {
|
|
132
|
+
(_a = dateRef.value) == null ? void 0 : _a.focus();
|
|
133
|
+
isShow.value = true;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
return () => createVNode(NDatePicker, mergeProps({
|
|
137
|
+
"ref": dateRef,
|
|
138
|
+
"show": isShow.value,
|
|
139
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
140
|
+
}, attrs, config, {
|
|
128
141
|
"onUpdateFormattedValue": onConfirm
|
|
129
142
|
}), null);
|
|
130
143
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { NInput, NInputNumber } from 'naive-ui';
|
|
3
3
|
|
|
4
4
|
var EditInput = defineComponent({
|
|
@@ -32,6 +32,7 @@ var EditInput = defineComponent({
|
|
|
32
32
|
emit
|
|
33
33
|
}) {
|
|
34
34
|
const __value = ref(attrs.value);
|
|
35
|
+
const inputRef = ref(null);
|
|
35
36
|
const onUpdateValue = (value) => {
|
|
36
37
|
emit("formChange", {
|
|
37
38
|
value,
|
|
@@ -52,11 +53,21 @@ var EditInput = defineComponent({
|
|
|
52
53
|
placeholder: props.col.placeholder || "\u8BF7\u8F93\u5165",
|
|
53
54
|
...props.col.componentProps || {}
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
onMounted(() => {
|
|
57
|
+
var _a;
|
|
58
|
+
if (attrs.editTrigger !== "manual") {
|
|
59
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
return () => props.type === "input" ? createVNode(NInput, mergeProps({
|
|
63
|
+
"ref": inputRef
|
|
64
|
+
}, attrs, config, {
|
|
56
65
|
"value": __value.value,
|
|
57
66
|
"onUpdate:value": ($event) => __value.value = $event,
|
|
58
67
|
"onBlur": onBlur
|
|
59
|
-
}), null) : createVNode(NInputNumber, mergeProps(
|
|
68
|
+
}), null) : createVNode(NInputNumber, mergeProps({
|
|
69
|
+
"ref": inputRef
|
|
70
|
+
}, attrs, config, {
|
|
60
71
|
"onUpdateValue": onUpdateValue
|
|
61
72
|
}), null);
|
|
62
73
|
}
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: (NumberConstructor | ObjectConstructor)[];
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
|
-
}, () => JSX.Element
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "setOptions")[], "formChange" | "setOptions", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
col: {
|
|
16
16
|
type: ObjectConstructor;
|
|
17
17
|
default: () => {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, reactive, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, reactive, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { NSelect } from 'naive-ui';
|
|
3
3
|
import vexutils from '../../../../../src/utils/vexutils';
|
|
4
4
|
|
|
@@ -28,6 +28,8 @@ var EditSelect = defineComponent({
|
|
|
28
28
|
slots,
|
|
29
29
|
emit
|
|
30
30
|
}) {
|
|
31
|
+
const selectRef = ref(null);
|
|
32
|
+
const isShow = ref(false);
|
|
31
33
|
const state = reactive({
|
|
32
34
|
options: [],
|
|
33
35
|
loading: false,
|
|
@@ -77,7 +79,16 @@ var EditSelect = defineComponent({
|
|
|
77
79
|
}
|
|
78
80
|
};
|
|
79
81
|
init();
|
|
80
|
-
|
|
82
|
+
onMounted(() => {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = selectRef.value) == null ? void 0 : _a.focus();
|
|
85
|
+
isShow.value = true;
|
|
86
|
+
});
|
|
87
|
+
return () => createVNode(NSelect, mergeProps({
|
|
88
|
+
"ref": selectRef,
|
|
89
|
+
"show": isShow.value,
|
|
90
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
91
|
+
}, attrs, state.config, {
|
|
81
92
|
"options": state.options,
|
|
82
93
|
"consistentMenuWidth": false,
|
|
83
94
|
"clearable": true,
|
|
@@ -85,7 +96,7 @@ var EditSelect = defineComponent({
|
|
|
85
96
|
"placeholder": props.col.placeholder || "\u8BF7\u9009\u62E9",
|
|
86
97
|
"loading": state.loading,
|
|
87
98
|
"onUpdateValue": onUpdateValue
|
|
88
|
-
}), null)
|
|
99
|
+
}), null);
|
|
89
100
|
}
|
|
90
101
|
});
|
|
91
102
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { NTimePicker } from 'naive-ui';
|
|
3
3
|
|
|
4
4
|
var editTime = defineComponent({
|
|
@@ -30,6 +30,8 @@ var editTime = defineComponent({
|
|
|
30
30
|
attrs,
|
|
31
31
|
emit
|
|
32
32
|
}) {
|
|
33
|
+
const timeRef = ref(null);
|
|
34
|
+
const isShow = ref(false);
|
|
33
35
|
const onUpdateValue = (value) => {
|
|
34
36
|
emit("formChange", {
|
|
35
37
|
value,
|
|
@@ -44,7 +46,18 @@ var editTime = defineComponent({
|
|
|
44
46
|
format: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
45
47
|
...props.col.componentProps || {}
|
|
46
48
|
};
|
|
47
|
-
|
|
49
|
+
onMounted(() => {
|
|
50
|
+
var _a;
|
|
51
|
+
if (attrs.editTrigger !== "manual") {
|
|
52
|
+
(_a = timeRef.value) == null ? void 0 : _a.focus();
|
|
53
|
+
isShow.value = true;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return () => createVNode(NTimePicker, mergeProps({
|
|
57
|
+
"ref": timeRef,
|
|
58
|
+
"show": isShow.value,
|
|
59
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
60
|
+
}, attrs, config, {
|
|
48
61
|
"onUpdateFormattedValue": onUpdateValue
|
|
49
62
|
}), null);
|
|
50
63
|
}
|
|
@@ -96,7 +96,7 @@ export declare const comps: {
|
|
|
96
96
|
type: (NumberConstructor | ObjectConstructor)[];
|
|
97
97
|
default: number;
|
|
98
98
|
};
|
|
99
|
-
}, () => JSX.Element
|
|
99
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "setOptions")[], "formChange" | "setOptions", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
100
|
col: {
|
|
101
101
|
type: ObjectConstructor;
|
|
102
102
|
default: () => {};
|
|
@@ -1470,12 +1470,6 @@ export declare const comps: {
|
|
|
1470
1470
|
};
|
|
1471
1471
|
export declare const useEdit: (props: any, state: any, emit: any, xGrid: any) => {
|
|
1472
1472
|
initEditTable: () => Promise<void>;
|
|
1473
|
-
activeMethod: ({ row, rowIndex, column, columnIndex }: {
|
|
1474
|
-
row: any;
|
|
1475
|
-
rowIndex: number;
|
|
1476
|
-
column: any;
|
|
1477
|
-
columnIndex: number;
|
|
1478
|
-
}) => boolean;
|
|
1479
1473
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
1480
1474
|
onClickSelectTable: (row: any) => Promise<void>;
|
|
1481
1475
|
onFormChange: ({ value, row, column, index }: {
|
|
@@ -34,25 +34,6 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
34
34
|
xGrid.value.remove(row);
|
|
35
35
|
emit("clickBtn", { row, column: col, index });
|
|
36
36
|
};
|
|
37
|
-
const activeMethod = ({
|
|
38
|
-
row,
|
|
39
|
-
rowIndex,
|
|
40
|
-
column,
|
|
41
|
-
columnIndex
|
|
42
|
-
}) => {
|
|
43
|
-
var _a;
|
|
44
|
-
const { isEdit, fieldList } = props.columnConfig;
|
|
45
|
-
if (isEdit) {
|
|
46
|
-
const isEditCol = ((_a = fieldList.find((v) => v.columnName === column.field)) == null ? void 0 : _a.isEdit) || false;
|
|
47
|
-
if (isEditCol) {
|
|
48
|
-
return true;
|
|
49
|
-
} else {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
} else {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
37
|
const onClickSelectTable = async (row) => {
|
|
57
38
|
emit("clickSelectTable", { row });
|
|
58
39
|
const record = {
|
|
@@ -131,7 +112,6 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
131
112
|
};
|
|
132
113
|
return {
|
|
133
114
|
initEditTable,
|
|
134
|
-
activeMethod,
|
|
135
115
|
deleteRow,
|
|
136
116
|
onClickSelectTable,
|
|
137
117
|
onFormChange,
|
|
@@ -538,6 +538,12 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
538
538
|
margin-right: 6px;
|
|
539
539
|
box-shadow: 0px 2px 4px 0px rgba(99, 129, 249, 0.5);
|
|
540
540
|
}
|
|
541
|
+
.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle {
|
|
542
|
+
box-shadow: 4px 0 4px 0 rgba(0, 0, 0, 0.12);
|
|
543
|
+
}
|
|
544
|
+
.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle {
|
|
545
|
+
box-shadow: -4px 0 4px 0 rgba(0, 0, 0, 0.12);
|
|
546
|
+
}
|
|
541
547
|
.annotation-edit {
|
|
542
548
|
cursor: pointer;
|
|
543
549
|
color: #0067ee;
|
|
@@ -22,9 +22,10 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
22
22
|
const mainScaleWidth = 9;
|
|
23
23
|
const subScaleWidth = 5;
|
|
24
24
|
function drawScaleNumber(text, item, left2, top) {
|
|
25
|
+
const { position } = item;
|
|
25
26
|
return new fabric.Text(String(text), {
|
|
26
27
|
...defaultTextStyle,
|
|
27
|
-
originX:
|
|
28
|
+
originX: position == "left" ? "right" : position == "right" ? "left" : "center",
|
|
28
29
|
left: left2,
|
|
29
30
|
top,
|
|
30
31
|
...item.style
|
|
@@ -35,13 +36,13 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
35
36
|
let lineXMain = [scaleLeft - mainScaleWidth / 2, scaleLeft + mainScaleWidth / 2];
|
|
36
37
|
let lineXSub = [scaleLeft - subScaleWidth / 2, scaleLeft + subScaleWidth / 2];
|
|
37
38
|
let textLeft = scaleLeft;
|
|
38
|
-
if (position === "
|
|
39
|
+
if (position === "right") {
|
|
39
40
|
scaleLeft = x;
|
|
40
41
|
lineXMain = [scaleLeft, scaleLeft + mainScaleWidth];
|
|
41
42
|
lineXSub = [scaleLeft, scaleLeft + subScaleWidth];
|
|
42
43
|
textLeft = lineXMain[1];
|
|
43
44
|
}
|
|
44
|
-
if (position === "
|
|
45
|
+
if (position === "left") {
|
|
45
46
|
scaleLeft = x + width;
|
|
46
47
|
lineXMain = [scaleLeft - mainScaleWidth, scaleLeft];
|
|
47
48
|
lineXSub = [scaleLeft - subScaleWidth, scaleLeft];
|
|
@@ -4,14 +4,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4
4
|
type: import("vue").PropType<any[]>;
|
|
5
5
|
default: () => never[];
|
|
6
6
|
};
|
|
7
|
-
menuSource: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
drawerDirection: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
7
|
footerFlag: {
|
|
16
8
|
type: BooleanConstructor;
|
|
17
9
|
default: boolean;
|
|
@@ -20,6 +12,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
20
12
|
type: StringConstructor;
|
|
21
13
|
default: string;
|
|
22
14
|
};
|
|
15
|
+
isEdit: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
23
19
|
}, {
|
|
24
20
|
fieldsMapping: Record<string, string>;
|
|
25
21
|
selectOptions: Record<string, string>[];
|
|
@@ -30,14 +26,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
30
26
|
type: import("vue").PropType<any[]>;
|
|
31
27
|
default: () => never[];
|
|
32
28
|
};
|
|
33
|
-
menuSource: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
drawerDirection: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
29
|
footerFlag: {
|
|
42
30
|
type: BooleanConstructor;
|
|
43
31
|
default: boolean;
|
|
@@ -46,6 +34,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
46
34
|
type: StringConstructor;
|
|
47
35
|
default: string;
|
|
48
36
|
};
|
|
37
|
+
isEdit: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
49
41
|
}>> & {
|
|
50
42
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
51
43
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -68,7 +60,11 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
68
60
|
fixedShow: boolean;
|
|
69
61
|
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
70
62
|
columnWidth: number;
|
|
63
|
+
editable: boolean;
|
|
64
|
+
required: boolean;
|
|
71
65
|
}[];
|
|
66
|
+
widthShow: string;
|
|
67
|
+
widthLarge: string;
|
|
72
68
|
};
|
|
73
69
|
leftStyle: (ele: {
|
|
74
70
|
[key: string]: any;
|
|
@@ -81,6 +77,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
81
77
|
fixedShow: boolean;
|
|
82
78
|
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
83
79
|
columnWidth: number;
|
|
80
|
+
editable: boolean;
|
|
81
|
+
required: boolean;
|
|
84
82
|
}) => {
|
|
85
83
|
background: string | undefined;
|
|
86
84
|
};
|
|
@@ -102,7 +100,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
102
100
|
fixedShow: boolean;
|
|
103
101
|
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
104
102
|
columnWidth: number;
|
|
103
|
+
editable: boolean;
|
|
104
|
+
required: boolean;
|
|
105
105
|
}) => void;
|
|
106
|
+
setWidth: () => void;
|
|
106
107
|
NButton: import("vue").DefineComponent<{
|
|
107
108
|
readonly color: StringConstructor;
|
|
108
109
|
readonly textColor: StringConstructor;
|
|
@@ -6979,14 +6980,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6979
6980
|
type: import("vue").PropType<any[]>;
|
|
6980
6981
|
default: () => never[];
|
|
6981
6982
|
};
|
|
6982
|
-
menuSource: {
|
|
6983
|
-
type: StringConstructor;
|
|
6984
|
-
default: string;
|
|
6985
|
-
};
|
|
6986
|
-
drawerDirection: {
|
|
6987
|
-
type: StringConstructor;
|
|
6988
|
-
default: string;
|
|
6989
|
-
};
|
|
6990
6983
|
footerFlag: {
|
|
6991
6984
|
type: BooleanConstructor;
|
|
6992
6985
|
default: boolean;
|
|
@@ -6995,14 +6988,17 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6995
6988
|
type: StringConstructor;
|
|
6996
6989
|
default: string;
|
|
6997
6990
|
};
|
|
6991
|
+
isEdit: {
|
|
6992
|
+
type: BooleanConstructor;
|
|
6993
|
+
default: boolean;
|
|
6994
|
+
};
|
|
6998
6995
|
}>> & {
|
|
6999
6996
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
7000
6997
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
7001
6998
|
}, {
|
|
7002
6999
|
type: string;
|
|
7003
7000
|
fields: any[];
|
|
7004
|
-
menuSource: string;
|
|
7005
|
-
drawerDirection: string;
|
|
7006
7001
|
footerFlag: boolean;
|
|
7002
|
+
isEdit: boolean;
|
|
7007
7003
|
}>>;
|
|
7008
7004
|
export default FieldSet;
|