@byteluck-fe/model-driven-controls 7.0.0-beta.4 → 7.0.0-beta.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.
@@ -74,17 +74,17 @@ function _is_native_reflect_construct() {
74
74
  * name: rok_button
75
75
  * description: 通用按钮组件。用于表单页、列表页等场景触发新建、编辑、查看、删除或自定义动作。支持按钮文案、样式类型、图标展示、颜色状态、命令类型和加载态配置。
76
76
  */ import { getLocaleText } from '@byteluck-fe/locale-message';
77
- import { Property, OptObject, ActionSourceBind } from '@byteluck-fe/model-driven-core';
78
- var ButtonBaseProperty = /*#__PURE__*/ function(Property) {
77
+ import { Property, OptObject, ActionObject } from '@byteluck-fe/model-driven-core';
78
+ var ButtonProperty = /*#__PURE__*/ function(Property) {
79
79
  "use strict";
80
- _inherits(ButtonBaseProperty, Property);
81
- function ButtonBaseProperty(props) {
82
- _class_call_check(this, ButtonBaseProperty);
80
+ _inherits(ButtonProperty, Property);
81
+ function ButtonProperty(props) {
82
+ _class_call_check(this, ButtonProperty);
83
83
  var _this;
84
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
85
- _this = _call_super(this, ButtonBaseProperty, [
84
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
85
+ _this = _call_super(this, ButtonProperty, [
86
86
  props
87
- ]), _define_property(_this, "content", void 0), _define_property(_this, "buttonType", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "command", void 0), _define_property(_this, "isLoading", void 0), _define_property(_this, "optObj", void 0);
87
+ ]), _define_property(_this, "content", void 0), _define_property(_this, "buttonType", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "command", void 0), _define_property(_this, "isLoading", void 0), _define_property(_this, "optObj", void 0), _define_property(_this, "actionObj", void 0), _define_property(_this, "optButtonType", void 0);
88
88
  _this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.button', null, '按钮');
89
89
  _this.buttonType = (_ref1 = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _ref1 !== void 0 ? _ref1 : 'primary';
90
90
  _this.showType = (_ref2 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref2 !== void 0 ? _ref2 : 'text';
@@ -95,25 +95,11 @@ var ButtonBaseProperty = /*#__PURE__*/ function(Property) {
95
95
  _this.command = (_ref6 = props === null || props === void 0 ? void 0 : props.command) !== null && _ref6 !== void 0 ? _ref6 : 'custom';
96
96
  _this.isLoading = (_ref7 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _ref7 !== void 0 ? _ref7 : false;
97
97
  _this.optObj = new OptObject((_ref8 = props === null || props === void 0 ? void 0 : props.optObj) !== null && _ref8 !== void 0 ? _ref8 : {});
98
- return _this;
99
- }
100
- return ButtonBaseProperty;
101
- }(Property);
102
- var ButtonProperty = /*#__PURE__*/ function(ButtonBaseProperty) {
103
- "use strict";
104
- _inherits(ButtonProperty, ButtonBaseProperty);
105
- function ButtonProperty(props) {
106
- _class_call_check(this, ButtonProperty);
107
- var _this;
108
- var _ref;
109
- _this = _call_super(this, ButtonProperty, [
110
- props
111
- ]), _define_property(_this, "optButtonType", void 0), _define_property(_this, "actionSourceBind", void 0);
112
- _this.optButtonType = (_ref = props === null || props === void 0 ? void 0 : props.optButtonType) !== null && _ref !== void 0 ? _ref : 'button';
113
- _this.actionSourceBind = new ActionSourceBind(props === null || props === void 0 ? void 0 : props.actionSourceBind);
98
+ _this.actionObj = new ActionObject((_ref9 = props === null || props === void 0 ? void 0 : props.actionObj) !== null && _ref9 !== void 0 ? _ref9 : {});
99
+ _this.optButtonType = (_ref10 = props === null || props === void 0 ? void 0 : props.optButtonType) !== null && _ref10 !== void 0 ? _ref10 : 'button';
114
100
  return _this;
115
101
  }
116
102
  return ButtonProperty;
117
- }(ButtonBaseProperty);
103
+ }(Property);
118
104
  export default ButtonProperty;
119
- export { ButtonBaseProperty, ButtonProperty, };
105
+ export { ButtonProperty };