@byteluck-fe/model-driven-controls 6.2.0-1-beta.11 → 6.2.0-1-beta.13
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/DisplayText/designer.js +1 -1
- package/dist/esm/layoutControls/TableLayout/designer.js +16 -0
- package/dist/esm/layoutControls/TableLayout/property.js +39 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/layoutControls/TableLayout/property.d.ts +38 -0
- package/package.json +5 -5
|
@@ -103,7 +103,7 @@ var DisplayTextControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
103
|
{
|
|
104
104
|
key: "controlName",
|
|
105
105
|
get: function get() {
|
|
106
|
-
return getLocaleText('CMD.
|
|
106
|
+
return getLocaleText('CMD.diplayText', null, '展示文本');
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -141,6 +141,22 @@ _define_property(TableLayoutControl, "setting", [
|
|
|
141
141
|
{
|
|
142
142
|
key: 'label-width',
|
|
143
143
|
visible: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
key: 'dynamic-border',
|
|
147
|
+
visible: true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
key: 'dynamic-border-radius',
|
|
151
|
+
visible: true
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: 'dynamic-margin-padding',
|
|
155
|
+
visible: true
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
key: 'dynamic-background',
|
|
159
|
+
visible: true
|
|
144
160
|
}
|
|
145
161
|
]);
|
|
146
162
|
export default TableLayoutControl;
|
|
@@ -85,7 +85,7 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
85
85
|
), _define_property(_this, "colWidthType", void 0 //列宽分配, average 平均分配,custom为自定义分配
|
|
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);
|
|
89
89
|
var _props_rowCount;
|
|
90
90
|
_this.rowCount = (_props_rowCount = props === null || props === void 0 ? void 0 : props.rowCount) !== null && _props_rowCount !== void 0 ? _props_rowCount : 2;
|
|
91
91
|
var _props_colCount;
|
|
@@ -98,6 +98,44 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
98
98
|
_this.colWidth = (_props_colWidth = props === null || props === void 0 ? void 0 : props.colWidth) !== null && _props_colWidth !== void 0 ? _props_colWidth : '12:12';
|
|
99
99
|
var _props_labelWidth;
|
|
100
100
|
_this.labelWidth = (_props_labelWidth = props === null || props === void 0 ? void 0 : props.labelWidth) !== null && _props_labelWidth !== void 0 ? _props_labelWidth : '';
|
|
101
|
+
var _props_padding;
|
|
102
|
+
_this.padding = (_props_padding = props === null || props === void 0 ? void 0 : props.padding) !== null && _props_padding !== void 0 ? _props_padding : {
|
|
103
|
+
paddingTop: 0,
|
|
104
|
+
paddingRight: 0,
|
|
105
|
+
paddingBottom: 0,
|
|
106
|
+
paddingLeft: 0
|
|
107
|
+
};
|
|
108
|
+
var _props_margin;
|
|
109
|
+
_this.margin = (_props_margin = props === null || props === void 0 ? void 0 : props.margin) !== null && _props_margin !== void 0 ? _props_margin : {
|
|
110
|
+
marginTop: 0,
|
|
111
|
+
marginRight: 0,
|
|
112
|
+
marginBottom: 0,
|
|
113
|
+
marginLeft: 0
|
|
114
|
+
};
|
|
115
|
+
var _props_border;
|
|
116
|
+
_this.border = (_props_border = props === null || props === void 0 ? void 0 : props.border) !== null && _props_border !== void 0 ? _props_border : {
|
|
117
|
+
borderTop: false,
|
|
118
|
+
borderBottom: false,
|
|
119
|
+
borderLeft: false,
|
|
120
|
+
borderRight: false,
|
|
121
|
+
borderWidth: 1,
|
|
122
|
+
borderColor: '#e8eaed',
|
|
123
|
+
borderType: 'solid'
|
|
124
|
+
};
|
|
125
|
+
var _props_borderRadius;
|
|
126
|
+
_this.borderRadius = (_props_borderRadius = props === null || props === void 0 ? void 0 : props.borderRadius) !== null && _props_borderRadius !== void 0 ? _props_borderRadius : {
|
|
127
|
+
borderTopLeftRadius: 0,
|
|
128
|
+
borderTopRightRadius: 0,
|
|
129
|
+
borderBottomRightRadius: 0,
|
|
130
|
+
borderBottomLeftRadius: 0
|
|
131
|
+
};
|
|
132
|
+
var _props_background;
|
|
133
|
+
_this.background = (_props_background = props === null || props === void 0 ? void 0 : props.background) !== null && _props_background !== void 0 ? _props_background : {
|
|
134
|
+
type: 'backgroundColor',
|
|
135
|
+
backgroundColor: 'transparent',
|
|
136
|
+
backgroundImage: '',
|
|
137
|
+
placementMode: 'contain'
|
|
138
|
+
};
|
|
101
139
|
return _this;
|
|
102
140
|
}
|
|
103
141
|
return TableLayoutControlProperty;
|