cloud-web-corejs 1.0.54-dev.665 → 1.0.54-dev.666
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/package.json
CHANGED
|
@@ -1976,17 +1976,28 @@ export default {
|
|
|
1976
1976
|
overflow-y: auto;
|
|
1977
1977
|
overflow-x: hidden;
|
|
1978
1978
|
box-sizing: border-box;
|
|
1979
|
+
|
|
1980
|
+
.cont.table-column-row-edit-cont {
|
|
1981
|
+
overflow: visible;
|
|
1982
|
+
max-height: none;
|
|
1983
|
+
padding-bottom: 12px;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
.form-m2 {
|
|
1987
|
+
height: auto !important;
|
|
1988
|
+
overflow: visible !important;
|
|
1989
|
+
|
|
1990
|
+
.el-form-item.form-item-full:last-child {
|
|
1991
|
+
margin-bottom: 8px;
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1979
1994
|
}
|
|
1980
1995
|
}
|
|
1981
1996
|
|
|
1982
1997
|
.table-column-row-edit-cont {
|
|
1983
|
-
padding-bottom: 8px;
|
|
1984
1998
|
box-sizing: border-box;
|
|
1985
1999
|
|
|
1986
2000
|
::v-deep .form-m2 {
|
|
1987
|
-
height: auto;
|
|
1988
|
-
overflow: visible;
|
|
1989
|
-
|
|
1990
2001
|
.form-item-full {
|
|
1991
2002
|
width: calc(100% - 20px) !important;
|
|
1992
2003
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { propertyRegistered } from
|
|
1
|
+
import { propertyRegistered } from "./propertyRegister";
|
|
2
2
|
|
|
3
3
|
let propertyDialogSeed = 0;
|
|
4
4
|
|
|
@@ -51,18 +51,24 @@ export default {
|
|
|
51
51
|
columnEditFields: config.columnEditFields || null,
|
|
52
52
|
tableColumns: config.tableColumns,
|
|
53
53
|
formatConfig: config,
|
|
54
|
-
widgetActiveCollapseName1s: [
|
|
54
|
+
widgetActiveCollapseName1s: ["1", "3"],
|
|
55
55
|
};
|
|
56
56
|
this.widgetPropertyDialogs.push(dialog);
|
|
57
57
|
this.setActivePropertyDialog(id);
|
|
58
58
|
},
|
|
59
59
|
closeWidgetPropertyDialog(id, invokeCallback = false) {
|
|
60
|
-
const index = this.widgetPropertyDialogs.findIndex(
|
|
60
|
+
const index = this.widgetPropertyDialogs.findIndex(
|
|
61
|
+
(dlg) => dlg.id === id
|
|
62
|
+
);
|
|
61
63
|
if (index === -1) {
|
|
62
64
|
return;
|
|
63
65
|
}
|
|
64
66
|
const dialog = this.widgetPropertyDialogs[index];
|
|
65
|
-
if (
|
|
67
|
+
if (
|
|
68
|
+
invokeCallback &&
|
|
69
|
+
dialog.formatConfig &&
|
|
70
|
+
dialog.formatConfig.callback
|
|
71
|
+
) {
|
|
66
72
|
const columnSelectedWidget = this.$baseLodash.cloneDeep(
|
|
67
73
|
dialog.columnSelectedWidget
|
|
68
74
|
);
|
|
@@ -70,7 +76,8 @@ export default {
|
|
|
70
76
|
}
|
|
71
77
|
this.widgetPropertyDialogs.splice(index, 1);
|
|
72
78
|
if (this.activePropertyDialogId === id) {
|
|
73
|
-
const last =
|
|
79
|
+
const last =
|
|
80
|
+
this.widgetPropertyDialogs[this.widgetPropertyDialogs.length - 1];
|
|
74
81
|
this.activePropertyDialogId = last ? last.id : null;
|
|
75
82
|
}
|
|
76
83
|
this.syncLegacyPropertyDialogState();
|
|
@@ -86,22 +93,25 @@ export default {
|
|
|
86
93
|
if (!editorName) {
|
|
87
94
|
return false;
|
|
88
95
|
}
|
|
89
|
-
if (
|
|
96
|
+
if (
|
|
97
|
+
dialog.columnEditFields &&
|
|
98
|
+
!dialog.columnEditFields.includes(propName)
|
|
99
|
+
) {
|
|
90
100
|
return false;
|
|
91
101
|
}
|
|
92
102
|
const widget = dialog.columnSelectedWidget;
|
|
93
|
-
if (propName.indexOf(
|
|
103
|
+
if (propName.indexOf("-") <= -1) {
|
|
94
104
|
const originalPropName = `${widget.type}-${propName}`;
|
|
95
105
|
if (propertyRegistered(originalPropName)) {
|
|
96
106
|
return false;
|
|
97
107
|
}
|
|
98
108
|
}
|
|
99
|
-
const propKey = propName.replace(`${widget.type}-`,
|
|
109
|
+
const propKey = propName.replace(`${widget.type}-`, "");
|
|
100
110
|
return this.designer.hasConfig(widget, propKey);
|
|
101
111
|
},
|
|
102
112
|
getPropEditorForDialog(dialog, propName, editorName) {
|
|
103
113
|
const widget = dialog.columnSelectedWidget;
|
|
104
|
-
const propKey = propName.replace(`${widget.type}-`,
|
|
114
|
+
const propKey = propName.replace(`${widget.type}-`, "");
|
|
105
115
|
const uniquePropName = `${widget.type}-${propKey}-editor`;
|
|
106
116
|
if (this.$options.components[uniquePropName]) {
|
|
107
117
|
return uniquePropName;
|
|
@@ -129,16 +139,19 @@ export default {
|
|
|
129
139
|
? activeDialog.columnSelectedWidget
|
|
130
140
|
: this.selectedWidget;
|
|
131
141
|
this.curEventName = eventName;
|
|
132
|
-
this.eventHeader = `${
|
|
142
|
+
this.eventHeader = `${
|
|
143
|
+
this.optionModel.name
|
|
144
|
+
}.${eventName}(${eventParams.join(", ")}) {`;
|
|
133
145
|
if (eventOptions.customCode) {
|
|
134
|
-
this.eventHandlerCode = eventOptions.customCode() ||
|
|
146
|
+
this.eventHandlerCode = eventOptions.customCode() || "";
|
|
135
147
|
} else {
|
|
136
|
-
this.eventHandlerCode =
|
|
148
|
+
this.eventHandlerCode =
|
|
149
|
+
(eventWidget && eventWidget.options[eventName]) || "";
|
|
137
150
|
}
|
|
138
151
|
this.eventOption = eventOptions;
|
|
139
|
-
if (eventName === 'onCreated' && !this.optionModel.onCreated) {
|
|
152
|
+
/* if (eventName === 'onCreated' && !this.optionModel.onCreated) {
|
|
140
153
|
this.eventHandlerCode = ' //组件创建生命周期\n console.log(\'test onCreated()\')\n';
|
|
141
|
-
}
|
|
154
|
+
} */
|
|
142
155
|
this.showWidgetEventDialogFlag = true;
|
|
143
156
|
},
|
|
144
157
|
saveEventHandler() {
|
|
@@ -146,12 +159,12 @@ export default {
|
|
|
146
159
|
let hasError = false;
|
|
147
160
|
if (editorAnnotations && editorAnnotations.length > 0) {
|
|
148
161
|
editorAnnotations.forEach((item) => {
|
|
149
|
-
if (item.type ===
|
|
162
|
+
if (item.type === "error") {
|
|
150
163
|
hasError = true;
|
|
151
164
|
}
|
|
152
165
|
});
|
|
153
166
|
if (hasError) {
|
|
154
|
-
this.$message.error(this.i18nt(
|
|
167
|
+
this.$message.error(this.i18nt("designer.hint.syntaxCheckWarning"));
|
|
155
168
|
return;
|
|
156
169
|
}
|
|
157
170
|
}
|