@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.
@@ -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
- // this.save = new OperationItem(
99
- // props?.save ?? { content: '保存', type: 'save', isShow: false }
100
- // )
101
- // this.cancel = new OperationItem(
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.isLoading = (ref1 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && ref1 !== void 0 ? ref1 : false;
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
  }
@@ -126,6 +126,7 @@ ListViewControl.controlEventKeys = [
126
126
  "on_list_search",
127
127
  "on_list_mounted",
128
128
  "on_list_actions",
129
+ "on_list_render_operation",
129
130
  "on_list_rowclick",
130
131
  "on_list_before_rowdelete",
131
132
  "on_list_rows_checked"