@opentinyvue/vue-dropdown-menu 2.21.0 → 3.21.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-first.js +79 -90
- package/lib/mobile.js +111 -99
- package/lib/pc.js +80 -79
- package/package.json +5 -5
- package/src/index.d.ts +138 -1
- package/src/mobile-first.vue.d.ts +52 -1
- package/src/mobile.vue.d.ts +58 -1
- package/src/pc.vue.d.ts +56 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/dropdown-menu/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import Tooltip from '@opentinyvue/vue-tooltip';
|
|
4
|
+
import { resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createVNode, renderSlot, createCommentVNode, vShow } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
+
};
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var originalRender = options.render;
|
|
20
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
21
|
-
hook.call(context);
|
|
22
|
-
return originalRender(h, context);
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function _unsupportedIterableToArray(r, a) {
|
|
19
|
+
if (r) {
|
|
20
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
24
|
}
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
+
var target = sfc.__vccOpts || sfc;
|
|
32
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
+
target[key] = val;
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
34
38
|
|
|
35
|
-
var
|
|
39
|
+
var _sfc_main = defineComponent({
|
|
36
40
|
props: [].concat(props, ["visibleArrow", "arrowOffset", "placement", "popperClass", "popperAppendToBody", "checkedStatus", "multiStage", "maxHeight"]),
|
|
37
41
|
emits: ["menu-item-click", "created"],
|
|
38
42
|
components: {
|
|
@@ -47,69 +51,54 @@ var __vue2_script = defineComponent({
|
|
|
47
51
|
});
|
|
48
52
|
}
|
|
49
53
|
});
|
|
50
|
-
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
expression: "state.showContent"
|
|
98
|
-
}
|
|
99
|
-
}), _vm.state.initShowPopper || _vm.state.showPopper ? [_vm._t("default", null, {
|
|
100
|
-
"selectedIndex": _vm.state.selectedIndex
|
|
101
|
-
})] : _vm._e()], 2)]);
|
|
102
|
-
};
|
|
103
|
-
var staticRenderFns = [];
|
|
104
|
-
var __cssModules = {};
|
|
105
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
106
|
-
function __vue2_injectStyles(context) {
|
|
107
|
-
for (var o in __cssModules) {
|
|
108
|
-
this[o] = __cssModules[o];
|
|
109
|
-
}
|
|
54
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
55
|
+
var _component_tiny_tooltip = resolveComponent("tiny-tooltip");
|
|
56
|
+
return openBlock(), createBlock(Transition, {
|
|
57
|
+
name: "tiny-zoom-in-top",
|
|
58
|
+
duration: 150,
|
|
59
|
+
onAfterLeave: _ctx.doDestroy,
|
|
60
|
+
persisted: ""
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(function() {
|
|
63
|
+
return [withDirectives(createElementVNode(
|
|
64
|
+
"ul",
|
|
65
|
+
{
|
|
66
|
+
"data-tag": "tiny-dropdown-menu",
|
|
67
|
+
class: normalizeClass(_ctx.m("min-w-[theme(spacing.18)] max-w-[theme(spacing.52)] absoulte bg-color-bg-1", {
|
|
68
|
+
"py-1.5": _ctx.state.size === "medium"
|
|
69
|
+
}, {
|
|
70
|
+
"py-1.5": _ctx.state.size === "small"
|
|
71
|
+
}, {
|
|
72
|
+
"py-0.75": _ctx.state.size === "mini"
|
|
73
|
+
}, {
|
|
74
|
+
"overflow-x-hidden scrollbar-size-0": _ctx.maxHeight
|
|
75
|
+
}, _ctx.multiStage ? "!block rounded-none" : "rounded py-1 shadow-sm sm:shadow-md px-1", _ctx.state.canvasHeight ? "sm:mb-6" : !_ctx.multiStage && "sm:my-1 my-2", _ctx.popperClass)),
|
|
76
|
+
style: normalizeStyle({
|
|
77
|
+
maxHeight: _ctx.maxHeight + "px"
|
|
78
|
+
})
|
|
79
|
+
},
|
|
80
|
+
[createVNode(_component_tiny_tooltip, {
|
|
81
|
+
ref: "tooltip",
|
|
82
|
+
effect: "light",
|
|
83
|
+
content: _ctx.state.label,
|
|
84
|
+
placement: "top-start",
|
|
85
|
+
manual: true,
|
|
86
|
+
modelValue: _ctx.state.showContent,
|
|
87
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
88
|
+
return _ctx.state.showContent = $event;
|
|
89
|
+
})
|
|
90
|
+
}, null, 8, ["content", "modelValue"]), _ctx.state.initShowPopper || _ctx.state.showPopper ? renderSlot(_ctx.$slots, "default", {
|
|
91
|
+
key: 0,
|
|
92
|
+
selectedIndex: _ctx.state.selectedIndex
|
|
93
|
+
}) : createCommentVNode("v-if", true)],
|
|
94
|
+
6
|
|
95
|
+
/* CLASS, STYLE */
|
|
96
|
+
), [[vShow, _ctx.state.showPopper]])];
|
|
97
|
+
}),
|
|
98
|
+
_: 3
|
|
99
|
+
/* FORWARDED */
|
|
100
|
+
}, 8, ["onAfterLeave"]);
|
|
110
101
|
}
|
|
111
|
-
var mobileFirst = /* @__PURE__ */
|
|
112
|
-
return __component__.exports;
|
|
113
|
-
}();
|
|
102
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
114
103
|
|
|
115
104
|
export { mobileFirst as default };
|
package/lib/mobile.js
CHANGED
|
@@ -3,38 +3,42 @@ import { defineComponent, props, directive, setup } from '@opentinyvue/vue-commo
|
|
|
3
3
|
import { iconUp, iconDown, iconUnfilter, iconSort, iconDeltaDown, iconDeltaUp } from '@opentinyvue/vue-icon';
|
|
4
4
|
import Clickoutside from '@opentinyvue/vue-renderless/common/deps/clickoutside';
|
|
5
5
|
import '@opentinyvue/vue-theme-mobile/dropdown-menu/index.css';
|
|
6
|
+
import { resolveComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, Fragment, renderList, withDirectives, normalizeClass, normalizeStyle, toDisplayString, createVNode, createBlock, resolveDynamicComponent, renderSlot } from 'vue';
|
|
6
7
|
|
|
7
|
-
function
|
|
8
|
-
var
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
9
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
10
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
11
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
12
|
+
t && (r = t);
|
|
13
|
+
var o = 0;
|
|
14
|
+
return function() {
|
|
15
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
16
|
+
};
|
|
13
17
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var originalRender = options.render;
|
|
22
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
23
|
-
hook.call(context);
|
|
24
|
-
return originalRender(h, context);
|
|
25
|
-
};
|
|
26
|
-
} else {
|
|
27
|
-
var existing = options.beforeCreate;
|
|
28
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
29
|
-
}
|
|
18
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19
|
+
}
|
|
20
|
+
function _unsupportedIterableToArray(r, a) {
|
|
21
|
+
if (r) {
|
|
22
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
23
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
24
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
30
25
|
}
|
|
31
|
-
return {
|
|
32
|
-
exports: scriptExports,
|
|
33
|
-
options
|
|
34
|
-
};
|
|
35
26
|
}
|
|
27
|
+
function _arrayLikeToArray(r, a) {
|
|
28
|
+
(null == a || a > r.length) && (a = r.length);
|
|
29
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
33
|
+
var target = sfc.__vccOpts || sfc;
|
|
34
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
35
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
36
|
+
target[key] = val;
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
36
40
|
|
|
37
|
-
var
|
|
41
|
+
var _sfc_main = defineComponent({
|
|
38
42
|
props: [].concat(props, ["activeColor", "closeOnClickOutside", "closeOnClickOverlay", "direction", "duration", "overlay", "zIndex"]),
|
|
39
43
|
components: {
|
|
40
44
|
IconUp: iconUp(),
|
|
@@ -57,79 +61,87 @@ var __vue2_script = defineComponent({
|
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
63
|
});
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
var _c = _vm._self._c || _h;
|
|
64
|
-
return _c("div", {
|
|
65
|
-
ref: "menu",
|
|
66
|
-
staticClass: "tiny-mobile-dropdown-menu"
|
|
67
|
-
}, [_c("div", {
|
|
68
|
-
staticClass: "tiny-mobile-dropdown-menu__bar tiny-mobile-dropdown-menu__bar--opened"
|
|
69
|
-
}, _vm._l(_vm.state.children, function(item, index) {
|
|
70
|
-
return _c("div", {
|
|
71
|
-
directives: [{
|
|
72
|
-
name: "clickoutside",
|
|
73
|
-
rawName: "v-clickoutside",
|
|
74
|
-
value: _vm.clickOutside,
|
|
75
|
-
expression: "clickOutside"
|
|
76
|
-
}],
|
|
77
|
-
key: index,
|
|
78
|
-
staticClass: "tiny-mobile-dropdown-menu__item",
|
|
79
|
-
class: [item.disabled ? "is-disabled" : "", item.titleClass],
|
|
80
|
-
attrs: {
|
|
81
|
-
"role": "button",
|
|
82
|
-
"tabindex": item.disabled ? -1 : 0
|
|
83
|
-
},
|
|
84
|
-
on: {
|
|
85
|
-
"click": function click($event) {
|
|
86
|
-
return _vm.toggleItem(index, item);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}, [_c("div", {
|
|
90
|
-
staticClass: "tiny-mobile-dropdown-menu__title",
|
|
91
|
-
class: {
|
|
92
|
-
"is-active": item.state.showPopup,
|
|
93
|
-
"is-down": item.state.showPopup === (_vm.direction === "down")
|
|
94
|
-
},
|
|
95
|
-
style: {
|
|
96
|
-
color: item.state.showPopup ? _vm.activeColor : ""
|
|
97
|
-
}
|
|
98
|
-
}, [_c("div", {
|
|
99
|
-
staticClass: "tiny-mobile-dropdown-menu__title-wrap"
|
|
100
|
-
}, [!_vm.slots.title ? _c("span", [_c("span", {
|
|
101
|
-
staticClass: "tiny-mobile-dropdown-menu__title-text"
|
|
102
|
-
}, [_vm._v(_vm._s(item.state.displayTitle))]), item.type === "sort" ? _c("span", {
|
|
103
|
-
staticClass: "tiny-mobile-dropdown-menu__title-icon"
|
|
104
|
-
}, [_c("icon-delta-up", {
|
|
105
|
-
staticClass: "up",
|
|
106
|
-
attrs: {
|
|
107
|
-
"fill": item.state.sort === "asc" ? _vm.activeColor ? _vm.activeColor : "#f36f64" : "#ccc"
|
|
108
|
-
}
|
|
109
|
-
}), _c("icon-delta-down", {
|
|
110
|
-
staticClass: "down",
|
|
111
|
-
attrs: {
|
|
112
|
-
"fill": item.state.sort === "desc" ? _vm.activeColor ? _vm.activeColor : "#f36f64" : "#ccc"
|
|
113
|
-
}
|
|
114
|
-
})], 1) : _c(item.type === "filter" ? "IconUnfilter" : item.type === "selection" && item.state.showPopup ? "IconUp" : "IconDown", {
|
|
115
|
-
tag: "component",
|
|
116
|
-
class: [item.type === "filter" ? "filter-icon" : ""],
|
|
117
|
-
attrs: {
|
|
118
|
-
"fill": item.state.showPopup ? _vm.activeColor ? _vm.activeColor : "#f36f64" : "#ccc"
|
|
119
|
-
}
|
|
120
|
-
})], 1) : _vm._t("title")], 2)])]);
|
|
121
|
-
}), 0), _vm._t("default")], 2);
|
|
64
|
+
var _hoisted_1 = {
|
|
65
|
+
ref: "menu",
|
|
66
|
+
class: "tiny-mobile-dropdown-menu"
|
|
122
67
|
};
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
68
|
+
var _hoisted_2 = {
|
|
69
|
+
class: "tiny-mobile-dropdown-menu__bar tiny-mobile-dropdown-menu__bar--opened"
|
|
70
|
+
};
|
|
71
|
+
var _hoisted_3 = ["tabindex", "onClick"];
|
|
72
|
+
var _hoisted_4 = {
|
|
73
|
+
class: "tiny-mobile-dropdown-menu__title-wrap"
|
|
74
|
+
};
|
|
75
|
+
var _hoisted_5 = {
|
|
76
|
+
key: 0
|
|
77
|
+
};
|
|
78
|
+
var _hoisted_6 = {
|
|
79
|
+
class: "tiny-mobile-dropdown-menu__title-text"
|
|
80
|
+
};
|
|
81
|
+
var _hoisted_7 = {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "tiny-mobile-dropdown-menu__title-icon"
|
|
84
|
+
};
|
|
85
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
86
|
+
var _component_icon_delta_up = resolveComponent("icon-delta-up");
|
|
87
|
+
var _component_icon_delta_down = resolveComponent("icon-delta-down");
|
|
88
|
+
var _directive_clickoutside = resolveDirective("clickoutside");
|
|
89
|
+
return openBlock(), createElementBlock(
|
|
90
|
+
"div",
|
|
91
|
+
_hoisted_1,
|
|
92
|
+
[createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(
|
|
93
|
+
Fragment,
|
|
94
|
+
null,
|
|
95
|
+
renderList(_ctx.state.children, function(item, index) {
|
|
96
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
97
|
+
key: index,
|
|
98
|
+
role: "button",
|
|
99
|
+
tabindex: item.disabled ? -1 : 0,
|
|
100
|
+
class: normalizeClass(["tiny-mobile-dropdown-menu__item", [item.disabled ? "is-disabled" : "", item.titleClass]]),
|
|
101
|
+
onClick: function onClick($event) {
|
|
102
|
+
return _ctx.toggleItem(index, item);
|
|
103
|
+
}
|
|
104
|
+
}, [createElementVNode(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
class: normalizeClass(["tiny-mobile-dropdown-menu__title", {
|
|
108
|
+
"is-active": item.state.showPopup,
|
|
109
|
+
"is-down": item.state.showPopup === (_ctx.direction === "down")
|
|
110
|
+
}]),
|
|
111
|
+
style: normalizeStyle({
|
|
112
|
+
color: item.state.showPopup ? _ctx.activeColor : ""
|
|
113
|
+
})
|
|
114
|
+
},
|
|
115
|
+
[createElementVNode("div", _hoisted_4, [!_ctx.slots.title ? (openBlock(), createElementBlock("span", _hoisted_5, [createElementVNode(
|
|
116
|
+
"span",
|
|
117
|
+
_hoisted_6,
|
|
118
|
+
toDisplayString(item.state.displayTitle),
|
|
119
|
+
1
|
|
120
|
+
/* TEXT */
|
|
121
|
+
), item.type === "sort" ? (openBlock(), createElementBlock("span", _hoisted_7, [createVNode(_component_icon_delta_up, {
|
|
122
|
+
class: "up",
|
|
123
|
+
fill: item.state.sort === "asc" ? _ctx.activeColor ? _ctx.activeColor : "#f36f64" : "#ccc"
|
|
124
|
+
}, null, 8, ["fill"]), createVNode(_component_icon_delta_down, {
|
|
125
|
+
class: "down",
|
|
126
|
+
fill: item.state.sort === "desc" ? _ctx.activeColor ? _ctx.activeColor : "#f36f64" : "#ccc"
|
|
127
|
+
}, null, 8, ["fill"])])) : (openBlock(), createBlock(resolveDynamicComponent(item.type === "filter" ? "IconUnfilter" : item.type === "selection" && item.state.showPopup ? "IconUp" : "IconDown"), {
|
|
128
|
+
key: 1,
|
|
129
|
+
fill: item.state.showPopup ? _ctx.activeColor ? _ctx.activeColor : "#f36f64" : "#ccc",
|
|
130
|
+
class: normalizeClass([item.type === "filter" ? "filter-icon" : ""])
|
|
131
|
+
}, null, 8, ["fill", "class"]))])) : renderSlot(_ctx.$slots, "title", {
|
|
132
|
+
key: 1
|
|
133
|
+
})])],
|
|
134
|
+
6
|
|
135
|
+
/* CLASS, STYLE */
|
|
136
|
+
)], 10, _hoisted_3)), [[_directive_clickoutside, _ctx.clickOutside]]);
|
|
137
|
+
}),
|
|
138
|
+
128
|
|
139
|
+
/* KEYED_FRAGMENT */
|
|
140
|
+
))]), renderSlot(_ctx.$slots, "default")],
|
|
141
|
+
512
|
|
142
|
+
/* NEED_PATCH */
|
|
143
|
+
);
|
|
130
144
|
}
|
|
131
|
-
var mobile = /* @__PURE__ */
|
|
132
|
-
return __component__.exports;
|
|
133
|
-
}();
|
|
145
|
+
var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
134
146
|
|
|
135
147
|
export { mobile as default };
|
package/lib/pc.js
CHANGED
|
@@ -2,38 +2,42 @@ import { renderless, api } from '@opentinyvue/vue-renderless/dropdown-menu/vue';
|
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import DropdownItem from '@opentinyvue/vue-dropdown-item';
|
|
4
4
|
import '@opentinyvue/vue-theme/dropdown-menu/index.css';
|
|
5
|
+
import { resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, renderSlot, createElementBlock, Fragment, renderList, createCommentVNode, vShow } from 'vue';
|
|
5
6
|
|
|
6
|
-
function
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
8
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
10
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
11
|
+
t && (r = t);
|
|
12
|
+
var o = 0;
|
|
13
|
+
return function() {
|
|
14
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var originalRender = options.render;
|
|
21
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
22
|
-
hook.call(context);
|
|
23
|
-
return originalRender(h, context);
|
|
24
|
-
};
|
|
25
|
-
} else {
|
|
26
|
-
var existing = options.beforeCreate;
|
|
27
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
28
|
-
}
|
|
17
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
+
}
|
|
19
|
+
function _unsupportedIterableToArray(r, a) {
|
|
20
|
+
if (r) {
|
|
21
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
22
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
23
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
29
24
|
}
|
|
30
|
-
return {
|
|
31
|
-
exports: scriptExports,
|
|
32
|
-
options
|
|
33
|
-
};
|
|
34
25
|
}
|
|
26
|
+
function _arrayLikeToArray(r, a) {
|
|
27
|
+
(null == a || a > r.length) && (a = r.length);
|
|
28
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
32
|
+
var target = sfc.__vccOpts || sfc;
|
|
33
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
34
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
35
|
+
target[key] = val;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
};
|
|
35
39
|
|
|
36
|
-
var
|
|
40
|
+
var _sfc_main = defineComponent({
|
|
37
41
|
components: {
|
|
38
42
|
TinyDropdownItem: DropdownItem
|
|
39
43
|
},
|
|
@@ -58,59 +62,56 @@ var __vue2_script = defineComponent({
|
|
|
58
62
|
});
|
|
59
63
|
}
|
|
60
64
|
});
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"name": "tiny-zoom-in-top"
|
|
68
|
-
},
|
|
69
|
-
on: {
|
|
70
|
-
"after-leave": _vm.doDestroy
|
|
71
|
-
}
|
|
72
|
-
}, [_c("ul", {
|
|
73
|
-
directives: [{
|
|
74
|
-
name: "show",
|
|
75
|
-
rawName: "v-show",
|
|
76
|
-
value: _vm.state.showPopper,
|
|
77
|
-
expression: "state.showPopper"
|
|
78
|
-
}],
|
|
79
|
-
staticClass: "tiny-dropdown-menu tiny-popper",
|
|
80
|
-
class: [_vm.state.size && "tiny-dropdown-menu--" + _vm.state.size, _vm.popperClass],
|
|
81
|
-
on: {
|
|
82
|
-
"mouseenter": _vm.handleMouseenter,
|
|
83
|
-
"mouseleave": _vm.handleMouseleave
|
|
84
|
-
}
|
|
85
|
-
}, [_vm.state.initShowPopper || _vm.state.showPopper ? [_vm._t("default", function() {
|
|
86
|
-
return _vm._l(_vm.options, function(item, index) {
|
|
87
|
-
return _c("tiny-dropdown-item", {
|
|
88
|
-
key: index,
|
|
89
|
-
attrs: {
|
|
90
|
-
"item-data": item,
|
|
91
|
-
"label": item[_vm.textField],
|
|
92
|
-
"icon": item.icon,
|
|
93
|
-
"disabled": item.disabled,
|
|
94
|
-
"divided": item.divided,
|
|
95
|
-
"tip": item.tip,
|
|
96
|
-
"tip-position": item.tipPosition
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
});
|
|
65
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
+
var _component_tiny_dropdown_item = resolveComponent("tiny-dropdown-item");
|
|
67
|
+
return openBlock(), createBlock(Transition, {
|
|
68
|
+
name: "tiny-zoom-in-top",
|
|
69
|
+
onAfterLeave: _ctx.doDestroy,
|
|
70
|
+
persisted: ""
|
|
100
71
|
}, {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
72
|
+
default: withCtx(function() {
|
|
73
|
+
return [withDirectives(createElementVNode(
|
|
74
|
+
"ul",
|
|
75
|
+
{
|
|
76
|
+
class: normalizeClass(["tiny-dropdown-menu tiny-popper", [_ctx.state.size && "tiny-dropdown-menu--" + _ctx.state.size, _ctx.popperClass]]),
|
|
77
|
+
onMouseenter: _cache[0] || (_cache[0] = function() {
|
|
78
|
+
return _ctx.handleMouseenter && _ctx.handleMouseenter.apply(_ctx, arguments);
|
|
79
|
+
}),
|
|
80
|
+
onMouseleave: _cache[1] || (_cache[1] = function() {
|
|
81
|
+
return _ctx.handleMouseleave && _ctx.handleMouseleave.apply(_ctx, arguments);
|
|
82
|
+
})
|
|
83
|
+
},
|
|
84
|
+
[_ctx.state.initShowPopper || _ctx.state.showPopper ? renderSlot(_ctx.$slots, "default", {
|
|
85
|
+
key: 0,
|
|
86
|
+
selectedIndex: _ctx.state.selectedIndex
|
|
87
|
+
}, function() {
|
|
88
|
+
return [(openBlock(true), createElementBlock(
|
|
89
|
+
Fragment,
|
|
90
|
+
null,
|
|
91
|
+
renderList(_ctx.options, function(item, index) {
|
|
92
|
+
return openBlock(), createBlock(_component_tiny_dropdown_item, {
|
|
93
|
+
"item-data": item,
|
|
94
|
+
label: item[_ctx.textField],
|
|
95
|
+
key: index,
|
|
96
|
+
icon: item.icon,
|
|
97
|
+
disabled: item.disabled,
|
|
98
|
+
divided: item.divided,
|
|
99
|
+
tip: item.tip,
|
|
100
|
+
"tip-position": item.tipPosition
|
|
101
|
+
}, null, 8, ["item-data", "label", "icon", "disabled", "divided", "tip", "tip-position"]);
|
|
102
|
+
}),
|
|
103
|
+
128
|
|
104
|
+
/* KEYED_FRAGMENT */
|
|
105
|
+
))];
|
|
106
|
+
}) : createCommentVNode("v-if", true)],
|
|
107
|
+
34
|
|
108
|
+
/* CLASS, NEED_HYDRATION */
|
|
109
|
+
), [[vShow, _ctx.state.showPopper]])];
|
|
110
|
+
}),
|
|
111
|
+
_: 3
|
|
112
|
+
/* FORWARDED */
|
|
113
|
+
}, 8, ["onAfterLeave"]);
|
|
111
114
|
}
|
|
112
|
-
var pc = /* @__PURE__ */
|
|
113
|
-
return __component__.exports;
|
|
114
|
-
}();
|
|
115
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
115
116
|
|
|
116
117
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-dropdown-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
12
|
-
"@opentinyvue/vue-icon": "~
|
|
13
|
-
"@opentinyvue/vue-tooltip": "~
|
|
11
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
12
|
+
"@opentinyvue/vue-icon": "~3.21.0",
|
|
13
|
+
"@opentinyvue/vue-tooltip": "~3.21.0",
|
|
14
14
|
"@opentinyvue/vue-theme-mobile": "~3.21.0",
|
|
15
|
-
"@opentinyvue/vue-dropdown-item": "~
|
|
15
|
+
"@opentinyvue/vue-dropdown-item": "~3.21.0",
|
|
16
16
|
"@opentinyvue/vue-theme": "~3.21.0"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
package/src/index.d.ts
CHANGED
|
@@ -70,5 +70,142 @@ export declare const dropdownMenuProps: {
|
|
|
70
70
|
tiny_theme: StringConstructor;
|
|
71
71
|
tiny_chart_theme: ObjectConstructor;
|
|
72
72
|
};
|
|
73
|
-
declare const _default:
|
|
73
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
74
|
+
multiStage: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
checkedStatus: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
visibleArrow: BooleanConstructor;
|
|
83
|
+
arrowOffset: {
|
|
84
|
+
type: NumberConstructor;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
placement: StringConstructor;
|
|
88
|
+
popperClass: StringConstructor;
|
|
89
|
+
popperAppendToBody: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
activeColor: StringConstructor;
|
|
94
|
+
closeOnClickOutside: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
closeOnClickOverlay: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
direction: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
duration: {
|
|
107
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
overlay: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
zIndex: (StringConstructor | NumberConstructor)[];
|
|
115
|
+
maxHeight: {
|
|
116
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
options: {
|
|
120
|
+
type: ArrayConstructor;
|
|
121
|
+
default: () => never[];
|
|
122
|
+
};
|
|
123
|
+
textField: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
tiny_mode: StringConstructor;
|
|
128
|
+
tiny_mode_root: BooleanConstructor;
|
|
129
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
130
|
+
tiny_renderless: FunctionConstructor;
|
|
131
|
+
tiny_theme: StringConstructor;
|
|
132
|
+
tiny_chart_theme: ObjectConstructor;
|
|
133
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
136
|
+
multiStage: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
checkedStatus: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
visibleArrow: BooleanConstructor;
|
|
145
|
+
arrowOffset: {
|
|
146
|
+
type: NumberConstructor;
|
|
147
|
+
default: number;
|
|
148
|
+
};
|
|
149
|
+
placement: StringConstructor;
|
|
150
|
+
popperClass: StringConstructor;
|
|
151
|
+
popperAppendToBody: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
activeColor: StringConstructor;
|
|
156
|
+
closeOnClickOutside: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
closeOnClickOverlay: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
direction: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
duration: {
|
|
169
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
170
|
+
default: number;
|
|
171
|
+
};
|
|
172
|
+
overlay: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
zIndex: (StringConstructor | NumberConstructor)[];
|
|
177
|
+
maxHeight: {
|
|
178
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
181
|
+
options: {
|
|
182
|
+
type: ArrayConstructor;
|
|
183
|
+
default: () => never[];
|
|
184
|
+
};
|
|
185
|
+
textField: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
tiny_mode: StringConstructor;
|
|
190
|
+
tiny_mode_root: BooleanConstructor;
|
|
191
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
192
|
+
tiny_renderless: FunctionConstructor;
|
|
193
|
+
tiny_theme: StringConstructor;
|
|
194
|
+
tiny_chart_theme: ObjectConstructor;
|
|
195
|
+
}>>, {
|
|
196
|
+
tiny_mode_root: boolean;
|
|
197
|
+
multiStage: boolean;
|
|
198
|
+
checkedStatus: boolean;
|
|
199
|
+
visibleArrow: boolean;
|
|
200
|
+
arrowOffset: number;
|
|
201
|
+
popperAppendToBody: boolean;
|
|
202
|
+
closeOnClickOutside: boolean;
|
|
203
|
+
closeOnClickOverlay: boolean;
|
|
204
|
+
direction: string;
|
|
205
|
+
duration: string | number;
|
|
206
|
+
overlay: boolean;
|
|
207
|
+
maxHeight: string | number;
|
|
208
|
+
options: unknown[];
|
|
209
|
+
textField: string;
|
|
210
|
+
}, {}>;
|
|
74
211
|
export default _default;
|
|
@@ -1,2 +1,53 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
tiny_mode?: any;
|
|
3
|
+
tiny_mode_root?: any;
|
|
4
|
+
tiny_template?: any;
|
|
5
|
+
tiny_renderless?: any;
|
|
6
|
+
_constants?: any;
|
|
7
|
+
tiny_theme?: any;
|
|
8
|
+
tiny_chart_theme?: any;
|
|
9
|
+
multiStage?: any;
|
|
10
|
+
checkedStatus?: any;
|
|
11
|
+
visibleArrow?: any;
|
|
12
|
+
arrowOffset?: any;
|
|
13
|
+
placement?: any;
|
|
14
|
+
popperClass?: any;
|
|
15
|
+
popperAppendToBody?: any;
|
|
16
|
+
maxHeight?: any;
|
|
17
|
+
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("created" | "menu-item-click")[], "created" | "menu-item-click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
18
|
+
tiny_mode?: any;
|
|
19
|
+
tiny_mode_root?: any;
|
|
20
|
+
tiny_template?: any;
|
|
21
|
+
tiny_renderless?: any;
|
|
22
|
+
_constants?: any;
|
|
23
|
+
tiny_theme?: any;
|
|
24
|
+
tiny_chart_theme?: any;
|
|
25
|
+
multiStage?: any;
|
|
26
|
+
checkedStatus?: any;
|
|
27
|
+
visibleArrow?: any;
|
|
28
|
+
arrowOffset?: any;
|
|
29
|
+
placement?: any;
|
|
30
|
+
popperClass?: any;
|
|
31
|
+
popperAppendToBody?: any;
|
|
32
|
+
maxHeight?: any;
|
|
33
|
+
}>>> & {
|
|
34
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
"onMenu-item-click"?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
readonly tiny_mode?: any;
|
|
38
|
+
readonly tiny_mode_root?: any;
|
|
39
|
+
readonly tiny_template?: any;
|
|
40
|
+
readonly tiny_renderless?: any;
|
|
41
|
+
readonly _constants?: any;
|
|
42
|
+
readonly tiny_theme?: any;
|
|
43
|
+
readonly tiny_chart_theme?: any;
|
|
44
|
+
readonly multiStage?: any;
|
|
45
|
+
readonly checkedStatus?: any;
|
|
46
|
+
readonly visibleArrow?: any;
|
|
47
|
+
readonly arrowOffset?: any;
|
|
48
|
+
readonly placement?: any;
|
|
49
|
+
readonly popperClass?: any;
|
|
50
|
+
readonly popperAppendToBody?: any;
|
|
51
|
+
readonly maxHeight?: any;
|
|
52
|
+
}, {}>;
|
|
2
53
|
export default _default;
|
package/src/mobile.vue.d.ts
CHANGED
|
@@ -1,2 +1,59 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
tiny_mode?: any;
|
|
3
|
+
tiny_mode_root?: any;
|
|
4
|
+
tiny_template?: any;
|
|
5
|
+
tiny_renderless?: any;
|
|
6
|
+
_constants?: any;
|
|
7
|
+
tiny_theme?: any;
|
|
8
|
+
tiny_chart_theme?: any;
|
|
9
|
+
activeColor?: any;
|
|
10
|
+
closeOnClickOutside?: any;
|
|
11
|
+
closeOnClickOverlay?: any;
|
|
12
|
+
direction?: any;
|
|
13
|
+
duration?: any;
|
|
14
|
+
overlay?: any;
|
|
15
|
+
zIndex?: any;
|
|
16
|
+
}>, {
|
|
17
|
+
t: (this: any, path: any, options?: any) => any;
|
|
18
|
+
vm: any;
|
|
19
|
+
f: (props: any, attrs?: {}) => {};
|
|
20
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
21
|
+
d: (props: any) => void;
|
|
22
|
+
dp: (props: any) => void;
|
|
23
|
+
gcls: (key: any) => any;
|
|
24
|
+
m: (...cssClasses: any[]) => string;
|
|
25
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("created" | "open")[], "created" | "open", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
26
|
+
tiny_mode?: any;
|
|
27
|
+
tiny_mode_root?: any;
|
|
28
|
+
tiny_template?: any;
|
|
29
|
+
tiny_renderless?: any;
|
|
30
|
+
_constants?: any;
|
|
31
|
+
tiny_theme?: any;
|
|
32
|
+
tiny_chart_theme?: any;
|
|
33
|
+
activeColor?: any;
|
|
34
|
+
closeOnClickOutside?: any;
|
|
35
|
+
closeOnClickOverlay?: any;
|
|
36
|
+
direction?: any;
|
|
37
|
+
duration?: any;
|
|
38
|
+
overlay?: any;
|
|
39
|
+
zIndex?: any;
|
|
40
|
+
}>>> & {
|
|
41
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
readonly tiny_mode?: any;
|
|
45
|
+
readonly tiny_mode_root?: any;
|
|
46
|
+
readonly tiny_template?: any;
|
|
47
|
+
readonly tiny_renderless?: any;
|
|
48
|
+
readonly _constants?: any;
|
|
49
|
+
readonly tiny_theme?: any;
|
|
50
|
+
readonly tiny_chart_theme?: any;
|
|
51
|
+
readonly activeColor?: any;
|
|
52
|
+
readonly closeOnClickOutside?: any;
|
|
53
|
+
readonly closeOnClickOverlay?: any;
|
|
54
|
+
readonly direction?: any;
|
|
55
|
+
readonly duration?: any;
|
|
56
|
+
readonly overlay?: any;
|
|
57
|
+
readonly zIndex?: any;
|
|
58
|
+
}, {}>;
|
|
2
59
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IDropdownMenuApi } from '@opentinyvue/vue-renderless/types/dropdown-menu.type';
|
|
2
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
3
|
+
tiny_mode?: any;
|
|
4
|
+
tiny_mode_root?: any;
|
|
5
|
+
tiny_template?: any;
|
|
6
|
+
tiny_renderless?: any;
|
|
7
|
+
_constants?: any;
|
|
8
|
+
tiny_theme?: any;
|
|
9
|
+
tiny_chart_theme?: any;
|
|
10
|
+
checkedStatus?: any;
|
|
11
|
+
visibleArrow?: any;
|
|
12
|
+
arrowOffset?: any;
|
|
13
|
+
placement?: any;
|
|
14
|
+
popperClass?: any;
|
|
15
|
+
popperAppendToBody?: any;
|
|
16
|
+
options?: any;
|
|
17
|
+
textField?: any;
|
|
18
|
+
}>, IDropdownMenuApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "mouseenter" | "mouseleave" | "update:modelValue" | "created")[], "click" | "mouseenter" | "mouseleave" | "update:modelValue" | "created", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
19
|
+
tiny_mode?: any;
|
|
20
|
+
tiny_mode_root?: any;
|
|
21
|
+
tiny_template?: any;
|
|
22
|
+
tiny_renderless?: any;
|
|
23
|
+
_constants?: any;
|
|
24
|
+
tiny_theme?: any;
|
|
25
|
+
tiny_chart_theme?: any;
|
|
26
|
+
checkedStatus?: any;
|
|
27
|
+
visibleArrow?: any;
|
|
28
|
+
arrowOffset?: any;
|
|
29
|
+
placement?: any;
|
|
30
|
+
popperClass?: any;
|
|
31
|
+
popperAppendToBody?: any;
|
|
32
|
+
options?: any;
|
|
33
|
+
textField?: any;
|
|
34
|
+
}>>> & {
|
|
35
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onMouseenter?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
readonly tiny_mode?: any;
|
|
42
|
+
readonly tiny_mode_root?: any;
|
|
43
|
+
readonly tiny_template?: any;
|
|
44
|
+
readonly tiny_renderless?: any;
|
|
45
|
+
readonly _constants?: any;
|
|
46
|
+
readonly tiny_theme?: any;
|
|
47
|
+
readonly tiny_chart_theme?: any;
|
|
48
|
+
readonly checkedStatus?: any;
|
|
49
|
+
readonly visibleArrow?: any;
|
|
50
|
+
readonly arrowOffset?: any;
|
|
51
|
+
readonly placement?: any;
|
|
52
|
+
readonly popperClass?: any;
|
|
53
|
+
readonly popperAppendToBody?: any;
|
|
54
|
+
readonly options?: any;
|
|
55
|
+
readonly textField?: any;
|
|
56
|
+
}, {}>;
|
|
2
57
|
export default _default;
|