jsbox-cview 1.5.18 → 1.5.19

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.
@@ -26,6 +26,7 @@ export class RefreshButton extends Base<UIButtonView, UiTypes.ButtonOptions> {
26
26
  events?: UiTypes.BaseViewEvents<UIButtonView>;
27
27
  }) {
28
28
  super();
29
+ this._layout = layout;
29
30
  this._defineView = () => {
30
31
  return {
31
32
  type: "button",
@@ -35,7 +36,7 @@ export class RefreshButton extends Base<UIButtonView, UiTypes.ButtonOptions> {
35
36
  enabled: props?.enabled ?? true,
36
37
  hidden: props?.hidden ?? false,
37
38
  },
38
- layout,
39
+ layout: this._layout,
39
40
  events,
40
41
  views: [
41
42
  {
@@ -15,6 +15,7 @@ class RefreshButton extends base_1.Base {
15
15
  constructor({ props, layout, events = {} }) {
16
16
  super();
17
17
  this._loading = false;
18
+ this._layout = layout;
18
19
  this._defineView = () => {
19
20
  var _a, _b, _c;
20
21
  return {
@@ -25,7 +26,7 @@ class RefreshButton extends base_1.Base {
25
26
  enabled: (_a = props === null || props === void 0 ? void 0 : props.enabled) !== null && _a !== void 0 ? _a : true,
26
27
  hidden: (_b = props === null || props === void 0 ? void 0 : props.hidden) !== null && _b !== void 0 ? _b : false,
27
28
  },
28
- layout,
29
+ layout: this._layout,
29
30
  events,
30
31
  views: [
31
32
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsbox-cview",
3
- "version": "1.5.18",
3
+ "version": "1.5.19",
4
4
  "description": "为 JSBox 设计的微型框架",
5
5
  "repository": {
6
6
  "type": "git",