@byteluck-fe/model-driven-controls 2.8.0-alpha.2 → 2.8.0-alpha.5

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.
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation, RowStyleRules } from "@byteluck-fe/model-driven-core";
85
+ import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation, RowStyleRule, RowStyleRuleScript } from "@byteluck-fe/model-driven-core";
86
86
  import { RulesMessage } from "@byteluck-fe/model-driven-shared";
87
87
  import { initOptionAndDataSourceRules } from "@byteluck-fe/model-driven-core";
88
88
  export var TriggerType;
@@ -228,6 +228,7 @@ export var TriggerType;
228
228
  function ListViewControlProperty(props) {
229
229
  _class_call_check(this, ListViewControlProperty);
230
230
  var _this;
231
+ var _props_rowStyleRules, _props_rowStyleRulesScript;
231
232
  _this = _super.call(this, props);
232
233
  /**
233
234
  * 数据高级设置
@@ -308,7 +309,12 @@ export var TriggerType;
308
309
  * 行背景规则
309
310
  * @defaultValue 'none'
310
311
  */ _define_property(_assert_this_initialized(_this), "rowStyleType", void 0);
312
+ /**
313
+ * 行背景色
314
+ * @defaultValue 'theme'
315
+ */ _define_property(_assert_this_initialized(_this), "rowStyleBgColor", void 0);
311
316
  _define_property(_assert_this_initialized(_this), "rowStyleRules", void 0);
317
+ _define_property(_assert_this_initialized(_this), "rowStyleRulesScript", void 0);
312
318
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
313
319
  var _props_isLoading;
314
320
  _this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
@@ -339,8 +345,16 @@ export var TriggerType;
339
345
  _this.countLimit = (_props_countLimit = props === null || props === void 0 ? void 0 : props.countLimit) !== null && _props_countLimit !== void 0 ? _props_countLimit : 100000;
340
346
  var _props_rowStyleType;
341
347
  _this.rowStyleType = (_props_rowStyleType = props === null || props === void 0 ? void 0 : props.rowStyleType) !== null && _props_rowStyleType !== void 0 ? _props_rowStyleType : "none";
342
- var _props_rowStyleRules;
343
- _this.rowStyleRules = (_props_rowStyleRules = props === null || props === void 0 ? void 0 : props.rowStyleRules) !== null && _props_rowStyleRules !== void 0 ? _props_rowStyleRules : new RowStyleRules(props === null || props === void 0 ? void 0 : props.rowStyleRules);
348
+ var _props_rowStyleBgColor;
349
+ _this.rowStyleBgColor = (_props_rowStyleBgColor = props === null || props === void 0 ? void 0 : props.rowStyleBgColor) !== null && _props_rowStyleBgColor !== void 0 ? _props_rowStyleBgColor : "theme";
350
+ var _props_rowStyleRules_map;
351
+ _this.rowStyleRules = (_props_rowStyleRules_map = props === null || props === void 0 ? void 0 : (_props_rowStyleRules = props.rowStyleRules) === null || _props_rowStyleRules === void 0 ? void 0 : _props_rowStyleRules.map(function(item) {
352
+ return new RowStyleRule(item);
353
+ })) !== null && _props_rowStyleRules_map !== void 0 ? _props_rowStyleRules_map : [];
354
+ var _props_rowStyleRulesScript_map;
355
+ _this.rowStyleRulesScript = (_props_rowStyleRulesScript_map = props === null || props === void 0 ? void 0 : (_props_rowStyleRulesScript = props.rowStyleRulesScript) === null || _props_rowStyleRulesScript === void 0 ? void 0 : _props_rowStyleRulesScript.map(function(item) {
356
+ return new RowStyleRuleScript(item);
357
+ })) !== null && _props_rowStyleRulesScript_map !== void 0 ? _props_rowStyleRulesScript_map : [];
344
358
  return _this;
345
359
  }
346
360
  return ListViewControlProperty;