@byteluck-fe/model-driven-controls 2.9.0-alpha.21 → 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.
|
@@ -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;
|