@byteluck-fe/model-driven-controls 7.0.0-beta.5 → 7.0.0-beta.6

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.
Files changed (152) hide show
  1. package/dist/esm/baseControls/BarChart/designer.js +11 -11
  2. package/dist/esm/baseControls/BarChart/property.js +73 -22
  3. package/dist/esm/baseControls/BatchDeleteButton/property.js +23 -15
  4. package/dist/esm/baseControls/BatchPrintListButton/property.js +14 -11
  5. package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +9 -8
  6. package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
  7. package/dist/esm/baseControls/Button/property.js +27 -17
  8. package/dist/esm/baseControls/Comment/property.js +7 -7
  9. package/dist/esm/baseControls/CreateFormListButton/property.js +13 -10
  10. package/dist/esm/baseControls/Dashboard/property.js +21 -14
  11. package/dist/esm/baseControls/Divider/property.js +17 -12
  12. package/dist/esm/baseControls/ExportListButton/property.js +14 -11
  13. package/dist/esm/baseControls/ExportRecordListButton/property.js +9 -8
  14. package/dist/esm/baseControls/FormSelectButton/property.js +11 -9
  15. package/dist/esm/baseControls/Iframe/designer.js +4 -4
  16. package/dist/esm/baseControls/Iframe/property.js +10 -7
  17. package/dist/esm/baseControls/ImportRecordListButton/property.js +14 -11
  18. package/dist/esm/baseControls/InvoiceCheckButton/property.js +24 -16
  19. package/dist/esm/baseControls/LineChart/designer.js +7 -7
  20. package/dist/esm/baseControls/LineChart/property.js +73 -22
  21. package/dist/esm/baseControls/Link/property.js +17 -12
  22. package/dist/esm/baseControls/ListSelectButton/property.js +15 -11
  23. package/dist/esm/baseControls/ListViewSelect/property.js +10 -9
  24. package/dist/esm/baseControls/OperationButton/property.js +17 -12
  25. package/dist/esm/baseControls/Pagination/property.js +5 -5
  26. package/dist/esm/baseControls/PieChart/designer.js +10 -10
  27. package/dist/esm/baseControls/PieChart/property.js +80 -20
  28. package/dist/esm/baseControls/ReferenceList/property.js +17 -12
  29. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +9 -8
  30. package/dist/esm/baseControls/Text/designer.js +1 -1
  31. package/dist/esm/baseControls/Text/property.js +23 -15
  32. package/dist/esm/baseControls/TextOcrButton/property.js +24 -16
  33. package/dist/esm/baseControls/Title/property.js +6 -4
  34. package/dist/esm/baseControls/utils.js +1 -1
  35. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +11 -9
  36. package/dist/esm/columnControls/ArrayColumn/property.js +13 -10
  37. package/dist/esm/columnControls/AutoNumberColumn/property.js +9 -8
  38. package/dist/esm/columnControls/CustomColumn/designer.js +0 -1
  39. package/dist/esm/columnControls/CustomColumn/property.js +11 -9
  40. package/dist/esm/columnControls/DecimalColumn/property.js +19 -13
  41. package/dist/esm/columnControls/DepartmentColumn/property.js +9 -8
  42. package/dist/esm/columnControls/EmployeeColumn/property.js +9 -8
  43. package/dist/esm/columnControls/FileColumn/property.js +9 -8
  44. package/dist/esm/columnControls/GroupColumn/property.js +7 -7
  45. package/dist/esm/columnControls/ImageColumn/property.js +7 -7
  46. package/dist/esm/columnControls/LocationColumn/property.js +9 -8
  47. package/dist/esm/columnControls/OperationColumn/designer.js +12 -16
  48. package/dist/esm/columnControls/OperationColumn/property.js +15 -11
  49. package/dist/esm/columnControls/OrderColumn/property.js +17 -12
  50. package/dist/esm/columnControls/PeopleColumn/property.js +7 -7
  51. package/dist/esm/columnControls/TextColumn/property.js +13 -10
  52. package/dist/esm/columnControls/TimescopeColumn/property.js +13 -10
  53. package/dist/esm/columnControls/TimestampColumn/property.js +13 -10
  54. package/dist/esm/columnControls/VarcharColumn/property.js +17 -12
  55. package/dist/esm/formControls/Address/property.js +17 -12
  56. package/dist/esm/formControls/Amount/property.js +29 -18
  57. package/dist/esm/formControls/Attachment/property.js +39 -23
  58. package/dist/esm/formControls/AutoNumber/property.js +11 -9
  59. package/dist/esm/formControls/Barcode/designer.js +41 -21
  60. package/dist/esm/formControls/Barcode/property.js +21 -13
  61. package/dist/esm/formControls/Barcode/schema.json +19 -8
  62. package/dist/esm/formControls/Calc/property.js +18 -10
  63. package/dist/esm/formControls/Cascader/property.js +31 -17
  64. package/dist/esm/formControls/Checkbox/property.js +31 -17
  65. package/dist/esm/formControls/Counter/property.js +18 -10
  66. package/dist/esm/formControls/DatePicker/property.js +32 -20
  67. package/dist/esm/formControls/DateRange/property.js +28 -18
  68. package/dist/esm/formControls/Department/property.js +27 -17
  69. package/dist/esm/formControls/Department2/property.js +40 -24
  70. package/dist/esm/formControls/ElectronicSignature/property.js +17 -12
  71. package/dist/esm/formControls/Employee/property.js +23 -15
  72. package/dist/esm/formControls/Employee2/property.js +38 -22
  73. package/dist/esm/formControls/Image/designer.js +8 -8
  74. package/dist/esm/formControls/Image/property.js +17 -8
  75. package/dist/esm/formControls/Input/property.js +20 -11
  76. package/dist/esm/formControls/Number/property.js +32 -17
  77. package/dist/esm/formControls/OrganizationSelection/property.js +41 -24
  78. package/dist/esm/formControls/QrCode/designer.js +47 -27
  79. package/dist/esm/formControls/QrCode/property.js +24 -17
  80. package/dist/esm/formControls/QrCode/schema.json +20 -9
  81. package/dist/esm/formControls/Radio/property.js +33 -20
  82. package/dist/esm/formControls/RichText/designer.js +1 -1
  83. package/dist/esm/formControls/RichText/property.js +22 -12
  84. package/dist/esm/formControls/Score/property.js +17 -10
  85. package/dist/esm/formControls/SearchDateRange/property.js +30 -19
  86. package/dist/esm/formControls/SearchInput/property.js +5 -5
  87. package/dist/esm/formControls/SearchNumberRange/property.js +17 -12
  88. package/dist/esm/formControls/Select/property.js +29 -18
  89. package/dist/esm/formControls/SelectMultiple/property.js +27 -17
  90. package/dist/esm/formControls/SelectRelation/property.js +31 -19
  91. package/dist/esm/formControls/Slider/designer.js +2 -1
  92. package/dist/esm/formControls/Slider/property.js +22 -17
  93. package/dist/esm/formControls/Switch/designer.js +15 -14
  94. package/dist/esm/formControls/Switch/property.js +19 -10
  95. package/dist/esm/formControls/Tag/designer.js +14 -13
  96. package/dist/esm/formControls/Tag/property.js +23 -15
  97. package/dist/esm/formControls/Textarea/property.js +20 -11
  98. package/dist/esm/formControls/TimePicker/property.js +20 -14
  99. package/dist/esm/formControls/TimeRange/property.js +24 -16
  100. package/dist/esm/formControls/Tree/property.js +39 -21
  101. package/dist/esm/formControls/VueFormItem/property.js +15 -11
  102. package/dist/esm/formControls/VuePage/property.js +15 -11
  103. package/dist/esm/formControls/WPS/designer.js +9 -9
  104. package/dist/esm/formControls/WPS/property.js +29 -18
  105. package/dist/esm/framework.js +135 -81
  106. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  107. package/dist/esm/layoutControls/ActionBar/property.js +11 -9
  108. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  109. package/dist/esm/layoutControls/AdvancedContainer/property.js +5 -5
  110. package/dist/esm/layoutControls/BlankContainer/designer.js +8 -7
  111. package/dist/esm/layoutControls/BlankContainer/property.js +15 -12
  112. package/dist/esm/layoutControls/CardGroup/property.js +20 -11
  113. package/dist/esm/layoutControls/Col/property.js +11 -9
  114. package/dist/esm/layoutControls/Collapse/designer.js +2 -2
  115. package/dist/esm/layoutControls/Collapse/property.js +9 -8
  116. package/dist/esm/layoutControls/CollapsePane/property.js +7 -7
  117. package/dist/esm/layoutControls/DataView/property.js +19 -13
  118. package/dist/esm/layoutControls/Grid/property.js +5 -5
  119. package/dist/esm/layoutControls/GridLayoutContainer/property.js +9 -8
  120. package/dist/esm/layoutControls/GridRow/property.js +5 -5
  121. package/dist/esm/layoutControls/GridTableColumn/property.js +25 -16
  122. package/dist/esm/layoutControls/ListView/property.js +28 -15
  123. package/dist/esm/layoutControls/Page/property.js +7 -7
  124. package/dist/esm/layoutControls/Position/property.js +13 -10
  125. package/dist/esm/layoutControls/PositioningContainer/property.js +5 -5
  126. package/dist/esm/layoutControls/Row/property.js +15 -11
  127. package/dist/esm/layoutControls/Step/designer.js +2 -2
  128. package/dist/esm/layoutControls/Step/property.js +27 -17
  129. package/dist/esm/layoutControls/StepPane/property.js +21 -14
  130. package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
  131. package/dist/esm/layoutControls/SubTableRow/property.js +5 -5
  132. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  133. package/dist/esm/layoutControls/Tab/property.js +15 -11
  134. package/dist/esm/layoutControls/TabPane/property.js +7 -7
  135. package/dist/esm/layoutControls/TableLayout/property.js +35 -21
  136. package/dist/esm/layoutControls/TableLayoutCol/property.js +25 -16
  137. package/dist/esm/layoutControls/TableLayoutRow/property.js +9 -8
  138. package/dist/esm/layoutControls/TableLayoutWrapper/property.js +11 -9
  139. package/dist/esm/layoutControls/Toolbox/property.js +5 -5
  140. package/dist/esm/listControls/GridTable/designer.js +12 -17
  141. package/dist/esm/listControls/GridTable/property.js +15 -11
  142. package/dist/esm/listControls/SubTable/property.js +70 -36
  143. package/dist/esm/searchControls/SimpleSearch/property.js +29 -18
  144. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  145. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  146. package/dist/esm/wrapControls/GridLayoutWrap/property.js +7 -7
  147. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  148. package/dist/index.umd.js +1 -1
  149. package/dist/types/formControls/Barcode/property.d.ts +5 -10
  150. package/dist/types/formControls/QrCode/property.d.ts +5 -10
  151. package/dist/types/layoutControls/BlankContainer/property.d.ts +1 -1
  152. package/package.json +2 -2
