jsbox-cview 1.2.0 → 1.2.1

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.
@@ -163,7 +163,9 @@ export class CustomNavigationBar extends Base<UIView | UIBlurView, UiTypes.ViewO
163
163
  const views = [];
164
164
  const chevronOptions: UiTypes.ViewOptions = {
165
165
  type: "view",
166
- props: {},
166
+ props: {
167
+ userInteractionEnabled: false
168
+ },
167
169
  layout: (make: MASConstraintMaker) => {
168
170
  make.left.top.bottom.inset(0);
169
171
  make.width.equalTo(35);
@@ -107,7 +107,9 @@ class CustomNavigationBar extends base_1.Base {
107
107
  const views = [];
108
108
  const chevronOptions = {
109
109
  type: "view",
110
- props: {},
110
+ props: {
111
+ userInteractionEnabled: false
112
+ },
111
113
  layout: (make) => {
112
114
  make.left.top.bottom.inset(0);
113
115
  make.width.equalTo(35);
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const custom_navigation_bar_1 = require("../components/custom-navigation-bar");
4
+ const navbar = new custom_navigation_bar_1.CustomNavigationBar({
5
+ props: {
6
+ title: "Custom Navigation Bar",
7
+ popButtonEnabled: true,
8
+ popButtonTitle: "Back",
9
+ }
10
+ });
11
+ $ui.render({
12
+ views: [{
13
+ type: "button",
14
+ props: {},
15
+ layout: $layout.fill,
16
+ events: {
17
+ tapped: () => {
18
+ $ui.push({
19
+ views: [navbar.definition]
20
+ });
21
+ }
22
+ }
23
+ }]
24
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsbox-cview",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "为 JSBox 设计的微型框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,26 @@
1
+ import { CustomNavigationBar } from "../components/custom-navigation-bar"
2
+
3
+ const navbar = new CustomNavigationBar({
4
+ props: {
5
+ title: "Custom Navigation Bar",
6
+ popButtonEnabled: true,
7
+ popButtonTitle: "Back",
8
+ }
9
+ })
10
+
11
+ $ui.render({
12
+ views: [{
13
+ type: "button",
14
+ props: {
15
+
16
+ },
17
+ layout: $layout.fill,
18
+ events: {
19
+ tapped: () => {
20
+ $ui.push({
21
+ views: [navbar.definition]
22
+ })
23
+ }
24
+ }
25
+ }]
26
+ })