@byteluck-fe/model-driven-controls 6.2.0-1-beta.15 → 6.2.0-1-beta.18
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/baseControls/Text/designer.js +7 -6
- package/dist/esm/baseControls/Text/property.js +20 -5
- package/dist/esm/formControls/index.js +0 -1
- package/dist/esm/layoutControls/TableLayout/designer.js +4 -0
- package/dist/esm/layoutControls/TableLayout/property.js +24 -17
- package/dist/esm/layoutControls/TableLayoutCol/designer.js +4 -3
- package/dist/esm/layoutControls/TableLayoutCol/property.js +8 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Text/property.d.ts +18 -2
- package/dist/types/formControls/index.d.ts +0 -1
- package/dist/types/layoutControls/TableLayout/property.d.ts +13 -12
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +7 -0
- package/dist/types/type.d.ts +1 -2
- package/package.json +5 -5
- package/dist/esm/formControls/DisplayText/designer.js +0 -171
- package/dist/esm/formControls/DisplayText/index.js +0 -11
- package/dist/esm/formControls/DisplayText/property.js +0 -107
- package/dist/esm/formControls/DisplayText/runtime.js +0 -112
- package/dist/esm/formControls/DisplayText/types.js +0 -0
- package/dist/types/formControls/DisplayText/designer.d.ts +0 -12
- package/dist/types/formControls/DisplayText/index.d.ts +0 -12
- package/dist/types/formControls/DisplayText/property.d.ts +0 -17
- package/dist/types/formControls/DisplayText/runtime.d.ts +0 -10
- package/dist/types/formControls/DisplayText/types.d.ts +0 -0
|
@@ -126,10 +126,6 @@ _define_property(TextControl, "setting", [
|
|
|
126
126
|
key: 'content',
|
|
127
127
|
visible: true
|
|
128
128
|
},
|
|
129
|
-
{
|
|
130
|
-
key: 'text-font-size',
|
|
131
|
-
visible: true
|
|
132
|
-
},
|
|
133
129
|
{
|
|
134
130
|
key: 'common-setting',
|
|
135
131
|
visible: true,
|
|
@@ -138,11 +134,16 @@ _define_property(TextControl, "setting", [
|
|
|
138
134
|
]
|
|
139
135
|
},
|
|
140
136
|
{
|
|
141
|
-
key: '
|
|
137
|
+
key: 'caption-style',
|
|
138
|
+
showItems: [
|
|
139
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
140
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
141
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
142
|
+
],
|
|
142
143
|
visible: true
|
|
143
144
|
},
|
|
144
145
|
{
|
|
145
|
-
key: '
|
|
146
|
+
key: 'ai-content-search',
|
|
146
147
|
visible: true
|
|
147
148
|
},
|
|
148
149
|
{
|
|
@@ -81,16 +81,31 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
81
81
|
_this = _call_super(this, TextProperty, [
|
|
82
82
|
props
|
|
83
83
|
]), // public dataBind: DataBind
|
|
84
|
-
_define_property(_this, "content", void 0),
|
|
84
|
+
_define_property(_this, "content", void 0), // public fontSize: string
|
|
85
|
+
// public color: string
|
|
86
|
+
_define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0), /**
|
|
87
|
+
* 标题大小
|
|
88
|
+
* @defaultValue ''
|
|
89
|
+
* @public
|
|
90
|
+
*/ _define_property(_this, "captionSize", void 0), /**
|
|
91
|
+
* 标题颜色
|
|
92
|
+
* @defaultValue ''
|
|
93
|
+
* @public
|
|
94
|
+
*/ _define_property(_this, "captionColor", void 0), /**
|
|
95
|
+
* 标题斜体
|
|
96
|
+
* @defaultValue false
|
|
97
|
+
* @public
|
|
98
|
+
*/ _define_property(_this, "isCaptionItalic", void 0), /**
|
|
85
99
|
* ai 显示内容搜索 false | true
|
|
86
100
|
* @defaultValue false
|
|
87
101
|
* @public
|
|
88
102
|
*/ _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "isLabel", void 0);
|
|
89
|
-
var _props_fontSize;
|
|
90
103
|
// this.dataBind = new DataBind(props?.dataBind)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
_this.
|
|
104
|
+
// this.fontSize = props?.fontSize ?? '14px'
|
|
105
|
+
// this.color = props?.color ?? '#646A73'
|
|
106
|
+
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
107
|
+
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
108
|
+
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
94
109
|
var _props_icon;
|
|
95
110
|
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'page-hint';
|
|
96
111
|
var _props_showState;
|
|
@@ -6,7 +6,6 @@ export { default as DatePicker } from './DatePicker';
|
|
|
6
6
|
export { default as DateRange } from './DateRange';
|
|
7
7
|
export { default as Textarea } from './Textarea';
|
|
8
8
|
export { default as RichText } from './RichText';
|
|
9
|
-
export { default as DisplayText } from './DisplayText';
|
|
10
9
|
export { default as Select } from './Select';
|
|
11
10
|
export { default as SelectMultiple } from './SelectMultiple';
|
|
12
11
|
export { default as Employee } from './Employee';
|
|
@@ -86,6 +86,7 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
86
86
|
), _define_property(_this, "colWidth", void 0 //列宽分配以冒号分割, 12:12为自定义分配
|
|
87
87
|
), _define_property(_this, "labelWidth", void 0 // label宽度
|
|
88
88
|
), _define_property(_this, "padding", void 0), _define_property(_this, "margin", void 0), _define_property(_this, "border", void 0), _define_property(_this, "background", void 0), _define_property(_this, "borderRadius", void 0), _define_property(_this, "align", void 0 //内容对齐方式
|
|
89
|
+
), _define_property(_this, "innerBorder", void 0 //表格内边框
|
|
89
90
|
);
|
|
90
91
|
var _props_rowCount;
|
|
91
92
|
_this.rowCount = (_props_rowCount = props === null || props === void 0 ? void 0 : props.rowCount) !== null && _props_rowCount !== void 0 ? _props_rowCount : 2;
|
|
@@ -103,34 +104,34 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
103
104
|
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : '';
|
|
104
105
|
var _props_padding;
|
|
105
106
|
_this.padding = (_props_padding = props === null || props === void 0 ? void 0 : props.padding) !== null && _props_padding !== void 0 ? _props_padding : {
|
|
106
|
-
paddingTop:
|
|
107
|
-
paddingRight:
|
|
108
|
-
paddingBottom:
|
|
109
|
-
paddingLeft:
|
|
107
|
+
paddingTop: '',
|
|
108
|
+
paddingRight: '',
|
|
109
|
+
paddingBottom: '',
|
|
110
|
+
paddingLeft: ''
|
|
110
111
|
};
|
|
111
112
|
var _props_margin;
|
|
112
113
|
_this.margin = (_props_margin = props === null || props === void 0 ? void 0 : props.margin) !== null && _props_margin !== void 0 ? _props_margin : {
|
|
113
|
-
marginTop:
|
|
114
|
-
marginRight:
|
|
115
|
-
marginBottom:
|
|
116
|
-
marginLeft:
|
|
114
|
+
marginTop: '',
|
|
115
|
+
marginRight: '',
|
|
116
|
+
marginBottom: '',
|
|
117
|
+
marginLeft: ''
|
|
117
118
|
};
|
|
118
119
|
var _props_border;
|
|
119
120
|
_this.border = (_props_border = props === null || props === void 0 ? void 0 : props.border) !== null && _props_border !== void 0 ? _props_border : {
|
|
120
|
-
borderTop:
|
|
121
|
-
borderBottom:
|
|
122
|
-
borderLeft:
|
|
123
|
-
borderRight:
|
|
121
|
+
borderTop: true,
|
|
122
|
+
borderBottom: true,
|
|
123
|
+
borderLeft: true,
|
|
124
|
+
borderRight: true,
|
|
124
125
|
borderWidth: 1,
|
|
125
|
-
borderColor: '
|
|
126
|
+
borderColor: '',
|
|
126
127
|
borderType: 'solid'
|
|
127
128
|
};
|
|
128
129
|
var _props_borderRadius;
|
|
129
130
|
_this.borderRadius = (_props_borderRadius = props === null || props === void 0 ? void 0 : props.borderRadius) !== null && _props_borderRadius !== void 0 ? _props_borderRadius : {
|
|
130
|
-
borderTopLeftRadius:
|
|
131
|
-
borderTopRightRadius:
|
|
132
|
-
borderBottomRightRadius:
|
|
133
|
-
borderBottomLeftRadius:
|
|
131
|
+
borderTopLeftRadius: '',
|
|
132
|
+
borderTopRightRadius: '',
|
|
133
|
+
borderBottomRightRadius: '',
|
|
134
|
+
borderBottomLeftRadius: ''
|
|
134
135
|
};
|
|
135
136
|
var _props_background;
|
|
136
137
|
_this.background = (_props_background = props === null || props === void 0 ? void 0 : props.background) !== null && _props_background !== void 0 ? _props_background : {
|
|
@@ -139,6 +140,12 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
139
140
|
backgroundImage: '',
|
|
140
141
|
placementMode: 'contain'
|
|
141
142
|
};
|
|
143
|
+
var _props_innerBorder;
|
|
144
|
+
_this.innerBorder = (_props_innerBorder = props === null || props === void 0 ? void 0 : props.innerBorder) !== null && _props_innerBorder !== void 0 ? _props_innerBorder : {
|
|
145
|
+
borderWidth: 1,
|
|
146
|
+
borderColor: '',
|
|
147
|
+
borderType: 'solid'
|
|
148
|
+
};
|
|
142
149
|
return _this;
|
|
143
150
|
}
|
|
144
151
|
return TableLayoutControlProperty;
|
|
@@ -124,11 +124,8 @@ var TableLayoutColControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
124
124
|
}(DesignerLayoutControl);
|
|
125
125
|
_define_property(TableLayoutColControl, "excludes", [
|
|
126
126
|
CONTROL_TYPE.COL,
|
|
127
|
-
// CONTROL_TYPE.CARD_GROUP,
|
|
128
|
-
CONTROL_TYPE.SUBTABLE,
|
|
129
127
|
CONTROL_TYPE.SUBTABLE_COLUMN,
|
|
130
128
|
CONTROL_TYPE.GRID_LAYOUT_CONTAINER,
|
|
131
|
-
CONTROL_TYPE.DIVIDER,
|
|
132
129
|
CONTROL_TYPE.TABLE_LAYOUT_COL
|
|
133
130
|
]);
|
|
134
131
|
// static childrenMaxLength = 1
|
|
@@ -144,6 +141,10 @@ _define_property(TableLayoutColControl, "setting", [
|
|
|
144
141
|
{
|
|
145
142
|
key: 'flex-config',
|
|
146
143
|
visible: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
key: 'dynamic-background',
|
|
147
|
+
visible: true
|
|
147
148
|
}
|
|
148
149
|
]);
|
|
149
150
|
export default TableLayoutColControl;
|
|
@@ -86,7 +86,7 @@ var TableLayoutColControlProperty = /*#__PURE__*/ function(LayoutControlProperty
|
|
|
86
86
|
_define_property(_this, "layout", void 0), //主轴方向
|
|
87
87
|
_define_property(_this, "flexDirection", void 0), // 侧轴对齐方式
|
|
88
88
|
_define_property(_this, "alignItems", void 0), // 主轴对齐方式
|
|
89
|
-
_define_property(_this, "justifyContent", void 0);
|
|
89
|
+
_define_property(_this, "justifyContent", void 0), _define_property(_this, "background", void 0);
|
|
90
90
|
var _props_span;
|
|
91
91
|
_this.span = (_props_span = props === null || props === void 0 ? void 0 : props.span) !== null && _props_span !== void 0 ? _props_span : BASE_SPAN;
|
|
92
92
|
var _props_offset;
|
|
@@ -103,6 +103,13 @@ var TableLayoutColControlProperty = /*#__PURE__*/ function(LayoutControlProperty
|
|
|
103
103
|
_this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : 'flex-start';
|
|
104
104
|
var _props_justifyContent;
|
|
105
105
|
_this.justifyContent = (_props_justifyContent = props === null || props === void 0 ? void 0 : props.justifyContent) !== null && _props_justifyContent !== void 0 ? _props_justifyContent : 'flex-start';
|
|
106
|
+
var _props_background;
|
|
107
|
+
_this.background = (_props_background = props === null || props === void 0 ? void 0 : props.background) !== null && _props_background !== void 0 ? _props_background : {
|
|
108
|
+
type: 'backgroundColor',
|
|
109
|
+
backgroundColor: 'transparent',
|
|
110
|
+
backgroundImage: '',
|
|
111
|
+
placementMode: 'contain'
|
|
112
|
+
};
|
|
106
113
|
return _this;
|
|
107
114
|
}
|
|
108
115
|
return TableLayoutColControlProperty;
|