jsbox-cview 1.5.5 → 1.5.7

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.
@@ -46,6 +46,7 @@ export class DynamicRowHeightList extends Base<UIListView, UiTypes.ListOptions>
46
46
  return {
47
47
  type: "list",
48
48
  props: {
49
+ id: this.id,
49
50
  data,
50
51
  ...props
51
52
  },
@@ -38,7 +38,7 @@ export class PresentedPageController extends BaseController {
38
38
  });
39
39
  this._sheet = new Sheet<ControllerRootView, UIView, UiTypes.ViewOptions>({
40
40
  presentMode: props?.presentMode ?? 1,
41
- animated: props?.animated || true,
41
+ animated: props?.animated ?? true,
42
42
  interactiveDismissalDisabled: props?.interactiveDismissalDisabled || false,
43
43
  bgcolor: props?.bgcolor || $color("secondarySurface"),
44
44
  cview: this.rootView,
@@ -36,7 +36,7 @@ class DynamicRowHeightList extends base_1.Base {
36
36
  }
37
37
  return {
38
38
  type: "list",
39
- props: Object.assign({ data }, props),
39
+ props: Object.assign({ id: this.id, data }, props),
40
40
  layout,
41
41
  events: Object.assign({ rowHeight: (sender, indexPath) => {
42
42
  if (sections) {
@@ -22,7 +22,7 @@ const sheet_1 = require("../components/sheet");
22
22
  */
23
23
  class PresentedPageController extends base_controller_1.BaseController {
24
24
  constructor({ props, layout, events } = {}) {
25
- var _a;
25
+ var _a, _b;
26
26
  super({
27
27
  props: {
28
28
  id: props === null || props === void 0 ? void 0 : props.id
@@ -30,7 +30,7 @@ class PresentedPageController extends base_controller_1.BaseController {
30
30
  });
31
31
  this._sheet = new sheet_1.Sheet({
32
32
  presentMode: (_a = props === null || props === void 0 ? void 0 : props.presentMode) !== null && _a !== void 0 ? _a : 1,
33
- animated: (props === null || props === void 0 ? void 0 : props.animated) || true,
33
+ animated: (_b = props === null || props === void 0 ? void 0 : props.animated) !== null && _b !== void 0 ? _b : true,
34
34
  interactiveDismissalDisabled: (props === null || props === void 0 ? void 0 : props.interactiveDismissalDisabled) || false,
35
35
  bgcolor: (props === null || props === void 0 ? void 0 : props.bgcolor) || $color("secondarySurface"),
36
36
  cview: this.rootView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsbox-cview",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
4
4
  "description": "为 JSBox 设计的微型框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,6 +19,6 @@
19
19
  "devDependencies": {
20
20
  "@types/node": "^20.11.17",
21
21
  "browserify": "^17.0.0",
22
- "jsbox-types": "^1.0.31"
22
+ "jsbox-types": "^1.0.35"
23
23
  }
24
24
  }