@opentiny/vue-dropdown-item 2.10.0 → 2.11.0-alpha.0
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.
- package/lib/index.js +69 -68
- package/lib/mobile.js +3 -3
- package/package.json +7 -7
- package/src/index.d.ts +8 -97
- package/src/mobile-first.vue.d.ts +1 -11
- package/src/mobile.vue.d.ts +1 -29
- package/src/pc.vue.d.ts +1 -29
package/lib/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function _extends() {
|
|
|
12
12
|
};
|
|
13
13
|
return _extends.apply(this, arguments);
|
|
14
14
|
}
|
|
15
|
-
import { defineComponent, $prefix, $
|
|
15
|
+
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
|
|
16
16
|
import PcTemplate from "./pc.js";
|
|
17
17
|
import MobileTemplate from "./mobile.js";
|
|
18
18
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
@@ -33,75 +33,76 @@ var $constants = {
|
|
|
33
33
|
leftWardArrow: "icon-delta-left"
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
+
var dropdownItemProps = _extends({}, $props, {
|
|
37
|
+
_constants: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: function _default() {
|
|
40
|
+
return $constants;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
icon: [String, Object],
|
|
44
|
+
disabled: Boolean,
|
|
45
|
+
divided: Boolean,
|
|
46
|
+
itemData: {
|
|
47
|
+
type: [String, Object],
|
|
48
|
+
default: ""
|
|
49
|
+
},
|
|
50
|
+
title: String,
|
|
51
|
+
label: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: ""
|
|
54
|
+
},
|
|
55
|
+
level: String,
|
|
56
|
+
titleClass: String,
|
|
57
|
+
options: {
|
|
58
|
+
type: Array,
|
|
59
|
+
default: function _default2() {
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
type: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "selection"
|
|
66
|
+
},
|
|
67
|
+
selected: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
70
|
+
},
|
|
71
|
+
selectedField: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "selected"
|
|
74
|
+
},
|
|
75
|
+
multiStage: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
78
|
+
},
|
|
79
|
+
currentIndex: {
|
|
80
|
+
type: Number,
|
|
81
|
+
default: function _default3() {
|
|
82
|
+
return -1;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
appendToBody: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: true
|
|
88
|
+
},
|
|
89
|
+
textField: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: "label"
|
|
92
|
+
},
|
|
93
|
+
tip: {
|
|
94
|
+
type: [String, Function],
|
|
95
|
+
default: ""
|
|
96
|
+
},
|
|
97
|
+
tipPosition: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "right"
|
|
100
|
+
}
|
|
101
|
+
});
|
|
36
102
|
var DropdownItem = defineComponent({
|
|
37
103
|
name: $prefix + "DropdownItem",
|
|
38
104
|
componentName: "TinyDropdownItem",
|
|
39
|
-
props:
|
|
40
|
-
_constants: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default: function _default() {
|
|
43
|
-
return $constants;
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
icon: [String, Object],
|
|
47
|
-
disabled: Boolean,
|
|
48
|
-
divided: Boolean,
|
|
49
|
-
itemData: {
|
|
50
|
-
type: [String, Object],
|
|
51
|
-
default: ""
|
|
52
|
-
},
|
|
53
|
-
title: String,
|
|
54
|
-
label: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
level: String,
|
|
59
|
-
titleClass: String,
|
|
60
|
-
options: {
|
|
61
|
-
type: Array,
|
|
62
|
-
default: function _default2() {
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
type: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: "selection"
|
|
69
|
-
},
|
|
70
|
-
selected: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: false
|
|
73
|
-
},
|
|
74
|
-
selectedField: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: "selected"
|
|
77
|
-
},
|
|
78
|
-
multiStage: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: false
|
|
81
|
-
},
|
|
82
|
-
currentIndex: {
|
|
83
|
-
type: Number,
|
|
84
|
-
default: function _default3() {
|
|
85
|
-
return -1;
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
appendToBody: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: true
|
|
91
|
-
},
|
|
92
|
-
textField: {
|
|
93
|
-
type: String,
|
|
94
|
-
default: "label"
|
|
95
|
-
},
|
|
96
|
-
tip: {
|
|
97
|
-
type: [String, Function],
|
|
98
|
-
default: ""
|
|
99
|
-
},
|
|
100
|
-
tipPosition: {
|
|
101
|
-
type: String,
|
|
102
|
-
default: "right"
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
105
|
+
props: dropdownItemProps,
|
|
105
106
|
setup: function setup(props, context) {
|
|
106
107
|
return $setup({
|
|
107
108
|
props,
|
|
@@ -110,7 +111,7 @@ var DropdownItem = defineComponent({
|
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
});
|
|
113
|
-
var version = "2.
|
|
114
|
+
var version = "2.11.0-alpha.0";
|
|
114
115
|
DropdownItem.model = {
|
|
115
116
|
prop: "modelValue",
|
|
116
117
|
event: "update:modelValue"
|
package/lib/mobile.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderless, api } from "@opentiny/vue-renderless/dropdown-item/vue";
|
|
2
|
-
import { defineComponent, props, setup as _setup } from "@opentiny/vue-common";
|
|
2
|
+
import { defineComponent, directive, props, setup as _setup } from "@opentiny/vue-common";
|
|
3
3
|
import { iconYes } from "@opentiny/vue-icon";
|
|
4
4
|
import Popup from "@opentiny/vue-popup";
|
|
5
5
|
import Button from "@opentiny/vue-button";
|
|
@@ -60,9 +60,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
var __vue2_script = defineComponent({
|
|
63
|
-
directives: {
|
|
63
|
+
directives: directive({
|
|
64
64
|
Clickoutside
|
|
65
|
-
},
|
|
65
|
+
}),
|
|
66
66
|
props: [].concat(props, ["modelValue", "title", "disabled", "titleClass", "options", "icon", "type"]),
|
|
67
67
|
components: {
|
|
68
68
|
IconYes: iconYes(),
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentiny/vue-common": "~2.
|
|
11
|
-
"@opentiny/vue-icon": "~2.
|
|
12
|
-
"@opentiny/vue-renderless": "~3.
|
|
13
|
-
"@opentiny/vue-popup": "~2.
|
|
14
|
-
"@opentiny/vue-button": "~2.
|
|
15
|
-
"@opentiny/vue-tooltip": "~2.
|
|
10
|
+
"@opentiny/vue-common": "~2.11.0",
|
|
11
|
+
"@opentiny/vue-icon": "~2.11.0",
|
|
12
|
+
"@opentiny/vue-renderless": "~3.11.0",
|
|
13
|
+
"@opentiny/vue-popup": "~2.11.0",
|
|
14
|
+
"@opentiny/vue-button": "~2.11.0",
|
|
15
|
+
"@opentiny/vue-tooltip": "~2.11.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
declare const
|
|
12
|
+
export declare const $constants: {
|
|
13
|
+
ICON_MAP: {
|
|
14
|
+
leftWardArrow: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const dropdownItemProps: {
|
|
13
18
|
_constants: {
|
|
14
19
|
type: ObjectConstructor;
|
|
15
20
|
default: () => {
|
|
@@ -78,100 +83,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
78
83
|
tiny_renderless: FunctionConstructor;
|
|
79
84
|
tiny_theme: StringConstructor;
|
|
80
85
|
tiny_chart_theme: ObjectConstructor;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
type: string;
|
|
84
|
-
selected: boolean;
|
|
85
|
-
disabled: boolean;
|
|
86
|
-
tiny_mode_root: boolean;
|
|
87
|
-
_constants: Record<string, any>;
|
|
88
|
-
options: unknown[];
|
|
89
|
-
textField: string;
|
|
90
|
-
appendToBody: boolean;
|
|
91
|
-
tip: string;
|
|
92
|
-
multiStage: boolean;
|
|
93
|
-
divided: boolean;
|
|
94
|
-
itemData: string;
|
|
95
|
-
selectedField: string;
|
|
96
|
-
currentIndex: number;
|
|
97
|
-
tipPosition: string;
|
|
98
|
-
} & {
|
|
99
|
-
title?: string | undefined;
|
|
100
|
-
tiny_mode?: string | undefined;
|
|
101
|
-
tiny_template?: unknown;
|
|
102
|
-
tiny_renderless?: Function | undefined;
|
|
103
|
-
tiny_theme?: string | undefined;
|
|
104
|
-
tiny_chart_theme?: Record<string, any> | undefined;
|
|
105
|
-
icon?: unknown;
|
|
106
|
-
level?: string | undefined;
|
|
107
|
-
titleClass?: string | undefined;
|
|
108
|
-
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
|
|
109
|
-
label: string;
|
|
110
|
-
type: string;
|
|
111
|
-
selected: boolean;
|
|
112
|
-
disabled: boolean;
|
|
113
|
-
tiny_mode_root: boolean;
|
|
114
|
-
_constants: Record<string, any>;
|
|
115
|
-
options: unknown[];
|
|
116
|
-
textField: string;
|
|
117
|
-
appendToBody: boolean;
|
|
118
|
-
tip: string;
|
|
119
|
-
multiStage: boolean;
|
|
120
|
-
divided: boolean;
|
|
121
|
-
itemData: string;
|
|
122
|
-
selectedField: string;
|
|
123
|
-
currentIndex: number;
|
|
124
|
-
tipPosition: string;
|
|
125
|
-
} & {
|
|
126
|
-
title?: string | undefined;
|
|
127
|
-
tiny_mode?: string | undefined;
|
|
128
|
-
tiny_template?: unknown;
|
|
129
|
-
tiny_renderless?: Function | undefined;
|
|
130
|
-
tiny_theme?: string | undefined;
|
|
131
|
-
tiny_chart_theme?: Record<string, any> | undefined;
|
|
132
|
-
icon?: unknown;
|
|
133
|
-
level?: string | undefined;
|
|
134
|
-
titleClass?: string | undefined;
|
|
135
|
-
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
|
|
136
|
-
label: string;
|
|
137
|
-
type: string;
|
|
138
|
-
selected: boolean;
|
|
139
|
-
disabled: boolean;
|
|
140
|
-
tiny_mode_root: boolean;
|
|
141
|
-
_constants: Record<string, any>;
|
|
142
|
-
options: unknown[];
|
|
143
|
-
textField: string;
|
|
144
|
-
appendToBody: boolean;
|
|
145
|
-
tip: string;
|
|
146
|
-
multiStage: boolean;
|
|
147
|
-
divided: boolean;
|
|
148
|
-
itemData: string;
|
|
149
|
-
selectedField: string;
|
|
150
|
-
currentIndex: number;
|
|
151
|
-
tipPosition: string;
|
|
152
|
-
} & {
|
|
153
|
-
title?: string | undefined;
|
|
154
|
-
tiny_mode?: string | undefined;
|
|
155
|
-
tiny_template?: unknown;
|
|
156
|
-
tiny_renderless?: Function | undefined;
|
|
157
|
-
tiny_theme?: string | undefined;
|
|
158
|
-
tiny_chart_theme?: Record<string, any> | undefined;
|
|
159
|
-
icon?: unknown;
|
|
160
|
-
level?: string | undefined;
|
|
161
|
-
titleClass?: string | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
label: string;
|
|
164
|
-
type: string;
|
|
165
|
-
selected: boolean;
|
|
166
|
-
_constants: Record<string, any>;
|
|
167
|
-
options: unknown[];
|
|
168
|
-
textField: string;
|
|
169
|
-
appendToBody: boolean;
|
|
170
|
-
tip: string;
|
|
171
|
-
multiStage: boolean;
|
|
172
|
-
itemData: string;
|
|
173
|
-
selectedField: string;
|
|
174
|
-
currentIndex: number;
|
|
175
|
-
tipPosition: string;
|
|
176
|
-
}, true>);
|
|
86
|
+
};
|
|
87
|
+
declare const _default: any;
|
|
177
88
|
export default _default;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
}>, {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<any>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
} & {}, {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, true>);
|
|
1
|
+
declare const _default: any;
|
|
12
2
|
export default _default;
|
package/src/mobile.vue.d.ts
CHANGED
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
t: (this: any, path: any, options?: any) => any;
|
|
3
|
-
vm: any;
|
|
4
|
-
f: (props: any, attrs?: {}) => {};
|
|
5
|
-
a: (attrs: any, filters: any, include: any) => {};
|
|
6
|
-
d: (props: any) => void;
|
|
7
|
-
dp: (props: any) => void;
|
|
8
|
-
gcls: (key: any) => any;
|
|
9
|
-
m: (...cssClasses: any[]) => string;
|
|
10
|
-
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
|
|
11
|
-
[x: string]: any;
|
|
12
|
-
}>, {
|
|
13
|
-
[x: string]: any;
|
|
14
|
-
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
|
|
15
|
-
[x: string]: any;
|
|
16
|
-
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
|
|
17
|
-
t: (this: any, path: any, options?: any) => any;
|
|
18
|
-
vm: any;
|
|
19
|
-
f: (props: any, attrs?: {}) => {};
|
|
20
|
-
a: (attrs: any, filters: any, include: any) => {};
|
|
21
|
-
d: (props: any) => void;
|
|
22
|
-
dp: (props: any) => void;
|
|
23
|
-
gcls: (key: any) => any;
|
|
24
|
-
m: (...cssClasses: any[]) => string;
|
|
25
|
-
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
|
|
26
|
-
[x: string]: any;
|
|
27
|
-
} & {}, {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
}, true>);
|
|
1
|
+
declare const _default: any;
|
|
30
2
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
t: (this: any, path: any, options?: any) => any;
|
|
3
|
-
vm: any;
|
|
4
|
-
f: (props: any, attrs?: {}) => {};
|
|
5
|
-
a: (attrs: any, filters: any, include: any) => {};
|
|
6
|
-
d: (props: any) => void;
|
|
7
|
-
dp: (props: any) => void;
|
|
8
|
-
gcls: (key: any) => any;
|
|
9
|
-
m: (...cssClasses: any[]) => string;
|
|
10
|
-
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
|
|
11
|
-
[x: string]: any;
|
|
12
|
-
}>, {
|
|
13
|
-
[x: string]: any;
|
|
14
|
-
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
|
|
15
|
-
[x: string]: any;
|
|
16
|
-
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
|
|
17
|
-
t: (this: any, path: any, options?: any) => any;
|
|
18
|
-
vm: any;
|
|
19
|
-
f: (props: any, attrs?: {}) => {};
|
|
20
|
-
a: (attrs: any, filters: any, include: any) => {};
|
|
21
|
-
d: (props: any) => void;
|
|
22
|
-
dp: (props: any) => void;
|
|
23
|
-
gcls: (key: any) => any;
|
|
24
|
-
m: (...cssClasses: any[]) => string;
|
|
25
|
-
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
|
|
26
|
-
[x: string]: any;
|
|
27
|
-
} & {}, {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
}, true>);
|
|
1
|
+
declare const _default: any;
|
|
30
2
|
export default _default;
|