@nutui/nutui 3.1.22-beta.5 → 3.1.23-beta.1
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/CHANGELOG.md +48 -0
- package/README.md +3 -4
- package/dist/nutui.es.js +20412 -4214
- package/dist/nutui.umd.js +20518 -4216
- package/dist/packages/_es/ActionSheet.js +149 -17
- package/dist/packages/_es/Address.js +535 -110
- package/dist/packages/_es/AddressList.js +615 -113
- package/dist/packages/_es/Animate.js +59 -17
- package/dist/packages/_es/Audio.js +257 -53
- package/dist/packages/_es/AudioOperate.js +100 -13
- package/dist/packages/_es/Avatar.js +162 -38
- package/dist/packages/_es/AvatarGroup.js +73 -14
- package/dist/packages/_es/BackTop.js +156 -43
- package/dist/packages/_es/Badge.js +86 -14
- package/dist/packages/_es/Barrage.js +120 -41
- package/dist/packages/_es/Button.js +128 -23
- package/dist/packages/_es/Calendar.js +246 -30
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +107 -10
- package/dist/packages/_es/Cascader.js +496 -147
- package/dist/packages/_es/Category.js +58 -15
- package/dist/packages/_es/CategoryPane.js +111 -11
- package/dist/packages/_es/Cell.js +108 -21
- package/dist/packages/_es/CellGroup.js +44 -9
- package/dist/packages/_es/Checkbox.js +134 -29
- package/dist/packages/_es/CheckboxGroup.js +79 -29
- package/dist/packages/_es/CircleProgress.js +150 -28
- package/dist/packages/_es/Col.js +56 -14
- package/dist/packages/_es/Collapse.js +109 -32
- package/dist/packages/_es/CollapseItem.js +253 -59
- package/dist/packages/_es/Comment.js +434 -64
- package/dist/packages/_es/ConfigProvider.js +20 -8
- package/dist/packages/_es/CountDown.js +238 -56
- package/dist/packages/_es/CountUp.js +539 -140
- package/dist/packages/_es/DatePicker.js +315 -98
- package/dist/packages/_es/Dialog.js +289 -60
- package/dist/packages/_es/Divider.js +65 -13
- package/dist/packages/_es/Drag.js +197 -56
- package/dist/packages/_es/Ecard.js +159 -24
- package/dist/packages/_es/Elevator.js +255 -58
- package/dist/packages/_es/Ellipsis.js +200 -58
- package/dist/packages/_es/Empty.js +71 -12
- package/dist/packages/_es/FixedNav.js +122 -15
- package/dist/packages/_es/Form.js +151 -64
- package/dist/packages/_es/FormItem.js +114 -15
- package/dist/packages/_es/Grid.js +6 -5
- package/dist/packages/_es/GridItem.js +144 -33
- package/dist/packages/_es/Icon.js +40 -15
- package/dist/packages/_es/Image.js +137 -26
- package/dist/packages/_es/ImagePreview.js +547 -76
- package/dist/packages/_es/Indicator.js +62 -15
- package/dist/packages/_es/InfiniteLoading.js +249 -57
- package/dist/packages/_es/Input.js +433 -51
- package/dist/packages/_es/InputNumber.js +160 -41
- package/dist/packages/_es/Layout.js +5 -4
- package/dist/packages/_es/List.js +106 -18
- package/dist/packages/_es/Menu.js +168 -44
- package/dist/packages/_es/MenuItem.js +173 -37
- package/dist/packages/_es/Navbar.js +192 -30
- package/dist/packages/_es/NoticeBar.js +380 -74
- package/dist/packages/_es/Notify.js +227 -72
- package/dist/packages/_es/NumberKeyboard.js +272 -41
- package/dist/packages/_es/OldPicker.js +457 -130
- package/dist/packages/_es/OverLay.js +98 -24
- package/dist/packages/_es/Pagination.js +157 -39
- package/dist/packages/_es/Picker.js +454 -129
- package/dist/packages/_es/Popover.js +957 -318
- package/dist/packages/_es/Popup.js +299 -55
- package/dist/packages/_es/Price.js +118 -16
- package/dist/packages/_es/Progress.js +146 -14
- package/dist/packages/_es/PullRefresh.js +339 -84
- package/dist/packages/_es/Radio.js +90 -22
- package/dist/packages/_es/RadioGroup.js +37 -8
- package/dist/packages/_es/Range.js +408 -83
- package/dist/packages/_es/Rate.js +192 -36
- package/dist/packages/_es/Row.js +64 -22
- package/dist/packages/_es/SearchBar.js +238 -37
- package/dist/packages/_es/ShortPassword.js +225 -35
- package/dist/packages/_es/SideNavBar.js +81 -24
- package/dist/packages/_es/SideNavBarItem.js +46 -11
- package/dist/packages/_es/Signature.js +160 -41
- package/dist/packages/_es/Skeleton.js +136 -20
- package/dist/packages/_es/Sku.js +491 -84
- package/dist/packages/_es/Step.js +115 -20
- package/dist/packages/_es/Steps.js +53 -18
- package/dist/packages/_es/Sticky.js +138 -53
- package/dist/packages/_es/SubSideNavBar.js +82 -17
- package/dist/packages/_es/Swipe.js +178 -41
- package/dist/packages/_es/Swiper.js +433 -121
- package/dist/packages/_es/SwiperItem.js +53 -22
- package/dist/packages/_es/Switch.js +116 -21
- package/dist/packages/_es/TabPane.js +39 -12
- package/dist/packages/_es/Tabbar.js +72 -17
- package/dist/packages/_es/TabbarItem.js +151 -29
- package/dist/packages/_es/Table.js +178 -18
- package/dist/packages/_es/Tabs.js +202 -43
- package/dist/packages/_es/Tag.js +97 -20
- package/dist/packages/_es/TextArea.js +160 -42
- package/dist/packages/_es/TimeDetail.js +79 -18
- package/dist/packages/_es/TimePannel.js +48 -14
- package/dist/packages/_es/TimeSelect.js +112 -15
- package/dist/packages/_es/Toast.js +310 -71
- package/dist/packages/_es/Uploader.js +455 -104
- package/dist/packages/_es/Video.js +332 -74
- package/dist/packages/_es/common.js +128 -38
- package/dist/packages/_es/component.js +76 -35
- package/dist/packages/_es/index.js +6 -5
- package/dist/packages/_es/index2.js +30 -9
- package/dist/packages/_es/index3.js +8 -6
- package/dist/packages/_es/index4.js +64 -13
- package/dist/packages/_es/index5.js +780 -164
- package/dist/packages/_es/plugin-vue_export-helper.js +8 -7
- package/dist/packages/_es/pxCheck.js +5 -3
- package/dist/packages/_es/raf.js +15 -8
- package/dist/packages/imagepreview/index.scss +6 -1
- package/dist/packages/locale/lang/baseLang.js +3 -3
- package/dist/packages/locale/lang/en-US.js +105 -5
- package/dist/packages/locale/lang/id-ID.js +105 -5
- package/dist/packages/locale/lang/index.js +38 -16
- package/dist/packages/locale/lang/zh-CN.js +105 -5
- package/dist/packages/locale/lang/zh-TW.js +105 -5
- package/dist/packages/picker/index.scss +13 -0
- package/dist/smartips/attributes.json +8 -0
- package/dist/smartips/tags.json +3 -1
- package/dist/smartips/web-types.json +19 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +49 -49
- package/dist/styles/themes/jdb.scss +49 -49
- package/dist/styles/themes/jdt.scss +49 -49
- package/dist/styles/variables-jdb.scss +4 -1
- package/dist/styles/variables-jdt.scss +4 -1
- package/dist/styles/variables.scss +1 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +4 -4
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cell/index.vue.d.ts +2 -2
- package/dist/types/__VUE/checkbox/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/ecard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +95 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +23 -25
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +6 -6
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menu/index.vue.d.ts +4 -4
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/textarea/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -2
|
@@ -1,66 +1,260 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.1 Mon Jun 27 2022 21:39:05 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { inject
|
|
7
|
-
import { c as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const { create
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
const { create, componentName } = createComponent("collapse-item");
|
|
11
|
+
const _sfc_main = create({
|
|
12
|
+
props: {
|
|
13
|
+
title: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
subTitle: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
},
|
|
25
|
+
name: {
|
|
26
|
+
type: [Number, String],
|
|
27
|
+
default: -1,
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
collapseRef: {
|
|
31
|
+
type: Object
|
|
22
32
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
},
|
|
34
|
+
setup(props, ctx) {
|
|
35
|
+
const collapse = inject("collapseParent");
|
|
36
|
+
const parent = reactive(collapse);
|
|
37
|
+
const classes = computed(() => {
|
|
38
|
+
const prefixCls = componentName;
|
|
39
|
+
return {
|
|
40
|
+
[prefixCls]: true,
|
|
41
|
+
[`${prefixCls}-icon`]: parent.props.icon
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
const relation = (child) => {
|
|
45
|
+
if (child.proxy) {
|
|
46
|
+
parent.children.push(child.proxy);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
relation(getCurrentInstance());
|
|
50
|
+
const proxyData = reactive({
|
|
51
|
+
icon: parent.props.icon,
|
|
52
|
+
iconSize: parent.props.iconSize,
|
|
53
|
+
iconColor: parent.props.iconColor,
|
|
54
|
+
openExpanded: false,
|
|
55
|
+
iconStyle: {
|
|
56
|
+
transform: "rotate(0deg)",
|
|
57
|
+
marginTop: parent.props.iconHeght ? "-" + parent.props.iconHeght / 2 + "px" : "-10px"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const titleIconStyle = reactive({
|
|
61
|
+
titleIcon: parent.props.titleIcon,
|
|
62
|
+
titleIconSize: parent.props.titleIconSize,
|
|
63
|
+
titleIconColor: parent.props.titleIconColor,
|
|
64
|
+
titleIconPosition: parent.props.titleIconPosition
|
|
65
|
+
});
|
|
66
|
+
const wrapperRef = ref(null);
|
|
67
|
+
const contentRef = ref(null);
|
|
68
|
+
const onTransitionEnd = () => {
|
|
69
|
+
const wrapperRefEle = document.getElementsByClassName("collapse-wrapper")[0];
|
|
70
|
+
if (wrapperRefEle) {
|
|
71
|
+
wrapperRefEle.style.willChange = "auto";
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const animation = () => {
|
|
75
|
+
const wrapperRefEle = wrapperRef.value;
|
|
76
|
+
const contentRefEle = contentRef.value;
|
|
77
|
+
if (!wrapperRefEle || !contentRefEle) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const offsetHeight = contentRefEle.offsetHeight || "auto";
|
|
81
|
+
if (offsetHeight) {
|
|
82
|
+
const contentHeight = `${offsetHeight}px`;
|
|
83
|
+
wrapperRefEle.style.willChange = "height";
|
|
84
|
+
wrapperRefEle.style.height = !proxyData.openExpanded ? 0 : contentHeight;
|
|
85
|
+
if (parent.props.icon && !proxyData.openExpanded) {
|
|
86
|
+
proxyData.iconStyle["transform"] = "rotate(0deg)";
|
|
87
|
+
} else {
|
|
88
|
+
proxyData.iconStyle["transform"] = "rotate(" + parent.props.rotate + "deg)";
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (!proxyData.openExpanded) {
|
|
92
|
+
onTransitionEnd();
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const open = () => {
|
|
96
|
+
proxyData.openExpanded = !proxyData.openExpanded;
|
|
97
|
+
animation();
|
|
98
|
+
};
|
|
99
|
+
const defaultOpen = () => {
|
|
100
|
+
open();
|
|
101
|
+
if (parent.props.icon) {
|
|
102
|
+
proxyData["iconStyle"]["transform"] = "rotate(" + parent.props.rotate + "deg)";
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const currentName = computed(() => props.name);
|
|
106
|
+
const toggleOpen = () => {
|
|
107
|
+
if (parent.props.accordion) {
|
|
108
|
+
nextTick(() => {
|
|
109
|
+
if (currentName.value == parent.props.active) {
|
|
110
|
+
open();
|
|
111
|
+
} else {
|
|
112
|
+
parent.changeVal(currentName.value);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
} else {
|
|
116
|
+
parent.changeValAry(String(props.name));
|
|
117
|
+
open();
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const changeOpen = (bol) => {
|
|
121
|
+
proxyData.openExpanded = bol;
|
|
122
|
+
};
|
|
123
|
+
const expanded = computed(() => {
|
|
124
|
+
if (parent) {
|
|
125
|
+
return parent.isExpanded(props.name);
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
});
|
|
129
|
+
watch(expanded, (value, oldValue) => {
|
|
130
|
+
if (value) {
|
|
131
|
+
proxyData.openExpanded = true;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
watch(() => {
|
|
135
|
+
var _a, _b;
|
|
136
|
+
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
137
|
+
}, () => {
|
|
138
|
+
setTimeout(() => {
|
|
139
|
+
animation();
|
|
140
|
+
}, 300);
|
|
141
|
+
});
|
|
142
|
+
const init = () => {
|
|
143
|
+
const { name } = props;
|
|
144
|
+
const active = parent && parent.props.active;
|
|
145
|
+
nextTick(() => {
|
|
146
|
+
if (typeof active == "number" || typeof active == "string") {
|
|
147
|
+
if (name == active) {
|
|
148
|
+
defaultOpen();
|
|
149
|
+
}
|
|
150
|
+
} else if (Object.values(active) instanceof Array) {
|
|
151
|
+
const f = Object.values(active).filter((item) => item == name);
|
|
152
|
+
if (f.length > 0) {
|
|
153
|
+
defaultOpen();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
47
156
|
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
157
|
+
};
|
|
158
|
+
onMounted(() => {
|
|
159
|
+
init();
|
|
160
|
+
});
|
|
161
|
+
const emptyContent = computed(() => {
|
|
162
|
+
let ele = contentRef.value;
|
|
163
|
+
let _class = "";
|
|
164
|
+
if (!(ele == null ? void 0 : ele.innerText)) {
|
|
165
|
+
_class = "empty";
|
|
166
|
+
}
|
|
167
|
+
return _class;
|
|
168
|
+
});
|
|
169
|
+
return {
|
|
170
|
+
classes,
|
|
171
|
+
emptyContent,
|
|
172
|
+
...toRefs(proxyData),
|
|
173
|
+
...toRefs(parent.props),
|
|
174
|
+
...toRefs(titleIconStyle),
|
|
175
|
+
wrapperRef,
|
|
176
|
+
contentRef,
|
|
177
|
+
open,
|
|
178
|
+
toggleOpen,
|
|
179
|
+
changeOpen,
|
|
180
|
+
animation
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
const _hoisted_1 = { class: "collapse-title" };
|
|
185
|
+
const _hoisted_2 = { class: "collapse-title-value" };
|
|
186
|
+
const _hoisted_3 = ["innerHTML"];
|
|
187
|
+
const _hoisted_4 = {
|
|
188
|
+
key: 0,
|
|
189
|
+
class: "subTitle"
|
|
190
|
+
};
|
|
191
|
+
const _hoisted_5 = ["innerHTML"];
|
|
192
|
+
const _hoisted_6 = {
|
|
193
|
+
key: 0,
|
|
194
|
+
class: "collapse-extraWrapper"
|
|
195
|
+
};
|
|
196
|
+
const _hoisted_7 = { class: "collapse-extraRender" };
|
|
197
|
+
const _hoisted_8 = {
|
|
198
|
+
class: "collapse-wrapper",
|
|
199
|
+
ref: "wrapperRef"
|
|
200
|
+
};
|
|
201
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
202
|
+
const _component_nut_icon = resolveComponent("nut-icon");
|
|
203
|
+
return openBlock(), createElementBlock("view", {
|
|
204
|
+
class: normalizeClass(_ctx.classes)
|
|
205
|
+
}, [
|
|
206
|
+
createElementVNode("view", {
|
|
207
|
+
class: normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
|
|
208
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
|
|
209
|
+
}, [
|
|
210
|
+
createElementVNode("view", _hoisted_1, [
|
|
211
|
+
createElementVNode("view", null, [
|
|
212
|
+
createElementVNode("view", _hoisted_2, [
|
|
213
|
+
_ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
214
|
+
key: 0,
|
|
215
|
+
name: _ctx.titleIcon,
|
|
216
|
+
size: _ctx.titleIconSize,
|
|
217
|
+
color: _ctx.titleIconColor,
|
|
218
|
+
class: normalizeClass([_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"])
|
|
219
|
+
}, null, 8, ["name", "size", "color", "class"])) : createCommentVNode("", true),
|
|
220
|
+
_ctx.$slots.mTitle ? renderSlot(_ctx.$slots, "mTitle", { key: 1 }) : (openBlock(), createElementBlock("view", {
|
|
221
|
+
key: 2,
|
|
222
|
+
innerHTML: _ctx.title,
|
|
223
|
+
class: "collapse-icon-title"
|
|
224
|
+
}, null, 8, _hoisted_3))
|
|
225
|
+
])
|
|
226
|
+
])
|
|
227
|
+
]),
|
|
228
|
+
_ctx.$slots.sTitle ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
229
|
+
renderSlot(_ctx.$slots, "sTitle")
|
|
230
|
+
])) : (openBlock(), createElementBlock("view", {
|
|
231
|
+
key: 1,
|
|
232
|
+
innerHTML: _ctx.subTitle,
|
|
233
|
+
class: "subTitle"
|
|
234
|
+
}, null, 8, _hoisted_5)),
|
|
235
|
+
_ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
236
|
+
key: 2,
|
|
237
|
+
name: _ctx.icon,
|
|
238
|
+
size: _ctx.iconSize,
|
|
239
|
+
color: _ctx.iconColor,
|
|
240
|
+
class: normalizeClass(["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }]),
|
|
241
|
+
style: normalizeStyle(_ctx.iconStyle)
|
|
242
|
+
}, null, 8, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
|
|
243
|
+
], 2),
|
|
244
|
+
_ctx.$slots.extraRender ? (openBlock(), createElementBlock("view", _hoisted_6, [
|
|
245
|
+
createElementVNode("div", _hoisted_7, [
|
|
246
|
+
renderSlot(_ctx.$slots, "extraRender")
|
|
247
|
+
])
|
|
248
|
+
])) : createCommentVNode("", true),
|
|
249
|
+
createElementVNode("view", _hoisted_8, [
|
|
250
|
+
createElementVNode("view", {
|
|
251
|
+
class: normalizeClass(["collapse-content", _ctx.emptyContent]),
|
|
252
|
+
ref: "contentRef"
|
|
253
|
+
}, [
|
|
254
|
+
renderSlot(_ctx.$slots, "default")
|
|
255
|
+
], 2)
|
|
256
|
+
], 512)
|
|
257
|
+
], 2);
|
|
258
|
+
}
|
|
259
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
260
|
+
export { index as default };
|