@@ -84,6 +84,7 @@ function _is_native_reflect_construct() {
84
84
  return !!result;
85
85
  })();
86
86
  }
87
+ import { getLocaleText } from '@byteluck-fe/locale-message';
87
88
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
89
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
90
  import SwitchProperty from './property';
@@ -103,7 +104,7 @@ var SwitchControl = /*#__PURE__*/ function(DesignerFormControl) {
103
104
  {
104
105
  key: "controlName",
105
106
  get: function get() {
106
- return '开关';
107
+ return getLocaleText('CMD.e11c1777541764390');
107
108
  }
108
109
  },
109
110
  {
@@ -170,16 +171,16 @@ _define_property(SwitchControl, "setting", [
170
171
  key: 'common-button-radio',
171
172
  visible: true,
172
173
  name: 'defaultValue',
173
- label: '开关状态',
174
+ label: getLocaleText('CMD.760c1777541720778'),
174
175
  default: 0,
175
176
  options: [
176
177
  {
177
178
  value: 1,
178
- label: '开启'
179
+ label: getLocaleText('CMD.f48b1777541765472')
179
180
  },
180
181
  {
181
182
  value: 0,
182
- label: '关闭'
183
+ label: getLocaleText('CMD.4a541777541766791')
183
184
  }
184
185
  ]
185
186
  },
@@ -187,65 +188,65 @@ _define_property(SwitchControl, "setting", [
187
188
  key: 'common-button-radio',
188
189
  visible: true,
189
190
  name: 'textDisplayStyle',
190
- label: '文字展示样式',
191
+ label: getLocaleText('CMD.478a1777541651375'),
191
192
  default: 'inside',
192
193
  options: [
193
194
  {
194
195
  value: 'inside',
195
- label: '开关内'
196
+ label: getLocaleText('CMD.e7ef1777541748888')
196
197
  },
197
198
  {
198
199
  value: 'outside',
199
- label: '开关外'
200
+ label: getLocaleText('CMD.38711777541750404')
200
201
  }
201
202
  ]
202
203
  },
203
204
  {
204
205
  key: 'common-group',
205
206
  visible: true,
206
- label: '属性设置',
207
+ label: getLocaleText('CMD.35f21777541706717'),
207
208
  children: [
208
209
  {
209
210
  key: 'common-input',
210
211
  visible: true,
211
212
  name: 'checkedText',
212
213
  layout: 'horizontal',
213
- label: '开启文字'
214
+ label: getLocaleText('CMD.9a801777541722584')
214
215
  },
215
216
  {
216
217
  key: 'color',
217
218
  visible: true,
218
219
  name: 'checkedTextColor',
219
220
  layout: 'horizontal',
220
- label: '开启文字颜色'
221
+ label: getLocaleText('CMD.d1da1777541653501')
221
222
  },
222
223
  {
223
224
  key: 'color',
224
225
  visible: true,
225
226
  name: 'checkedBackgroundColor',
226
227
  layout: 'horizontal',
227
- label: '开启背景颜色'
228
+ label: getLocaleText('CMD.4e821777541655793')
228
229
  },
229
230
  {
230
231
  key: 'common-input',
231
232
  visible: true,
232
233
  name: 'uncheckedText',
233
234
  layout: 'horizontal',
234
- label: '关闭文字'
235
+ label: getLocaleText('CMD.886f1777541724447')
235
236
  },
236
237
  {
237
238
  key: 'color',
238
239
  visible: true,
239
240
  name: 'uncheckedTextColor',
240
241
  layout: 'horizontal',
241
- label: '关闭文字颜色'
242
+ label: getLocaleText('CMD.93231777541658161')
242
243
  },
243
244
  {
244
245
  key: 'color',
245
246
  visible: true,
246
247
  name: 'uncheckedBackgroundColor',
247
248
  layout: 'horizontal',
248
- label: '关闭背景颜色'
249
+ label: getLocaleText('CMD.04e91777541660486')
249
250
  }
250
251
  ]
251
252
  },
@@ -70,6 +70,7 @@ function _is_native_reflect_construct() {
70
70
  return !!result;
71
71
  })();
72
72
  }
73
+ import { getLocaleText } from '@byteluck-fe/locale-message';
73
74
  /**
74
75
  * name: rok_switch
75
76
  * description: 开关组件,用于快速切换数值状态(0/1)。支持开关内外文字展示、默认状态、开启/关闭文案与颜色配置,适合状态控制与流程开关场景。
@@ -110,19 +111,27 @@ var SwitchProperty = /*#__PURE__*/ function(BaseControlProperty) {
110
111
  function SwitchProperty(props) {
111
112
  _class_call_check(this, SwitchProperty);
112
113
  var _this;
113
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
114
114
  _this = _call_super(this, SwitchProperty, [
115
115
  props
116
116
  ]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "textDisplayStyle", void 0), _define_property(_this, "checkedText", void 0), _define_property(_this, "checkedTextColor", void 0), _define_property(_this, "checkedBackgroundColor", void 0), _define_property(_this, "uncheckedText", void 0), _define_property(_this, "uncheckedTextColor", void 0), _define_property(_this, "uncheckedBackgroundColor", void 0);
117
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : SwitchControl.controlName;
118
- _this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : 1;
119
- _this.textDisplayStyle = (_ref2 = props === null || props === void 0 ? void 0 : props.textDisplayStyle) !== null && _ref2 !== void 0 ? _ref2 : 'inside';
120
- _this.checkedText = (_ref3 = props === null || props === void 0 ? void 0 : props.checkedText) !== null && _ref3 !== void 0 ? _ref3 : '开启';
121
- _this.checkedTextColor = (_ref4 = props === null || props === void 0 ? void 0 : props.checkedTextColor) !== null && _ref4 !== void 0 ? _ref4 : '#ffffff';
122
- _this.checkedBackgroundColor = (_ref5 = props === null || props === void 0 ? void 0 : props.checkedBackgroundColor) !== null && _ref5 !== void 0 ? _ref5 : '#4C78FC';
123
- _this.uncheckedText = (_ref6 = props === null || props === void 0 ? void 0 : props.uncheckedText) !== null && _ref6 !== void 0 ? _ref6 : '关闭';
124
- _this.uncheckedTextColor = (_ref7 = props === null || props === void 0 ? void 0 : props.uncheckedTextColor) !== null && _ref7 !== void 0 ? _ref7 : '#ffffff';
125
- _this.uncheckedBackgroundColor = (_ref8 = props === null || props === void 0 ? void 0 : props.uncheckedBackgroundColor) !== null && _ref8 !== void 0 ? _ref8 : '#BFBFBF';
117
+ var _props_caption;
118
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SwitchControl.controlName;
119
+ var _props_defaultValue;
120
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 1;
121
+ var _props_textDisplayStyle;
122
+ _this.textDisplayStyle = (_props_textDisplayStyle = props === null || props === void 0 ? void 0 : props.textDisplayStyle) !== null && _props_textDisplayStyle !== void 0 ? _props_textDisplayStyle : 'inside';
123
+ var _props_checkedText;
124
+ _this.checkedText = (_props_checkedText = props === null || props === void 0 ? void 0 : props.checkedText) !== null && _props_checkedText !== void 0 ? _props_checkedText : getLocaleText('CMD.f0301777541765473');
125
+ var _props_checkedTextColor;
126
+ _this.checkedTextColor = (_props_checkedTextColor = props === null || props === void 0 ? void 0 : props.checkedTextColor) !== null && _props_checkedTextColor !== void 0 ? _props_checkedTextColor : '#ffffff';
127
+ var _props_checkedBackgroundColor;
128
+ _this.checkedBackgroundColor = (_props_checkedBackgroundColor = props === null || props === void 0 ? void 0 : props.checkedBackgroundColor) !== null && _props_checkedBackgroundColor !== void 0 ? _props_checkedBackgroundColor : '#4C78FC';
129
+ var _props_uncheckedText;
130
+ _this.uncheckedText = (_props_uncheckedText = props === null || props === void 0 ? void 0 : props.uncheckedText) !== null && _props_uncheckedText !== void 0 ? _props_uncheckedText : getLocaleText('CMD.106d1777541766792');
131
+ var _props_uncheckedTextColor;
132
+ _this.uncheckedTextColor = (_props_uncheckedTextColor = props === null || props === void 0 ? void 0 : props.uncheckedTextColor) !== null && _props_uncheckedTextColor !== void 0 ? _props_uncheckedTextColor : '#ffffff';
133
+ var _props_uncheckedBackgroundColor;
134
+ _this.uncheckedBackgroundColor = (_props_uncheckedBackgroundColor = props === null || props === void 0 ? void 0 : props.uncheckedBackgroundColor) !== null && _props_uncheckedBackgroundColor !== void 0 ? _props_uncheckedBackgroundColor : '#BFBFBF';
126
135
  return _this;
127
136
  }
128
137
  return SwitchProperty;
@@ -177,15 +177,15 @@ _define_property(TagControl, "setting", [
177
177
  options: [
178
178
  {
179
179
  value: 'large',
180
- label: ''
180
+ label: getLocaleText('CMD.88fc1777541775429')
181
181
  },
182
182
  {
183
183
  value: 'medium',
184
- label: ''
184
+ label: getLocaleText('CMD.f7b51777541776645')
185
185
  },
186
186
  {
187
187
  value: 'small',
188
- label: ''
188
+ label: getLocaleText('CMD.6b7d1777541777847')
189
189
  }
190
190
  ]
191
191
  },
@@ -193,20 +193,21 @@ _define_property(TagControl, "setting", [
193
193
  key: 'common-button-radio',
194
194
  visible: true,
195
195
  name: 'align',
196
- label: '标签位置',
196
+ label: getLocaleText('CMD.dc011777541726235'),
197
197
  default: 'left',
198
+ tip: getLocaleText('CMD.1e6c1777541596761'),
198
199
  options: [
199
200
  {
200
201
  value: 'left',
201
- label: '左对齐'
202
+ label: getLocaleText('CMD.e29a1777541743101')
202
203
  },
203
204
  {
204
205
  value: 'center',
205
- label: '居中'
206
+ label: getLocaleText('CMD.f0c51777541758749')
206
207
  },
207
208
  {
208
209
  value: 'right',
209
- label: '右对齐'
210
+ label: getLocaleText('CMD.b69e1777541744540')
210
211
  }
211
212
  ]
212
213
  },
@@ -214,28 +215,28 @@ _define_property(TagControl, "setting", [
214
215
  key: 'common-select',
215
216
  visible: true,
216
217
  name: 'color',
217
- label: '默认',
218
+ label: getLocaleText('CMD.8fc41777541768092'),
218
219
  default: 'default',
219
220
  options: [
220
221
  {
221
222
  value: 'default',
222
- label: '默认'
223
+ label: getLocaleText('CMD.8fc41777541768092')
223
224
  },
224
225
  {
225
226
  value: 'success',
226
- label: '成功'
227
+ label: getLocaleText('CMD.4ad61777541769394')
227
228
  },
228
229
  {
229
230
  value: 'processing',
230
- label: '进行中'
231
+ label: getLocaleText('CMD.d74b1777541751881')
231
232
  },
232
233
  {
233
234
  value: 'error',
234
- label: '错误'
235
+ label: getLocaleText('CMD.64911777541770890')
235
236
  },
236
237
  {
237
238
  value: 'warning',
238
- label: '警告'
239
+ label: getLocaleText('CMD.b6eb1777541772158')
239
240
  }
240
241
  ]
241
242
  },
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_tag
3
+ * description: 标签组件,参考 ant-design-vue 标签能力。支持标签/文本两种展示形式、样式主题、尺寸、字体风格和对齐方式配置,适合状态展示与轻量信息标记场景。
4
+ */ function _assert_this_initialized(self) {
2
5
  if (self === void 0) {
3
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
7
  }
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
70
73
  return !!result;
71
74
  })();
72
75
  }
73
- /**
74
- * name: rok_tag
75
- * description: 标签组件,参考 ant-design-vue 标签能力。支持标签/文本两种展示形式、样式主题、尺寸、字体风格和对齐方式配置,适合状态展示与轻量信息标记场景。
76
- */ import TagControl from './designer';
76
+ import TagControl from './designer';
77
77
  import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
78
78
  import { getLocaleText } from '@byteluck-fe/locale-message';
79
79
  var TagPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
@@ -109,11 +109,11 @@ var TagProperty = /*#__PURE__*/ function(BaseControlProperty) {
109
109
  function TagProperty(props) {
110
110
  _class_call_check(this, TagProperty);
111
111
  var _this;
112
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
113
112
  _this = _call_super(this, TagProperty, [
114
113
  props
115
114
  ]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "size", void 0), _define_property(_this, "align", void 0), _define_property(_this, "color", void 0), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0);
116
- _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
115
+ var _props_options;
116
+ _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
117
117
  {
118
118
  label: getLocaleText('CMD.optionOne', null, '选项一'),
119
119
  value: getLocaleText('CMD.optionOne', null, '选项一')
@@ -127,15 +127,23 @@ var TagProperty = /*#__PURE__*/ function(BaseControlProperty) {
127
127
  value: getLocaleText('CMD.optionThird', null, '选项三')
128
128
  }
129
129
  ]);
130
- _this.defaultShowOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref1 !== void 0 ? _ref1 : true;
131
- _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : TagControl.controlName;
132
- _this.defaultValue = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref3 !== void 0 ? _ref3 : [];
133
- _this.size = (_ref4 = props === null || props === void 0 ? void 0 : props.size) !== null && _ref4 !== void 0 ? _ref4 : 'medium';
134
- _this.align = (_ref5 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref5 !== void 0 ? _ref5 : 'left';
135
- _this.color = (_ref6 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref6 !== void 0 ? _ref6 : 'default';
136
- _this.optionConfig = (_ref7 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref7 !== void 0 ? _ref7 : 'custom';
130
+ var _props_defaultShowOptions;
131
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
132
+ var _props_caption;
133
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TagControl.controlName;
134
+ var _props_defaultValue;
135
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
136
+ var _props_size;
137
+ _this.size = (_props_size = props === null || props === void 0 ? void 0 : props.size) !== null && _props_size !== void 0 ? _props_size : 'medium';
138
+ var _props_align;
139
+ _this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : 'left';
140
+ var _props_color;
141
+ _this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'default';
142
+ var _props_optionConfig;
143
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
137
144
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
138
- _this.openMultistageFilling = (_ref8 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref8 !== void 0 ? _ref8 : false;
145
+ var _props_openMultistageFilling;
146
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
139
147
  _this.multistageFilling = [];
140
148
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
141
149
  props === null || props === void 0 ? void 0 : props.multistageFilling.forEach(function(item) {
@@ -138,22 +138,29 @@ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
138
138
  function TextareaProperty(props) {
139
139
  _class_call_check(this, TextareaProperty);
140
140
  var _this;
141
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
142
141
  _this = _call_super(this, TextareaProperty, [
143
142
  props
144
143
  ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "rowHeightSetting", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "aiGeneration", void 0), _define_property(_this, "aiOptions", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "lineEllipsis", void 0);
145
- _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
146
- _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
147
- _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
148
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : TextareaControl.controlName;
149
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
144
+ var _props_maxLength;
145
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
146
+ var _props_minLength;
147
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
148
+ var _props_defaultValue;
149
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
150
+ var _props_caption;
151
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
152
+ var _props_placeholder;
153
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
150
154
  // this.lineEllipsis = props?.lineEllipsis ?? 4
151
155
  // this.autoSize = props?.autoSize ?? false
152
156
  // this.maxRows = props?.maxRows
153
157
  _this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
154
- _this.aiContentSearch = (_ref5 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref5 !== void 0 ? _ref5 : false;
155
- _this.aiGeneration = (_ref6 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref6 !== void 0 ? _ref6 : false;
156
- _this.aiOptions = initAiOptions((_ref7 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref7 !== void 0 ? _ref7 : [
158
+ var _props_aiContentSearch;
159
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
160
+ var _props_aiGeneration;
161
+ _this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
162
+ var _props_aiOptions;
163
+ _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
157
164
  {
158
165
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
159
166
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -170,8 +177,10 @@ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
170
177
  checked: false
171
178
  }
172
179
  ]);
173
- _this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
174
- _this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
180
+ var _props_autoHeight;
181
+ _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
182
+ var _props_lineEllipsis;
183
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
175
184
  return _this;
176
185
  }
177
186
  return TextareaProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_time_picker
3
+ * description: 时间选择组件,用于录入单个时间值。适合会议时间、打卡时间等场景,支持时分秒格式、自定义格式、时间限制和国际化配置。
4
+ */ function _assert_this_initialized(self) {
2
5
  if (self === void 0) {
3
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
7
  }
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
70
73
  return !!result;
71
74
  })();
72
75
  }
73
- /**
74
- * name: rok_time_picker
75
- * description: 时间选择组件,用于录入单个时间值。适合会议时间、打卡时间等场景,支持时分秒格式、自定义格式、时间限制和国际化配置。
76
- */ import TimePickerControl from './designer';
76
+ import TimePickerControl from './designer';
77
77
  import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
78
78
  import { LimitTime } from '../../framework';
79
79
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -84,20 +84,26 @@ var TimePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
84
84
  function TimePickerProperty(props) {
85
85
  _class_call_check(this, TimePickerProperty);
86
86
  var _this;
87
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
88
87
  var _props_limitTimeList;
89
88
  _this = _call_super(this, TimePickerProperty, [
90
89
  props
91
90
  ]), _define_property(_this, "timeType", void 0), _define_property(_this, "format", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitTimeList", void 0), _define_property(_this, "isInternational", void 0);
92
- _this.timeType = (_ref = props === null || props === void 0 ? void 0 : props.timeType) !== null && _ref !== void 0 ? _ref : TimeType.HOURSEC;
93
- _this.format = (_ref1 = props === null || props === void 0 ? void 0 : props.format) !== null && _ref1 !== void 0 ? _ref1 : '';
94
- _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : TimePickerControl.controlName;
95
- _this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.c9dc1774578987545');
96
- _this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
97
- _this.limitTimeList = (_ref5 = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
91
+ var _props_timeType;
92
+ _this.timeType = (_props_timeType = props === null || props === void 0 ? void 0 : props.timeType) !== null && _props_timeType !== void 0 ? _props_timeType : TimeType.HOURSEC;
93
+ var _props_format;
94
+ _this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
95
+ var _props_caption;
96
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TimePickerControl.controlName;
97
+ var _props_placeholder;
98
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.c9dc1774578987545');
99
+ var _props_defaultValue;
100
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
101
+ var _props_limitTimeList_map;
102
+ _this.limitTimeList = (_props_limitTimeList_map = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
98
103
  return new LimitTime(item);
99
- })) !== null && _ref5 !== void 0 ? _ref5 : [];
100
- _this.isInternational = (_ref6 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref6 !== void 0 ? _ref6 : false;
104
+ })) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
105
+ var _props_isInternational;
106
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
101
107
  return _this;
102
108
  }
103
109
  return TimePickerProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_time_range
3
+ * description: 时间区间组件,用于录入开始和结束时间。适合班次安排、会议时段等场景,支持时间格式、默认区间、范围限制和国际化配置。
4
+ */ function _assert_this_initialized(self) {
2
5
  if (self === void 0) {
3
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
7
  }
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
70
73
  return !!result;
71
74
  })();
72
75
  }
73
- /**
74
- * name: rok_time_range
75
- * description: 时间区间组件,用于录入开始和结束时间。适合班次安排、会议时段等场景,支持时间格式、默认区间、范围限制和国际化配置。
76
- */ import { BaseControlProperty, BaseControlPropertyRuntimeRules, RangeDataBind, RangeDateValue } from '@byteluck-fe/model-driven-core';
76
+ import { BaseControlProperty, BaseControlPropertyRuntimeRules, RangeDataBind, RangeDateValue } from '@byteluck-fe/model-driven-core';
77
77
  import TimeRangeControl from './designer';
78
78
  import { LimitTime } from '../../framework';
79
79
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -117,24 +117,32 @@ var TimeRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
117
117
  function TimeRangeProperty(props) {
118
118
  _class_call_check(this, TimeRangeProperty);
119
119
  var _this;
120
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
121
120
  var _props_limitTimeList;
122
121
  _this = _call_super(this, TimeRangeProperty, [
123
122
  props
124
123
  ]), _define_property(_this, "timeType", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0), _define_property(_this, "placeholderEnd", void 0), _define_property(_this, "format", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitTimeList", void 0), _define_property(_this, "isInternational", void 0);
125
124
  _this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
126
125
  _this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
127
- _this.timeType = (_ref = props === null || props === void 0 ? void 0 : props.timeType) !== null && _ref !== void 0 ? _ref : TimeType.HOURSEC;
128
- _this.format = (_ref1 = props === null || props === void 0 ? void 0 : props.format) !== null && _ref1 !== void 0 ? _ref1 : '';
129
- _this.rangeMin = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref2 !== void 0 ? _ref2 : '';
130
- _this.rangeMax = (_ref3 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref3 !== void 0 ? _ref3 : '';
131
- _this.placeholderStart = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.be931774579000687');
132
- _this.placeholderEnd = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref5 !== void 0 ? _ref5 : getLocaleText('CMD.0a501774579002398');
133
- _this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : TimeRangeControl.controlName;
134
- _this.limitTimeList = (_ref7 = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
126
+ var _props_timeType;
127
+ _this.timeType = (_props_timeType = props === null || props === void 0 ? void 0 : props.timeType) !== null && _props_timeType !== void 0 ? _props_timeType : TimeType.HOURSEC;
128
+ var _props_format;
129
+ _this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
130
+ var _props_rangeMin;
131
+ _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
132
+ var _props_rangeMax;
133
+ _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
134
+ var _props_placeholderStart;
135
+ _this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.be931774579000687');
136
+ var _props_placeholderEnd;
137
+ _this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.0a501774579002398');
138
+ var _props_caption;
139
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TimeRangeControl.controlName;
140
+ var _props_limitTimeList_map;
141
+ _this.limitTimeList = (_props_limitTimeList_map = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
135
142
  return new LimitTime(item);
136
- })) !== null && _ref7 !== void 0 ? _ref7 : [];
137
- _this.isInternational = (_ref8 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref8 !== void 0 ? _ref8 : false;
143
+ })) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
144
+ var _props_isInternational;
145
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
138
146
  return _this;
139
147
  }
140
148
  return TimeRangeProperty;
@@ -168,36 +168,54 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
168
168
  function TreeProperty(props) {
169
169
  _class_call_check(this, TreeProperty);
170
170
  var _this;
171
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18;
172
171
  var _props_multistageFilling;
173
172
  _this = _call_super(this, TreeProperty, [
174
173
  props
175
174
  ]), _define_property(_this, "placeholder", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "levelType", void 0), _define_property(_this, "optionalLevel", void 0), _define_property(_this, "containsSubNode", void 0), _define_property(_this, "defaultDisplay", void 0), _define_property(_this, "isShowIncludeSub", void 0), _define_property(_this, "isDefaultCheckSub", void 0), _define_property(_this, "isShowFilterItem", void 0), _define_property(_this, "defaultCollapse", void 0), _define_property(_this, "defaultCollapseLevel", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "treeQuery", void 0);
176
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : TreeControl.controlName;
177
- _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.pleaseSelect', null, '请选择');
178
- _this.multiple = (_ref2 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref2 !== void 0 ? _ref2 : false;
179
- _this.canSearch = (_ref3 = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _ref3 !== void 0 ? _ref3 : true;
180
- _this.levelType = (_ref4 = props === null || props === void 0 ? void 0 : props.levelType) !== null && _ref4 !== void 0 ? _ref4 : 'all';
181
- _this.optionalLevel = (_ref5 = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _ref5 !== void 0 ? _ref5 : 1;
182
- _this.containsSubNode = (_ref6 = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _ref6 !== void 0 ? _ref6 : false;
183
- _this.isShowFilterItem = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _ref7 !== void 0 ? _ref7 : false;
184
- _this.isShowIncludeSub = (_ref8 = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _ref8 !== void 0 ? _ref8 : false;
185
- _this.isDefaultCheckSub = (_ref9 = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _ref9 !== void 0 ? _ref9 : false;
186
- _this.defaultCollapse = (_ref10 = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _ref10 !== void 0 ? _ref10 : 'all';
187
- _this.defaultCollapseLevel = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _ref11 !== void 0 ? _ref11 : 1;
188
- _this.datasourceBind = new TreeDataSourceBind((_ref12 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref12 !== void 0 ? _ref12 : {
175
+ var _props_caption;
176
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TreeControl.controlName;
177
+ var _props_placeholder;
178
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
179
+ var _props_multiple;
180
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
181
+ var _props_canSearch;
182
+ _this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : true;
183
+ var _props_levelType;
184
+ _this.levelType = (_props_levelType = props === null || props === void 0 ? void 0 : props.levelType) !== null && _props_levelType !== void 0 ? _props_levelType : 'all';
185
+ var _props_optionalLevel;
186
+ _this.optionalLevel = (_props_optionalLevel = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _props_optionalLevel !== void 0 ? _props_optionalLevel : 1;
187
+ var _props_containsSubNode;
188
+ _this.containsSubNode = (_props_containsSubNode = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _props_containsSubNode !== void 0 ? _props_containsSubNode : false;
189
+ var _props_isShowFilterItem;
190
+ _this.isShowFilterItem = (_props_isShowFilterItem = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _props_isShowFilterItem !== void 0 ? _props_isShowFilterItem : false;
191
+ var _props_isShowIncludeSub;
192
+ _this.isShowIncludeSub = (_props_isShowIncludeSub = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _props_isShowIncludeSub !== void 0 ? _props_isShowIncludeSub : false;
193
+ var _props_isDefaultCheckSub;
194
+ _this.isDefaultCheckSub = (_props_isDefaultCheckSub = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _props_isDefaultCheckSub !== void 0 ? _props_isDefaultCheckSub : false;
195
+ var _props_defaultCollapse;
196
+ _this.defaultCollapse = (_props_defaultCollapse = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _props_defaultCollapse !== void 0 ? _props_defaultCollapse : 'all';
197
+ var _props_defaultCollapseLevel;
198
+ _this.defaultCollapseLevel = (_props_defaultCollapseLevel = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _props_defaultCollapseLevel !== void 0 ? _props_defaultCollapseLevel : 1;
199
+ var _props_datasourceBind;
200
+ _this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
189
201
  attributes: TreeControl.controlCustomAttributes
190
202
  });
191
- _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref13 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref13 !== void 0 ? _ref13 : {
203
+ var _props_filterItemDatasourceBind;
204
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
192
205
  attributes: TreeControl.controlCustomAttributes
193
206
  });
194
- _this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
195
- _this.defaultDisplay = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _ref15 !== void 0 ? _ref15 : false;
196
- _this.multistageFilling = (_ref16 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
207
+ var _props_openMultistageFilling;
208
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
209
+ var _props_defaultDisplay;
210
+ _this.defaultDisplay = (_props_defaultDisplay = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _props_defaultDisplay !== void 0 ? _props_defaultDisplay : false;
211
+ var _props_multistageFilling_map;
212
+ _this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
197
213
  return new MultistageFillingItem(item);
198
- })) !== null && _ref16 !== void 0 ? _ref16 : [];
199
- _this.defaultValue = (_ref17 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref17 !== void 0 ? _ref17 : [];
200
- _this.treeQuery = (_ref18 = props === null || props === void 0 ? void 0 : props.treeQuery) !== null && _ref18 !== void 0 ? _ref18 : [];
214
+ })) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
215
+ var _props_defaultValue;
216
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
217
+ var _props_treeQuery;
218
+ _this.treeQuery = (_props_treeQuery = props === null || props === void 0 ? void 0 : props.treeQuery) !== null && _props_treeQuery !== void 0 ? _props_treeQuery : [];
201
219
  return _this;
202
220
  }
203
221
  return TreeProperty;