@byteluck-fe/model-driven-controls 2.9.3 → 2.10.0-alpha.2
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/VarcharColumn/property.js +7 -0
- package/dist/esm/formControls/Amount/designer.js +4 -0
- package/dist/esm/formControls/Amount/property.js +7 -0
- package/dist/esm/formControls/Calc/designer.js +4 -0
- package/dist/esm/formControls/Calc/property.js +7 -0
- package/dist/esm/formControls/Number/property.js +1 -1
- package/dist/esm/formControls/Textarea/designer.js +2 -1
- package/dist/esm/formControls/Textarea/property.js +14 -19
- package/dist/esm/formControls/VuePage/designer.js +2 -2
- package/dist/esm/formControls/VuePage/runtime.js +2 -2
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/VarcharColumn/property.d.ts +7 -0
- package/dist/types/formControls/Amount/property.d.ts +6 -0
- package/dist/types/formControls/Calc/property.d.ts +6 -0
- package/dist/types/formControls/Number/property.d.ts +2 -2
- package/dist/types/formControls/Textarea/property.d.ts +4 -16
- package/dist/types/formControls/VuePage/designer.d.ts +3 -3
- package/dist/types/formControls/VuePage/runtime.d.ts +3 -3
- package/package.json +5 -5
|
@@ -133,6 +133,9 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
|
|
|
133
133
|
/**
|
|
134
134
|
* 最大行数
|
|
135
135
|
* */ _define_property(_assert_this_initialized(_this), "lineEllipsis", void 0);
|
|
136
|
+
/**
|
|
137
|
+
* tag配置
|
|
138
|
+
* */ _define_property(_assert_this_initialized(_this), "dictionaryTagConfig", void 0);
|
|
136
139
|
var _props_caption;
|
|
137
140
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerVarcharColumnControl.controlName;
|
|
138
141
|
var _props_optionConfig;
|
|
@@ -147,6 +150,10 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
|
|
|
147
150
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
148
151
|
var _props_lineEllipsis;
|
|
149
152
|
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
153
|
+
var _props_dictionaryTagConfig;
|
|
154
|
+
_this.dictionaryTagConfig = (_props_dictionaryTagConfig = props === null || props === void 0 ? void 0 : props.dictionaryTagConfig) !== null && _props_dictionaryTagConfig !== void 0 ? _props_dictionaryTagConfig : {
|
|
155
|
+
isTag: false
|
|
156
|
+
};
|
|
150
157
|
return _this;
|
|
151
158
|
}
|
|
152
159
|
return VarcharColumnControlProperty;
|
|
@@ -240,6 +240,11 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
240
240
|
* @defaultValue ''
|
|
241
241
|
*/ _define_property(_assert_this_initialized(_this), "precision", void 0);
|
|
242
242
|
/**
|
|
243
|
+
* 单位位置 left right align-right
|
|
244
|
+
* @defaultValue 'right'
|
|
245
|
+
* @public
|
|
246
|
+
* */ _define_property(_assert_this_initialized(_this), "unitPosition", void 0);
|
|
247
|
+
/**
|
|
243
248
|
* 选项配置 custom datasource
|
|
244
249
|
* @defaultValue 'datasource'
|
|
245
250
|
* */ _define_property(_assert_this_initialized(_this), "optionConfig", void 0);
|
|
@@ -279,6 +284,8 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
279
284
|
amount: "",
|
|
280
285
|
currency: AMOUNT_TYPE.CNY
|
|
281
286
|
});
|
|
287
|
+
var _props_unitPosition;
|
|
288
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : "right";
|
|
282
289
|
_this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
|
|
283
290
|
var _props_caption;
|
|
284
291
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
@@ -169,6 +169,11 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
169
169
|
* 默认值
|
|
170
170
|
* */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
171
171
|
/**
|
|
172
|
+
* 单位位置 left right align-right
|
|
173
|
+
* @defaultValue 'right'
|
|
174
|
+
* @public
|
|
175
|
+
* */ _define_property(_assert_this_initialized(_this), "unitPosition", void 0);
|
|
176
|
+
/**
|
|
172
177
|
* 页面加载时计算
|
|
173
178
|
* */ _define_property(_assert_this_initialized(_this), "calcOnMounted", void 0);
|
|
174
179
|
var _props_precision;
|
|
@@ -181,6 +186,8 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
181
186
|
_this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
182
187
|
var _props_caption;
|
|
183
188
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
189
|
+
var _props_unitPosition;
|
|
190
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : "right";
|
|
184
191
|
var _props_placeholder;
|
|
185
192
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
186
193
|
var _props_scriptEcho;
|
|
@@ -214,7 +214,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
214
214
|
* @public
|
|
215
215
|
* */ _define_property(_assert_this_initialized(_this), "isShowUnit", void 0);
|
|
216
216
|
/**
|
|
217
|
-
* 单位位置 left right
|
|
217
|
+
* 单位位置 left right align-right
|
|
218
218
|
* @defaultValue 'right'
|
|
219
219
|
* @public
|
|
220
220
|
* */ _define_property(_assert_this_initialized(_this), "unitPosition", void 0);
|
|
@@ -191,8 +191,9 @@ _define_property(TextareaControl, "setting", [
|
|
|
191
191
|
key: "default-value",
|
|
192
192
|
visible: true
|
|
193
193
|
},
|
|
194
|
+
// { key: 'column-line-ellipsis', visible: true },
|
|
194
195
|
{
|
|
195
|
-
key: "
|
|
196
|
+
key: "row-height-setting",
|
|
196
197
|
visible: true
|
|
197
198
|
},
|
|
198
199
|
{
|
|
@@ -82,7 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { BaseControlProperty, BaseControlPropertyRules, MetaRowHeight, BaseControlPropertyRuntimeRules } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import TextareaControl from "./designer";
|
|
87
87
|
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
88
88
|
var TextareaControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
@@ -168,21 +168,17 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
168
168
|
* @defaultValue ''
|
|
169
169
|
* @public
|
|
170
170
|
*/ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
171
|
+
// /**
|
|
172
|
+
// * 行数设置,开启自适应高度开启时,为最小行数
|
|
173
|
+
// * @defaultValue 4
|
|
174
|
+
// * @public
|
|
175
|
+
// */
|
|
176
|
+
// public lineEllipsis: number
|
|
171
177
|
/**
|
|
172
|
-
*
|
|
173
|
-
* @defaultValue
|
|
178
|
+
* 行高设置 分为pc 和 移动 默认值为 RowHeight
|
|
179
|
+
* @defaultValue MetaRowHeight
|
|
174
180
|
* @public
|
|
175
|
-
*/ _define_property(_assert_this_initialized(_this), "
|
|
176
|
-
/**
|
|
177
|
-
* 自适应内容高度
|
|
178
|
-
* @defaultValue false
|
|
179
|
-
* @public
|
|
180
|
-
*/ _define_property(_assert_this_initialized(_this), "autoSize", void 0);
|
|
181
|
-
/**
|
|
182
|
-
* 最大适应行数
|
|
183
|
-
* @defaultValue 无默认值
|
|
184
|
-
* @public
|
|
185
|
-
*/ _define_property(_assert_this_initialized(_this), "maxRows", void 0);
|
|
181
|
+
*/ _define_property(_assert_this_initialized(_this), "rowHeightSetting", void 0);
|
|
186
182
|
var _props_maxLength;
|
|
187
183
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
188
184
|
var _props_minLength;
|
|
@@ -193,11 +189,10 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
193
189
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
|
|
194
190
|
var _props_placeholder;
|
|
195
191
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
_this.
|
|
200
|
-
_this.maxRows = props === null || props === void 0 ? void 0 : props.maxRows;
|
|
192
|
+
// this.lineEllipsis = props?.lineEllipsis ?? 4
|
|
193
|
+
// this.autoSize = props?.autoSize ?? false
|
|
194
|
+
// this.maxRows = props?.maxRows
|
|
195
|
+
_this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
|
|
201
196
|
return _this;
|
|
202
197
|
}
|
|
203
198
|
return TextareaProperty;
|
|
@@ -98,7 +98,7 @@ function _create_super(Derived) {
|
|
|
98
98
|
}
|
|
99
99
|
import { DesignerFormControl } from "@byteluck-fe/model-driven-core";
|
|
100
100
|
import VuePageProperty from "./property";
|
|
101
|
-
import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
101
|
+
import { FieldTypes, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
|
|
102
102
|
var VuePageControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
103
103
|
"use strict";
|
|
104
104
|
_inherits(VuePageControl, DesignerFormControl);
|
|
@@ -127,7 +127,7 @@ var VuePageControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
127
127
|
{
|
|
128
128
|
key: "controlType",
|
|
129
129
|
get: function get() {
|
|
130
|
-
return
|
|
130
|
+
return CONTROL_TYPE.VUE_PAGE;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
]);
|
|
@@ -97,7 +97,7 @@ function _create_super(Derived) {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
import { RuntimeFormControl } from "@byteluck-fe/model-driven-core";
|
|
100
|
-
import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
100
|
+
import { CONTROL_TYPE, FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
101
101
|
import VuePageProperty from "./property";
|
|
102
102
|
var VuePageControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
103
103
|
"use strict";
|
|
@@ -115,7 +115,7 @@ var VuePageControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
115
115
|
{
|
|
116
116
|
key: "controlType",
|
|
117
117
|
get: function get() {
|
|
118
|
-
return
|
|
118
|
+
return CONTROL_TYPE.VUE_PAGE;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
]);
|
|
@@ -95,8 +95,8 @@ var SimpleSearchControl = /*#__PURE__*/ function(RuntimeSearchControl) {
|
|
|
95
95
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
96
96
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
97
97
|
_this.props = new SimpleSearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
|
-
var
|
|
99
|
-
_this.children = (
|
|
98
|
+
var _props_children;
|
|
99
|
+
_this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [];
|
|
100
100
|
return _this;
|
|
101
101
|
}
|
|
102
102
|
return SimpleSearchControl;
|