@opentinyvue/vue-collapse-item 2.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/LICENSE +22 -0
- package/index.d.ts +13 -0
- package/lib/index.js +68 -0
- package/lib/mobile-first.js +156 -0
- package/lib/pc.js +154 -0
- package/package.json +22 -0
- package/src/index.d.ts +29 -0
- package/src/mobile-first.vue.d.ts +2 -0
- package/src/pc.vue.d.ts +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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.
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
import CollapseItem from './src/index';
|
|
13
|
+
export default CollapseItem;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
+
var t = arguments[e];
|
|
5
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6
|
+
}
|
|
7
|
+
return n;
|
|
8
|
+
}, _extends.apply(null, arguments);
|
|
9
|
+
}
|
|
10
|
+
import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
|
|
11
|
+
import PcTemplate from "./pc.js";
|
|
12
|
+
import MobileFirstTemplate from "./mobile-first.js";
|
|
13
|
+
import "@opentinyvue/vue-theme/collapse-item/index.css";
|
|
14
|
+
var template = function template2(mode) {
|
|
15
|
+
var _process$env;
|
|
16
|
+
var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
|
|
17
|
+
if ("pc" === (tinyMode || mode)) {
|
|
18
|
+
return PcTemplate;
|
|
19
|
+
}
|
|
20
|
+
if ("mobile-first" === (tinyMode || mode)) {
|
|
21
|
+
return MobileFirstTemplate;
|
|
22
|
+
}
|
|
23
|
+
return PcTemplate;
|
|
24
|
+
};
|
|
25
|
+
var $constants = {
|
|
26
|
+
INTERVAL: 50
|
|
27
|
+
};
|
|
28
|
+
var collapseItemProps = _extends({}, $props, {
|
|
29
|
+
_constants: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: function _default() {
|
|
32
|
+
return $constants;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
title: String,
|
|
36
|
+
titleRight: String,
|
|
37
|
+
name: {
|
|
38
|
+
type: [String, Number],
|
|
39
|
+
default: function _default2() {
|
|
40
|
+
return this._uid;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
expandIcon: {
|
|
44
|
+
type: [Object, String]
|
|
45
|
+
},
|
|
46
|
+
disabled: Boolean
|
|
47
|
+
});
|
|
48
|
+
var CollapseItem = defineComponent({
|
|
49
|
+
name: $prefix + "CollapseItem",
|
|
50
|
+
componentName: "CollapseItem",
|
|
51
|
+
inject: ["collapse"],
|
|
52
|
+
props: collapseItemProps,
|
|
53
|
+
setup: function setup(props, context) {
|
|
54
|
+
return $setup({
|
|
55
|
+
props,
|
|
56
|
+
context,
|
|
57
|
+
template
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var version = "2.21.0";
|
|
62
|
+
CollapseItem.install = function(Vue) {
|
|
63
|
+
Vue.component(CollapseItem.name, CollapseItem);
|
|
64
|
+
};
|
|
65
|
+
CollapseItem.version = version;
|
|
66
|
+
export {
|
|
67
|
+
CollapseItem as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { renderless, api } from '@opentinyvue/vue-renderless/collapse-item/vue';
|
|
2
|
+
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
+
import CollapseTransition from '@opentinyvue/vue-collapse-transition';
|
|
4
|
+
import { IconArrowBottom } from '@opentinyvue/vue-icon';
|
|
5
|
+
|
|
6
|
+
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
7
|
+
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
8
|
+
if (render) {
|
|
9
|
+
options.render = render;
|
|
10
|
+
options.staticRenderFns = staticRenderFns;
|
|
11
|
+
options._compiled = true;
|
|
12
|
+
}
|
|
13
|
+
var hook;
|
|
14
|
+
if (injectStyles) {
|
|
15
|
+
hook = injectStyles;
|
|
16
|
+
}
|
|
17
|
+
if (hook) {
|
|
18
|
+
if (options.functional) {
|
|
19
|
+
options._injectStyles = hook;
|
|
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
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
exports: scriptExports,
|
|
32
|
+
options
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var __vue2_script = defineComponent({
|
|
37
|
+
props: [].concat(props, ["title", "titleRight", "name", "disabled"]),
|
|
38
|
+
components: {
|
|
39
|
+
CollapseTransition,
|
|
40
|
+
IconArrowBottom: IconArrowBottom()
|
|
41
|
+
},
|
|
42
|
+
setup: function setup$1(props2, context) {
|
|
43
|
+
return setup({
|
|
44
|
+
props: props2,
|
|
45
|
+
context,
|
|
46
|
+
renderless,
|
|
47
|
+
api
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
var render = function render2() {
|
|
52
|
+
var _vm = this;
|
|
53
|
+
var _h = _vm.$createElement;
|
|
54
|
+
var _c = _vm._self._c || _h;
|
|
55
|
+
return _c("div", {
|
|
56
|
+
staticClass: "border-b-0.5 sm:border-b border-solid border-color-border-separator last:border-0",
|
|
57
|
+
attrs: {
|
|
58
|
+
"data-tag": "tiny-collapse-item"
|
|
59
|
+
}
|
|
60
|
+
}, [_c("div", {
|
|
61
|
+
attrs: {
|
|
62
|
+
"role": "tab",
|
|
63
|
+
"data-tag": "tiny-collapse-item-tab",
|
|
64
|
+
"aria-expanded": _vm.state.isActive,
|
|
65
|
+
"aria-controls": "tiny-collapse-content-" + _vm.state.id,
|
|
66
|
+
"aria-describedby": "tiny-collapse-content-" + _vm.state.id
|
|
67
|
+
}
|
|
68
|
+
}, [_c("div", {
|
|
69
|
+
staticClass: "flex relative items-center h-12 sm:h-10 py-0 sm:pr-0 pl-4 pr-10 text-sm font-bold justify-between whitespace-nowrap",
|
|
70
|
+
class: _vm.disabled ? "text-color-text-disabled" : "text-color-text-primary sm:[&:has(.peer:hover)_[role=title]]:text-color-brand",
|
|
71
|
+
attrs: {
|
|
72
|
+
"data-tag": "tiny-collapse-item-body",
|
|
73
|
+
"id": "tiny-collapse-head-" + _vm.state.id,
|
|
74
|
+
"tabindex": _vm.disabled ? void 0 : 0
|
|
75
|
+
},
|
|
76
|
+
on: {
|
|
77
|
+
"keyup": function keyup($event) {
|
|
78
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"]) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
79
|
+
$event.stopPropagation();
|
|
80
|
+
return _vm.handleEnterClick.apply(null, arguments);
|
|
81
|
+
},
|
|
82
|
+
"focus": _vm.handleFocus,
|
|
83
|
+
"blur": function blur($event) {
|
|
84
|
+
_vm.state.focusing = false;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, [_c("div", {
|
|
88
|
+
staticClass: "whitespace-nowrap overflow-hidden overflow-ellipsis inline-block peer",
|
|
89
|
+
class: [_vm.disabled ? "cursor-not-allowed" : "cursor-pointer sm:hover:text-color-brand"],
|
|
90
|
+
attrs: {
|
|
91
|
+
"data-tag": "tiny-collapse-item-title",
|
|
92
|
+
"role": "title"
|
|
93
|
+
},
|
|
94
|
+
on: {
|
|
95
|
+
"click": _vm.handleHeaderClick
|
|
96
|
+
}
|
|
97
|
+
}, [_vm._t("title", function() {
|
|
98
|
+
return [_vm._v(" " + _vm._s(_vm.title))];
|
|
99
|
+
})], 2), _c("div", {
|
|
100
|
+
staticClass: "text-xs font-normal",
|
|
101
|
+
attrs: {
|
|
102
|
+
"data-tag": "tiny-collapse-item-titleright"
|
|
103
|
+
}
|
|
104
|
+
}, [_vm._t("title-right", function() {
|
|
105
|
+
return [_vm._v(_vm._s(_vm.titleRight))];
|
|
106
|
+
})], 2), _c("div", {
|
|
107
|
+
staticClass: "absolute sm:left-0 right-3.5 text-xs mr-1 w-3 peer",
|
|
108
|
+
class: [_vm.disabled ? "fill-color-text-disabled cursor-not-allowed" : "fill-color-icon-secondary cursor-pointer sm:peer-hover:fill-color-brand sm:hover:fill-color-brand"],
|
|
109
|
+
attrs: {
|
|
110
|
+
"data-tag": "tiny-collapse-item-icon"
|
|
111
|
+
},
|
|
112
|
+
on: {
|
|
113
|
+
"click": _vm.handleHeaderClick
|
|
114
|
+
}
|
|
115
|
+
}, [_vm._t("icon", function() {
|
|
116
|
+
return [_c("icon-arrow-bottom", {
|
|
117
|
+
class: [_vm.state.isActive ? "sm:rotate-0 rotate-180" : "sm:-rotate-90 rotate-0"],
|
|
118
|
+
attrs: {
|
|
119
|
+
"custom-class": "w-2.5 h-2.5 sm:w-3 sm:h-3 transition-transform duration-300"
|
|
120
|
+
}
|
|
121
|
+
})];
|
|
122
|
+
}, {
|
|
123
|
+
"active": _vm.state.isActive,
|
|
124
|
+
"disabled": _vm.disabled
|
|
125
|
+
})], 2)])]), _c("collapse-transition", [_c("div", {
|
|
126
|
+
directives: [{
|
|
127
|
+
name: "show",
|
|
128
|
+
rawName: "v-show",
|
|
129
|
+
value: _vm.state.isActive,
|
|
130
|
+
expression: "state.isActive"
|
|
131
|
+
}],
|
|
132
|
+
staticClass: "will-change-[height] bg-color-bg-1 overflow-hidden box-border",
|
|
133
|
+
attrs: {
|
|
134
|
+
"data-tag": "tiny-collapse-item-active",
|
|
135
|
+
"role": "tabpanel",
|
|
136
|
+
"aria-hidden": !_vm.state.isActive,
|
|
137
|
+
"aria-labelledby": "tiny-collapse-head-" + _vm.state.id,
|
|
138
|
+
"id": "tiny-collapse-content-" + _vm.state.id
|
|
139
|
+
}
|
|
140
|
+
}, [_c("div", {
|
|
141
|
+
staticClass: "pb-6 pt-0 px-4 sm:pt-0 sm:pr-0 sm:pl-4 sm:pb-4 text-xs text-color-text-primary leading-relaxed"
|
|
142
|
+
}, [_vm._t("default")], 2)])])], 1);
|
|
143
|
+
};
|
|
144
|
+
var staticRenderFns = [];
|
|
145
|
+
var __cssModules = {};
|
|
146
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
147
|
+
function __vue2_injectStyles(context) {
|
|
148
|
+
for (var o in __cssModules) {
|
|
149
|
+
this[o] = __cssModules[o];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
var mobileFirst = /* @__PURE__ */ function() {
|
|
153
|
+
return __component__.exports;
|
|
154
|
+
}();
|
|
155
|
+
|
|
156
|
+
export { mobileFirst as default };
|
package/lib/pc.js
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { renderless, api } from '@opentinyvue/vue-renderless/collapse-item/vue';
|
|
2
|
+
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
+
import CollapseTransition from '@opentinyvue/vue-collapse-transition';
|
|
4
|
+
import { iconChevronRight } from '@opentinyvue/vue-icon';
|
|
5
|
+
|
|
6
|
+
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
7
|
+
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
8
|
+
if (render) {
|
|
9
|
+
options.render = render;
|
|
10
|
+
options.staticRenderFns = staticRenderFns;
|
|
11
|
+
options._compiled = true;
|
|
12
|
+
}
|
|
13
|
+
var hook;
|
|
14
|
+
if (injectStyles) {
|
|
15
|
+
hook = injectStyles;
|
|
16
|
+
}
|
|
17
|
+
if (hook) {
|
|
18
|
+
if (options.functional) {
|
|
19
|
+
options._injectStyles = hook;
|
|
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
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
exports: scriptExports,
|
|
32
|
+
options
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var __vue2_script = defineComponent({
|
|
37
|
+
props: [].concat(props, ["title", "titleRight", "name", "disabled", "expandIcon"]),
|
|
38
|
+
components: {
|
|
39
|
+
CollapseTransition,
|
|
40
|
+
IconChevronRight: iconChevronRight()
|
|
41
|
+
},
|
|
42
|
+
setup: function setup$1(props2, context) {
|
|
43
|
+
return setup({
|
|
44
|
+
props: props2,
|
|
45
|
+
context,
|
|
46
|
+
renderless,
|
|
47
|
+
api
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
var render = function render2() {
|
|
52
|
+
var _vm = this;
|
|
53
|
+
var _h = _vm.$createElement;
|
|
54
|
+
var _c = _vm._self._c || _h;
|
|
55
|
+
return _c("div", {
|
|
56
|
+
staticClass: "tiny-collapse-item",
|
|
57
|
+
class: {
|
|
58
|
+
"is-active": _vm.state.isActive,
|
|
59
|
+
"is-disabled": _vm.disabled
|
|
60
|
+
}
|
|
61
|
+
}, [_c("div", {
|
|
62
|
+
attrs: {
|
|
63
|
+
"role": "tab",
|
|
64
|
+
"aria-expanded": _vm.state.isActive,
|
|
65
|
+
"aria-controls": "tiny-collapse-content-" + _vm.state.id,
|
|
66
|
+
"aria-describedby": "tiny-collapse-content-" + _vm.state.id
|
|
67
|
+
}
|
|
68
|
+
}, [_c("div", {
|
|
69
|
+
staticClass: "tiny-collapse-item__header",
|
|
70
|
+
class: {
|
|
71
|
+
focusing: _vm.state.focusing,
|
|
72
|
+
"is-active": _vm.state.isActive
|
|
73
|
+
},
|
|
74
|
+
attrs: {
|
|
75
|
+
"role": "button",
|
|
76
|
+
"id": "tiny-collapse-head-" + _vm.state.id,
|
|
77
|
+
"tabindex": _vm.disabled ? void 0 : 0
|
|
78
|
+
},
|
|
79
|
+
on: {
|
|
80
|
+
"keyup": function keyup($event) {
|
|
81
|
+
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"]) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
82
|
+
$event.stopPropagation();
|
|
83
|
+
return _vm.handleEnterClick.apply(null, arguments);
|
|
84
|
+
},
|
|
85
|
+
"focus": _vm.handleFocus,
|
|
86
|
+
"blur": function blur($event) {
|
|
87
|
+
_vm.state.focusing = false;
|
|
88
|
+
},
|
|
89
|
+
"click": _vm.handleHeaderContainerClick
|
|
90
|
+
}
|
|
91
|
+
}, [_c("div", {
|
|
92
|
+
staticClass: "tiny-collapse-item__arrow",
|
|
93
|
+
class: {
|
|
94
|
+
"is-active": _vm.state.isActive
|
|
95
|
+
},
|
|
96
|
+
on: {
|
|
97
|
+
"click": function click($event) {
|
|
98
|
+
$event.stopPropagation();
|
|
99
|
+
return _vm.handleHeaderClick.apply(null, arguments);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}, [_vm._t("icon", function() {
|
|
103
|
+
return [_c(_vm.state.arrowIcon, {
|
|
104
|
+
tag: "component",
|
|
105
|
+
staticClass: "tiny-collapse-item__arrow-icon tiny-svg-size",
|
|
106
|
+
class: {
|
|
107
|
+
"is-active": _vm.state.isActive
|
|
108
|
+
}
|
|
109
|
+
})];
|
|
110
|
+
})], 2), _c("div", {
|
|
111
|
+
staticClass: "tiny-collapse-item__word-overflow",
|
|
112
|
+
on: {
|
|
113
|
+
"click": function click($event) {
|
|
114
|
+
$event.stopPropagation();
|
|
115
|
+
return _vm.handleHeaderClick.apply(null, arguments);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}, [_vm._t("title", function() {
|
|
119
|
+
return [_vm._v(_vm._s(_vm.title))];
|
|
120
|
+
})], 2), _c("div", {
|
|
121
|
+
staticClass: "tiny-collapse-item__title__right"
|
|
122
|
+
}, [_vm._t("title-right", function() {
|
|
123
|
+
return [_vm._v(_vm._s(_vm.titleRight))];
|
|
124
|
+
})], 2)]), _c("collapse-transition", [_c("div", {
|
|
125
|
+
directives: [{
|
|
126
|
+
name: "show",
|
|
127
|
+
rawName: "v-show",
|
|
128
|
+
value: _vm.state.isActive,
|
|
129
|
+
expression: "state.isActive"
|
|
130
|
+
}],
|
|
131
|
+
staticClass: "tiny-collapse-item__wrap",
|
|
132
|
+
attrs: {
|
|
133
|
+
"role": "tabpanel",
|
|
134
|
+
"aria-hidden": !_vm.state.isActive,
|
|
135
|
+
"aria-labelledby": "tiny-collapse-head-" + _vm.state.id,
|
|
136
|
+
"id": "tiny-collapse-content-" + _vm.state.id
|
|
137
|
+
}
|
|
138
|
+
}, [_c("div", {
|
|
139
|
+
staticClass: "tiny-collapse-item__content"
|
|
140
|
+
}, [_vm._t("default")], 2)])])], 1)]);
|
|
141
|
+
};
|
|
142
|
+
var staticRenderFns = [];
|
|
143
|
+
var __cssModules = {};
|
|
144
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
145
|
+
function __vue2_injectStyles(context) {
|
|
146
|
+
for (var o in __cssModules) {
|
|
147
|
+
this[o] = __cssModules[o];
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
var pc = /* @__PURE__ */ function() {
|
|
151
|
+
return __component__.exports;
|
|
152
|
+
}();
|
|
153
|
+
|
|
154
|
+
export { pc as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opentinyvue/vue-collapse-item",
|
|
3
|
+
"version": "2.21.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"module": "./lib/index.js",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@opentinyvue/vue-common": "~2.21.0",
|
|
11
|
+
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
12
|
+
"@opentinyvue/vue-icon": "~2.21.0",
|
|
13
|
+
"@opentinyvue/vue-theme": "~3.21.0",
|
|
14
|
+
"@opentinyvue/vue-collapse-transition": "~2.21.0"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"types": "index.d.ts",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "pnpm -w build:ui $npm_package_name",
|
|
20
|
+
"//postversion": "pnpm build"
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const $constants: {
|
|
2
|
+
INTERVAL: number;
|
|
3
|
+
};
|
|
4
|
+
export declare const collapseItemProps: {
|
|
5
|
+
_constants: {
|
|
6
|
+
type: ObjectConstructor;
|
|
7
|
+
default: () => {
|
|
8
|
+
INTERVAL: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
title: StringConstructor;
|
|
12
|
+
titleRight: StringConstructor;
|
|
13
|
+
name: {
|
|
14
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
default(): any;
|
|
16
|
+
};
|
|
17
|
+
expandIcon: {
|
|
18
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
19
|
+
};
|
|
20
|
+
disabled: BooleanConstructor;
|
|
21
|
+
tiny_mode: StringConstructor;
|
|
22
|
+
tiny_mode_root: BooleanConstructor;
|
|
23
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
24
|
+
tiny_renderless: FunctionConstructor;
|
|
25
|
+
tiny_theme: StringConstructor;
|
|
26
|
+
tiny_chart_theme: ObjectConstructor;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: any;
|
|
29
|
+
export default _default;
|
package/src/pc.vue.d.ts
ADDED