@opentinyvue/vue-dropdown-menu 2.22.0 → 3.22.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/pc.js +80 -79
- package/package.json +4 -4
- package/src/index.d.ts +138 -1
- package/src/mobile-first.vue.d.ts +52 -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/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.22.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
12
|
-
"@opentinyvue/vue-tooltip": "~
|
|
13
|
-
"@opentinyvue/vue-dropdown-item": "~
|
|
11
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-tooltip": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-dropdown-item": "~3.22.0",
|
|
14
14
|
"@opentinyvue/vue-theme": "~3.22.0"
|
|
15
15
|
},
|
|
16
16
|
"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
|
+
options: unknown[];
|
|
197
|
+
tiny_mode_root: boolean;
|
|
198
|
+
multiStage: boolean;
|
|
199
|
+
checkedStatus: boolean;
|
|
200
|
+
visibleArrow: boolean;
|
|
201
|
+
arrowOffset: number;
|
|
202
|
+
popperAppendToBody: boolean;
|
|
203
|
+
closeOnClickOutside: boolean;
|
|
204
|
+
closeOnClickOverlay: boolean;
|
|
205
|
+
direction: string;
|
|
206
|
+
duration: string | number;
|
|
207
|
+
overlay: boolean;
|
|
208
|
+
maxHeight: string | number;
|
|
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
|
+
placement?: any;
|
|
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
|
+
multiStage?: any;
|
|
11
|
+
checkedStatus?: any;
|
|
12
|
+
visibleArrow?: any;
|
|
13
|
+
arrowOffset?: 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
|
+
placement?: any;
|
|
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
|
+
multiStage?: any;
|
|
27
|
+
checkedStatus?: any;
|
|
28
|
+
visibleArrow?: any;
|
|
29
|
+
arrowOffset?: 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 placement?: any;
|
|
38
|
+
readonly tiny_mode?: any;
|
|
39
|
+
readonly tiny_mode_root?: any;
|
|
40
|
+
readonly tiny_template?: any;
|
|
41
|
+
readonly tiny_renderless?: any;
|
|
42
|
+
readonly _constants?: any;
|
|
43
|
+
readonly tiny_theme?: any;
|
|
44
|
+
readonly tiny_chart_theme?: any;
|
|
45
|
+
readonly multiStage?: any;
|
|
46
|
+
readonly checkedStatus?: any;
|
|
47
|
+
readonly visibleArrow?: any;
|
|
48
|
+
readonly arrowOffset?: any;
|
|
49
|
+
readonly popperClass?: any;
|
|
50
|
+
readonly popperAppendToBody?: any;
|
|
51
|
+
readonly maxHeight?: any;
|
|
52
|
+
}, {}>;
|
|
2
53
|
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
|
+
options?: any;
|
|
4
|
+
placement?: any;
|
|
5
|
+
tiny_mode?: any;
|
|
6
|
+
tiny_mode_root?: any;
|
|
7
|
+
tiny_template?: any;
|
|
8
|
+
tiny_renderless?: any;
|
|
9
|
+
_constants?: any;
|
|
10
|
+
tiny_theme?: any;
|
|
11
|
+
tiny_chart_theme?: any;
|
|
12
|
+
checkedStatus?: any;
|
|
13
|
+
visibleArrow?: any;
|
|
14
|
+
arrowOffset?: any;
|
|
15
|
+
popperClass?: any;
|
|
16
|
+
popperAppendToBody?: any;
|
|
17
|
+
textField?: any;
|
|
18
|
+
}>, IDropdownMenuApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "mouseenter" | "mouseleave" | "created" | "update:modelValue")[], "click" | "mouseenter" | "mouseleave" | "created" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
19
|
+
options?: any;
|
|
20
|
+
placement?: any;
|
|
21
|
+
tiny_mode?: any;
|
|
22
|
+
tiny_mode_root?: any;
|
|
23
|
+
tiny_template?: any;
|
|
24
|
+
tiny_renderless?: any;
|
|
25
|
+
_constants?: any;
|
|
26
|
+
tiny_theme?: any;
|
|
27
|
+
tiny_chart_theme?: any;
|
|
28
|
+
checkedStatus?: any;
|
|
29
|
+
visibleArrow?: any;
|
|
30
|
+
arrowOffset?: any;
|
|
31
|
+
popperClass?: any;
|
|
32
|
+
popperAppendToBody?: 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 options?: any;
|
|
42
|
+
readonly placement?: any;
|
|
43
|
+
readonly tiny_mode?: any;
|
|
44
|
+
readonly tiny_mode_root?: any;
|
|
45
|
+
readonly tiny_template?: any;
|
|
46
|
+
readonly tiny_renderless?: any;
|
|
47
|
+
readonly _constants?: any;
|
|
48
|
+
readonly tiny_theme?: any;
|
|
49
|
+
readonly tiny_chart_theme?: any;
|
|
50
|
+
readonly checkedStatus?: any;
|
|
51
|
+
readonly visibleArrow?: any;
|
|
52
|
+
readonly arrowOffset?: any;
|
|
53
|
+
readonly popperClass?: any;
|
|
54
|
+
readonly popperAppendToBody?: any;
|
|
55
|
+
readonly textField?: any;
|
|
56
|
+
}, {}>;
|
|
2
57
|
export default _default;
|