@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.
Files changed (168) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +3 -4
  3. package/dist/nutui.es.js +20412 -4214
  4. package/dist/nutui.umd.js +20518 -4216
  5. package/dist/packages/_es/ActionSheet.js +149 -17
  6. package/dist/packages/_es/Address.js +535 -110
  7. package/dist/packages/_es/AddressList.js +615 -113
  8. package/dist/packages/_es/Animate.js +59 -17
  9. package/dist/packages/_es/Audio.js +257 -53
  10. package/dist/packages/_es/AudioOperate.js +100 -13
  11. package/dist/packages/_es/Avatar.js +162 -38
  12. package/dist/packages/_es/AvatarGroup.js +73 -14
  13. package/dist/packages/_es/BackTop.js +156 -43
  14. package/dist/packages/_es/Badge.js +86 -14
  15. package/dist/packages/_es/Barrage.js +120 -41
  16. package/dist/packages/_es/Button.js +128 -23
  17. package/dist/packages/_es/Calendar.js +246 -30
  18. package/dist/packages/_es/CalendarItem.js +1 -1
  19. package/dist/packages/_es/Card.js +107 -10
  20. package/dist/packages/_es/Cascader.js +496 -147
  21. package/dist/packages/_es/Category.js +58 -15
  22. package/dist/packages/_es/CategoryPane.js +111 -11
  23. package/dist/packages/_es/Cell.js +108 -21
  24. package/dist/packages/_es/CellGroup.js +44 -9
  25. package/dist/packages/_es/Checkbox.js +134 -29
  26. package/dist/packages/_es/CheckboxGroup.js +79 -29
  27. package/dist/packages/_es/CircleProgress.js +150 -28
  28. package/dist/packages/_es/Col.js +56 -14
  29. package/dist/packages/_es/Collapse.js +109 -32
  30. package/dist/packages/_es/CollapseItem.js +253 -59
  31. package/dist/packages/_es/Comment.js +434 -64
  32. package/dist/packages/_es/ConfigProvider.js +20 -8
  33. package/dist/packages/_es/CountDown.js +238 -56
  34. package/dist/packages/_es/CountUp.js +539 -140
  35. package/dist/packages/_es/DatePicker.js +315 -98
  36. package/dist/packages/_es/Dialog.js +289 -60
  37. package/dist/packages/_es/Divider.js +65 -13
  38. package/dist/packages/_es/Drag.js +197 -56
  39. package/dist/packages/_es/Ecard.js +159 -24
  40. package/dist/packages/_es/Elevator.js +255 -58
  41. package/dist/packages/_es/Ellipsis.js +200 -58
  42. package/dist/packages/_es/Empty.js +71 -12
  43. package/dist/packages/_es/FixedNav.js +122 -15
  44. package/dist/packages/_es/Form.js +151 -64
  45. package/dist/packages/_es/FormItem.js +114 -15
  46. package/dist/packages/_es/Grid.js +6 -5
  47. package/dist/packages/_es/GridItem.js +144 -33
  48. package/dist/packages/_es/Icon.js +40 -15
  49. package/dist/packages/_es/Image.js +137 -26
  50. package/dist/packages/_es/ImagePreview.js +547 -76
  51. package/dist/packages/_es/Indicator.js +62 -15
  52. package/dist/packages/_es/InfiniteLoading.js +249 -57
  53. package/dist/packages/_es/Input.js +433 -51
  54. package/dist/packages/_es/InputNumber.js +160 -41
  55. package/dist/packages/_es/Layout.js +5 -4
  56. package/dist/packages/_es/List.js +106 -18
  57. package/dist/packages/_es/Menu.js +168 -44
  58. package/dist/packages/_es/MenuItem.js +173 -37
  59. package/dist/packages/_es/Navbar.js +192 -30
  60. package/dist/packages/_es/NoticeBar.js +380 -74
  61. package/dist/packages/_es/Notify.js +227 -72
  62. package/dist/packages/_es/NumberKeyboard.js +272 -41
  63. package/dist/packages/_es/OldPicker.js +457 -130
  64. package/dist/packages/_es/OverLay.js +98 -24
  65. package/dist/packages/_es/Pagination.js +157 -39
  66. package/dist/packages/_es/Picker.js +454 -129
  67. package/dist/packages/_es/Popover.js +957 -318
  68. package/dist/packages/_es/Popup.js +299 -55
  69. package/dist/packages/_es/Price.js +118 -16
  70. package/dist/packages/_es/Progress.js +146 -14
  71. package/dist/packages/_es/PullRefresh.js +339 -84
  72. package/dist/packages/_es/Radio.js +90 -22
  73. package/dist/packages/_es/RadioGroup.js +37 -8
  74. package/dist/packages/_es/Range.js +408 -83
  75. package/dist/packages/_es/Rate.js +192 -36
  76. package/dist/packages/_es/Row.js +64 -22
  77. package/dist/packages/_es/SearchBar.js +238 -37
  78. package/dist/packages/_es/ShortPassword.js +225 -35
  79. package/dist/packages/_es/SideNavBar.js +81 -24
  80. package/dist/packages/_es/SideNavBarItem.js +46 -11
  81. package/dist/packages/_es/Signature.js +160 -41
  82. package/dist/packages/_es/Skeleton.js +136 -20
  83. package/dist/packages/_es/Sku.js +491 -84
  84. package/dist/packages/_es/Step.js +115 -20
  85. package/dist/packages/_es/Steps.js +53 -18
  86. package/dist/packages/_es/Sticky.js +138 -53
  87. package/dist/packages/_es/SubSideNavBar.js +82 -17
  88. package/dist/packages/_es/Swipe.js +178 -41
  89. package/dist/packages/_es/Swiper.js +433 -121
  90. package/dist/packages/_es/SwiperItem.js +53 -22
  91. package/dist/packages/_es/Switch.js +116 -21
  92. package/dist/packages/_es/TabPane.js +39 -12
  93. package/dist/packages/_es/Tabbar.js +72 -17
  94. package/dist/packages/_es/TabbarItem.js +151 -29
  95. package/dist/packages/_es/Table.js +178 -18
  96. package/dist/packages/_es/Tabs.js +202 -43
  97. package/dist/packages/_es/Tag.js +97 -20
  98. package/dist/packages/_es/TextArea.js +160 -42
  99. package/dist/packages/_es/TimeDetail.js +79 -18
  100. package/dist/packages/_es/TimePannel.js +48 -14
  101. package/dist/packages/_es/TimeSelect.js +112 -15
  102. package/dist/packages/_es/Toast.js +310 -71
  103. package/dist/packages/_es/Uploader.js +455 -104
  104. package/dist/packages/_es/Video.js +332 -74
  105. package/dist/packages/_es/common.js +128 -38
  106. package/dist/packages/_es/component.js +76 -35
  107. package/dist/packages/_es/index.js +6 -5
  108. package/dist/packages/_es/index2.js +30 -9
  109. package/dist/packages/_es/index3.js +8 -6
  110. package/dist/packages/_es/index4.js +64 -13
  111. package/dist/packages/_es/index5.js +780 -164
  112. package/dist/packages/_es/plugin-vue_export-helper.js +8 -7
  113. package/dist/packages/_es/pxCheck.js +5 -3
  114. package/dist/packages/_es/raf.js +15 -8
  115. package/dist/packages/imagepreview/index.scss +6 -1
  116. package/dist/packages/locale/lang/baseLang.js +3 -3
  117. package/dist/packages/locale/lang/en-US.js +105 -5
  118. package/dist/packages/locale/lang/id-ID.js +105 -5
  119. package/dist/packages/locale/lang/index.js +38 -16
  120. package/dist/packages/locale/lang/zh-CN.js +105 -5
  121. package/dist/packages/locale/lang/zh-TW.js +105 -5
  122. package/dist/packages/picker/index.scss +13 -0
  123. package/dist/smartips/attributes.json +8 -0
  124. package/dist/smartips/tags.json +3 -1
  125. package/dist/smartips/web-types.json +19 -1
  126. package/dist/style.css +1 -1
  127. package/dist/style.es.js +1 -1
  128. package/dist/styles/themes/default.scss +49 -49
  129. package/dist/styles/themes/jdb.scss +49 -49
  130. package/dist/styles/themes/jdt.scss +49 -49
  131. package/dist/styles/variables-jdb.scss +4 -1
  132. package/dist/styles/variables-jdt.scss +4 -1
  133. package/dist/styles/variables.scss +1 -1
  134. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  135. package/dist/types/__VUE/address/index.vue.d.ts +4 -4
  136. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  137. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  138. package/dist/types/__VUE/cell/index.vue.d.ts +2 -2
  139. package/dist/types/__VUE/checkbox/index.vue.d.ts +2 -2
  140. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  141. package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
  142. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  143. package/dist/types/__VUE/ecard/index.vue.d.ts +2 -2
  144. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
  146. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +95 -0
  147. package/dist/types/__VUE/imagepreview/index.vue.d.ts +23 -25
  148. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +6 -6
  149. package/dist/types/__VUE/input/index.vue.d.ts +2 -2
  150. package/dist/types/__VUE/menu/index.vue.d.ts +4 -4
  151. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
  152. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  153. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  154. package/dist/types/__VUE/picker/index.vue.d.ts +3 -3
  155. package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
  156. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  157. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  158. package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
  159. package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
  160. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  161. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  162. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  163. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  164. package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
  165. package/dist/types/__VUE/textarea/index.vue.d.ts +2 -2
  166. package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
  167. package/dist/types/index.d.ts +1 -1
  168. package/package.json +1 -2
