@opentiny/vue-dropdown-item 2.16.1-prod.0 → 2.18.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 +1 -1
- package/lib/pc.js +15 -0
- package/package.json +9 -8
- package/src/index.d.ts +2 -2
package/lib/index.js
CHANGED
package/lib/pc.js
CHANGED
|
@@ -2,6 +2,7 @@ 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
4
|
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
5
|
+
import { AutoTip } from '@opentiny/vue-directive';
|
|
5
6
|
|
|
6
7
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
7
8
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
@@ -60,6 +61,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
60
61
|
var __vue2_script = defineComponent({
|
|
61
62
|
name: $prefix + "DropdownItem",
|
|
62
63
|
componentName: $prefix + "DropdownItem",
|
|
64
|
+
directives: {
|
|
65
|
+
AutoTip
|
|
66
|
+
},
|
|
63
67
|
emits: ["item-click", "update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
64
68
|
props: [].concat(props, [
|
|
65
69
|
"disabled",
|
|
@@ -98,6 +102,17 @@ var render = function render2() {
|
|
|
98
102
|
var _h = _vm.$createElement;
|
|
99
103
|
var _c = _vm._self._c || _h;
|
|
100
104
|
return _c("li", {
|
|
105
|
+
directives: [{
|
|
106
|
+
name: "auto-tip",
|
|
107
|
+
rawName: "v-auto-tip",
|
|
108
|
+
value: {
|
|
109
|
+
always: true,
|
|
110
|
+
content: _vm.getTip,
|
|
111
|
+
effect: "dark",
|
|
112
|
+
placement: _vm.tipPosition
|
|
113
|
+
},
|
|
114
|
+
expression: "{ always: true, content: getTip, effect: 'dark', placement: tipPosition }"
|
|
115
|
+
}],
|
|
101
116
|
ref: "dropdownItem",
|
|
102
117
|
staticClass: "tiny-dropdown-item tiny-dropdown-menu__item",
|
|
103
118
|
class: {
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.18.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opentiny/vue-button": "~2.
|
|
12
|
-
"@opentiny/vue-common": "~2.
|
|
13
|
-
"@opentiny/vue-
|
|
14
|
-
"@opentiny/vue-
|
|
15
|
-
"@opentiny/vue-
|
|
16
|
-
"@opentiny/vue-
|
|
17
|
-
"@opentiny/vue-theme
|
|
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
20
|
"types": "index.d.ts",
|
|
20
21
|
"scripts": {
|
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;
|