@byteluck-fe/model-driven-controls 7.0.0-beta.3 → 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.
@@ -1,5 +1,5 @@
1
- import { Property, PropertyInterface, OptObject, ActionSourceBind } from '@byteluck-fe/model-driven-core';
2
- interface ButtonBaseInterface extends PropertyInterface {
1
+ import { Property, PropertyInterface, OptObject, ActionObject } from '@byteluck-fe/model-driven-core';
2
+ interface ButtonPropertyInterface extends PropertyInterface {
3
3
  /**
4
4
  * 按钮标题
5
5
  * @defaultValue '按钮'
@@ -54,8 +54,20 @@ interface ButtonBaseInterface extends PropertyInterface {
54
54
  * @public
55
55
  */
56
56
  optObj?: OptObject;
57
+ /**
58
+ * 操作行动项
59
+ * @defaultValue new ActionObject({})
60
+ * @public
61
+ */
62
+ actionObj: ActionObject;
63
+ /**
64
+ * 操作项按钮类型;取值:button:按钮操作项;businessAction:业务行动操作;
65
+ * @defaultValue 'button'
66
+ * @public
67
+ */
68
+ optButtonType: 'button' | 'businessAction';
57
69
  }
58
- declare class ButtonBaseProperty extends Property implements ButtonBaseInterface {
70
+ declare class ButtonProperty extends Property implements ButtonPropertyInterface {
59
71
  content: string;
60
72
  buttonType: 'primary' | 'secondary' | 'text';
61
73
  showType: 'text' | 'icon' | 'iconText';
@@ -65,26 +77,9 @@ declare class ButtonBaseProperty extends Property implements ButtonBaseInterface
65
77
  command: string;
66
78
  isLoading: boolean;
67
79
  optObj?: OptObject;
68
- constructor(props?: Partial<ButtonBaseProperty>);
69
- }
70
- interface ButtonPropertyInterface extends ButtonBaseInterface {
71
- /**
72
- * 操作项按钮类型;取值:button:按钮操作项;businessAction:业务行动操作;
73
- * @defaultValue 'button'
74
- * @public
75
- */
76
- optButtonType: 'button' | 'businessAction';
77
- /**
78
- * 绑定业务行动
79
- * @defaultValue new ActionSourceBind()
80
- * @public
81
- */
82
- actionSourceBind: ActionSourceBind;
83
- }
84
- declare class ButtonProperty extends ButtonBaseProperty implements ButtonPropertyInterface {
80
+ actionObj: ActionObject;
85
81
  optButtonType: 'button' | 'businessAction';
86
- actionSourceBind: ActionSourceBind;
87
82
  constructor(props?: Partial<ButtonProperty>);
88
83
  }
89
84
  export default ButtonProperty;
90
- export { ButtonBaseProperty, ButtonBaseInterface, ButtonProperty, ButtonPropertyInterface, };
85
+ export { ButtonProperty, ButtonPropertyInterface };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-controls",
3
- "version": "7.0.0-beta.3",
3
+ "version": "7.0.0-beta.5",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,10 +26,10 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-core": "7.0.0-beta.3",
30
- "@byteluck-fe/model-driven-settings": "7.0.0-beta.3",
29
+ "@byteluck-fe/model-driven-core": "7.0.0-beta.4",
30
+ "@byteluck-fe/model-driven-settings": "7.0.0-beta.4",
31
31
  "@byteluck-fe/model-driven-shared": "7.0.0-beta.3",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "995396311352b1c216737f502dba9fceb44553f2"
34
+ "gitHead": "c243f79edc73e09c066f5f34e85bfce4678463a1"
35
35
  }