@opentiny/vue-dropdown-item 3.11.1 → 3.13.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 +6 -4
- package/lib/pc.js +2 -2
- package/package.json +7 -7
- package/src/index.d.ts +4 -4
- package/src/mobile-first.vue.d.ts +7 -7
- package/src/mobile.vue.d.ts +7 -8
- package/src/pc.vue.d.ts +15 -15
package/lib/index.js
CHANGED
|
@@ -17,13 +17,15 @@ import PcTemplate from "./pc.js";
|
|
|
17
17
|
import MobileTemplate from "./mobile.js";
|
|
18
18
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
19
19
|
var template = function template2(mode) {
|
|
20
|
-
|
|
20
|
+
var _process$env;
|
|
21
|
+
var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
|
|
22
|
+
if ("pc" === (tinyMode || mode)) {
|
|
21
23
|
return PcTemplate;
|
|
22
24
|
}
|
|
23
|
-
if ("mobile" === (
|
|
25
|
+
if ("mobile" === (tinyMode || mode)) {
|
|
24
26
|
return MobileTemplate;
|
|
25
27
|
}
|
|
26
|
-
if ("mobile-first" === (
|
|
28
|
+
if ("mobile-first" === (tinyMode || mode)) {
|
|
27
29
|
return MobileFirstTemplate;
|
|
28
30
|
}
|
|
29
31
|
return PcTemplate;
|
|
@@ -112,7 +114,7 @@ var DropdownItem = defineComponent({
|
|
|
112
114
|
});
|
|
113
115
|
}
|
|
114
116
|
});
|
|
115
|
-
var version = "3.
|
|
117
|
+
var version = "3.13.0";
|
|
116
118
|
DropdownItem.model = {
|
|
117
119
|
prop: "modelValue",
|
|
118
120
|
event: "update:modelValue"
|
package/lib/pc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, $prefix, props, setup as _setup } from "@opentiny/vue-common";
|
|
2
2
|
import { renderless, api } from "@opentiny/vue-renderless/dropdown-item/vue";
|
|
3
3
|
import { iconDeltaLeft } from "@opentiny/vue-icon";
|
|
4
|
-
import
|
|
4
|
+
import Tooltip from "@opentiny/vue-tooltip";
|
|
5
5
|
import "@opentiny/vue-theme/dropdown-item/index.css";
|
|
6
6
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList } from "vue";
|
|
7
7
|
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
|
|
@@ -56,7 +56,7 @@ var _sfc_main = defineComponent({
|
|
|
56
56
|
props: [].concat(props, ["disabled", "divided", "icon", "itemData", "title", "titleClass", "options", "type", "label", "appendToBody", "textField", "selected", "selectedField", "multiStage", "currentIndex", "tip", "tipPosition"]),
|
|
57
57
|
components: {
|
|
58
58
|
IconDeltaLeft: iconDeltaLeft(),
|
|
59
|
-
TinyTooltip
|
|
59
|
+
TinyTooltip: Tooltip
|
|
60
60
|
},
|
|
61
61
|
setup: function setup(props2, context) {
|
|
62
62
|
return _setup({
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.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": "~3.
|
|
11
|
-
"@opentiny/vue-icon": "~3.
|
|
12
|
-
"@opentiny/vue-renderless": "~3.
|
|
13
|
-
"@opentiny/vue-popup": "~3.
|
|
14
|
-
"@opentiny/vue-button": "~3.
|
|
15
|
-
"@opentiny/vue-tooltip": "~3.
|
|
10
|
+
"@opentiny/vue-common": "~3.13.0",
|
|
11
|
+
"@opentiny/vue-icon": "~3.13.0",
|
|
12
|
+
"@opentiny/vue-renderless": "~3.13.0",
|
|
13
|
+
"@opentiny/vue-popup": "~3.13.0",
|
|
14
|
+
"@opentiny/vue-button": "~3.13.0",
|
|
15
|
+
"@opentiny/vue-tooltip": "~3.13.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -229,16 +229,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
229
229
|
label: string;
|
|
230
230
|
selected: boolean;
|
|
231
231
|
disabled: boolean;
|
|
232
|
-
itemData: string | Record<string, any>;
|
|
233
232
|
tiny_mode_root: boolean;
|
|
234
233
|
_constants: Record<string, any>;
|
|
235
|
-
textField: string;
|
|
236
234
|
multiStage: boolean;
|
|
237
235
|
options: unknown[];
|
|
238
|
-
|
|
239
|
-
appendToBody: boolean;
|
|
236
|
+
textField: string;
|
|
240
237
|
divided: boolean;
|
|
238
|
+
itemData: string | Record<string, any>;
|
|
241
239
|
selectedField: string;
|
|
240
|
+
currentIndex: number;
|
|
241
|
+
appendToBody: boolean;
|
|
242
242
|
tip: string | Function;
|
|
243
243
|
tipPosition: string;
|
|
244
244
|
}, {}>;
|
|
@@ -2,7 +2,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
2
2
|
label?: any;
|
|
3
3
|
selected?: any;
|
|
4
4
|
disabled?: any;
|
|
5
|
-
itemData?: any;
|
|
6
5
|
tiny_mode?: any;
|
|
7
6
|
tiny_mode_root?: any;
|
|
8
7
|
tiny_template?: any;
|
|
@@ -11,13 +10,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
11
10
|
tiny_theme?: any;
|
|
12
11
|
tiny_chart_theme?: any;
|
|
13
12
|
icon?: any;
|
|
13
|
+
itemData?: any;
|
|
14
14
|
level?: any;
|
|
15
15
|
currentIndex?: any;
|
|
16
|
-
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "
|
|
16
|
+
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "update:modelValue" | "close" | "change" | "reset" | "open" | "closed" | "opened")[], "confirm" | "update:modelValue" | "close" | "change" | "reset" | "open" | "closed" | "opened", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
17
17
|
label?: any;
|
|
18
18
|
selected?: any;
|
|
19
19
|
disabled?: any;
|
|
20
|
-
itemData?: any;
|
|
21
20
|
tiny_mode?: any;
|
|
22
21
|
tiny_mode_root?: any;
|
|
23
22
|
tiny_template?: any;
|
|
@@ -26,22 +25,22 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
26
25
|
tiny_theme?: any;
|
|
27
26
|
tiny_chart_theme?: any;
|
|
28
27
|
icon?: any;
|
|
28
|
+
itemData?: any;
|
|
29
29
|
level?: any;
|
|
30
30
|
currentIndex?: any;
|
|
31
31
|
}>>> & {
|
|
32
32
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
34
35
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
|
|
36
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
36
37
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
37
39
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
readonly label?: any;
|
|
42
42
|
readonly selected?: any;
|
|
43
43
|
readonly disabled?: any;
|
|
44
|
-
readonly itemData?: any;
|
|
45
44
|
readonly tiny_mode?: any;
|
|
46
45
|
readonly tiny_mode_root?: any;
|
|
47
46
|
readonly tiny_template?: any;
|
|
@@ -50,6 +49,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
50
49
|
readonly tiny_theme?: any;
|
|
51
50
|
readonly tiny_chart_theme?: any;
|
|
52
51
|
readonly icon?: any;
|
|
52
|
+
readonly itemData?: any;
|
|
53
53
|
readonly level?: any;
|
|
54
54
|
readonly currentIndex?: any;
|
|
55
55
|
}, {}>;
|
package/src/mobile.vue.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
9
9
|
_constants?: any;
|
|
10
10
|
tiny_theme?: any;
|
|
11
11
|
tiny_chart_theme?: any;
|
|
12
|
-
icon?: any;
|
|
13
12
|
modelValue?: any;
|
|
14
13
|
options?: any;
|
|
14
|
+
icon?: any;
|
|
15
15
|
titleClass?: any;
|
|
16
16
|
}>, {
|
|
17
17
|
t: (this: any, path: any, options?: any) => any;
|
|
@@ -21,8 +21,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
21
21
|
d: (props: any) => void;
|
|
22
22
|
dp: (props: any) => void;
|
|
23
23
|
gcls: (key: any) => any;
|
|
24
|
-
|
|
25
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "item-click" | "confirm" | "change" | "update:modelValue" | "closed" | "open" | "opened" | "close" | "reset")[], "click" | "item-click" | "confirm" | "change" | "update:modelValue" | "closed" | "open" | "opened" | "close" | "reset", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
24
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "item-click" | "update:modelValue" | "close" | "click" | "change" | "reset" | "open" | "closed" | "opened")[], "confirm" | "item-click" | "update:modelValue" | "close" | "click" | "change" | "reset" | "open" | "closed" | "opened", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
26
25
|
type?: any;
|
|
27
26
|
title?: any;
|
|
28
27
|
disabled?: any;
|
|
@@ -33,21 +32,21 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
33
32
|
_constants?: any;
|
|
34
33
|
tiny_theme?: any;
|
|
35
34
|
tiny_chart_theme?: any;
|
|
36
|
-
icon?: any;
|
|
37
35
|
modelValue?: any;
|
|
38
36
|
options?: any;
|
|
37
|
+
icon?: any;
|
|
39
38
|
titleClass?: any;
|
|
40
39
|
}>>> & {
|
|
41
40
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
42
41
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
43
42
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
44
43
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
|
|
46
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
47
47
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
48
49
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
51
50
|
}, {
|
|
52
51
|
readonly type?: any;
|
|
53
52
|
readonly title?: any;
|
|
@@ -59,9 +58,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
59
58
|
readonly _constants?: any;
|
|
60
59
|
readonly tiny_theme?: any;
|
|
61
60
|
readonly tiny_chart_theme?: any;
|
|
62
|
-
readonly icon?: any;
|
|
63
61
|
readonly modelValue?: any;
|
|
64
62
|
readonly options?: any;
|
|
63
|
+
readonly icon?: any;
|
|
65
64
|
readonly titleClass?: any;
|
|
66
65
|
}, {}>;
|
|
67
66
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
5
5
|
title?: any;
|
|
6
6
|
selected?: any;
|
|
7
7
|
disabled?: any;
|
|
8
|
-
itemData?: any;
|
|
9
8
|
tiny_mode?: any;
|
|
10
9
|
tiny_mode_root?: any;
|
|
11
10
|
tiny_template?: any;
|
|
@@ -13,15 +12,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
13
12
|
_constants?: any;
|
|
14
13
|
tiny_theme?: any;
|
|
15
14
|
tiny_chart_theme?: any;
|
|
16
|
-
icon?: any;
|
|
17
|
-
textField?: any;
|
|
18
15
|
multiStage?: any;
|
|
19
16
|
options?: any;
|
|
17
|
+
textField?: any;
|
|
18
|
+
icon?: any;
|
|
19
|
+
divided?: any;
|
|
20
|
+
itemData?: any;
|
|
20
21
|
titleClass?: any;
|
|
22
|
+
selectedField?: any;
|
|
21
23
|
currentIndex?: any;
|
|
22
24
|
appendToBody?: any;
|
|
23
|
-
divided?: any;
|
|
24
|
-
selectedField?: any;
|
|
25
25
|
tip?: any;
|
|
26
26
|
tipPosition?: any;
|
|
27
27
|
}>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "item-click"[], "item-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
@@ -30,7 +30,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
30
30
|
title?: any;
|
|
31
31
|
selected?: any;
|
|
32
32
|
disabled?: any;
|
|
33
|
-
itemData?: any;
|
|
34
33
|
tiny_mode?: any;
|
|
35
34
|
tiny_mode_root?: any;
|
|
36
35
|
tiny_template?: any;
|
|
@@ -38,15 +37,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
38
37
|
_constants?: any;
|
|
39
38
|
tiny_theme?: any;
|
|
40
39
|
tiny_chart_theme?: any;
|
|
41
|
-
icon?: any;
|
|
42
|
-
textField?: any;
|
|
43
40
|
multiStage?: any;
|
|
44
41
|
options?: any;
|
|
42
|
+
textField?: any;
|
|
43
|
+
icon?: any;
|
|
44
|
+
divided?: any;
|
|
45
|
+
itemData?: any;
|
|
45
46
|
titleClass?: any;
|
|
47
|
+
selectedField?: any;
|
|
46
48
|
currentIndex?: any;
|
|
47
49
|
appendToBody?: any;
|
|
48
|
-
divided?: any;
|
|
49
|
-
selectedField?: any;
|
|
50
50
|
tip?: any;
|
|
51
51
|
tipPosition?: any;
|
|
52
52
|
}>>> & {
|
|
@@ -57,7 +57,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
57
57
|
readonly title?: any;
|
|
58
58
|
readonly selected?: any;
|
|
59
59
|
readonly disabled?: any;
|
|
60
|
-
readonly itemData?: any;
|
|
61
60
|
readonly tiny_mode?: any;
|
|
62
61
|
readonly tiny_mode_root?: any;
|
|
63
62
|
readonly tiny_template?: any;
|
|
@@ -65,15 +64,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
65
64
|
readonly _constants?: any;
|
|
66
65
|
readonly tiny_theme?: any;
|
|
67
66
|
readonly tiny_chart_theme?: any;
|
|
68
|
-
readonly icon?: any;
|
|
69
|
-
readonly textField?: any;
|
|
70
67
|
readonly multiStage?: any;
|
|
71
68
|
readonly options?: any;
|
|
69
|
+
readonly textField?: any;
|
|
70
|
+
readonly icon?: any;
|
|
71
|
+
readonly divided?: any;
|
|
72
|
+
readonly itemData?: any;
|
|
72
73
|
readonly titleClass?: any;
|
|
74
|
+
readonly selectedField?: any;
|
|
73
75
|
readonly currentIndex?: any;
|
|
74
76
|
readonly appendToBody?: any;
|
|
75
|
-
readonly divided?: any;
|
|
76
|
-
readonly selectedField?: any;
|
|
77
77
|
readonly tip?: any;
|
|
78
78
|
readonly tipPosition?: any;
|
|
79
79
|
}, {}>;
|