@opentiny/vue-dropdown-item 2.14.0 → 2.15.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 +5 -1
- package/lib/mobile-first.js +8 -8
- package/lib/mobile.js +12 -12
- package/lib/pc.js +10 -10
- package/package.json +9 -9
- package/src/index.d.ts +6 -2
package/lib/index.js
CHANGED
|
@@ -85,6 +85,10 @@ var dropdownItemProps = _extends({}, $props, {
|
|
|
85
85
|
return -1;
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
+
tooltipContent: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: ""
|
|
91
|
+
},
|
|
88
92
|
// 以下为 tiny 新增
|
|
89
93
|
appendToBody: {
|
|
90
94
|
type: Boolean,
|
|
@@ -115,7 +119,7 @@ var DropdownItem = defineComponent({
|
|
|
115
119
|
});
|
|
116
120
|
}
|
|
117
121
|
});
|
|
118
|
-
var version = "2.
|
|
122
|
+
var version = "2.15.0";
|
|
119
123
|
DropdownItem.model = {
|
|
120
124
|
prop: "modelValue",
|
|
121
125
|
event: "update:modelValue"
|
package/lib/mobile-first.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, props, setup
|
|
2
|
-
import { renderless, api } from
|
|
1
|
+
import { defineComponent, props, setup } from '@opentiny/vue-common';
|
|
2
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/mf';
|
|
3
|
+
|
|
3
4
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
4
5
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
5
6
|
if (render) {
|
|
@@ -56,9 +57,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
56
57
|
|
|
57
58
|
var __vue2_script = defineComponent({
|
|
58
59
|
emits: ["update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
59
|
-
props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex"]),
|
|
60
|
-
setup: function setup(props2, context) {
|
|
61
|
-
return
|
|
60
|
+
props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex", "tooltipContent"]),
|
|
61
|
+
setup: function setup$1(props2, context) {
|
|
62
|
+
return setup({
|
|
62
63
|
props: props2,
|
|
63
64
|
context,
|
|
64
65
|
renderless,
|
|
@@ -109,6 +110,5 @@ function __vue2_injectStyles(context) {
|
|
|
109
110
|
var mobileFirst = /* @__PURE__ */ function() {
|
|
110
111
|
return __component__.exports;
|
|
111
112
|
}();
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
113
|
+
|
|
114
|
+
export { mobileFirst as default };
|
package/lib/mobile.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { renderless, api } from
|
|
2
|
-
import { defineComponent, directive, props, setup
|
|
3
|
-
import { iconYes } from
|
|
4
|
-
import Popup from
|
|
5
|
-
import Button from
|
|
6
|
-
import Clickoutside from
|
|
7
|
-
import
|
|
1
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
|
|
2
|
+
import { defineComponent, directive, props, setup } from '@opentiny/vue-common';
|
|
3
|
+
import { iconYes } from '@opentiny/vue-icon';
|
|
4
|
+
import Popup from '@opentiny/vue-popup';
|
|
5
|
+
import Button from '@opentiny/vue-button';
|
|
6
|
+
import Clickoutside from '@opentiny/vue-renderless/common/deps/clickoutside';
|
|
7
|
+
import '@opentiny/vue-theme-mobile/dropdown-item/index.css';
|
|
8
|
+
|
|
8
9
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
9
10
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
10
11
|
if (render) {
|
|
@@ -70,8 +71,8 @@ var __vue2_script = defineComponent({
|
|
|
70
71
|
TinyButton: Button
|
|
71
72
|
},
|
|
72
73
|
emits: ["update:modelValue", "open", "opened", "click", "change", "closed", "close", "reset", "confirm", "item-click"],
|
|
73
|
-
setup: function setup(props2, context) {
|
|
74
|
-
return
|
|
74
|
+
setup: function setup$1(props2, context) {
|
|
75
|
+
return setup({
|
|
75
76
|
props: props2,
|
|
76
77
|
context,
|
|
77
78
|
renderless,
|
|
@@ -214,6 +215,5 @@ function __vue2_injectStyles(context) {
|
|
|
214
215
|
var mobile = /* @__PURE__ */ function() {
|
|
215
216
|
return __component__.exports;
|
|
216
217
|
}();
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
};
|
|
218
|
+
|
|
219
|
+
export { mobile as default };
|
package/lib/pc.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent, $prefix, props, setup
|
|
2
|
-
import { renderless, api } from
|
|
3
|
-
import { iconDeltaLeft } from
|
|
4
|
-
import Tooltip from
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent, $prefix, props, setup } from '@opentiny/vue-common';
|
|
2
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
|
|
3
|
+
import { iconDeltaLeft } from '@opentiny/vue-icon';
|
|
4
|
+
import Tooltip from '@opentiny/vue-tooltip';
|
|
5
|
+
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
6
|
+
|
|
6
7
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
7
8
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
8
9
|
if (render) {
|
|
@@ -85,8 +86,8 @@ var __vue2_script = defineComponent({
|
|
|
85
86
|
IconDeltaLeft: iconDeltaLeft(),
|
|
86
87
|
TinyTooltip: Tooltip
|
|
87
88
|
},
|
|
88
|
-
setup: function setup(props2, context) {
|
|
89
|
-
return
|
|
89
|
+
setup: function setup$1(props2, context) {
|
|
90
|
+
return setup({
|
|
90
91
|
props: props2,
|
|
91
92
|
context,
|
|
92
93
|
renderless,
|
|
@@ -172,6 +173,5 @@ function __vue2_injectStyles(context) {
|
|
|
172
173
|
var pc = /* @__PURE__ */ function() {
|
|
173
174
|
return __component__.exports;
|
|
174
175
|
}();
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
176
|
+
|
|
177
|
+
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.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.
|
|
16
|
-
"@opentiny/vue-theme-mobile": "~3.
|
|
17
|
-
"@opentiny/vue-theme": "~3.
|
|
10
|
+
"@opentiny/vue-common": "~2.15.0",
|
|
11
|
+
"@opentiny/vue-icon": "~2.15.0",
|
|
12
|
+
"@opentiny/vue-renderless": "~3.15.0",
|
|
13
|
+
"@opentiny/vue-popup": "~2.15.0",
|
|
14
|
+
"@opentiny/vue-button": "~2.15.0",
|
|
15
|
+
"@opentiny/vue-tooltip": "~2.15.0",
|
|
16
|
+
"@opentiny/vue-theme-mobile": "~3.15.0",
|
|
17
|
+
"@opentiny/vue-theme": "~3.15.0"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -23,11 +23,11 @@ export declare const dropdownItemProps: {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
icon: (
|
|
26
|
+
icon: (StringConstructor | ObjectConstructor)[];
|
|
27
27
|
disabled: BooleanConstructor;
|
|
28
28
|
divided: BooleanConstructor;
|
|
29
29
|
itemData: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
33
|
title: StringConstructor;
|
|
@@ -58,6 +58,10 @@ export declare const dropdownItemProps: {
|
|
|
58
58
|
type: NumberConstructor;
|
|
59
59
|
default: () => number;
|
|
60
60
|
};
|
|
61
|
+
tooltipContent: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
61
65
|
appendToBody: {
|
|
62
66
|
type: BooleanConstructor;
|
|
63
67
|
default: boolean;
|