@byteluck-fe/model-driven-controls 2.9.0-alpha.20 → 2.9.0-alpha.22
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/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/index.umd.js +1 -1
- 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
|
@@ -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
|
]);
|