@byteluck-fe/model-driven-controls 6.2.0-2-beta.1 → 7.0.0-1-bate1
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/Address/property.js +1 -1
- package/dist/esm/formControls/Attachment/property.js +6 -1
- package/dist/esm/formControls/Cascader/designer.js +231 -0
- package/dist/esm/formControls/Cascader/index.js +11 -0
- package/dist/esm/formControls/Cascader/property.js +166 -0
- package/dist/esm/formControls/Cascader/runtime.js +114 -0
- package/dist/esm/formControls/Cascader/types.js +0 -0
- package/dist/esm/formControls/Checkbox/designer.js +17 -0
- package/dist/esm/formControls/Checkbox/property.js +11 -1
- package/dist/esm/formControls/Image/designer.js +14 -0
- package/dist/esm/formControls/Image/property.js +6 -1
- package/dist/esm/formControls/Number/designer.js +4 -0
- package/dist/esm/formControls/Number/property.js +16 -1
- package/dist/esm/formControls/Radio/designer.js +17 -0
- package/dist/esm/formControls/Radio/property.js +11 -1
- package/dist/esm/formControls/Score/designer.js +11 -0
- package/dist/esm/formControls/Score/property.js +16 -1
- package/dist/esm/formControls/Select/designer.js +17 -0
- package/dist/esm/formControls/Select/property.js +11 -1
- package/dist/esm/formControls/SelectMultiple/designer.js +17 -0
- package/dist/esm/formControls/SelectMultiple/property.js +11 -1
- package/dist/esm/formControls/TimePicker/designer.js +193 -0
- package/dist/esm/formControls/TimePicker/index.js +11 -0
- package/dist/esm/formControls/TimePicker/property.js +108 -0
- package/dist/esm/formControls/TimePicker/runtime.js +114 -0
- package/dist/esm/formControls/TimePicker/types.js +0 -0
- package/dist/esm/formControls/TimeRange/designer.js +197 -0
- package/dist/esm/formControls/TimeRange/index.js +11 -0
- package/dist/esm/formControls/TimeRange/property.js +179 -0
- package/dist/esm/formControls/TimeRange/runtime.js +114 -0
- package/dist/esm/formControls/TimeRange/types.js +0 -0
- package/dist/esm/formControls/index.js +3 -0
- package/dist/esm/framework.js +16 -0
- package/dist/esm/layoutControls/CardGroup/designer.js +128 -0
- package/dist/esm/layoutControls/CardGroup/property.js +39 -4
- package/dist/esm/layoutControls/Col/property.js +3 -7
- package/dist/esm/layoutControls/CollapsePane/designer.js +129 -0
- package/dist/esm/layoutControls/CollapsePane/index.js +11 -0
- package/dist/esm/layoutControls/CollapsePane/property.js +93 -0
- package/dist/esm/layoutControls/CollapsePane/runtime.js +112 -0
- package/dist/esm/layoutControls/CollapsePane/types.js +0 -0
- package/dist/esm/layoutControls/Row/designer.js +16 -0
- package/dist/esm/layoutControls/Row/property.js +10 -2
- package/dist/esm/layoutControls/Step/designer.js +72 -0
- package/dist/esm/layoutControls/Step/property.js +51 -7
- package/dist/esm/layoutControls/Tab/designer.js +56 -0
- package/dist/esm/layoutControls/Tab/property.js +24 -1
- package/dist/esm/layoutControls/TableLayoutCol/property.js +3 -3
- package/dist/esm/layoutControls/collapse/designer.js +173 -0
- package/dist/esm/layoutControls/collapse/index.js +11 -0
- package/dist/esm/layoutControls/collapse/property.js +107 -0
- package/dist/esm/layoutControls/collapse/runtime.js +112 -0
- package/dist/esm/layoutControls/collapse/types.js +0 -0
- package/dist/esm/listControls/SubTable/designer.js +17 -0
- package/dist/esm/listControls/SubTable/property.js +6 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Address/property.d.ts +2 -2
- package/dist/types/formControls/Attachment/property.d.ts +5 -0
- package/dist/types/formControls/Cascader/designer.d.ts +20 -0
- package/dist/types/formControls/Cascader/index.d.ts +12 -0
- package/dist/types/formControls/Cascader/property.d.ts +72 -0
- package/dist/types/formControls/Cascader/runtime.d.ts +12 -0
- package/dist/types/formControls/Cascader/types.d.ts +0 -0
- package/dist/types/formControls/Checkbox/property.d.ts +10 -0
- package/dist/types/formControls/Image/property.d.ts +5 -0
- package/dist/types/formControls/Number/property.d.ts +15 -0
- package/dist/types/formControls/Radio/property.d.ts +10 -0
- package/dist/types/formControls/Score/property.d.ts +15 -0
- package/dist/types/formControls/Select/property.d.ts +10 -0
- package/dist/types/formControls/SelectMultiple/property.d.ts +10 -0
- package/dist/types/formControls/TimePicker/designer.d.ts +14 -0
- package/dist/types/formControls/TimePicker/index.d.ts +12 -0
- package/dist/types/formControls/TimePicker/property.d.ts +11 -0
- package/dist/types/formControls/TimePicker/runtime.d.ts +12 -0
- package/dist/types/formControls/TimePicker/types.d.ts +0 -0
- package/dist/types/formControls/TimeRange/designer.d.ts +14 -0
- package/dist/types/formControls/TimeRange/index.d.ts +12 -0
- package/dist/types/formControls/TimeRange/property.d.ts +62 -0
- package/dist/types/formControls/TimeRange/runtime.d.ts +12 -0
- package/dist/types/formControls/TimeRange/types.d.ts +0 -0
- package/dist/types/formControls/index.d.ts +3 -0
- package/dist/types/framework.d.ts +26 -19
- package/dist/types/layoutControls/CardGroup/property.d.ts +39 -0
- package/dist/types/layoutControls/Col/property.d.ts +1 -2
- package/dist/types/layoutControls/CollapsePane/designer.d.ts +14 -0
- package/dist/types/layoutControls/CollapsePane/index.d.ts +12 -0
- package/dist/types/layoutControls/CollapsePane/property.d.ts +11 -0
- package/dist/types/layoutControls/CollapsePane/runtime.d.ts +9 -0
- package/dist/types/layoutControls/CollapsePane/types.d.ts +0 -0
- package/dist/types/layoutControls/Row/property.d.ts +6 -1
- package/dist/types/layoutControls/Step/property.d.ts +56 -1
- package/dist/types/layoutControls/Tab/property.d.ts +24 -0
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +3 -3
- package/dist/types/layoutControls/collapse/designer.d.ts +14 -0
- package/dist/types/layoutControls/collapse/index.d.ts +12 -0
- package/dist/types/layoutControls/collapse/property.d.ts +26 -0
- package/dist/types/layoutControls/collapse/runtime.d.ts +9 -0
- package/dist/types/layoutControls/collapse/types.d.ts +0 -0
- package/dist/types/listControls/SubTable/designer.d.ts +19 -0
- package/dist/types/listControls/SubTable/property.d.ts +5 -0
- package/dist/types/type.d.ts +4 -1
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -139,6 +139,62 @@ _define_property(TabControl, "setting", [
|
|
|
139
139
|
key: 'tab-mobile-show-type',
|
|
140
140
|
visible: true
|
|
141
141
|
},
|
|
142
|
+
{
|
|
143
|
+
key: 'common-button-radio',
|
|
144
|
+
visible: true,
|
|
145
|
+
name: 'type',
|
|
146
|
+
label: '风格类型',
|
|
147
|
+
default: 'line',
|
|
148
|
+
options: [
|
|
149
|
+
{
|
|
150
|
+
value: 'line',
|
|
151
|
+
label: '默认'
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
value: 'card',
|
|
155
|
+
label: '选项卡'
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
key: 'common-button-radio',
|
|
161
|
+
visible: true,
|
|
162
|
+
name: 'tabPosition',
|
|
163
|
+
label: '页签位置',
|
|
164
|
+
default: 'top',
|
|
165
|
+
options: [
|
|
166
|
+
{
|
|
167
|
+
value: 'top',
|
|
168
|
+
label: '上'
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
value: 'bottom',
|
|
172
|
+
label: '下'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
value: 'left',
|
|
176
|
+
label: '左'
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
value: 'right',
|
|
180
|
+
label: '右'
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
key: 'common-switch',
|
|
186
|
+
visible: true,
|
|
187
|
+
name: 'isLabelFlat',
|
|
188
|
+
label: '页签宽度是否自动撑开',
|
|
189
|
+
default: false
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
key: 'common-switch',
|
|
193
|
+
visible: true,
|
|
194
|
+
name: 'isDelay',
|
|
195
|
+
label: '内容延迟渲染',
|
|
196
|
+
default: false
|
|
197
|
+
},
|
|
142
198
|
{
|
|
143
199
|
key: 'super-setting',
|
|
144
200
|
visible: true
|
|
@@ -79,9 +79,32 @@ var TabControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
79
79
|
var _this;
|
|
80
80
|
_this = _call_super(this, TabControlProperty, [
|
|
81
81
|
props
|
|
82
|
-
]),
|
|
82
|
+
]), /**
|
|
83
|
+
* 移动端展示样式
|
|
84
|
+
* @defaultValue vertical
|
|
85
|
+
*/ _define_property(_this, "mobileShowType", void 0), /**
|
|
86
|
+
* 风格类型,line:默认样式;card:选项卡样式;
|
|
87
|
+
* @defaultValue line
|
|
88
|
+
*/ _define_property(_this, "type", void 0), /**
|
|
89
|
+
* 页签位置,top:页签在上;bottom:页签在下;left:页签在左侧;right:页签在右侧;
|
|
90
|
+
* @defaultValue top
|
|
91
|
+
*/ _define_property(_this, "tabPosition", void 0), /**
|
|
92
|
+
* 页签宽度是否自动撑开
|
|
93
|
+
* @defaultValue false
|
|
94
|
+
*/ _define_property(_this, "isLabelFlat", void 0), /**
|
|
95
|
+
* 内容是否延迟渲染
|
|
96
|
+
* @defaultValue false
|
|
97
|
+
*/ _define_property(_this, "isDelay", void 0);
|
|
83
98
|
var _props_mobileShowType;
|
|
84
99
|
_this.mobileShowType = (_props_mobileShowType = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _props_mobileShowType !== void 0 ? _props_mobileShowType : 'vertical';
|
|
100
|
+
var _props_type;
|
|
101
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'line';
|
|
102
|
+
var _props_tabPosition;
|
|
103
|
+
_this.tabPosition = (_props_tabPosition = props === null || props === void 0 ? void 0 : props.tabPosition) !== null && _props_tabPosition !== void 0 ? _props_tabPosition : 'top';
|
|
104
|
+
var _props_isLabelFlat;
|
|
105
|
+
_this.isLabelFlat = (_props_isLabelFlat = props === null || props === void 0 ? void 0 : props.isLabelFlat) !== null && _props_isLabelFlat !== void 0 ? _props_isLabelFlat : false;
|
|
106
|
+
var _props_isDelay;
|
|
107
|
+
_this.isDelay = (_props_isDelay = props === null || props === void 0 ? void 0 : props.isDelay) !== null && _props_isDelay !== void 0 ? _props_isDelay : false;
|
|
85
108
|
return _this;
|
|
86
109
|
}
|
|
87
110
|
return TabControlProperty;
|
|
@@ -99,11 +99,11 @@ var TableLayoutColControlProperty = /*#__PURE__*/ function(LayoutControlProperty
|
|
|
99
99
|
var _props_layout;
|
|
100
100
|
_this.layout = (_props_layout = props === null || props === void 0 ? void 0 : props.layout) !== null && _props_layout !== void 0 ? _props_layout : 'flex';
|
|
101
101
|
var _props_flexDirection;
|
|
102
|
-
_this.flexDirection = (_props_flexDirection = props === null || props === void 0 ? void 0 : props.flexDirection) !== null && _props_flexDirection !== void 0 ? _props_flexDirection : '';
|
|
102
|
+
_this.flexDirection = (_props_flexDirection = props === null || props === void 0 ? void 0 : props.flexDirection) !== null && _props_flexDirection !== void 0 ? _props_flexDirection : 'column';
|
|
103
103
|
var _props_alignItems;
|
|
104
|
-
_this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : '';
|
|
104
|
+
_this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : 'flex-start';
|
|
105
105
|
var _props_justifyContent;
|
|
106
|
-
_this.justifyContent = (_props_justifyContent = props === null || props === void 0 ? void 0 : props.justifyContent) !== null && _props_justifyContent !== void 0 ? _props_justifyContent : '';
|
|
106
|
+
_this.justifyContent = (_props_justifyContent = props === null || props === void 0 ? void 0 : props.justifyContent) !== null && _props_justifyContent !== void 0 ? _props_justifyContent : 'flex-start';
|
|
107
107
|
var _props_background;
|
|
108
108
|
_this.background = (_props_background = props === null || props === void 0 ? void 0 : props.background) !== null && _props_background !== void 0 ? _props_background : {
|
|
109
109
|
type: 'backgroundColor',
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import CollapseControlProperty from './property';
|
|
89
|
+
import { DesignerCollapsePaneControl } from '../CollapsePane';
|
|
90
|
+
var CollapseControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(CollapseControl, DesignerLayoutControl);
|
|
93
|
+
function CollapseControl(props) {
|
|
94
|
+
_class_call_check(this, CollapseControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, CollapseControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new CollapseControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
var _props_children;
|
|
101
|
+
_this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [
|
|
102
|
+
new DesignerCollapsePaneControl(),
|
|
103
|
+
new DesignerCollapsePaneControl()
|
|
104
|
+
];
|
|
105
|
+
return _this;
|
|
106
|
+
}
|
|
107
|
+
_create_class(CollapseControl, null, [
|
|
108
|
+
{
|
|
109
|
+
key: "controlName",
|
|
110
|
+
get: function get() {
|
|
111
|
+
return '折叠面板';
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "controlType",
|
|
116
|
+
get: function get() {
|
|
117
|
+
return 'collapse';
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: "controlIcon",
|
|
122
|
+
get: function get() {
|
|
123
|
+
return 'iconziyuan1';
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]);
|
|
127
|
+
return CollapseControl;
|
|
128
|
+
}(DesignerLayoutControl);
|
|
129
|
+
_define_property(CollapseControl, "excludes", []);
|
|
130
|
+
_define_property(CollapseControl, "controlEventKeys", [
|
|
131
|
+
'on_change_collapse'
|
|
132
|
+
]);
|
|
133
|
+
_define_property(CollapseControl, "setting", [
|
|
134
|
+
{
|
|
135
|
+
key: 'common-switch',
|
|
136
|
+
visible: true,
|
|
137
|
+
name: 'accordion',
|
|
138
|
+
label: '手风琴模式',
|
|
139
|
+
default: false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: 'common-switch',
|
|
143
|
+
visible: true,
|
|
144
|
+
name: 'bordered',
|
|
145
|
+
label: '边框风格',
|
|
146
|
+
default: true
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
key: 'common-switch',
|
|
150
|
+
visible: true,
|
|
151
|
+
name: 'isShowHighlightBar',
|
|
152
|
+
label: '标题左侧显示高亮条',
|
|
153
|
+
default: false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
key: 'common-switch',
|
|
157
|
+
visible: true,
|
|
158
|
+
name: 'ghost',
|
|
159
|
+
label: '幽灵风格',
|
|
160
|
+
default: false,
|
|
161
|
+
tip: '使折叠面板透明且无边框'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
key: 'collapse-pane',
|
|
165
|
+
visible: true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
key: 'super-setting',
|
|
169
|
+
visible: true
|
|
170
|
+
}
|
|
171
|
+
]);
|
|
172
|
+
export default CollapseControl;
|
|
173
|
+
export { CollapseControl as DesignerCollapseControl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
export default {
|
|
5
|
+
Designer: Designer,
|
|
6
|
+
Runtime: Runtime,
|
|
7
|
+
Property: Property
|
|
8
|
+
};
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _define_property(obj, key, value) {
|
|
17
|
+
if (key in obj) {
|
|
18
|
+
Object.defineProperty(obj, key, {
|
|
19
|
+
value: value,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
obj[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function _get_prototype_of(o) {
|
|
30
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
31
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32
|
+
};
|
|
33
|
+
return _get_prototype_of(o);
|
|
34
|
+
}
|
|
35
|
+
function _inherits(subClass, superClass) {
|
|
36
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
37
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
38
|
+
}
|
|
39
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
40
|
+
constructor: {
|
|
41
|
+
value: subClass,
|
|
42
|
+
writable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
|
+
}
|
|
48
|
+
function _possible_constructor_return(self, call) {
|
|
49
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
50
|
+
return call;
|
|
51
|
+
}
|
|
52
|
+
return _assert_this_initialized(self);
|
|
53
|
+
}
|
|
54
|
+
function _set_prototype_of(o, p) {
|
|
55
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
56
|
+
o.__proto__ = p;
|
|
57
|
+
return o;
|
|
58
|
+
};
|
|
59
|
+
return _set_prototype_of(o, p);
|
|
60
|
+
}
|
|
61
|
+
function _type_of(obj) {
|
|
62
|
+
"@swc/helpers - typeof";
|
|
63
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
|
+
}
|
|
65
|
+
function _is_native_reflect_construct() {
|
|
66
|
+
try {
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
72
|
+
}
|
|
73
|
+
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
var CollapseControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
75
|
+
"use strict";
|
|
76
|
+
_inherits(CollapseControlProperty, LayoutControlProperty);
|
|
77
|
+
function CollapseControlProperty(props) {
|
|
78
|
+
_class_call_check(this, CollapseControlProperty);
|
|
79
|
+
var _this;
|
|
80
|
+
_this = _call_super(this, CollapseControlProperty, [
|
|
81
|
+
props
|
|
82
|
+
]), /**
|
|
83
|
+
* 手风琴模式,始终只有一个面板处在激活状态
|
|
84
|
+
* @defaultValue false
|
|
85
|
+
*/ _define_property(_this, "accordion", void 0), /**
|
|
86
|
+
* 带边框风格的折叠面板
|
|
87
|
+
* @defaultValue true
|
|
88
|
+
*/ _define_property(_this, "bordered", void 0), /**
|
|
89
|
+
* 是否在标题左侧显示高亮条
|
|
90
|
+
* @defaultValue false
|
|
91
|
+
*/ _define_property(_this, "isShowHighlightBar", void 0), /**
|
|
92
|
+
* 幽灵折叠面板,使折叠面板透明且无边框
|
|
93
|
+
* @defaultValue false
|
|
94
|
+
*/ _define_property(_this, "ghost", void 0);
|
|
95
|
+
var _props_accordion;
|
|
96
|
+
_this.accordion = (_props_accordion = props === null || props === void 0 ? void 0 : props.accordion) !== null && _props_accordion !== void 0 ? _props_accordion : false;
|
|
97
|
+
_this.bordered = (props === null || props === void 0 ? void 0 : props.bordered) === false ? false : true;
|
|
98
|
+
var _props_isShowHighlightBar;
|
|
99
|
+
_this.isShowHighlightBar = (_props_isShowHighlightBar = props === null || props === void 0 ? void 0 : props.isShowHighlightBar) !== null && _props_isShowHighlightBar !== void 0 ? _props_isShowHighlightBar : false;
|
|
100
|
+
var _props_ghost;
|
|
101
|
+
_this.ghost = (_props_ghost = props === null || props === void 0 ? void 0 : props.ghost) !== null && _props_ghost !== void 0 ? _props_ghost : false;
|
|
102
|
+
return _this;
|
|
103
|
+
}
|
|
104
|
+
return CollapseControlProperty;
|
|
105
|
+
}(LayoutControlProperty);
|
|
106
|
+
export default CollapseControlProperty;
|
|
107
|
+
export { CollapseControlProperty };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import CollapseControlProperty from './property';
|
|
89
|
+
var CollapseControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(CollapseControl, RuntimeLayoutControl);
|
|
92
|
+
function CollapseControl(props) {
|
|
93
|
+
_class_call_check(this, CollapseControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, CollapseControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new CollapseControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(CollapseControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'collapse';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return CollapseControl;
|
|
110
|
+
}(RuntimeLayoutControl);
|
|
111
|
+
export default CollapseControl;
|
|
112
|
+
export { CollapseControl as RuntimeCollapseControl };
|
|
File without changes
|
|
@@ -193,6 +193,23 @@ _define_property(SubTableControl, "setting", [
|
|
|
193
193
|
key: 'subtable-btn-setting',
|
|
194
194
|
visible: true
|
|
195
195
|
},
|
|
196
|
+
{
|
|
197
|
+
key: 'common-button-radio',
|
|
198
|
+
visible: true,
|
|
199
|
+
name: 'triggerEdit',
|
|
200
|
+
label: '触发编辑方式',
|
|
201
|
+
default: 'single',
|
|
202
|
+
options: [
|
|
203
|
+
{
|
|
204
|
+
value: 'single',
|
|
205
|
+
label: '单击'
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
value: 'double',
|
|
209
|
+
label: '双击'
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
196
213
|
{
|
|
197
214
|
key: 'subtable-opened-mode',
|
|
198
215
|
visible: true
|
|
@@ -287,7 +287,10 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
287
287
|
* */ _define_property(_this, "sortable", void 0), /**
|
|
288
288
|
* 排序or筛选字段
|
|
289
289
|
* */ _define_property(_this, "sortKey", void 0), // 是否展示序号
|
|
290
|
-
_define_property(_this, "showTableIndex", void 0)
|
|
290
|
+
_define_property(_this, "showTableIndex", void 0), /**
|
|
291
|
+
* 触发编辑方式;single:单击;double:双击;
|
|
292
|
+
* @defaultValue single
|
|
293
|
+
*/ _define_property(_this, "triggerEdit", void 0);
|
|
291
294
|
var _props_caption;
|
|
292
295
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SubTableControl.controlName;
|
|
293
296
|
var _props_isHideCaption;
|
|
@@ -364,6 +367,8 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
364
367
|
_this.sortKey = (_props_sortKey = props === null || props === void 0 ? void 0 : props.sortKey) !== null && _props_sortKey !== void 0 ? _props_sortKey : {};
|
|
365
368
|
var _props_showTableIndex;
|
|
366
369
|
_this.showTableIndex = (_props_showTableIndex = props === null || props === void 0 ? void 0 : props.showTableIndex) !== null && _props_showTableIndex !== void 0 ? _props_showTableIndex : true;
|
|
370
|
+
var _props_triggerEdit;
|
|
371
|
+
_this.triggerEdit = (_props_triggerEdit = props === null || props === void 0 ? void 0 : props.triggerEdit) !== null && _props_triggerEdit !== void 0 ? _props_triggerEdit : 'single';
|
|
367
372
|
return _this;
|
|
368
373
|
}
|
|
369
374
|
return SubTableControlProperty;
|