@byteluck-fe/model-driven-controls 2.6.0-alpha.10 → 2.6.0-alpha.11
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/Select/designer.js +2 -0
- package/dist/esm/formControls/Select/property.js +8 -3
- package/dist/esm/formControls/SelectMultiple/designer.js +2 -0
- package/dist/esm/formControls/SelectMultiple/property.js +8 -3
- package/dist/esm/formControls/SelectRelation/property.js +2 -1
- package/dist/esm/layoutControls/ActionBar/property.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Select/property.d.ts +19 -1
- package/dist/types/formControls/SelectMultiple/property.d.ts +19 -1
- package/dist/types/formControls/SelectRelation/property.d.ts +7 -1
- package/package.json +2 -2
|
@@ -157,6 +157,8 @@ SelectControl.setting = [
|
|
|
157
157
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
158
158
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
159
159
|
COMMON_SETTING_TYPE.DEFAULT_SHOW_OPTIONS,
|
|
160
|
+
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
161
|
+
COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
|
|
160
162
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
161
163
|
COMMON_SETTING_TYPE.ALLOW_COPY_OPTIONS,
|
|
162
164
|
]
|
|
@@ -69,7 +69,7 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
|
|
72
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
73
73
|
import SelectControl from './designer';
|
|
74
74
|
var SelectControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules1) {
|
|
75
75
|
"use strict";
|
|
@@ -89,8 +89,8 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty1) {
|
|
|
89
89
|
_classCallCheck(this, SelectProperty);
|
|
90
90
|
var _this;
|
|
91
91
|
_this = _super.call(this, props);
|
|
92
|
-
var
|
|
93
|
-
_this.options = initOptions((
|
|
92
|
+
var ref10;
|
|
93
|
+
_this.options = initOptions((ref10 = props === null || props === void 0 ? void 0 : props.options) !== null && ref10 !== void 0 ? ref10 : [
|
|
94
94
|
{
|
|
95
95
|
label: '选项一',
|
|
96
96
|
value: '选项一'
|
|
@@ -126,6 +126,11 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty1) {
|
|
|
126
126
|
(ref = _this.multistageFilling) === null || ref === void 0 ? void 0 : ref.push(new MultistageFillingItem(item));
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
+
var ref8;
|
|
130
|
+
_this.canViewForm = (ref8 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && ref8 !== void 0 ? ref8 : false;
|
|
131
|
+
var ref9;
|
|
132
|
+
_this.viewFormModelType = (ref9 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && ref9 !== void 0 ? ref9 : 'window';
|
|
133
|
+
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
129
134
|
return _this;
|
|
130
135
|
}
|
|
131
136
|
return SelectProperty;
|
|
@@ -157,6 +157,8 @@ SelectMultipleControl.setting = [
|
|
|
157
157
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
158
158
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
159
159
|
COMMON_SETTING_TYPE.DEFAULT_SHOW_OPTIONS,
|
|
160
|
+
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
161
|
+
COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
|
|
160
162
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
161
163
|
]
|
|
162
164
|
},
|
|
@@ -69,7 +69,7 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
|
|
72
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
73
73
|
import SelectMultipleControl from './designer';
|
|
74
74
|
var SelectMultipleControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules1) {
|
|
75
75
|
"use strict";
|
|
@@ -102,8 +102,8 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty1) {
|
|
|
102
102
|
_classCallCheck(this, SelectMultipleProperty);
|
|
103
103
|
var _this;
|
|
104
104
|
_this = _super.call(this, props);
|
|
105
|
-
var
|
|
106
|
-
_this.options = initOptions((
|
|
105
|
+
var ref9;
|
|
106
|
+
_this.options = initOptions((ref9 = props === null || props === void 0 ? void 0 : props.options) !== null && ref9 !== void 0 ? ref9 : [
|
|
107
107
|
{
|
|
108
108
|
label: '选项一',
|
|
109
109
|
value: '选项一'
|
|
@@ -137,6 +137,11 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty1) {
|
|
|
137
137
|
(ref = _this.multistageFilling) === null || ref === void 0 ? void 0 : ref.push(new MultistageFillingItem(item));
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
+
var ref7;
|
|
141
|
+
_this.canViewForm = (ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && ref7 !== void 0 ? ref7 : false;
|
|
142
|
+
var ref8;
|
|
143
|
+
_this.viewFormModelType = (ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && ref8 !== void 0 ? ref8 : 'window';
|
|
144
|
+
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
140
145
|
return _this;
|
|
141
146
|
}
|
|
142
147
|
return SelectMultipleProperty;
|
|
@@ -69,7 +69,7 @@ function _createSuper(Derived) {
|
|
|
69
69
|
return _possibleConstructorReturn(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind } from '@byteluck-fe/model-driven-core';
|
|
72
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind, FormBind } from '@byteluck-fe/model-driven-core';
|
|
73
73
|
import SelectRelationControl from './designer';
|
|
74
74
|
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
75
75
|
var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules1) {
|
|
@@ -146,6 +146,7 @@ var SelectRelationProperty = /**
|
|
|
146
146
|
_this.canViewForm = (ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && ref7 !== void 0 ? ref7 : false;
|
|
147
147
|
var ref8;
|
|
148
148
|
_this.viewFormModelType = (ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && ref8 !== void 0 ? ref8 : 'window';
|
|
149
|
+
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
149
150
|
return _this;
|
|
150
151
|
}
|
|
151
152
|
return SelectRelationProperty;
|
|
@@ -81,7 +81,7 @@ var ActionBarControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
|
|
|
81
81
|
var ref;
|
|
82
82
|
_this.position = (ref = props === null || props === void 0 ? void 0 : props.position) !== null && ref !== void 0 ? ref : 'bottom';
|
|
83
83
|
var ref1;
|
|
84
|
-
_this.opacity = (ref1 = props === null || props === void 0 ? void 0 : props.opacity) !== null && ref1 !== void 0 ? ref1 :
|
|
84
|
+
_this.opacity = (ref1 = props === null || props === void 0 ? void 0 : props.opacity) !== null && ref1 !== void 0 ? ref1 : true;
|
|
85
85
|
var ref2;
|
|
86
86
|
_this.align = (ref2 = props === null || props === void 0 ? void 0 : props.align) !== null && ref2 !== void 0 ? ref2 : 'right';
|
|
87
87
|
return _this;
|