@@ -1,66 +1,260 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.5 Fri Jun 24 2022 15:10:09 GMT+0800 (中国标准时间)
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 as e, reactive as t, computed as o, getCurrentInstance as l, ref as n, watch as s, onMounted as i, toRefs as a, nextTick as p, resolveComponent as c, openBlock as r, createElementBlock as d, normalizeClass as u, createElementVNode as m, createBlock as f, createCommentVNode as y, renderSlot as g, normalizeStyle as v } from "vue";
7
- import { c as x } from "./component.js";
8
- import { _ as h } from "./plugin-vue_export-helper.js";
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: w, componentName: I } = x("collapse-item"), S = w({ props: { title: { type: String, default: "" }, subTitle: { type: String, default: "" }, disabled: { type: Boolean, default: false }, name: { type: [Number, String], default: -1, required: true }, collapseRef: { type: Object } }, setup(c2, r2) {
11
- const d2 = e("collapseParent"), u2 = t(d2), m2 = o(() => ({ [I]: true, [`${I}-icon`]: u2.props.icon }));
12
- var f2;
13
- (f2 = l()).proxy && u2.children.push(f2.proxy);
14
- const y2 = t({ icon: u2.props.icon, iconSize: u2.props.iconSize, iconColor: u2.props.iconColor, openExpanded: false, iconStyle: { transform: "rotate(0deg)", marginTop: u2.props.iconHeght ? "-" + u2.props.iconHeght / 2 + "px" : "-10px" } }), g2 = t({ titleIcon: u2.props.titleIcon, titleIconSize: u2.props.titleIconSize, titleIconColor: u2.props.titleIconColor, titleIconPosition: u2.props.titleIconPosition }), v2 = n(null), x2 = n(null), h2 = () => {
15
- const e2 = v2.value, t2 = x2.value;
16
- if (!e2 || !t2)
17
- return;
18
- const o2 = t2.offsetHeight || "auto";
19
- if (o2) {
20
- const t3 = `${o2}px`;
21
- e2.style.willChange = "height", e2.style.height = y2.openExpanded ? t3 : 0, u2.props.icon && !y2.openExpanded ? y2.iconStyle.transform = "rotate(0deg)" : y2.iconStyle.transform = "rotate(" + u2.props.rotate + "deg)";
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
- y2.openExpanded || (() => {
24
- const e3 = document.getElementsByClassName("collapse-wrapper")[0];
25
- e3 && (e3.style.willChange = "auto");
26
- })();
27
- }, w2 = () => {
28
- y2.openExpanded = !y2.openExpanded, h2();
29
- }, S2 = () => {
30
- w2(), u2.props.icon && (y2.iconStyle.transform = "rotate(" + u2.props.rotate + "deg)");
31
- }, T2 = o(() => c2.name), b2 = o(() => u2 ? u2.isExpanded(c2.name) : null);
32
- s(b2, (e2, t2) => {
33
- e2 && (y2.openExpanded = true);
34
- }), s(() => {
35
- var _a, _b;
36
- return (_b = (_a = r2 == null ? void 0 : r2.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
37
- }, () => {
38
- setTimeout(() => {
39
- h2();
40
- }, 300);
41
- });
42
- i(() => {
43
- (() => {
44
- const { name: e2 } = c2, t2 = u2 && u2.props.active;
45
- p(() => {
46
- typeof t2 == "number" || typeof t2 == "string" ? e2 == t2 && S2() : Object.values(t2) instanceof Array && Object.values(t2).filter((t3) => t3 == e2).length > 0 && S2();
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
- return { classes: m2, emptyContent: o(() => {
51
- var _a;
52
- let e2 = "";
53
- return ((_a = x2.value) == null ? void 0 : _a.innerText) || (e2 = "empty"), e2;
54
- }), ...a(y2), ...a(u2.props), ...a(g2), wrapperRef: v2, contentRef: x2, open: w2, toggleOpen: () => {
55
- u2.props.accordion ? p(() => {
56
- T2.value == u2.props.active ? w2() : u2.changeVal(T2.value);
57
- }) : (u2.changeValAry(String(c2.name)), w2());
58
- }, changeOpen: (e2) => {
59
- y2.openExpanded = e2;
60
- }, animation: h2 };
61
- } }), T = { class: "collapse-title" }, b = { class: "collapse-title-value" }, C = ["innerHTML"], E = { key: 0, class: "subTitle" }, z = ["innerHTML"], R = { key: 0, class: "collapse-extraWrapper" }, $ = { class: "collapse-extraRender" }, k = { class: "collapse-wrapper", ref: "wrapperRef" };
62
- var H = h(S, [["render", function(e2, t2, o2, l2, n2, s2) {
63
- const i2 = c("nut-icon");
64
- return r(), d("view", { class: u(e2.classes) }, [m("view", { class: u(["collapse-item", { "item-expanded": e2.openExpanded }, { "nut-collapse-item-disabled": e2.disabled }]), onClick: t2[0] || (t2[0] = (...t3) => e2.toggleOpen && e2.toggleOpen(...t3)) }, [m("view", T, [m("view", null, [m("view", b, [e2.titleIcon ? (r(), f(i2, { key: 0, name: e2.titleIcon, size: e2.titleIconSize, color: e2.titleIconColor, class: u([e2.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"]) }, null, 8, ["name", "size", "color", "class"])) : y("", true), e2.$slots.mTitle ? g(e2.$slots, "mTitle", { key: 1 }) : (r(), d("view", { key: 2, innerHTML: e2.title, class: "collapse-icon-title" }, null, 8, C))])])]), e2.$slots.sTitle ? (r(), d("view", E, [g(e2.$slots, "sTitle")])) : (r(), d("view", { key: 1, innerHTML: e2.subTitle, class: "subTitle" }, null, 8, z)), e2.icon ? (r(), f(i2, { key: 2, name: e2.icon, size: e2.iconSize, color: e2.iconColor, class: u(["collapse-icon", { "col-expanded": e2.openExpanded }, { "collapse-icon-disabled": e2.disabled }]), style: v(e2.iconStyle) }, null, 8, ["name", "size", "color", "class", "style"])) : y("", true)], 2), e2.$slots.extraRender ? (r(), d("view", R, [m("div", $, [g(e2.$slots, "extraRender")])])) : y("", true), m("view", k, [m("view", { class: u(["collapse-content", e2.emptyContent]), ref: "contentRef" }, [g(e2.$slots, "default")], 2)], 512)], 2);
65
- }]]);
66
- export { H as default };
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 };