@opentiny/vue-dropdown-item 2.17.0 → 2.18.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.
- package/lib/index.js +5 -1
- package/lib/pc.js +20 -11
- package/package.json +12 -12
- package/src/index.d.ts +6 -2
package/lib/index.js
CHANGED
|
@@ -101,6 +101,10 @@ var dropdownItemProps = _extends({}, $props, {
|
|
|
101
101
|
tipPosition: {
|
|
102
102
|
type: String,
|
|
103
103
|
default: "right"
|
|
104
|
+
},
|
|
105
|
+
effect: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: "light"
|
|
104
108
|
}
|
|
105
109
|
});
|
|
106
110
|
var DropdownItem = defineComponent({
|
|
@@ -115,7 +119,7 @@ var DropdownItem = defineComponent({
|
|
|
115
119
|
});
|
|
116
120
|
}
|
|
117
121
|
});
|
|
118
|
-
var version = "2.
|
|
122
|
+
var version = "2.undefined";
|
|
119
123
|
DropdownItem.model = {
|
|
120
124
|
prop: "modelValue",
|
|
121
125
|
event: "update:modelValue"
|
package/lib/pc.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, $prefix, props, 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 Tooltip from '@opentiny/vue-tooltip';
|
|
5
4
|
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
5
|
+
import { AutoTip } from '@opentiny/vue-directive';
|
|
6
6
|
|
|
7
7
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
8
8
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
@@ -61,6 +61,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
61
61
|
var __vue2_script = defineComponent({
|
|
62
62
|
name: $prefix + "DropdownItem",
|
|
63
63
|
componentName: $prefix + "DropdownItem",
|
|
64
|
+
directives: {
|
|
65
|
+
AutoTip
|
|
66
|
+
},
|
|
64
67
|
emits: ["item-click", "update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
65
68
|
props: [].concat(props, [
|
|
66
69
|
"disabled",
|
|
@@ -80,11 +83,11 @@ var __vue2_script = defineComponent({
|
|
|
80
83
|
"appendToBody",
|
|
81
84
|
"textField",
|
|
82
85
|
"tip",
|
|
83
|
-
"tipPosition"
|
|
86
|
+
"tipPosition",
|
|
87
|
+
"effect"
|
|
84
88
|
]),
|
|
85
89
|
components: {
|
|
86
|
-
IconDeltaLeft: iconDeltaLeft()
|
|
87
|
-
TinyTooltip: Tooltip
|
|
90
|
+
IconDeltaLeft: iconDeltaLeft()
|
|
88
91
|
},
|
|
89
92
|
setup: function setup$1(props2, context) {
|
|
90
93
|
return setup({
|
|
@@ -99,12 +102,18 @@ var render = function render2() {
|
|
|
99
102
|
var _vm = this;
|
|
100
103
|
var _h = _vm.$createElement;
|
|
101
104
|
var _c = _vm._self._c || _h;
|
|
102
|
-
return _c("
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
return _c("li", {
|
|
106
|
+
directives: [{
|
|
107
|
+
name: "auto-tip",
|
|
108
|
+
rawName: "v-auto-tip",
|
|
109
|
+
value: _vm.getTip ? {
|
|
110
|
+
always: true,
|
|
111
|
+
content: _vm.getTip,
|
|
112
|
+
effect: _vm.effect,
|
|
113
|
+
placement: _vm.tipPosition
|
|
114
|
+
} : false,
|
|
115
|
+
expression: "getTip ? { always: true, content: getTip, effect, placement: tipPosition } : false"
|
|
116
|
+
}],
|
|
108
117
|
ref: "dropdownItem",
|
|
109
118
|
staticClass: "tiny-dropdown-item tiny-dropdown-menu__item",
|
|
110
119
|
class: {
|
|
@@ -160,7 +169,7 @@ var render = function render2() {
|
|
|
160
169
|
}, [_vm._t("default", null, {
|
|
161
170
|
"itemData": item
|
|
162
171
|
})], 2);
|
|
163
|
-
}), 1) : _vm._e()])])
|
|
172
|
+
}), 1) : _vm._e()])]);
|
|
164
173
|
};
|
|
165
174
|
var staticRenderFns = [];
|
|
166
175
|
var __cssModules = {};
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.18.1",
|
|
4
5
|
"description": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
5
8
|
"main": "./lib/index.js",
|
|
6
9
|
"module": "./lib/index.js",
|
|
7
|
-
"sideEffects": false,
|
|
8
|
-
"type": "module",
|
|
9
10
|
"dependencies": {
|
|
10
|
-
"@opentiny/vue-
|
|
11
|
-
"@opentiny/vue-
|
|
12
|
-
"@opentiny/vue-
|
|
13
|
-
"@opentiny/vue-
|
|
14
|
-
"@opentiny/vue-
|
|
15
|
-
"@opentiny/vue-
|
|
16
|
-
"@opentiny/vue-theme
|
|
17
|
-
"@opentiny/vue-theme": "~3.
|
|
11
|
+
"@opentiny/vue-button": "~2.18.0",
|
|
12
|
+
"@opentiny/vue-common": "~2.18.0",
|
|
13
|
+
"@opentiny/vue-directive": "~2.18.0",
|
|
14
|
+
"@opentiny/vue-icon": "~2.18.0",
|
|
15
|
+
"@opentiny/vue-popup": "~2.18.0",
|
|
16
|
+
"@opentiny/vue-renderless": "~3.18.0",
|
|
17
|
+
"@opentiny/vue-theme": "~3.18.0",
|
|
18
|
+
"@opentiny/vue-theme-mobile": "~3.18.0"
|
|
18
19
|
},
|
|
19
|
-
"license": "MIT",
|
|
20
20
|
"types": "index.d.ts",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "pnpm -w build:ui $npm_package_name",
|
package/src/index.d.ts
CHANGED
|
@@ -23,11 +23,11 @@ export declare const dropdownItemProps: {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
icon: (
|
|
26
|
+
icon: (ObjectConstructor | StringConstructor)[];
|
|
27
27
|
disabled: BooleanConstructor;
|
|
28
28
|
divided: BooleanConstructor;
|
|
29
29
|
itemData: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
33
|
title: StringConstructor;
|
|
@@ -78,6 +78,10 @@ export declare const dropdownItemProps: {
|
|
|
78
78
|
type: StringConstructor;
|
|
79
79
|
default: string;
|
|
80
80
|
};
|
|
81
|
+
effect: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
81
85
|
tiny_mode: StringConstructor;
|
|
82
86
|
tiny_mode_root: BooleanConstructor;
|
|
83
87
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|