@opentiny/vue-dropdown-item 2.18.0 → 2.19.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 -2
- package/lib/pc.js +11 -16
- package/package.json +9 -9
- package/src/index.d.ts +4 -0
package/lib/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var template = function template2(mode) {
|
|
|
28
28
|
};
|
|
29
29
|
var $constants = {
|
|
30
30
|
ICON_MAP: {
|
|
31
|
-
leftWardArrow: "icon-
|
|
31
|
+
leftWardArrow: "icon-left-ward-arrow"
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
var dropdownItemProps = _extends({}, $props, {
|
|
@@ -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.19.0";
|
|
119
123
|
DropdownItem.model = {
|
|
120
124
|
prop: "modelValue",
|
|
121
125
|
event: "update:modelValue"
|
package/lib/pc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, $prefix, props, setup } from '@opentiny/vue-common';
|
|
2
2
|
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
|
|
3
|
-
import {
|
|
3
|
+
import { iconLeftWardArrow } from '@opentiny/vue-icon';
|
|
4
4
|
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
5
5
|
import { AutoTip } from '@opentiny/vue-directive';
|
|
6
6
|
|
|
@@ -83,10 +83,11 @@ var __vue2_script = defineComponent({
|
|
|
83
83
|
"appendToBody",
|
|
84
84
|
"textField",
|
|
85
85
|
"tip",
|
|
86
|
-
"tipPosition"
|
|
86
|
+
"tipPosition",
|
|
87
|
+
"effect"
|
|
87
88
|
]),
|
|
88
89
|
components: {
|
|
89
|
-
|
|
90
|
+
IconLeftWardArrow: iconLeftWardArrow()
|
|
90
91
|
},
|
|
91
92
|
setup: function setup$1(props2, context) {
|
|
92
93
|
return setup({
|
|
@@ -105,22 +106,16 @@ var render = function render2() {
|
|
|
105
106
|
directives: [{
|
|
106
107
|
name: "auto-tip",
|
|
107
108
|
rawName: "v-auto-tip",
|
|
108
|
-
value: {
|
|
109
|
+
value: _vm.state.computedTip ? {
|
|
109
110
|
always: true,
|
|
110
|
-
content: _vm.
|
|
111
|
-
effect:
|
|
111
|
+
content: _vm.state.computedTip,
|
|
112
|
+
effect: _vm.effect,
|
|
112
113
|
placement: _vm.tipPosition
|
|
113
|
-
},
|
|
114
|
-
expression: "{ always: true, content:
|
|
114
|
+
} : false,
|
|
115
|
+
expression: "\n state.computedTip ? { always: true, content: state.computedTip, effect, placement: tipPosition } : false\n "
|
|
115
116
|
}],
|
|
116
117
|
ref: "dropdownItem",
|
|
117
|
-
|
|
118
|
-
class: {
|
|
119
|
-
"is-disabled": _vm.disabled,
|
|
120
|
-
"tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _vm.divided,
|
|
121
|
-
"tiny-dropdown-item--check-status": _vm.state.checkedStatus && _vm.selected,
|
|
122
|
-
"has-children": _vm.itemData.children && _vm.itemData.children.length
|
|
123
|
-
},
|
|
118
|
+
class: ["tiny-dropdown-item", "tiny-dropdown-menu__item", _vm.state.sizeClass, _vm.disabled ? "is-disabled" : "", _vm.divided ? "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided" : "", _vm.state.checkedStatus && _vm.selected ? "tiny-dropdown-item--check-status" : "", _vm.itemData.children && _vm.itemData.children.length ? "has-children" : ""],
|
|
124
119
|
attrs: {
|
|
125
120
|
"aria-disabled": _vm.disabled,
|
|
126
121
|
"tabindex": _vm.disabled ? null : -1
|
|
@@ -144,7 +139,7 @@ var render = function render2() {
|
|
|
144
139
|
staticClass: "tiny-dropdown-item__content tiny-dropdown-menu__item-content"
|
|
145
140
|
}, [_vm.icon ? _c(_vm.icon, {
|
|
146
141
|
tag: "component",
|
|
147
|
-
staticClass: "tiny-svg-size"
|
|
142
|
+
staticClass: "tiny-svg-size tiny-dropdown-item__pre-icon"
|
|
148
143
|
}) : _vm._e(), _c("span", {
|
|
149
144
|
staticClass: "tiny-dropdown-item__label"
|
|
150
145
|
}, [_vm._t("default", function() {
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.19.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-directive": "~2.
|
|
14
|
-
"@opentiny/vue-icon": "~2.
|
|
15
|
-
"@opentiny/vue-popup": "~2.
|
|
16
|
-
"@opentiny/vue-renderless": "~3.
|
|
17
|
-
"@opentiny/vue-theme": "~3.
|
|
18
|
-
"@opentiny/vue-theme-mobile": "~3.
|
|
11
|
+
"@opentiny/vue-button": "~2.19.0",
|
|
12
|
+
"@opentiny/vue-common": "~2.19.0",
|
|
13
|
+
"@opentiny/vue-directive": "~2.19.0",
|
|
14
|
+
"@opentiny/vue-icon": "~2.19.0",
|
|
15
|
+
"@opentiny/vue-popup": "~2.19.0",
|
|
16
|
+
"@opentiny/vue-renderless": "~3.19.0",
|
|
17
|
+
"@opentiny/vue-theme": "~3.19.0",
|
|
18
|
+
"@opentiny/vue-theme-mobile": "~3.19.0"
|
|
19
19
|
},
|
|
20
20
|
"types": "index.d.ts",
|
|
21
21
|
"scripts": {
|
package/src/index.d.ts
CHANGED
|
@@ -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)[];
|