jsbox-cview 1.5.28 → 1.5.30
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.
|
@@ -47,7 +47,7 @@ export class DynamicContextMenuView extends Base<
|
|
|
47
47
|
title?: string;
|
|
48
48
|
items: MenuItem[];
|
|
49
49
|
};
|
|
50
|
-
props: UiTypes.
|
|
50
|
+
props: UiTypes.ViewProps;
|
|
51
51
|
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
52
52
|
events?: UiTypes.BaseViewEvents;
|
|
53
53
|
views?: UiTypes.AllViewOptions[];
|
package/components/flowlayout.ts
CHANGED
|
@@ -41,7 +41,7 @@ export class Flowlayout<T extends FlowlayoutItem> extends Base<
|
|
|
41
41
|
itemHeight: number;
|
|
42
42
|
fixedRows?: number;
|
|
43
43
|
fixedHeight?: boolean;
|
|
44
|
-
menu?: UiTypes.ContextMenuOptions
|
|
44
|
+
menu?: UiTypes.ContextMenuOptions<UIView>;
|
|
45
45
|
bgcolor?: UIColor;
|
|
46
46
|
};
|
|
47
47
|
private _wrappers: WrapperView<T>[];
|
|
@@ -62,7 +62,7 @@ export class Flowlayout<T extends FlowlayoutItem> extends Base<
|
|
|
62
62
|
itemHeight: number;
|
|
63
63
|
fixedRows?: number;
|
|
64
64
|
fixedHeight?: boolean;
|
|
65
|
-
menu?: UiTypes.ContextMenuOptions
|
|
65
|
+
menu?: UiTypes.ContextMenuOptions<UIView>;
|
|
66
66
|
bgcolor?: UIColor;
|
|
67
67
|
};
|
|
68
68
|
layout: (make: MASConstraintMaker, view: UIView) => void;
|
|
@@ -207,7 +207,7 @@ class WrapperView<T extends FlowlayoutItem> extends Base<
|
|
|
207
207
|
index,
|
|
208
208
|
}: {
|
|
209
209
|
item: T;
|
|
210
|
-
menu?: UiTypes.ContextMenuOptions
|
|
210
|
+
menu?: UiTypes.ContextMenuOptions<UIView>;
|
|
211
211
|
didSelect?: (sender: Flowlayout<T>, index: number, item: T) => void;
|
|
212
212
|
didLongPress?: (sender: Flowlayout<T>, index: number, item: T) => void;
|
|
213
213
|
flowlayout: Flowlayout<T>;
|
|
@@ -215,7 +215,7 @@ class WrapperView<T extends FlowlayoutItem> extends Base<
|
|
|
215
215
|
}) {
|
|
216
216
|
super();
|
|
217
217
|
this.item = item;
|
|
218
|
-
const props: UiTypes.
|
|
218
|
+
const props: UiTypes.ViewProps = {
|
|
219
219
|
id: this.id,
|
|
220
220
|
frame: $rect(0, 0, 0, 0),
|
|
221
221
|
userInteractionEnabled: true,
|
|
@@ -54,7 +54,7 @@ export class SingleView<
|
|
|
54
54
|
export class ClearView extends SingleView<
|
|
55
55
|
"view",
|
|
56
56
|
UIView,
|
|
57
|
-
UiTypes.
|
|
57
|
+
UiTypes.ViewProps,
|
|
58
58
|
UiTypes.BaseViewEvents<UIView>,
|
|
59
59
|
UiTypes.ViewOptions
|
|
60
60
|
> {
|
|
@@ -64,7 +64,7 @@ export class ClearView extends SingleView<
|
|
|
64
64
|
events,
|
|
65
65
|
views,
|
|
66
66
|
}: {
|
|
67
|
-
props?: UiTypes.
|
|
67
|
+
props?: UiTypes.ViewProps;
|
|
68
68
|
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
69
69
|
events?: UiTypes.BaseViewEvents<UIView>;
|
|
70
70
|
views?: UiTypes.AllViewOptions[];
|
|
@@ -82,7 +82,7 @@ export class ClearView extends SingleView<
|
|
|
82
82
|
export class ContentView extends SingleView<
|
|
83
83
|
"view",
|
|
84
84
|
UIView,
|
|
85
|
-
UiTypes.
|
|
85
|
+
UiTypes.ViewProps,
|
|
86
86
|
UiTypes.BaseViewEvents<UIView>,
|
|
87
87
|
UiTypes.ViewOptions
|
|
88
88
|
> {
|
|
@@ -92,7 +92,7 @@ export class ContentView extends SingleView<
|
|
|
92
92
|
events = {},
|
|
93
93
|
views,
|
|
94
94
|
}: {
|
|
95
|
-
props?: UiTypes.
|
|
95
|
+
props?: UiTypes.ViewProps;
|
|
96
96
|
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
97
97
|
events?: UiTypes.BaseViewEvents;
|
|
98
98
|
views?: UiTypes.AllViewOptions[];
|
|
@@ -116,7 +116,7 @@ export class ContentView extends SingleView<
|
|
|
116
116
|
export class MaskView extends SingleView<
|
|
117
117
|
"view",
|
|
118
118
|
UIView,
|
|
119
|
-
UiTypes.
|
|
119
|
+
UiTypes.ViewProps,
|
|
120
120
|
UiTypes.BaseViewEvents<UIView>,
|
|
121
121
|
UiTypes.ViewOptions
|
|
122
122
|
> {
|
|
@@ -126,7 +126,7 @@ export class MaskView extends SingleView<
|
|
|
126
126
|
events,
|
|
127
127
|
views,
|
|
128
128
|
}: {
|
|
129
|
-
props?: UiTypes.
|
|
129
|
+
props?: UiTypes.ViewProps;
|
|
130
130
|
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
131
131
|
events?: UiTypes.BaseViewEvents;
|
|
132
132
|
views?: UiTypes.AllViewOptions[];
|
|
@@ -820,7 +820,7 @@ export class Picker extends SingleView<
|
|
|
820
820
|
export class Canvas extends SingleView<
|
|
821
821
|
"canvas",
|
|
822
822
|
UICanvasView,
|
|
823
|
-
UiTypes.
|
|
823
|
+
UiTypes.CanvasProps,
|
|
824
824
|
UiTypes.CanvasEvents,
|
|
825
825
|
UiTypes.CanvasOptions
|
|
826
826
|
> {
|
|
@@ -830,7 +830,7 @@ export class Canvas extends SingleView<
|
|
|
830
830
|
events,
|
|
831
831
|
views,
|
|
832
832
|
}: {
|
|
833
|
-
props?: UiTypes.
|
|
833
|
+
props?: UiTypes.CanvasProps;
|
|
834
834
|
layout?: (make: MASConstraintMaker, view: UICanvasView) => void;
|
|
835
835
|
events?: UiTypes.CanvasEvents;
|
|
836
836
|
views?: UiTypes.AllViewOptions[];
|
|
@@ -8,7 +8,7 @@ import { ContentView } from "../components/single-views";
|
|
|
8
8
|
import { cvid } from "../utils/cvid";
|
|
9
9
|
|
|
10
10
|
class SecondaryView extends Base<UIView, UiTypes.ViewOptions> {
|
|
11
|
-
_props: UiTypes.
|
|
11
|
+
_props: UiTypes.ViewProps;
|
|
12
12
|
_layouts: {
|
|
13
13
|
hidden: (make: MASConstraintMaker, view: AllUIView) => void;
|
|
14
14
|
shown: (make: MASConstraintMaker, view: AllUIView) => void;
|
|
@@ -20,7 +20,7 @@ class SecondaryView extends Base<UIView, UiTypes.ViewOptions> {
|
|
|
20
20
|
layout,
|
|
21
21
|
views = [],
|
|
22
22
|
}: {
|
|
23
|
-
props?: UiTypes.
|
|
23
|
+
props?: UiTypes.ViewProps;
|
|
24
24
|
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
25
25
|
views?: UiTypes.AllViewOptions[];
|
|
26
26
|
}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsbox-cview",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.30",
|
|
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.
|
|
22
|
+
"jsbox-types": "^1.0.46"
|
|
23
23
|
}
|
|
24
24
|
}
|