@opentiny/vue-dropdown-item 2.8.0 → 3.4.7
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/index.d.ts +13 -13
- package/lib/index.js +74 -62
- package/lib/mobile.js +161 -205
- package/lib/pc.js +96 -131
- package/package.json +15 -12
- package/src/index.d.ts +37 -138
- package/src/index.vue.d.ts +50 -0
- package/src/mobile.vue.d.ts +22 -30
- package/src/pc.vue.d.ts +13 -30
- package/LICENSE +0 -22
- package/lib/mobile-first.js +0 -115
- package/src/mobile-first.vue.d.ts +0 -12
package/lib/pc.js
CHANGED
|
@@ -1,140 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { renderless, api } from
|
|
3
|
-
import { iconDeltaLeft } from
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
options._ssrRegister = hook;
|
|
35
|
-
} else if (injectStyles) {
|
|
36
|
-
hook = shadowMode ? function() {
|
|
37
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
38
|
-
} : injectStyles;
|
|
39
|
-
}
|
|
40
|
-
if (hook) {
|
|
41
|
-
if (options.functional) {
|
|
42
|
-
options._injectStyles = hook;
|
|
43
|
-
var originalRender = options.render;
|
|
44
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
45
|
-
hook.call(context);
|
|
46
|
-
return originalRender(h, context);
|
|
47
|
-
};
|
|
48
|
-
} else {
|
|
49
|
-
var existing = options.beforeCreate;
|
|
50
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
exports: scriptExports,
|
|
55
|
-
options
|
|
56
|
-
};
|
|
1
|
+
import { $prefix, setup, props } from '@opentiny/vue-common';
|
|
2
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
|
|
3
|
+
import { iconDeltaLeft } from '@opentiny/vue-icon';
|
|
4
|
+
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
5
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, createVNode, createCommentVNode, createElementVNode, createBlock, resolveDynamicComponent, renderSlot, toDisplayString, Fragment, renderList, withCtx } from 'vue';
|
|
6
|
+
|
|
7
|
+
function _toConsumableArray(arr) {
|
|
8
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
9
|
+
}
|
|
10
|
+
function _arrayWithoutHoles(arr) {
|
|
11
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
12
|
+
}
|
|
13
|
+
function _iterableToArray(iter) {
|
|
14
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
15
|
+
}
|
|
16
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
17
|
+
if (!o) return;
|
|
18
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
19
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
20
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
21
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
22
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
23
|
+
}
|
|
24
|
+
function _arrayLikeToArray(arr, len) {
|
|
25
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
26
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
27
|
+
return arr2;
|
|
28
|
+
}
|
|
29
|
+
function _nonIterableSpread() {
|
|
30
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
57
31
|
}
|
|
58
32
|
|
|
59
|
-
var
|
|
60
|
-
name: $prefix +
|
|
61
|
-
componentName: $prefix +
|
|
62
|
-
emits: [
|
|
63
|
-
props: [].concat(props, [
|
|
33
|
+
var script = {
|
|
34
|
+
name: $prefix + 'DropdownItem',
|
|
35
|
+
componentName: $prefix + 'DropdownItem',
|
|
36
|
+
emits: ['item-click'],
|
|
37
|
+
props: [].concat(_toConsumableArray(props), ['command', 'disabled', 'divided', 'icon', 'label', 'itemData', 'appendToBody', 'textField']),
|
|
64
38
|
components: {
|
|
65
|
-
|
|
39
|
+
iconDeltaLeft: iconDeltaLeft()
|
|
66
40
|
},
|
|
67
|
-
setup: function setup(
|
|
68
|
-
return
|
|
69
|
-
props:
|
|
70
|
-
context,
|
|
71
|
-
renderless,
|
|
72
|
-
api
|
|
41
|
+
setup: function setup$1(props, context) {
|
|
42
|
+
return setup({
|
|
43
|
+
props: props,
|
|
44
|
+
context: context,
|
|
45
|
+
renderless: renderless,
|
|
46
|
+
api: api
|
|
73
47
|
});
|
|
74
48
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var _hoisted_1 = ["aria-disabled", "tabindex"];
|
|
52
|
+
var _hoisted_2 = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "tiny-dropdown-menu__item-expand"
|
|
55
|
+
};
|
|
56
|
+
var _hoisted_3 = {
|
|
57
|
+
class: "tiny-dropdown-menu__item-content"
|
|
58
|
+
};
|
|
59
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
60
|
+
var _component_icon_delta_left = resolveComponent("icon-delta-left");
|
|
61
|
+
var _component_tiny_dropdown_item = resolveComponent("tiny-dropdown-item");
|
|
62
|
+
return openBlock(), createElementBlock("li", {
|
|
63
|
+
class: normalizeClass(["tiny-dropdown-menu__item", {
|
|
64
|
+
'is-disabled': $props.disabled,
|
|
65
|
+
'tiny-dropdown-menu__item--divided': $props.divided
|
|
66
|
+
}]),
|
|
81
67
|
ref: "dropdownItem",
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
staticClass: "tiny-dropdown-item__expand tiny-dropdown-menu__item-expand"
|
|
101
|
-
}, [_c("icon-delta-left")], 1) : _vm._e(), _c("div", {
|
|
102
|
-
staticClass: "tiny-dropdown-item__content tiny-dropdown-menu__item-content"
|
|
103
|
-
}, [_vm.icon ? _c(_vm.icon, {
|
|
104
|
-
tag: "component",
|
|
105
|
-
staticClass: "tiny-svg-size"
|
|
106
|
-
}) : _vm._e(), _vm._t("default", function() {
|
|
107
|
-
return [_c("span", [_vm._v(_vm._s(_vm.label))])];
|
|
108
|
-
}, {
|
|
109
|
-
"itemData": _vm.itemData
|
|
110
|
-
})], 2), _vm.itemData.children && _vm.itemData.children.length ? _c("ul", {
|
|
111
|
-
class: ["tiny-dropdown-menu", "tiny-dropdown-item--child tiny-dropdown-menu__item--child", _vm.state.popperClass]
|
|
112
|
-
}, _vm._l(_vm.itemData.children, function(item, index) {
|
|
113
|
-
return _c("tiny-dropdown-item", {
|
|
68
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
69
|
+
return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
|
|
70
|
+
}),
|
|
71
|
+
onMousedown: _cache[1] || (_cache[1] = withModifiers(function () {}, ["stop"])),
|
|
72
|
+
"aria-disabled": $props.disabled,
|
|
73
|
+
tabindex: $props.disabled ? null : -1
|
|
74
|
+
}, [$props.itemData.children && $props.itemData.children.length ? (openBlock(), createElementBlock("span", _hoisted_2, [createVNode(_component_icon_delta_left)])) : createCommentVNode("", true), createElementVNode("div", _hoisted_3, [$props.icon ? (openBlock(), createBlock(resolveDynamicComponent($props.icon), {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "tiny-svg-size"
|
|
77
|
+
})) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default", {
|
|
78
|
+
itemData: $props.itemData
|
|
79
|
+
}, function () {
|
|
80
|
+
return [createElementVNode("span", null, toDisplayString($props.label), 1)];
|
|
81
|
+
})]), $props.itemData.children && $props.itemData.children.length ? (openBlock(), createElementBlock("ul", {
|
|
82
|
+
key: 1,
|
|
83
|
+
class: normalizeClass(['tiny-dropdown-menu', 'tiny-dropdown-menu__item--child', _ctx.state.popperClass])
|
|
84
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList($props.itemData.children, function (item, index) {
|
|
85
|
+
return openBlock(), createBlock(_component_tiny_dropdown_item, {
|
|
114
86
|
key: index,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
|
|
130
|
-
function __vue2_injectStyles(context) {
|
|
131
|
-
for (var o in __cssModules) {
|
|
132
|
-
this[o] = __cssModules[o];
|
|
133
|
-
}
|
|
87
|
+
label: item[_ctx.state.textField],
|
|
88
|
+
itemData: item,
|
|
89
|
+
icon: item.icon,
|
|
90
|
+
disabled: item.disabled,
|
|
91
|
+
divided: item.divided
|
|
92
|
+
}, {
|
|
93
|
+
default: withCtx(function () {
|
|
94
|
+
return [renderSlot(_ctx.$slots, "default", {
|
|
95
|
+
itemData: item
|
|
96
|
+
})];
|
|
97
|
+
}),
|
|
98
|
+
_: 2
|
|
99
|
+
}, 1032, ["label", "itemData", "icon", "disabled", "divided"]);
|
|
100
|
+
}), 128))], 2)) : createCommentVNode("", true)], 42, _hoisted_1);
|
|
134
101
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
export {
|
|
139
|
-
pc as default
|
|
140
|
-
};
|
|
102
|
+
|
|
103
|
+
script.render = render;
|
|
104
|
+
|
|
105
|
+
export { script as default };
|
package/package.json
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.4.7",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"lint": "eslint src/**/*{.js,.html,.vue} --quiet",
|
|
8
|
+
"build:ui2": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../build/build-ui.js",
|
|
9
|
+
"build:ui3": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../example/build/build-ui.js"
|
|
10
|
+
},
|
|
7
11
|
"dependencies": {
|
|
8
|
-
"@opentiny/vue-common": "~
|
|
9
|
-
"@opentiny/vue-icon": "~
|
|
10
|
-
"@opentiny/vue-renderless": "~3.
|
|
11
|
-
"@opentiny/vue-popup": "~
|
|
12
|
-
"@opentiny/vue-button": "~
|
|
12
|
+
"@opentiny/vue-common": "~3.4.7",
|
|
13
|
+
"@opentiny/vue-icon": "~3.4.7",
|
|
14
|
+
"@opentiny/vue-renderless": "~3.4.0",
|
|
15
|
+
"@opentiny/vue-popup": "~3.4.7",
|
|
16
|
+
"@opentiny/vue-button": "~3.4.7",
|
|
17
|
+
"@opentiny/vue-theme": "~3.4.0",
|
|
18
|
+
"@opentiny/vue-theme-mobile": "~3.4.0"
|
|
13
19
|
},
|
|
14
20
|
"license": "MIT",
|
|
15
21
|
"types": "index.d.ts",
|
|
16
|
-
"
|
|
17
|
-
"build": "pnpm -w build:ui $npm_package_name",
|
|
18
|
-
"//postversion": "pnpm build"
|
|
19
|
-
}
|
|
22
|
+
"sideEffects": false
|
|
20
23
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,138 +1,37 @@
|
|
|
1
|
-
declare const _default: import("vue").
|
|
2
|
-
icon: (
|
|
3
|
-
disabled: BooleanConstructor;
|
|
4
|
-
divided: BooleanConstructor;
|
|
5
|
-
command: {};
|
|
6
|
-
title: StringConstructor;
|
|
7
|
-
titleClass: StringConstructor;
|
|
8
|
-
options: {
|
|
9
|
-
type: ArrayConstructor;
|
|
10
|
-
default: () => never[];
|
|
11
|
-
};
|
|
12
|
-
type: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
multiStage: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
currentIndex: {
|
|
45
|
-
type: NumberConstructor;
|
|
46
|
-
default: () => number;
|
|
47
|
-
};
|
|
48
|
-
tiny_mode: StringConstructor;
|
|
49
|
-
tiny_mode_root: BooleanConstructor;
|
|
50
|
-
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
51
|
-
tiny_renderless: FunctionConstructor;
|
|
52
|
-
tiny_theme: StringConstructor;
|
|
53
|
-
tiny_chart_theme: ObjectConstructor;
|
|
54
|
-
}, {
|
|
55
|
-
type: string;
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
tiny_mode_root: boolean;
|
|
58
|
-
label: string;
|
|
59
|
-
options: unknown[];
|
|
60
|
-
textField: string;
|
|
61
|
-
selected: boolean;
|
|
62
|
-
divided: boolean;
|
|
63
|
-
itemData: Record<string, any>;
|
|
64
|
-
appendToBody: boolean;
|
|
65
|
-
selectedField: string;
|
|
66
|
-
multiStage: boolean;
|
|
67
|
-
currentIndex: number;
|
|
68
|
-
} & {
|
|
69
|
-
title?: string | undefined;
|
|
70
|
-
tiny_mode?: string | undefined;
|
|
71
|
-
tiny_template?: unknown;
|
|
72
|
-
tiny_renderless?: Function | undefined;
|
|
73
|
-
tiny_theme?: string | undefined;
|
|
74
|
-
tiny_chart_theme?: Record<string, any> | undefined;
|
|
75
|
-
titleClass?: string | undefined;
|
|
76
|
-
icon?: unknown;
|
|
77
|
-
command?: unknown;
|
|
78
|
-
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
79
|
-
type: string;
|
|
80
|
-
disabled: boolean;
|
|
81
|
-
tiny_mode_root: boolean;
|
|
82
|
-
label: string;
|
|
83
|
-
options: unknown[];
|
|
84
|
-
textField: string;
|
|
85
|
-
selected: boolean;
|
|
86
|
-
divided: boolean;
|
|
87
|
-
itemData: Record<string, any>;
|
|
88
|
-
appendToBody: boolean;
|
|
89
|
-
selectedField: string;
|
|
90
|
-
multiStage: boolean;
|
|
91
|
-
currentIndex: number;
|
|
92
|
-
} & {
|
|
93
|
-
title?: string | undefined;
|
|
94
|
-
tiny_mode?: string | undefined;
|
|
95
|
-
tiny_template?: unknown;
|
|
96
|
-
tiny_renderless?: Function | undefined;
|
|
97
|
-
tiny_theme?: string | undefined;
|
|
98
|
-
tiny_chart_theme?: Record<string, any> | undefined;
|
|
99
|
-
titleClass?: string | undefined;
|
|
100
|
-
icon?: unknown;
|
|
101
|
-
command?: unknown;
|
|
102
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api").Data, {}, {}, {
|
|
103
|
-
type: string;
|
|
104
|
-
disabled: boolean;
|
|
105
|
-
tiny_mode_root: boolean;
|
|
106
|
-
label: string;
|
|
107
|
-
options: unknown[];
|
|
108
|
-
textField: string;
|
|
109
|
-
selected: boolean;
|
|
110
|
-
divided: boolean;
|
|
111
|
-
itemData: Record<string, any>;
|
|
112
|
-
appendToBody: boolean;
|
|
113
|
-
selectedField: string;
|
|
114
|
-
multiStage: boolean;
|
|
115
|
-
currentIndex: number;
|
|
116
|
-
} & {
|
|
117
|
-
title?: string | undefined;
|
|
118
|
-
tiny_mode?: string | undefined;
|
|
119
|
-
tiny_template?: unknown;
|
|
120
|
-
tiny_renderless?: Function | undefined;
|
|
121
|
-
tiny_theme?: string | undefined;
|
|
122
|
-
tiny_chart_theme?: Record<string, any> | undefined;
|
|
123
|
-
titleClass?: string | undefined;
|
|
124
|
-
icon?: unknown;
|
|
125
|
-
command?: unknown;
|
|
126
|
-
}, {
|
|
127
|
-
type: string;
|
|
128
|
-
label: string;
|
|
129
|
-
options: unknown[];
|
|
130
|
-
textField: string;
|
|
131
|
-
selected: boolean;
|
|
132
|
-
itemData: Record<string, any>;
|
|
133
|
-
appendToBody: boolean;
|
|
134
|
-
selectedField: string;
|
|
135
|
-
multiStage: boolean;
|
|
136
|
-
currentIndex: number;
|
|
137
|
-
}, true>);
|
|
138
|
-
export default _default;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
icon: (ObjectConstructor | StringConstructor)[];
|
|
3
|
+
disabled: BooleanConstructor;
|
|
4
|
+
divided: BooleanConstructor;
|
|
5
|
+
command: {};
|
|
6
|
+
title: StringConstructor;
|
|
7
|
+
titleClass: StringConstructor;
|
|
8
|
+
options: {
|
|
9
|
+
type: ArrayConstructor;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
type: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
icon: (ObjectConstructor | StringConstructor)[];
|
|
18
|
+
disabled: BooleanConstructor;
|
|
19
|
+
divided: BooleanConstructor;
|
|
20
|
+
command: {};
|
|
21
|
+
title: StringConstructor;
|
|
22
|
+
titleClass: StringConstructor;
|
|
23
|
+
options: {
|
|
24
|
+
type: ArrayConstructor;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
type: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
type: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
options: unknown[];
|
|
35
|
+
divided: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: null;
|
|
3
|
+
title: StringConstructor;
|
|
4
|
+
disabled: BooleanConstructor;
|
|
5
|
+
titleClass: StringConstructor;
|
|
6
|
+
options: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
icon: ObjectConstructor;
|
|
11
|
+
type: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
t: any;
|
|
17
|
+
vm: any;
|
|
18
|
+
f: (props: any, attrs?: {}) => {};
|
|
19
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
20
|
+
d: (props: any) => void;
|
|
21
|
+
dp: (props: any) => void;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue" | "close" | "confirm" | "open" | "opened" | "closed")[], "click" | "change" | "update:modelValue" | "close" | "confirm" | "open" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
modelValue: null;
|
|
24
|
+
title: StringConstructor;
|
|
25
|
+
disabled: BooleanConstructor;
|
|
26
|
+
titleClass: StringConstructor;
|
|
27
|
+
options: {
|
|
28
|
+
type: ArrayConstructor;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
icon: ObjectConstructor;
|
|
32
|
+
type: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
37
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
onOpened?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
type: string;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
options: unknown[];
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
package/src/mobile.vue.d.ts
CHANGED
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
gcls: (key: any) => any;
|
|
24
|
-
m: (...cssClasses: any[]) => string;
|
|
25
|
-
}>, import("@vue/composition-api").Data, {}, {}, {
|
|
26
|
-
[x: string]: any;
|
|
27
|
-
} & {}, {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
}, true>);
|
|
30
|
-
export default _sfc_main;
|
|
1
|
+
import '@opentiny/vue-theme-mobile/dropdown-item/index.css';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
directives: {
|
|
4
|
+
Clickoutside: any;
|
|
5
|
+
};
|
|
6
|
+
props: string[];
|
|
7
|
+
components: {
|
|
8
|
+
IconYes: any;
|
|
9
|
+
TinyPopup: any;
|
|
10
|
+
TinyButton: any;
|
|
11
|
+
};
|
|
12
|
+
emits: string[];
|
|
13
|
+
setup(props: any, context: any): {
|
|
14
|
+
t: any;
|
|
15
|
+
vm: any;
|
|
16
|
+
f: (props: any, attrs?: {}) => {};
|
|
17
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
18
|
+
d: (props: any) => void;
|
|
19
|
+
dp: (props: any) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,30 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
15
|
-
[x: string]: any;
|
|
16
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
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
|
-
}>, import("@vue/composition-api").Data, {}, {}, {
|
|
26
|
-
[x: string]: any;
|
|
27
|
-
} & {}, {
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
}, true>);
|
|
30
|
-
export default _sfc_main;
|
|
1
|
+
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
props: string[];
|
|
4
|
+
setup(props: any, context: any): {
|
|
5
|
+
t: any;
|
|
6
|
+
vm: any;
|
|
7
|
+
f: (props: any, attrs?: {}) => {};
|
|
8
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
9
|
+
d: (props: any) => void;
|
|
10
|
+
dp: (props: any) => void;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
package/LICENSE
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 - present TinyVue Authors.
|
|
4
|
-
Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|