@byteluck-fe/model-driven-controls 5.6.0-1-beta2 → 5.6.0-1-beta3
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/Department2/property.js +22 -22
- package/dist/esm/formControls/SelectRelation/designer.js +2 -1
- package/dist/esm/formControls/SelectRelation/property.js +45 -42
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/SelectRelation/property.d.ts +1 -0
- package/package.json +2 -2
|
@@ -126,28 +126,28 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
126
126
|
var _this;
|
|
127
127
|
_this = _call_super(this, Department2Property, [
|
|
128
128
|
props
|
|
129
|
-
]), /**
|
|
130
|
-
* 展示类型: 默认形式 / 树状部门
|
|
131
|
-
* */ _define_property(_this, "showType", void 0), /**
|
|
132
|
-
* 部门范围: 所有部门 / 指定部门
|
|
133
|
-
* */ _define_property(_this, "range", void 0), /**
|
|
134
|
-
* 默认值类型:发起人部门/ 指定部门 /无
|
|
135
|
-
*/ _define_property(_this, "defaultValueType", void 0), /**
|
|
136
|
-
* 部门多选
|
|
137
|
-
* */ _define_property(_this, "multiple", void 0), /**
|
|
138
|
-
* 指定部门范围
|
|
139
|
-
* */ _define_property(_this, "rangeOptions", void 0), /**
|
|
140
|
-
* 默认值
|
|
141
|
-
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
142
|
-
* 部门显示层级
|
|
143
|
-
* */ _define_property(_this, "displayLevel", void 0), /**
|
|
144
|
-
* 是否展示子部门
|
|
145
|
-
* */ _define_property(_this, "showSubDept", void 0), /**
|
|
146
|
-
* 多级填充
|
|
147
|
-
* */ _define_property(_this, "multistageFilling", void 0), /**
|
|
148
|
-
* 数据设置
|
|
149
|
-
* */ _define_property(_this, "datasourceBind", void 0), /**
|
|
150
|
-
* 数据类型 行政 or 业务
|
|
129
|
+
]), /**
|
|
130
|
+
* 展示类型: 默认形式 / 树状部门
|
|
131
|
+
* */ _define_property(_this, "showType", void 0), /**
|
|
132
|
+
* 部门范围: 所有部门 / 指定部门
|
|
133
|
+
* */ _define_property(_this, "range", void 0), /**
|
|
134
|
+
* 默认值类型:发起人部门/ 指定部门 /无
|
|
135
|
+
*/ _define_property(_this, "defaultValueType", void 0), /**
|
|
136
|
+
* 部门多选
|
|
137
|
+
* */ _define_property(_this, "multiple", void 0), /**
|
|
138
|
+
* 指定部门范围
|
|
139
|
+
* */ _define_property(_this, "rangeOptions", void 0), /**
|
|
140
|
+
* 默认值
|
|
141
|
+
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
142
|
+
* 部门显示层级
|
|
143
|
+
* */ _define_property(_this, "displayLevel", void 0), /**
|
|
144
|
+
* 是否展示子部门
|
|
145
|
+
* */ _define_property(_this, "showSubDept", void 0), /**
|
|
146
|
+
* 多级填充
|
|
147
|
+
* */ _define_property(_this, "multistageFilling", void 0), /**
|
|
148
|
+
* 数据设置
|
|
149
|
+
* */ _define_property(_this, "datasourceBind", void 0), /**
|
|
150
|
+
* 数据类型 行政 or 业务
|
|
151
151
|
* */ _define_property(_this, "datasourceType", void 0 //数据类型 行政 'administration'| 业务 'business'
|
|
152
152
|
), _define_property(_this, "businessType", void 0 //业务部门类型 'all' | 'assign'
|
|
153
153
|
), _define_property(_this, "businessScope", void 0 //业务部门范围
|
|
@@ -194,7 +194,8 @@ _define_property(SelectRelationControl, "setting", [
|
|
|
194
194
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
195
195
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
196
196
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
197
|
-
COMMON_SETTING_TYPE.CAN_SEARCH
|
|
197
|
+
COMMON_SETTING_TYPE.CAN_SEARCH,
|
|
198
|
+
COMMON_SETTING_TYPE.DEFAULT_SHOW_OPTIONS
|
|
198
199
|
]
|
|
199
200
|
},
|
|
200
201
|
{
|
|
@@ -120,9 +120,9 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
120
120
|
}
|
|
121
121
|
return SelectRelationControlPropertyRules;
|
|
122
122
|
}(OptionAndDataSourcePropertyRules);
|
|
123
|
-
/**
|
|
124
|
-
* SelectRelation 关联单选
|
|
125
|
-
* @public
|
|
123
|
+
/**
|
|
124
|
+
* SelectRelation 关联单选
|
|
125
|
+
* @public
|
|
126
126
|
*/ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
127
127
|
"use strict";
|
|
128
128
|
_inherits(SelectRelationProperty, BaseControlProperty);
|
|
@@ -131,50 +131,51 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
131
131
|
var _this;
|
|
132
132
|
_this = _call_super(this, SelectRelationProperty, [
|
|
133
133
|
props
|
|
134
|
-
]), /**
|
|
135
|
-
* 自定义选项
|
|
136
|
-
* @defaultValue []
|
|
137
|
-
* @public
|
|
138
|
-
*/ _define_property(_this, "options", void 0), /**
|
|
139
|
-
* 选项配置
|
|
140
|
-
* @defaultValue 'datasource'
|
|
141
|
-
* @public
|
|
134
|
+
]), /**
|
|
135
|
+
* 自定义选项
|
|
136
|
+
* @defaultValue []
|
|
137
|
+
* @public
|
|
138
|
+
*/ _define_property(_this, "options", void 0), /**
|
|
139
|
+
* 选项配置
|
|
140
|
+
* @defaultValue 'datasource'
|
|
141
|
+
* @public
|
|
142
142
|
* */ _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
|
|
143
|
-
), /**
|
|
144
|
-
* 默认值
|
|
145
|
-
* @defaultValue ''
|
|
146
|
-
* @public
|
|
147
|
-
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
148
|
-
* 绑定列表页
|
|
149
|
-
* @public
|
|
150
|
-
*/ _define_property(_this, "listPageBind", void 0), /**
|
|
151
|
-
* 关联数据源
|
|
152
|
-
* @public
|
|
153
|
-
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
154
|
-
* 数据填充
|
|
155
|
-
* @defaultValue []
|
|
156
|
-
* @public
|
|
157
|
-
*/ _define_property(_this, "multistageFilling", void 0), /**
|
|
158
|
-
* 表单打开方式
|
|
159
|
-
* @defaultValue []
|
|
160
|
-
* @public
|
|
161
|
-
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
162
|
-
* 查看详情
|
|
163
|
-
* @defaultValue false
|
|
164
|
-
* @public
|
|
143
|
+
), /**
|
|
144
|
+
* 默认值
|
|
145
|
+
* @defaultValue ''
|
|
146
|
+
* @public
|
|
147
|
+
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
148
|
+
* 绑定列表页
|
|
149
|
+
* @public
|
|
150
|
+
*/ _define_property(_this, "listPageBind", void 0), /**
|
|
151
|
+
* 关联数据源
|
|
152
|
+
* @public
|
|
153
|
+
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
154
|
+
* 数据填充
|
|
155
|
+
* @defaultValue []
|
|
156
|
+
* @public
|
|
157
|
+
*/ _define_property(_this, "multistageFilling", void 0), /**
|
|
158
|
+
* 表单打开方式
|
|
159
|
+
* @defaultValue []
|
|
160
|
+
* @public
|
|
161
|
+
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
162
|
+
* 查看详情
|
|
163
|
+
* @defaultValue false
|
|
164
|
+
* @public
|
|
165
165
|
*/ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
166
|
-
), /**
|
|
167
|
-
* 选择表单
|
|
168
|
-
* @defaultValue 空
|
|
169
|
-
* @public
|
|
170
|
-
*/ _define_property(_this, "formBind", void 0), /**
|
|
171
|
-
* 数据填充-查看/编辑页面生效
|
|
172
|
-
* @defaultValue false
|
|
173
|
-
* @public
|
|
166
|
+
), /**
|
|
167
|
+
* 选择表单
|
|
168
|
+
* @defaultValue 空
|
|
169
|
+
* @public
|
|
170
|
+
*/ _define_property(_this, "formBind", void 0), /**
|
|
171
|
+
* 数据填充-查看/编辑页面生效
|
|
172
|
+
* @defaultValue false
|
|
173
|
+
* @public
|
|
174
174
|
*/ _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
175
175
|
), // 展示已选明细
|
|
176
176
|
_define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
|
|
177
|
-
_define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0)
|
|
177
|
+
_define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "defaultShowOptions", void 0 //默认展开选项
|
|
178
|
+
);
|
|
178
179
|
var _props_options;
|
|
179
180
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
180
181
|
var _props_optionConfig;
|
|
@@ -208,6 +209,8 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
208
209
|
_this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
|
|
209
210
|
var _props_canSearch;
|
|
210
211
|
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
|
|
212
|
+
var _props_defaultShowOptions;
|
|
213
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
|
|
211
214
|
return _this;
|
|
212
215
|
}
|
|
213
216
|
return SelectRelationProperty;
|