@byteluck-fe/model-driven-controls 1.8.0-beta.0 → 1.8.0-beta.1
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/dist/esm/columnControls/OperationColumn/property.js +3 -0
- package/dist/esm/layoutControls/DataView/property.js +27 -15
- package/dist/esm/layoutControls/ListView/designer.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/OperationColumn/property.d.ts +2 -0
- package/dist/types/layoutControls/DataView/property.d.ts +5 -1
- package/package.json +5 -5
|
@@ -137,6 +137,9 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
137
137
|
});
|
|
138
138
|
var ref2;
|
|
139
139
|
_this.caption = (ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref2 !== void 0 ? ref2 : DesignerOperationColumnControl.controlName;
|
|
140
|
+
_this.showType = props === null || props === void 0 ? void 0 : props.showType;
|
|
141
|
+
var ref3;
|
|
142
|
+
_this.limit = (ref3 = props === null || props === void 0 ? void 0 : props.limit) !== null && ref3 !== void 0 ? ref3 : 3;
|
|
140
143
|
return _this;
|
|
141
144
|
}
|
|
142
145
|
return OperationColumnControlProperty;
|
|
@@ -95,23 +95,35 @@ var DataViewControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
95
95
|
var _this;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
97
|
var ref;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
// props?.cancel ?? { content: '取消', type: 'cancel', isShow: false }
|
|
103
|
-
// )
|
|
104
|
-
// this.saveAs = new OperationItem(
|
|
105
|
-
// props?.saveAs ?? { content: '保存草稿', type: 'saveAs', isShow: false }
|
|
106
|
-
// )
|
|
107
|
-
// this.print = new OperationItem(
|
|
108
|
-
// props?.print ?? { content: '打印', type: 'print', isShow: false }
|
|
109
|
-
// )
|
|
110
|
-
_this.buttons = ((ref = props === null || props === void 0 ? void 0 : props.buttons) !== null && ref !== void 0 ? ref : []).map(function(item) {
|
|
111
|
-
return new OperationItem(item);
|
|
98
|
+
_this.save = new OperationItem((ref = props === null || props === void 0 ? void 0 : props.save) !== null && ref !== void 0 ? ref : {
|
|
99
|
+
content: "保存",
|
|
100
|
+
type: "save",
|
|
101
|
+
isShow: false
|
|
112
102
|
});
|
|
113
103
|
var ref1;
|
|
114
|
-
_this.
|
|
104
|
+
_this.cancel = new OperationItem((ref1 = props === null || props === void 0 ? void 0 : props.cancel) !== null && ref1 !== void 0 ? ref1 : {
|
|
105
|
+
content: "取消",
|
|
106
|
+
type: "cancel",
|
|
107
|
+
isShow: false
|
|
108
|
+
});
|
|
109
|
+
var ref2;
|
|
110
|
+
_this.saveAs = new OperationItem((ref2 = props === null || props === void 0 ? void 0 : props.saveAs) !== null && ref2 !== void 0 ? ref2 : {
|
|
111
|
+
content: "保存草稿",
|
|
112
|
+
type: "saveAs",
|
|
113
|
+
isShow: false
|
|
114
|
+
});
|
|
115
|
+
var ref3;
|
|
116
|
+
_this.print = new OperationItem((ref3 = props === null || props === void 0 ? void 0 : props.print) !== null && ref3 !== void 0 ? ref3 : {
|
|
117
|
+
content: "打印",
|
|
118
|
+
type: "print",
|
|
119
|
+
isShow: false
|
|
120
|
+
});
|
|
121
|
+
var ref4;
|
|
122
|
+
_this.custom = ((ref4 = props === null || props === void 0 ? void 0 : props.custom) !== null && ref4 !== void 0 ? ref4 : []).map(function(item) {
|
|
123
|
+
return new OperationItem(item);
|
|
124
|
+
});
|
|
125
|
+
var ref5;
|
|
126
|
+
_this.isLoading = (ref5 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && ref5 !== void 0 ? ref5 : false;
|
|
115
127
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
116
128
|
return _this;
|
|
117
129
|
}
|