@byteluck-fe/model-driven-controls 2.0.8 → 2.1.0-beta.0
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/BatchDeleteButton/designer.js +158 -0
- package/dist/esm/baseControls/BatchDeleteButton/index.js +11 -0
- package/dist/esm/baseControls/BatchDeleteButton/property.js +106 -0
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +110 -0
- package/dist/esm/baseControls/BatchDeleteButton/types.js +0 -0
- package/dist/esm/baseControls/Title/designer.js +12 -2
- package/dist/esm/baseControls/Title/property.js +15 -1
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/framework.js +1 -0
- package/dist/esm/layoutControls/ListView/property.js +1 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/BatchDeleteButton/designer.d.ts +13 -0
- package/dist/types/baseControls/BatchDeleteButton/index.d.ts +12 -0
- package/dist/types/baseControls/BatchDeleteButton/property.d.ts +14 -0
- package/dist/types/baseControls/BatchDeleteButton/runtime.d.ts +9 -0
- package/dist/types/baseControls/BatchDeleteButton/types.d.ts +0 -0
- package/dist/types/baseControls/Title/property.d.ts +2 -0
- package/dist/types/baseControls/index.d.ts +1 -0
- package/dist/types/framework.d.ts +2 -1
- package/dist/types/layoutControls/ListView/property.d.ts +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _getPrototypeOf(o) {
|
|
27
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
28
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
29
|
+
};
|
|
30
|
+
return _getPrototypeOf(o);
|
|
31
|
+
}
|
|
32
|
+
function _inherits(subClass, superClass) {
|
|
33
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
35
|
+
}
|
|
36
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
37
|
+
constructor: {
|
|
38
|
+
value: subClass,
|
|
39
|
+
writable: true,
|
|
40
|
+
configurable: true
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
44
|
+
}
|
|
45
|
+
function _possibleConstructorReturn(self, call) {
|
|
46
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
47
|
+
return call;
|
|
48
|
+
}
|
|
49
|
+
return _assertThisInitialized(self);
|
|
50
|
+
}
|
|
51
|
+
function _setPrototypeOf(o, p) {
|
|
52
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
53
|
+
o.__proto__ = p;
|
|
54
|
+
return o;
|
|
55
|
+
};
|
|
56
|
+
return _setPrototypeOf(o, p);
|
|
57
|
+
}
|
|
58
|
+
var _typeof = function(obj) {
|
|
59
|
+
"@swc/helpers - typeof";
|
|
60
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
61
|
+
};
|
|
62
|
+
function _isNativeReflectConstruct() {
|
|
63
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
64
|
+
if (Reflect.construct.sham) return false;
|
|
65
|
+
if (typeof Proxy === "function") return true;
|
|
66
|
+
try {
|
|
67
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
return true;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function _createSuper(Derived) {
|
|
74
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
75
|
+
return function _createSuperInternal() {
|
|
76
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
77
|
+
if (hasNativeReflectConstruct) {
|
|
78
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
79
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
80
|
+
} else {
|
|
81
|
+
result = Super.apply(this, arguments);
|
|
82
|
+
}
|
|
83
|
+
return _possibleConstructorReturn(this, result);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
import { DesignerControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
87
|
+
import { BatchDeleteButtonProperty } from "./property";
|
|
88
|
+
var BatchDeleteButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
89
|
+
"use strict";
|
|
90
|
+
_inherits(BatchDeleteButtonControl, DesignerControl);
|
|
91
|
+
var _super = _createSuper(BatchDeleteButtonControl);
|
|
92
|
+
function BatchDeleteButtonControl(props) {
|
|
93
|
+
_classCallCheck(this, BatchDeleteButtonControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _super.call(this, props);
|
|
96
|
+
_this.props = new BatchDeleteButtonProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
_createClass(BatchDeleteButtonControl, null, [
|
|
100
|
+
{
|
|
101
|
+
key: "controlName",
|
|
102
|
+
get: function get() {
|
|
103
|
+
return "批量删除";
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "controlIcon",
|
|
108
|
+
get: function get() {
|
|
109
|
+
return "iconlajitong";
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: "controlType",
|
|
114
|
+
get: function get() {
|
|
115
|
+
return "list-page-btn-batch-delete";
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]);
|
|
119
|
+
return BatchDeleteButtonControl;
|
|
120
|
+
}(DesignerControl);
|
|
121
|
+
BatchDeleteButtonControl.controlEventKeys = [
|
|
122
|
+
"on_click"
|
|
123
|
+
];
|
|
124
|
+
BatchDeleteButtonControl.setting = [
|
|
125
|
+
{
|
|
126
|
+
key: "button-content",
|
|
127
|
+
visible: true
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "button-type",
|
|
131
|
+
visible: true
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: "button-show-type",
|
|
135
|
+
visible: true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: "button-color-type",
|
|
139
|
+
visible: true
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: "default-state",
|
|
143
|
+
visible: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
key: "common-setting",
|
|
147
|
+
visible: true,
|
|
148
|
+
showItems: [
|
|
149
|
+
COMMON_SETTING_TYPE.IS_HIDE
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: "super-setting",
|
|
154
|
+
visible: true
|
|
155
|
+
}
|
|
156
|
+
];
|
|
157
|
+
export default BatchDeleteButtonControl;
|
|
158
|
+
export { BatchDeleteButtonControl as DesignerBatchDeleteButtonControl };
|
|
@@ -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,106 @@
|
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _getPrototypeOf(o) {
|
|
13
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
|
+
};
|
|
16
|
+
return _getPrototypeOf(o);
|
|
17
|
+
}
|
|
18
|
+
function _inherits(subClass, superClass) {
|
|
19
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
20
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
21
|
+
}
|
|
22
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
23
|
+
constructor: {
|
|
24
|
+
value: subClass,
|
|
25
|
+
writable: true,
|
|
26
|
+
configurable: true
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
30
|
+
}
|
|
31
|
+
function _possibleConstructorReturn(self, call) {
|
|
32
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
33
|
+
return call;
|
|
34
|
+
}
|
|
35
|
+
return _assertThisInitialized(self);
|
|
36
|
+
}
|
|
37
|
+
function _setPrototypeOf(o, p) {
|
|
38
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
39
|
+
o.__proto__ = p;
|
|
40
|
+
return o;
|
|
41
|
+
};
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
43
|
+
}
|
|
44
|
+
var _typeof = function(obj) {
|
|
45
|
+
"@swc/helpers - typeof";
|
|
46
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
+
};
|
|
48
|
+
function _isNativeReflectConstruct() {
|
|
49
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
|
+
if (Reflect.construct.sham) return false;
|
|
51
|
+
if (typeof Proxy === "function") return true;
|
|
52
|
+
try {
|
|
53
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
54
|
+
return true;
|
|
55
|
+
} catch (e) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
61
|
+
return function _createSuperInternal() {
|
|
62
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
63
|
+
if (hasNativeReflectConstruct) {
|
|
64
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
65
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
|
+
} else {
|
|
67
|
+
result = Super.apply(this, arguments);
|
|
68
|
+
}
|
|
69
|
+
return _possibleConstructorReturn(this, result);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
import { Property } from "@byteluck-fe/model-driven-core";
|
|
73
|
+
import BatchDeleteButtonControl from "./designer";
|
|
74
|
+
var BatchDeleteButtonProperty = /*#__PURE__*/ function(Property) {
|
|
75
|
+
"use strict";
|
|
76
|
+
_inherits(BatchDeleteButtonProperty, Property);
|
|
77
|
+
var _super = _createSuper(BatchDeleteButtonProperty);
|
|
78
|
+
function BatchDeleteButtonProperty(props) {
|
|
79
|
+
_classCallCheck(this, BatchDeleteButtonProperty);
|
|
80
|
+
var _this;
|
|
81
|
+
_this = _super.call(this, props);
|
|
82
|
+
var _props_content;
|
|
83
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchDeleteButtonControl.controlName;
|
|
84
|
+
var _props_icon;
|
|
85
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchDeleteButtonControl.controlIcon;
|
|
86
|
+
var _props_buttonType;
|
|
87
|
+
_this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : "primary";
|
|
88
|
+
var _props_showType;
|
|
89
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "iconText";
|
|
90
|
+
var _props_color;
|
|
91
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : "danger";
|
|
92
|
+
var _props_isHide;
|
|
93
|
+
_this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
|
|
94
|
+
var _props_defaultState;
|
|
95
|
+
// @余石伟 按钮需要有默认icon
|
|
96
|
+
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
|
|
97
|
+
var _props_command;
|
|
98
|
+
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "custom";
|
|
99
|
+
var _props_isLoading;
|
|
100
|
+
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
101
|
+
return _this;
|
|
102
|
+
}
|
|
103
|
+
return BatchDeleteButtonProperty;
|
|
104
|
+
}(Property);
|
|
105
|
+
export default BatchDeleteButtonProperty;
|
|
106
|
+
export { BatchDeleteButtonProperty };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _getPrototypeOf(o) {
|
|
27
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
28
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
29
|
+
};
|
|
30
|
+
return _getPrototypeOf(o);
|
|
31
|
+
}
|
|
32
|
+
function _inherits(subClass, superClass) {
|
|
33
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
35
|
+
}
|
|
36
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
37
|
+
constructor: {
|
|
38
|
+
value: subClass,
|
|
39
|
+
writable: true,
|
|
40
|
+
configurable: true
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
44
|
+
}
|
|
45
|
+
function _possibleConstructorReturn(self, call) {
|
|
46
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
47
|
+
return call;
|
|
48
|
+
}
|
|
49
|
+
return _assertThisInitialized(self);
|
|
50
|
+
}
|
|
51
|
+
function _setPrototypeOf(o, p) {
|
|
52
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
53
|
+
o.__proto__ = p;
|
|
54
|
+
return o;
|
|
55
|
+
};
|
|
56
|
+
return _setPrototypeOf(o, p);
|
|
57
|
+
}
|
|
58
|
+
var _typeof = function(obj) {
|
|
59
|
+
"@swc/helpers - typeof";
|
|
60
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
61
|
+
};
|
|
62
|
+
function _isNativeReflectConstruct() {
|
|
63
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
64
|
+
if (Reflect.construct.sham) return false;
|
|
65
|
+
if (typeof Proxy === "function") return true;
|
|
66
|
+
try {
|
|
67
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
return true;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function _createSuper(Derived) {
|
|
74
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
75
|
+
return function _createSuperInternal() {
|
|
76
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
77
|
+
if (hasNativeReflectConstruct) {
|
|
78
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
79
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
80
|
+
} else {
|
|
81
|
+
result = Super.apply(this, arguments);
|
|
82
|
+
}
|
|
83
|
+
return _possibleConstructorReturn(this, result);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
import { RuntimeControl } from "@byteluck-fe/model-driven-core";
|
|
87
|
+
import { BatchDeleteButtonProperty } from "./property";
|
|
88
|
+
var ButtonControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
89
|
+
"use strict";
|
|
90
|
+
_inherits(ButtonControl, RuntimeControl);
|
|
91
|
+
var _super = _createSuper(ButtonControl);
|
|
92
|
+
function ButtonControl(props) {
|
|
93
|
+
_classCallCheck(this, ButtonControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _super.call(this, props);
|
|
96
|
+
_this.props = new BatchDeleteButtonProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
_createClass(ButtonControl, null, [
|
|
100
|
+
{
|
|
101
|
+
key: "controlType",
|
|
102
|
+
get: function get() {
|
|
103
|
+
return "list-page-btn-batch-delete";
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]);
|
|
107
|
+
return ButtonControl;
|
|
108
|
+
}(RuntimeControl);
|
|
109
|
+
export default ButtonControl;
|
|
110
|
+
export { ButtonControl as RuntimeButtonControl };
|
|
File without changes
|
|
@@ -121,11 +121,17 @@ var TitleControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
121
121
|
}(DesignerControl);
|
|
122
122
|
TitleControl.controlFieldType = FieldTypes.AUTO_NUMBER;
|
|
123
123
|
TitleControl.setting = [
|
|
124
|
+
{
|
|
125
|
+
key: "common-setting",
|
|
126
|
+
visible: true,
|
|
127
|
+
showItems: [
|
|
128
|
+
COMMON_SETTING_TYPE.IS_HIDE
|
|
129
|
+
]
|
|
130
|
+
},
|
|
124
131
|
{
|
|
125
132
|
key: "caption",
|
|
126
133
|
showItems: [
|
|
127
|
-
COMMON_SETTING_TYPE.CAPTION
|
|
128
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
134
|
+
COMMON_SETTING_TYPE.CAPTION
|
|
129
135
|
],
|
|
130
136
|
visible: true
|
|
131
137
|
},
|
|
@@ -133,6 +139,10 @@ TitleControl.setting = [
|
|
|
133
139
|
key: "title-setting",
|
|
134
140
|
visible: true
|
|
135
141
|
},
|
|
142
|
+
{
|
|
143
|
+
key: "position",
|
|
144
|
+
visible: true
|
|
145
|
+
},
|
|
136
146
|
{
|
|
137
147
|
key: "super-setting",
|
|
138
148
|
visible: true
|
|
@@ -89,6 +89,9 @@ var TitleControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
89
89
|
_this.dataBind = {
|
|
90
90
|
type: "any"
|
|
91
91
|
};
|
|
92
|
+
_this.config = {
|
|
93
|
+
type: "array"
|
|
94
|
+
};
|
|
92
95
|
if (props.config.includes(TitleConfigEnum.ShowBizKey)) {
|
|
93
96
|
_this.dataBind = {
|
|
94
97
|
type: "object",
|
|
@@ -108,6 +111,14 @@ var TitleControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
108
111
|
message: RulesMessage.getMessage("bizKeyNotBindFiled")
|
|
109
112
|
};
|
|
110
113
|
}
|
|
114
|
+
if (!props.isHide && props.config.length === 0) {
|
|
115
|
+
_this.config = {
|
|
116
|
+
type: "array",
|
|
117
|
+
min: 1,
|
|
118
|
+
required: true,
|
|
119
|
+
message: RulesMessage.getMessage("pleaseSelectOneField")
|
|
120
|
+
};
|
|
121
|
+
}
|
|
111
122
|
return _this;
|
|
112
123
|
}
|
|
113
124
|
return TitleControlPropertyRules;
|
|
@@ -127,10 +138,13 @@ var TitleProperty = /*#__PURE__*/ function(Property) {
|
|
|
127
138
|
TitleConfigEnum.ShowSubmitUser,
|
|
128
139
|
TitleConfigEnum.ShowSubmitDept,
|
|
129
140
|
TitleConfigEnum.ShowSubmitTime,
|
|
130
|
-
TitleConfigEnum.ShowCurrentApprovar
|
|
141
|
+
TitleConfigEnum.ShowCurrentApprovar,
|
|
142
|
+
TitleConfigEnum.ShowTitle
|
|
131
143
|
];
|
|
132
144
|
var _props_caption, _ref;
|
|
133
145
|
_this.caption = (_ref = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTitleControl === null || DesignerTitleControl === void 0 ? void 0 : DesignerTitleControl.controlName) !== null && _ref !== void 0 ? _ref : "";
|
|
146
|
+
var _props_position;
|
|
147
|
+
_this.position = (_props_position = props === null || props === void 0 ? void 0 : props.position) !== null && _props_position !== void 0 ? _props_position : "top";
|
|
134
148
|
return _this;
|
|
135
149
|
}
|
|
136
150
|
return TitleProperty;
|
|
@@ -19,3 +19,4 @@ export { default as InvoiceCheckButton } from "./InvoiceCheckButton";
|
|
|
19
19
|
export { default as BatchPrintListButton } from "./BatchPrintListButton";
|
|
20
20
|
export { default as BatchPrintRecordListButton } from "./BatchPrintRecordListButton";
|
|
21
21
|
export { default as OperationButton } from "./OperationButton";
|
|
22
|
+
export { default as BatchDeleteButton } from "./BatchDeleteButton";
|
package/dist/esm/framework.js
CHANGED
|
@@ -12,6 +12,7 @@ export var TitleConfigEnum;
|
|
|
12
12
|
TitleConfigEnum["ShowSubmitTime"] = "is_show_submit_time";
|
|
13
13
|
TitleConfigEnum["ShowSubmitDept"] = "is_show_submit_dept";
|
|
14
14
|
TitleConfigEnum["ShowCurrentApprovar"] = "is_show_current_approvar";
|
|
15
|
+
TitleConfigEnum["ShowTitle"] = "is_show_title";
|
|
15
16
|
})(TitleConfigEnum || (TitleConfigEnum = {}));
|
|
16
17
|
export var DATE_CONFIG_TYPE;
|
|
17
18
|
(function(DATE_CONFIG_TYPE) {
|
|
@@ -158,8 +158,7 @@ var ListViewControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
158
158
|
_this.isFixedHeader = (_props_isFixedHeader = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _props_isFixedHeader !== void 0 ? _props_isFixedHeader : false;
|
|
159
159
|
var _props_isAllLoaded;
|
|
160
160
|
_this.isAllLoaded = (_props_isAllLoaded = props === null || props === void 0 ? void 0 : props.isAllLoaded) !== null && _props_isAllLoaded !== void 0 ? _props_isAllLoaded : true;
|
|
161
|
-
|
|
162
|
-
_this.countType = (_props_countType = props === null || props === void 0 ? void 0 : props.countType) !== null && _props_countType !== void 0 ? _props_countType : "async";
|
|
161
|
+
_this.countType = props === null || props === void 0 ? void 0 : props.countType;
|
|
163
162
|
return _this;
|
|
164
163
|
}
|
|
165
164
|
return ListViewControlProperty;
|