@opentiny/vue-dropdown-item 2.5.0 → 2.6.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/mobile.js +1 -1
- package/lib/pc.js +1 -30
- package/package.json +8 -8
package/lib/index.js
CHANGED
package/lib/mobile.js
CHANGED
|
@@ -42,7 +42,7 @@ var script = {
|
|
|
42
42
|
TinyPopup: Popup,
|
|
43
43
|
TinyButton: Button
|
|
44
44
|
},
|
|
45
|
-
emits: ['update:modelValue'],
|
|
45
|
+
emits: ['update:modelValue', 'open', 'opened', 'click', 'change', 'closed', 'close', 'reset', 'confirm', 'item-click'],
|
|
46
46
|
setup: function setup$1(props, context) {
|
|
47
47
|
return setup({
|
|
48
48
|
props: props,
|
package/lib/pc.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { $prefix, setup, props } 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 '@opentiny/vue-theme/dropdown-item/index.css';
|
|
4
5
|
|
|
5
6
|
function _toConsumableArray(arr) {
|
|
6
7
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
@@ -28,36 +29,6 @@ function _nonIterableSpread() {
|
|
|
28
29
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
function styleInject(css, ref) {
|
|
32
|
-
if ( ref === void 0 ) ref = {};
|
|
33
|
-
var insertAt = ref.insertAt;
|
|
34
|
-
|
|
35
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
36
|
-
|
|
37
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
38
|
-
var style = document.createElement('style');
|
|
39
|
-
style.type = 'text/css';
|
|
40
|
-
|
|
41
|
-
if (insertAt === 'top') {
|
|
42
|
-
if (head.firstChild) {
|
|
43
|
-
head.insertBefore(style, head.firstChild);
|
|
44
|
-
} else {
|
|
45
|
-
head.appendChild(style);
|
|
46
|
-
}
|
|
47
|
-
} else {
|
|
48
|
-
head.appendChild(style);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (style.styleSheet) {
|
|
52
|
-
style.styleSheet.cssText = css;
|
|
53
|
-
} else {
|
|
54
|
-
style.appendChild(document.createTextNode(css));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
var css_248z = "[class*=tiny-] li.tiny-dropdown-menu__item{--ti-dropdown-menu-item-hover-bg-color:var(--ti-base-color-hover-background);--ti-dropdown-menu-item-hover-text-color:var(--ti-base-color-brand-6);--ti-dropdown-menu-item-active-bg-color:var(--ti-base-color-brand-6);--ti-dropdown-menu-item-active-text-color:var(--ti-base-color-white);--ti-dropdown-menu-item-disabled-text-color:var(--ti-common-color-text-disabled);--ti-dropdown-menu-item-text-color:#333;--ti-dropdown-menu-item-height:1.5;--ti-dropdown-menu-item-padding-vertical:6px;--ti-dropdown-menu-item-padding-horizontal:20px;--ti-dropdown-menu-item-border-radius:0;--ti-dropdown-menu-item-max-width:130px;--ti-dropdown-menu-item-divided-bg-color:var(--ti-base-color-white);--ti-dropdown-menu-item-divided-margin-top:var(--ti-common-space-base);list-style:none;line-height:var(--ti-dropdown-menu-item-height);padding:var(--ti-dropdown-menu-item-padding-vertical) var(--ti-dropdown-menu-item-padding-horizontal);margin:0;font-size:var(--ti-common-font-size-base);color:var(--ti-dropdown-menu-item-text-color);cursor:pointer;outline:0;position:relative;word-break:break-all;max-width:var(--ti-dropdown-menu-item-max-width);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[class*=tiny-] li.tiny-dropdown-menu__item .tiny-dropdown-menu__item--child{position:absolute;right:100%;top:0;display:none}[class*=tiny-] li.tiny-dropdown-menu__item:focus,[class*=tiny-] li.tiny-dropdown-menu__item:not(.is-disabled):hover{background-color:var(--ti-dropdown-menu-item-hover-bg-color);color:var(--ti-dropdown-menu-item-hover-text-color);border-radius:var(--ti-dropdown-menu-item-border-radius)}[class*=tiny-] li.tiny-dropdown-menu__item:focus>.tiny-dropdown-menu__item-content svg,[class*=tiny-] li.tiny-dropdown-menu__item:focus>.tiny-dropdown-menu__item-expand svg,[class*=tiny-] li.tiny-dropdown-menu__item:not(.is-disabled):hover>.tiny-dropdown-menu__item-content svg,[class*=tiny-] li.tiny-dropdown-menu__item:not(.is-disabled):hover>.tiny-dropdown-menu__item-expand svg{fill:var(--ti-dropdown-menu-item-hover-text-color)}[class*=tiny-] li.tiny-dropdown-menu__item:focus>.tiny-dropdown-menu__item--child,[class*=tiny-] li.tiny-dropdown-menu__item:not(.is-disabled):hover>.tiny-dropdown-menu__item--child{display:block}[class*=tiny-] li.tiny-dropdown-menu__item:not(.is-disabled):active{background-color:var(--ti-dropdown-menu-item-active-bg-color);color:var(--ti-dropdown-menu-item-active-text-color);border-radius:var(--ti-dropdown-menu-item-border-radius)}[class*=tiny-] li.tiny-dropdown-menu__item:not(.is-disabled):active svg{fill:var(--ti-dropdown-menu-item-active-text-color)}[class*=tiny-] li.tiny-dropdown-menu__item svg{margin-right:5px;margin-top:-2px}[class*=tiny-] li.tiny-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--ti-dropdown-menu-item-disabled-text-color)}[class*=tiny-] li.tiny-dropdown-menu__item .tiny-dropdown-menu__item-expand{display:inline-block;height:100%;margin-left:-20px;width:20px}[class*=tiny-] li.tiny-dropdown-menu__item .tiny-dropdown-menu__item-expand .tiny-svg{width:.6em;height:.6em;margin-left:5px}.tiny-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #e4e7ed}.tiny-dropdown-menu__item--divided:before{height:6px;display:block;margin:0 -20px;background-color:var(--ti-dropdown-menu-item-divided-bg-color)}";
|
|
59
|
-
styleInject(css_248z);
|
|
60
|
-
|
|
61
32
|
var script = {
|
|
62
33
|
name: $prefix + 'DropdownItem',
|
|
63
34
|
componentName: $prefix + 'DropdownItem',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"build:ui3": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../example/build/build-ui.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@opentiny/vue-common": "~2.
|
|
13
|
-
"@opentiny/vue-icon": "~2.
|
|
14
|
-
"@opentiny/vue-renderless": "~3.
|
|
15
|
-
"@opentiny/vue-popup": "~2.
|
|
16
|
-
"@opentiny/vue-button": "~2.
|
|
17
|
-
"@opentiny/vue-theme": "~3.
|
|
18
|
-
"@opentiny/vue-theme-mobile": "~3.
|
|
12
|
+
"@opentiny/vue-common": "~2.6.0",
|
|
13
|
+
"@opentiny/vue-icon": "~2.6.0",
|
|
14
|
+
"@opentiny/vue-renderless": "~3.6.0",
|
|
15
|
+
"@opentiny/vue-popup": "~2.6.0",
|
|
16
|
+
"@opentiny/vue-button": "~2.6.0",
|
|
17
|
+
"@opentiny/vue-theme": "~3.6.0",
|
|
18
|
+
"@opentiny/vue-theme-mobile": "~3.6.0"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"sideEffects": false
|