@nutui/nutui 3.1.21-beta.3 → 3.1.22-beta.3

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 (284) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/nutui.es.js +4024 -18197
  3. package/dist/nutui.umd.js +4017 -18290
  4. package/dist/packages/_es/ActionSheet.js +26 -157
  5. package/dist/packages/_es/Address.js +119 -542
  6. package/dist/packages/_es/AddressList.js +113 -611
  7. package/dist/packages/_es/Audio.js +62 -274
  8. package/dist/packages/_es/AudioOperate.js +18 -107
  9. package/dist/packages/_es/Avatar.js +42 -165
  10. package/dist/packages/_es/AvatarGroup.js +14 -73
  11. package/dist/packages/_es/BackTop.js +43 -156
  12. package/dist/packages/_es/Badge.js +14 -86
  13. package/dist/packages/_es/Barrage.js +41 -113
  14. package/dist/packages/_es/Button.js +23 -128
  15. package/dist/packages/_es/Calendar.js +24 -237
  16. package/dist/packages/_es/CalendarItem.js +1 -1
  17. package/dist/packages/_es/Card.js +10 -107
  18. package/dist/packages/_es/Cascader.js +156 -500
  19. package/dist/packages/_es/Category.js +15 -58
  20. package/dist/packages/_es/CategoryPane.js +11 -111
  21. package/dist/packages/_es/Cell.js +21 -98
  22. package/dist/packages/_es/CellGroup.js +9 -44
  23. package/dist/packages/_es/Checkbox.js +31 -113
  24. package/dist/packages/_es/CheckboxGroup.js +29 -58
  25. package/dist/packages/_es/CircleProgress.js +28 -151
  26. package/dist/packages/_es/Col.js +14 -56
  27. package/dist/packages/_es/Collapse.js +24 -85
  28. package/dist/packages/_es/CollapseItem.js +70 -261
  29. package/dist/packages/_es/Comment.js +64 -434
  30. package/dist/packages/_es/CountDown.js +61 -242
  31. package/dist/packages/_es/CountUp.js +149 -548
  32. package/dist/packages/_es/DatePicker.js +107 -322
  33. package/dist/packages/_es/Dialog.js +69 -259
  34. package/dist/packages/_es/Divider.js +32 -45
  35. package/dist/packages/_es/Drag.js +56 -197
  36. package/dist/packages/_es/Ecard.js +24 -159
  37. package/dist/packages/_es/Elevator.js +63 -194
  38. package/dist/packages/_es/Empty.js +12 -71
  39. package/dist/packages/_es/FixedNav.js +15 -122
  40. package/dist/packages/_es/Form.js +64 -146
  41. package/dist/packages/_es/FormItem.js +15 -110
  42. package/dist/packages/_es/Grid.js +5 -6
  43. package/dist/packages/_es/GridItem.js +33 -144
  44. package/dist/packages/_es/Icon.js +15 -40
  45. package/dist/packages/_es/ImagePreview.js +74 -298
  46. package/dist/packages/_es/Indicator.js +15 -62
  47. package/dist/packages/_es/InfiniteLoading.js +66 -258
  48. package/dist/packages/_es/Input.js +51 -413
  49. package/dist/packages/_es/InputNumber.js +41 -160
  50. package/dist/packages/_es/Layout.js +4 -5
  51. package/dist/packages/_es/List.js +23 -109
  52. package/dist/packages/_es/Menu.js +30 -114
  53. package/dist/packages/_es/MenuItem.js +34 -161
  54. package/dist/packages/_es/Navbar.js +30 -94
  55. package/dist/packages/_es/NoticeBar.js +83 -387
  56. package/dist/packages/_es/Notify.js +81 -236
  57. package/dist/packages/_es/NumberKeyboard.js +41 -262
  58. package/dist/packages/_es/OldPicker.js +140 -464
  59. package/dist/packages/_es/OverLay.js +32 -105
  60. package/dist/packages/_es/Pagination.js +39 -157
  61. package/dist/packages/_es/Picker.js +138 -457
  62. package/dist/packages/_es/Popover.js +344 -185
  63. package/dist/packages/_es/Popup.js +64 -300
  64. package/dist/packages/_es/Price.js +16 -118
  65. package/dist/packages/_es/Progress.js +14 -146
  66. package/dist/packages/_es/PullRefresh.js +92 -346
  67. package/dist/packages/_es/Radio.js +22 -90
  68. package/dist/packages/_es/RadioGroup.js +8 -37
  69. package/dist/packages/_es/Range.js +92 -417
  70. package/dist/packages/_es/Rate.js +16 -139
  71. package/dist/packages/_es/Row.js +22 -64
  72. package/dist/packages/_es/SearchBar.js +46 -181
  73. package/dist/packages/_es/ShortPassword.js +35 -225
  74. package/dist/packages/_es/SideNavBar.js +33 -89
  75. package/dist/packages/_es/SideNavBarItem.js +11 -46
  76. package/dist/packages/_es/Signature.js +46 -165
  77. package/dist/packages/_es/Skeleton.js +20 -136
  78. package/dist/packages/_es/Sku.js +93 -499
  79. package/dist/packages/_es/Step.js +25 -119
  80. package/dist/packages/_es/Steps.js +18 -53
  81. package/dist/packages/_es/Sticky.js +53 -138
  82. package/dist/packages/_es/SubSideNavBar.js +26 -90
  83. package/dist/packages/_es/Swipe.js +46 -183
  84. package/dist/packages/_es/Swiper.js +121 -414
  85. package/dist/packages/_es/SwiperItem.js +22 -50
  86. package/dist/packages/_es/Switch.js +21 -116
  87. package/dist/packages/_es/TabPane.js +12 -35
  88. package/dist/packages/_es/Tabbar.js +17 -72
  89. package/dist/packages/_es/TabbarItem.js +29 -150
  90. package/dist/packages/_es/Table.js +27 -186
  91. package/dist/packages/_es/Tabs.js +51 -204
  92. package/dist/packages/_es/Tag.js +20 -97
  93. package/dist/packages/_es/TextArea.js +42 -160
  94. package/dist/packages/_es/TimeDetail.js +23 -84
  95. package/dist/packages/_es/TimePannel.js +19 -52
  96. package/dist/packages/_es/TimeSelect.js +15 -103
  97. package/dist/packages/_es/Toast.js +80 -319
  98. package/dist/packages/_es/Uploader.js +112 -459
  99. package/dist/packages/_es/Video.js +83 -340
  100. package/dist/packages/_es/common.js +38 -128
  101. package/dist/packages/_es/component.js +35 -76
  102. package/dist/packages/_es/index.js +5 -6
  103. package/dist/packages/_es/index2.js +9 -30
  104. package/dist/packages/_es/index3.js +6 -8
  105. package/dist/packages/_es/index4.js +13 -58
  106. package/dist/packages/_es/index5.js +120 -675
  107. package/dist/packages/_es/plugin-vue_export-helper.js +7 -8
  108. package/dist/packages/_es/pxCheck.js +3 -5
  109. package/dist/packages/_es/raf.js +8 -15
  110. package/dist/packages/addresslist/index.scss +2 -2
  111. package/dist/packages/button/index.scss +2 -1
  112. package/dist/packages/card/index.scss +1 -1
  113. package/dist/packages/cell/index.scss +15 -0
  114. package/dist/packages/checkbox/index.scss +6 -0
  115. package/dist/packages/dialog/index.scss +1 -2
  116. package/dist/packages/divider/index.scss +9 -0
  117. package/dist/packages/elevator/index.scss +21 -0
  118. package/dist/packages/formitem/index.scss +1 -0
  119. package/dist/packages/input/index.scss +13 -1
  120. package/dist/packages/locale/index.d.ts +8 -3
  121. package/dist/packages/locale/{locale/lang → lang}/baseLang.d.ts +1 -0
  122. package/dist/packages/locale/lang/baseLang.js +3 -3
  123. package/dist/packages/locale/{locale/lang → lang}/en-US.d.ts +16 -0
  124. package/dist/packages/locale/lang/en-US.js +5 -89
  125. package/dist/packages/locale/lang/id-ID.d.ts +104 -0
  126. package/dist/packages/locale/lang/id-ID.js +12 -0
  127. package/dist/packages/locale/lang/index.js +16 -38
  128. package/dist/packages/locale/{locale/lang → lang}/zh-CN.d.ts +16 -0
  129. package/dist/packages/locale/lang/zh-CN.js +5 -89
  130. package/dist/packages/locale/{locale/lang → lang}/zh-TW.d.ts +16 -0
  131. package/dist/packages/locale/lang/zh-TW.js +5 -89
  132. package/dist/packages/menuitem/index.scss +0 -1
  133. package/dist/packages/navbar/index.scss +8 -1
  134. package/dist/packages/popover/index.scss +402 -81
  135. package/dist/packages/popup/index.scss +3 -0
  136. package/dist/packages/radio/index.scss +1 -0
  137. package/dist/packages/searchbar/index.scss +4 -0
  138. package/dist/packages/switch/index.scss +3 -3
  139. package/dist/packages/tabbar/index.scss +2 -2
  140. package/dist/packages/tabpane/index.scss +5 -2
  141. package/dist/packages/tabs/index.scss +3 -0
  142. package/dist/packages/timeselect/index.scss +3 -2
  143. package/dist/smartips/attributes.json +188 -44
  144. package/dist/smartips/tags.json +65 -27
  145. package/dist/style.css +1 -1
  146. package/dist/styles/themes/default.scss +48 -48
  147. package/dist/styles/themes/jdb.scss +48 -48
  148. package/dist/styles/themes/jdt.scss +48 -48
  149. package/dist/styles/variables-jdb.scss +25 -8
  150. package/dist/styles/variables-jdt.scss +25 -8
  151. package/dist/styles/variables.scss +25 -7
  152. package/dist/types/__VUE/actionsheet/{index.d.ts → index.vue.d.ts} +62 -114
  153. package/dist/types/__VUE/address/{index.d.ts → index.vue.d.ts} +81 -151
  154. package/dist/types/__VUE/addresslist/components/{GeneralShell.d.ts → GeneralShell.vue.d.ts} +6 -7
  155. package/dist/types/__VUE/addresslist/components/{ItemContents.d.ts → ItemContents.vue.d.ts} +9 -11
  156. package/dist/types/__VUE/addresslist/components/{LongPressShell.d.ts → LongPressShell.vue.d.ts} +6 -7
  157. package/dist/types/__VUE/addresslist/components/{SwipeShell.d.ts → SwipeShell.vue.d.ts} +6 -7
  158. package/dist/types/__VUE/addresslist/{index.d.ts → index.vue.d.ts} +14 -23
  159. package/dist/types/__VUE/audio/index.vue.d.ts +102 -0
  160. package/dist/types/__VUE/audiooperate/index.vue.d.ts +88 -0
  161. package/dist/types/__VUE/avatar/{index.d.ts → index.vue.d.ts} +17 -30
  162. package/dist/types/__VUE/avatargroup/{index.d.ts → index.vue.d.ts} +20 -35
  163. package/dist/types/__VUE/backtop/{index.d.ts → index.vue.d.ts} +18 -34
  164. package/dist/types/__VUE/badge/{index.d.ts → index.vue.d.ts} +20 -33
  165. package/dist/types/__VUE/barrage/{index.d.ts → index.vue.d.ts} +15 -26
  166. package/dist/types/__VUE/button/{index.d.ts → index.vue.d.ts} +33 -50
  167. package/dist/types/__VUE/button/type.d.ts +7 -0
  168. package/dist/types/__VUE/calendar/{index.d.ts → index.vue.d.ts} +32 -57
  169. package/dist/types/__VUE/calendaritem/{index.d.ts → index.vue.d.ts} +33 -58
  170. package/dist/types/__VUE/card/{index.d.ts → index.vue.d.ts} +19 -34
  171. package/dist/types/__VUE/cascader/{cascader-item.d.ts → cascader-item.vue.d.ts} +22 -23
  172. package/dist/types/__VUE/cascader/{index.d.ts → index.vue.d.ts} +62 -98
  173. package/dist/types/__VUE/category/{index.d.ts → index.vue.d.ts} +7 -10
  174. package/dist/types/__VUE/categorypane/{index.d.ts → index.vue.d.ts} +10 -15
  175. package/dist/types/__VUE/cell/{index.d.ts → index.vue.d.ts} +38 -39
  176. package/dist/types/__VUE/cellgroup/{index.d.ts → index.vue.d.ts} +8 -11
  177. package/dist/types/__VUE/checkbox/common.d.ts +59 -0
  178. package/dist/types/__VUE/checkbox/{index.d.ts → index.vue.d.ts} +36 -40
  179. package/dist/types/__VUE/checkboxgroup/{index.d.ts → index.vue.d.ts} +15 -11
  180. package/dist/types/__VUE/circleprogress/{index.d.ts → index.vue.d.ts} +18 -31
  181. package/dist/types/__VUE/col/{index.d.ts → index.vue.d.ts} +7 -10
  182. package/dist/types/__VUE/collapse/{index.d.ts → index.vue.d.ts} +24 -40
  183. package/dist/types/__VUE/collapseitem/{index.d.ts → index.vue.d.ts} +22 -30
  184. package/dist/types/__VUE/comment/components/{CmtBottom.d.ts → CmtBottom.vue.d.ts} +10 -15
  185. package/dist/types/__VUE/comment/components/{CmtHeader.d.ts → CmtHeader.vue.d.ts} +10 -15
  186. package/dist/types/__VUE/comment/components/{CmtImages.d.ts → CmtImages.vue.d.ts} +10 -15
  187. package/dist/types/__VUE/comment/{index.d.ts → index.vue.d.ts} +21 -38
  188. package/dist/types/__VUE/countdown/{index.d.ts → index.vue.d.ts} +21 -35
  189. package/dist/types/__VUE/countup/{index.d.ts → index.vue.d.ts} +41 -74
  190. package/dist/types/__VUE/datepicker/{index.d.ts → index.vue.d.ts} +71 -125
  191. package/dist/types/__VUE/datepicker/type.d.ts +6 -0
  192. package/dist/types/__VUE/dialog/index.d.ts +44 -302
  193. package/dist/types/__VUE/dialog/index.vue.d.ts +263 -0
  194. package/dist/types/__VUE/divider/{index.d.ts → index.vue.d.ts} +15 -15
  195. package/dist/types/__VUE/drag/{index.d.ts → index.vue.d.ts} +9 -19
  196. package/dist/types/__VUE/ecard/{index.d.ts → index.vue.d.ts} +25 -44
  197. package/dist/types/__VUE/elevator/{index.d.ts → index.vue.d.ts} +39 -14
  198. package/dist/types/__VUE/empty/{index.d.ts → index.vue.d.ts} +9 -14
  199. package/dist/types/__VUE/fixednav/{index.d.ts → index.vue.d.ts} +18 -34
  200. package/dist/types/__VUE/form/{index.d.ts → index.vue.d.ts} +5 -6
  201. package/dist/types/__VUE/formitem/{index.d.ts → index.vue.d.ts} +29 -55
  202. package/dist/types/__VUE/grid/common.d.ts +3 -3
  203. package/dist/types/__VUE/grid/{index.d.ts → index.vue.d.ts} +24 -40
  204. package/dist/types/__VUE/griditem/{index.d.ts → index.vue.d.ts} +19 -26
  205. package/dist/types/__VUE/icon/{index.d.ts → index.vue.d.ts} +15 -26
  206. package/dist/types/__VUE/imagepreview/index.d.ts +20 -121
  207. package/dist/types/__VUE/imagepreview/index.vue.d.ts +108 -0
  208. package/dist/types/__VUE/indicator/{index.d.ts → index.vue.d.ts} +13 -24
  209. package/dist/types/__VUE/infiniteloading/{index.d.ts → index.vue.d.ts} +26 -47
  210. package/dist/types/__VUE/input/{index.d.ts → index.vue.d.ts} +81 -144
  211. package/dist/types/__VUE/input/type.d.ts +13 -0
  212. package/dist/types/__VUE/inputnumber/{index.d.ts → index.vue.d.ts} +22 -39
  213. package/dist/types/__VUE/layout/{index.d.ts → index.vue.d.ts} +1 -1
  214. package/dist/types/__VUE/list/{index.d.ts → index.vue.d.ts} +10 -14
  215. package/dist/types/__VUE/menu/{index.d.ts → index.vue.d.ts} +16 -14
  216. package/dist/types/__VUE/menuitem/{index.d.ts → index.vue.d.ts} +20 -24
  217. package/dist/types/__VUE/menuitem/type.d.ts +8 -0
  218. package/dist/types/__VUE/navbar/{index.d.ts → index.vue.d.ts} +48 -26
  219. package/dist/types/__VUE/noticebar/{index.d.ts → index.vue.d.ts} +35 -64
  220. package/dist/types/__VUE/notify/index.d.ts +12 -109
  221. package/dist/types/__VUE/notify/index.vue.d.ts +101 -0
  222. package/dist/types/__VUE/numberkeyboard/{index.d.ts → index.vue.d.ts} +41 -43
  223. package/dist/types/__VUE/oldpicker/{Column.d.ts → Column.vue.d.ts} +17 -22
  224. package/dist/types/__VUE/oldpicker/{index.d.ts → index.vue.d.ts} +75 -128
  225. package/dist/types/__VUE/overlay/{index.d.ts → index.vue.d.ts} +19 -30
  226. package/dist/types/__VUE/pagination/{index.d.ts → index.vue.d.ts} +21 -38
  227. package/dist/types/__VUE/picker/{Column.d.ts → Column.vue.d.ts} +16 -18
  228. package/dist/types/__VUE/picker/{index.d.ts → index.vue.d.ts} +79 -129
  229. package/dist/types/__VUE/popover/{index.d.ts → index.vue.d.ts} +85 -109
  230. package/dist/types/__VUE/popover/type.d.ts +6 -0
  231. package/dist/types/__VUE/popup/{index.d.ts → index.vue.d.ts} +45 -80
  232. package/dist/types/__VUE/price/{index.d.ts → index.vue.d.ts} +17 -30
  233. package/dist/types/__VUE/progress/{index.d.ts → index.vue.d.ts} +29 -53
  234. package/dist/types/__VUE/pullrefresh/{index.d.ts → index.vue.d.ts} +18 -46
  235. package/dist/types/__VUE/radio/{index.d.ts → index.vue.d.ts} +19 -34
  236. package/dist/types/__VUE/radiogroup/{index.d.ts → index.vue.d.ts} +10 -15
  237. package/dist/types/__VUE/range/{index.d.ts → index.vue.d.ts} +35 -47
  238. package/dist/types/__VUE/range/type.d.ts +5 -0
  239. package/dist/types/__VUE/rate/{index.d.ts → index.vue.d.ts} +30 -55
  240. package/dist/types/__VUE/row/{index.d.ts → index.vue.d.ts} +16 -25
  241. package/dist/types/__VUE/searchbar/{index.d.ts → index.vue.d.ts} +62 -32
  242. package/dist/types/__VUE/shortpassword/{index.d.ts → index.vue.d.ts} +25 -44
  243. package/dist/types/__VUE/sidenavbar/{index.d.ts → index.vue.d.ts} +6 -7
  244. package/dist/types/__VUE/sidenavbaritem/{index.d.ts → index.vue.d.ts} +8 -11
  245. package/dist/types/__VUE/signature/{index.d.ts → index.vue.d.ts} +13 -22
  246. package/dist/types/__VUE/skeleton/common.d.ts +3 -5
  247. package/dist/types/__VUE/skeleton/{index.d.ts → index.vue.d.ts} +24 -43
  248. package/dist/types/__VUE/sku/components/{SkuHeader.d.ts → SkuHeader.vue.d.ts} +6 -7
  249. package/dist/types/__VUE/sku/components/{SkuOperate.d.ts → SkuOperate.vue.d.ts} +14 -23
  250. package/dist/types/__VUE/sku/components/{SkuSelect.d.ts → SkuSelect.vue.d.ts} +6 -7
  251. package/dist/types/__VUE/sku/components/{SkuStepper.d.ts → SkuStepper.vue.d.ts} +12 -19
  252. package/dist/types/__VUE/sku/{index.d.ts → index.vue.d.ts} +66 -124
  253. package/dist/types/__VUE/step/{index.d.ts → index.vue.d.ts} +14 -23
  254. package/dist/types/__VUE/steps/{index.d.ts → index.vue.d.ts} +9 -14
  255. package/dist/types/__VUE/sticky/{index.d.ts → index.vue.d.ts} +14 -21
  256. package/dist/types/__VUE/subsidenavbar/{index.d.ts → index.vue.d.ts} +10 -15
  257. package/dist/types/__VUE/swipe/{index.d.ts → index.vue.d.ts} +11 -18
  258. package/dist/types/__VUE/swiper/{index.d.ts → index.vue.d.ts} +30 -50
  259. package/dist/types/__VUE/swiperitem/{index.d.ts → index.vue.d.ts} +2 -2
  260. package/dist/types/__VUE/switch/{index.d.ts → index.vue.d.ts} +28 -51
  261. package/dist/types/__VUE/tabbar/{index.d.ts → index.vue.d.ts} +17 -30
  262. package/dist/types/__VUE/tabbaritem/{index.d.ts → index.vue.d.ts} +25 -40
  263. package/dist/types/__VUE/table/common.d.ts +1 -1
  264. package/dist/types/__VUE/table/{index.d.ts → index.vue.d.ts} +14 -23
  265. package/dist/types/__VUE/tabpane/{index.d.ts → index.vue.d.ts} +11 -15
  266. package/dist/types/__VUE/tabs/common.d.ts +6 -2
  267. package/dist/types/__VUE/tabs/{index.d.ts → index.vue.d.ts} +30 -42
  268. package/dist/types/__VUE/tag/{index.d.ts → index.vue.d.ts} +21 -34
  269. package/dist/types/__VUE/tag/type.d.ts +5 -0
  270. package/dist/types/__VUE/textarea/{index.d.ts → index.vue.d.ts} +26 -45
  271. package/dist/types/__VUE/timedetail/{index.d.ts → index.vue.d.ts} +8 -11
  272. package/dist/types/__VUE/timepannel/{index.d.ts → index.vue.d.ts} +8 -11
  273. package/dist/types/__VUE/timeselect/{index.d.ts → index.vue.d.ts} +25 -29
  274. package/dist/types/__VUE/toast/index.d.ts +12 -145
  275. package/dist/types/__VUE/toast/index.vue.d.ts +134 -0
  276. package/dist/types/__VUE/uploader/{index.d.ts → index.vue.d.ts} +59 -106
  277. package/dist/types/__VUE/uploader/type.d.ts +18 -0
  278. package/dist/types/__VUE/video/{index.d.ts → index.vue.d.ts} +9 -26
  279. package/dist/types/index.d.ts +7 -2
  280. package/dist/types/nutui.d.ts +92 -92
  281. package/package.json +7 -3
  282. package/dist/packages/locale/locale/index.d.ts +0 -8
  283. package/dist/types/__VUE/audio/index.d.ts +0 -92
  284. package/dist/types/__VUE/audiooperate/index.d.ts +0 -68
@@ -5,134 +5,40 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
8
+ var __spreadValues = (a2, b) => {
9
9
  for (var prop in b || (b = {}))
10
10
  if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
11
+ __defNormalProp(a2, prop, b[prop]);
12
12
  if (__getOwnPropSymbols)
13
13
  for (var prop of __getOwnPropSymbols(b)) {
14
14
  if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
15
+ __defNormalProp(a2, prop, b[prop]);
16
16
  }
17
- return a;
17
+ return a2;
18
18
  };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19
+ var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:57 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
22
22
  * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
26
- import { c as createComponent } from "./component.js";
27
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
25
+ import { getCurrentInstance as e, inject as t, reactive as n, computed as s, toRefs as o, resolveComponent as i, openBlock as l, createElementBlock as c, normalizeClass as r, createElementVNode as p, createBlock as a, Fragment as u, toDisplayString as d, createCommentVNode as m, renderSlot as v } from "vue";
26
+ import { c as f } from "./component.js";
27
+ import { _ as y } from "./plugin-vue_export-helper.js";
28
28
  import "../locale/lang";
29
- const { create, componentName } = createComponent("step");
30
- const _sfc_main = create({
31
- props: {
32
- title: {
33
- type: String,
34
- default: ""
35
- },
36
- content: {
37
- type: String,
38
- default: ""
39
- },
40
- icon: {
41
- type: String,
42
- default: null
43
- },
44
- iconColor: {
45
- type: String,
46
- default: ""
47
- },
48
- size: {
49
- type: [String, Number],
50
- default: "12px"
51
- }
52
- },
53
- emits: ["click-step"],
54
- setup(props, { emit, slots }) {
55
- const { proxy } = getCurrentInstance();
56
- const parent = inject("parent");
57
- parent["relation"](proxy);
58
- const state = reactive({
59
- dot: parent.props.progressDot
60
- });
61
- const index2 = computed(() => parent.state.children.indexOf(proxy) + 1);
62
- const getCurrentStatus = () => {
63
- const activeIndex = index2.value;
64
- if (activeIndex < +parent.props.current)
65
- return "finish";
66
- return activeIndex === +parent.props.current ? "process" : "wait";
67
- };
68
- const status = computed(() => {
69
- return getCurrentStatus();
70
- });
71
- const classes = computed(() => {
72
- const prefixCls = componentName;
73
- return {
74
- [prefixCls]: true,
75
- [`${prefixCls}-${status.value}`]: true
76
- };
77
- });
78
- const handleClickStep = () => {
79
- parent["onEmit"](index2.value);
80
- };
81
- return __spreadProps(__spreadValues({}, toRefs(state)), {
82
- index: index2,
83
- classes,
84
- handleClickStep
85
- });
86
- }
87
- });
88
- const _hoisted_1 = { class: "nut-step-head" };
89
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
90
- const _hoisted_3 = {
91
- key: 2,
92
- class: "nut-step-inner"
93
- };
94
- const _hoisted_4 = { class: "nut-step-main" };
95
- const _hoisted_5 = { class: "nut-step-title" };
96
- const _hoisted_6 = { key: 0 };
97
- const _hoisted_7 = {
98
- key: 0,
99
- class: "nut-step-content"
100
- };
101
- const _hoisted_8 = ["innerHTML"];
102
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
- const _component_nut_icon = resolveComponent("nut-icon");
104
- return openBlock(), createElementBlock("view", {
105
- class: normalizeClass(_ctx.classes),
106
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickStep && _ctx.handleClickStep(...args))
107
- }, [
108
- createElementVNode("view", _hoisted_1, [
109
- _hoisted_2,
110
- createElementVNode("view", {
111
- class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
112
- }, [
113
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
114
- key: 0,
115
- class: "nut-step-icon-inner",
116
- color: _ctx.iconColor,
117
- name: _ctx.icon,
118
- size: _ctx.size
119
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.index), 1))
120
- ], 2)
121
- ]),
122
- createElementVNode("view", _hoisted_4, [
123
- createElementVNode("view", _hoisted_5, [
124
- !_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
125
- renderSlot(_ctx.$slots, "title")
126
- ]),
127
- _ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_7, [
128
- !_ctx.$slots.content ? (openBlock(), createElementBlock("span", {
129
- key: 0,
130
- innerHTML: _ctx.content
131
- }, null, 8, _hoisted_8)) : createCommentVNode("", true),
132
- renderSlot(_ctx.$slots, "content")
133
- ])) : createCommentVNode("", true)
134
- ])
135
- ], 2);
136
- }
137
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
138
- export { index as default };
29
+ const { create: k, componentName: w } = f("step"), g = k({ props: { title: { type: String, default: "" }, content: { type: String, default: "" }, icon: { type: String, default: null }, iconColor: { type: String, default: "" }, size: { type: [String, Number], default: "12px" } }, emits: ["click-step"], setup(i2, { emit: l2, slots: c2 }) {
30
+ const { proxy: r2 } = e(), p2 = t("parent");
31
+ p2.relation(r2);
32
+ const a2 = n({ dot: p2.props.progressDot }), u2 = s(() => p2.state.children.indexOf(r2) + 1), d2 = s(() => (() => {
33
+ const e2 = u2.value;
34
+ return e2 < +p2.props.current ? "finish" : e2 === +p2.props.current ? "process" : "wait";
35
+ })()), m2 = s(() => ({ [w]: true, [`${w}-${d2.value}`]: true }));
36
+ return __spreadProps(__spreadValues({}, o(a2)), { index: u2, classes: m2, handleClickStep: () => {
37
+ p2.onEmit(u2.value);
38
+ } });
39
+ } }), x = { class: "nut-step-head" }, S = p("view", { class: "nut-step-line" }, null, -1), h = { key: 2, class: "nut-step-inner" }, $ = { class: "nut-step-main" }, C = { class: "nut-step-title" }, z = { key: 0 }, j = { key: 0, class: "nut-step-content" }, H = ["innerHTML"];
40
+ var L = y(g, [["render", function(e2, t2, n2, s2, o2, f2) {
41
+ const y2 = i("nut-icon");
42
+ return l(), c("view", { class: r(e2.classes), onClick: t2[0] || (t2[0] = (...t3) => e2.handleClickStep && e2.handleClickStep(...t3)) }, [p("view", x, [S, p("view", { class: r(["nut-step-icon", [e2.dot ? "" : e2.icon ? "is-icon" : "is-text"]]) }, [e2.icon ? (l(), a(y2, { key: 0, class: "nut-step-icon-inner", color: e2.iconColor, name: e2.icon, size: e2.size }, null, 8, ["color", "name", "size"])) : e2.dot ? (l(), c(u, { key: 1 }, [], 64)) : (l(), c("view", h, d(e2.index), 1))], 2)]), p("view", $, [p("view", C, [e2.$slots.title ? m("", true) : (l(), c("span", z, d(e2.title), 1)), v(e2.$slots, "title")]), e2.content || e2.$slots.content ? (l(), c("view", j, [e2.$slots.content ? m("", true) : (l(), c("span", { key: 0, innerHTML: e2.content }, null, 8, H)), v(e2.$slots, "content")])) : m("", true)])], 2);
43
+ }]]);
44
+ export { L as default };
@@ -1,58 +1,23 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, computed, provide, h } from "vue";
7
- import { c as createComponent } from "./component.js";
6
+ import { reactive as t, computed as e, provide as o, h as r } from "vue";
7
+ import { c as s } from "./component.js";
8
8
  import "../locale/lang";
9
- const { create, componentName } = createComponent("steps");
10
- const _sfc_main = create({
11
- props: {
12
- direction: {
13
- type: String,
14
- default: "horizontal"
15
- },
16
- current: {
17
- type: [String, Number],
18
- default: "0"
19
- },
20
- progressDot: {
21
- type: Boolean,
22
- default: false
23
- }
24
- },
25
- emits: ["click-step"],
26
- setup(props, { emit, slots }) {
27
- const state = reactive({
28
- children: []
29
- });
30
- const classes = computed(() => {
31
- const prefixCls = componentName;
32
- return {
33
- [prefixCls]: true,
34
- [`${prefixCls}-${props.direction}`]: true,
35
- [`${prefixCls}-dot`]: !!props.progressDot
36
- };
37
- });
38
- const relation = (child) => {
39
- child && state.children.push(child);
40
- };
41
- const onEmit = (index) => {
42
- emit("click-step", index);
43
- };
44
- provide("parent", {
45
- relation,
46
- state,
47
- props,
48
- onEmit
49
- });
50
- return () => {
51
- var _a;
52
- return h("view", {
53
- class: classes.value
54
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
55
- };
56
- }
57
- });
58
- export { _sfc_main as default };
9
+ const { create: n, componentName: p } = s("steps"), i = n({ props: { direction: { type: String, default: "horizontal" }, current: { type: [String, Number], default: "0" }, progressDot: { type: Boolean, default: false } }, emits: ["click-step"], setup(s2, { emit: n2, slots: i2 }) {
10
+ const a = t({ children: [] }), c = e(() => {
11
+ const t2 = p;
12
+ return { [t2]: true, [`${t2}-${s2.direction}`]: true, [`${t2}-dot`]: !!s2.progressDot };
13
+ });
14
+ return o("parent", { relation: (t2) => {
15
+ t2 && a.children.push(t2);
16
+ }, state: a, props: s2, onEmit: (t2) => {
17
+ n2("click-step", t2);
18
+ } }), () => {
19
+ var _a;
20
+ return r("view", { class: c.value }, (_a = i2.default) == null ? void 0 : _a.call(i2));
21
+ };
22
+ } });
23
+ export { i as default };
@@ -1,144 +1,59 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, reactive, computed, watch, onMounted, onUnmounted, h, unref } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { u as useRect } from "./index2.js";
6
+ import { ref as t, reactive as e, computed as o, watch as i, onMounted as n, onUnmounted as r, h as s, unref as l } from "vue";
7
+ import { c as a } from "./component.js";
8
+ import { u as d } from "./index2.js";
9
9
  import "../locale/lang";
10
- const { componentName, create } = createComponent("sticky");
11
- const _sfc_main = create({
12
- props: {
13
- position: {
14
- type: String,
15
- default: "top"
16
- },
17
- top: {
18
- type: [Number, String],
19
- default: 0
20
- },
21
- bottom: {
22
- type: [Number, String],
23
- default: 0
24
- },
25
- container: {
26
- type: Object
27
- },
28
- zIndex: {
29
- type: [Number, String],
30
- default: 2e3
10
+ const { componentName: f, create: p } = a("sticky"), m = p({ props: { position: { type: String, default: "top" }, top: { type: [Number, String], default: 0 }, bottom: { type: [Number, String], default: 0 }, container: { type: Object }, zIndex: { type: [Number, String], default: 2e3 } }, emits: ["change", "scroll"], setup(a2, { emit: p2, slots: m2 }) {
11
+ const u = t(), c = e({ width: 0, height: 0, fixed: false, transform: 0 }), h = o(() => {
12
+ const { fixed: t2, width: e2, height: o2 } = c;
13
+ if (t2)
14
+ return { width: `${e2}px`, height: `${o2}px` };
15
+ }), x = o(() => {
16
+ if (!c.fixed)
17
+ return;
18
+ const t2 = { width: `${c.width}px`, height: `${c.height}px`, [a2.position]: `${g.value}px`, zIndex: +a2.zIndex };
19
+ return c.transform && (t2.transform = `translate3d(0, ${c.transform}px, 0)`), t2;
20
+ }), g = o(() => a2.position === "top" ? a2.top : a2.bottom), w = () => !(!u.value || ((t2) => {
21
+ const e2 = l(t2);
22
+ if (!e2)
23
+ return false;
24
+ const o2 = window.getComputedStyle(e2), i2 = o2.display === "none", n2 = e2.offsetParent === null && o2.position !== "fixed";
25
+ return i2 || n2;
26
+ })(u)), v = () => {
27
+ if (!w())
28
+ return;
29
+ const { container: t2, position: e2 } = a2, o2 = (i2 = window, Math.max(0, "scrollTop" in i2 ? i2.scrollTop : i2.pageYOffset));
30
+ var i2;
31
+ const n2 = d(u);
32
+ if ((n2.width || n2.height) && (c.width = n2.width, c.height = n2.height), e2 === "top")
33
+ if (t2) {
34
+ const e3 = d(t2), o3 = e3.bottom - +g.value - c.height;
35
+ c.fixed = +g.value > n2.top && e3.bottom > 0, c.transform = o3 < 0 ? o3 : 0;
36
+ } else
37
+ c.fixed = g.value > n2.top;
38
+ else if (e2 === "bottom") {
39
+ const e3 = document.documentElement.clientHeight;
40
+ if (t2) {
41
+ const o3 = d(t2), i3 = e3 - o3.top - +g.value - c.height;
42
+ c.fixed = e3 - +g.value < n2.bottom && e3 > o3.top, c.transform = i3 < 0 ? -i3 : 0;
43
+ } else
44
+ c.fixed = e3 - +g.value < n2.bottom;
31
45
  }
32
- },
33
- emits: ["change", "scroll"],
34
- setup(props, { emit, slots }) {
35
- const root = ref();
36
- const state = reactive({
37
- width: 0,
38
- height: 0,
39
- fixed: false,
40
- transform: 0
41
- });
42
- const rootStyle = computed(() => {
43
- const { fixed, width, height } = state;
44
- if (fixed) {
45
- return {
46
- width: `${width}px`,
47
- height: `${height}px`
48
- };
49
- }
50
- });
51
- const stickyStyle = computed(() => {
52
- if (!state.fixed)
53
- return;
54
- const style = {
55
- width: `${state.width}px`,
56
- height: `${state.height}px`,
57
- [props.position]: `${offset.value}px`,
58
- zIndex: +props.zIndex
59
- };
60
- if (state.transform)
61
- style.transform = `translate3d(0, ${state.transform}px, 0)`;
62
- return style;
63
- });
64
- const offset = computed(() => {
65
- return props.position === "top" ? props.top : props.bottom;
66
- });
67
- const isHidden = (elementRef) => {
68
- const el = unref(elementRef);
69
- if (!el)
70
- return false;
71
- const style = window.getComputedStyle(el);
72
- const hidden = style.display === "none";
73
- const parentHidden = el.offsetParent === null && style.position !== "fixed";
74
- return hidden || parentHidden;
75
- };
76
- const isExistRoot = () => {
77
- if (!root.value || isHidden(root))
78
- return false;
79
- return true;
80
- };
81
- const getScrollTop = (el) => {
82
- return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
83
- };
84
- const renderFixed = () => {
85
- var _a;
86
- return h("view", {
87
- style: stickyStyle.value,
88
- class: state.fixed ? `${componentName} nut-sticky--fixed` : componentName
89
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
90
- };
91
- const onScroll = () => {
92
- if (!isExistRoot())
93
- return;
94
- const { container, position } = props;
95
- const scrollTop = getScrollTop(window);
96
- const rootRect = useRect(root);
97
- if (rootRect.width || rootRect.height) {
98
- state.width = rootRect.width;
99
- state.height = rootRect.height;
100
- }
101
- if (position === "top") {
102
- if (container) {
103
- const containerRect = useRect(container);
104
- const diff = containerRect.bottom - +offset.value - state.height;
105
- state.fixed = +offset.value > rootRect.top && containerRect.bottom > 0;
106
- state.transform = diff < 0 ? diff : 0;
107
- } else {
108
- state.fixed = offset.value > rootRect.top;
109
- }
110
- } else if (position === "bottom") {
111
- const clientHeight = document.documentElement.clientHeight;
112
- if (container) {
113
- const containerRect = useRect(container);
114
- const diff = clientHeight - containerRect.top - +offset.value - state.height;
115
- state.fixed = clientHeight - +offset.value < rootRect.bottom && clientHeight > containerRect.top;
116
- state.transform = diff < 0 ? -diff : 0;
117
- } else {
118
- state.fixed = clientHeight - +offset.value < rootRect.bottom;
119
- }
120
- }
121
- emit("scroll", {
122
- top: scrollTop,
123
- fixed: state.fixed
124
- });
125
- };
126
- watch(() => state.fixed, (val) => {
127
- emit("change", val);
128
- });
129
- onMounted(() => {
130
- window.addEventListener("scroll", onScroll);
131
- onScroll();
132
- });
133
- onUnmounted(() => {
134
- window.removeEventListener("scroll", onScroll);
135
- });
136
- return () => {
137
- return h("view", {
138
- style: rootStyle.value,
139
- ref: root
140
- }, [renderFixed()]);
141
- };
142
- }
143
- });
144
- export { _sfc_main as default };
46
+ p2("scroll", { top: o2, fixed: c.fixed });
47
+ };
48
+ return i(() => c.fixed, (t2) => {
49
+ p2("change", t2);
50
+ }), n(() => {
51
+ window.addEventListener("scroll", v), v();
52
+ }), r(() => {
53
+ window.removeEventListener("scroll", v);
54
+ }), () => {
55
+ var _a;
56
+ return s("view", { style: h.value, ref: u }, [s("view", { style: x.value, class: c.fixed ? `${f} nut-sticky--fixed` : f }, (_a = m2.default) == null ? void 0 : _a.call(m2))]);
57
+ };
58
+ } });
59
+ export { m as default };
@@ -5,101 +5,37 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
8
+ var __spreadValues = (a2, b2) => {
9
+ for (var prop in b2 || (b2 = {}))
10
+ if (__hasOwnProp.call(b2, prop))
11
+ __defNormalProp(a2, prop, b2[prop]);
12
12
  if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
13
+ for (var prop of __getOwnPropSymbols(b2)) {
14
+ if (__propIsEnum.call(b2, prop))
15
+ __defNormalProp(a2, prop, b2[prop]);
16
16
  }
17
- return a;
17
+ return a2;
18
18
  };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19
+ var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
20
20
  /*!
21
- * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:57 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
22
22
  * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createVNode, normalizeStyle, renderSlot } from "vue";
26
- import { c as createComponent } from "./component.js";
27
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
25
+ import { reactive as e, computed as t, onMounted as i, toRefs as n, resolveComponent as s, openBlock as a, createElementBlock as l, normalizeClass as o, createElementVNode as r, withModifiers as c, toDisplayString as u, createVNode as d, normalizeStyle as p, renderSlot as m } from "vue";
26
+ import { c as _ } from "./component.js";
27
+ import { _ as b } from "./plugin-vue_export-helper.js";
28
28
  import "../locale/lang";
29
- const { componentName, create } = createComponent("subsidenavbar");
30
- const _sfc_main = create({
31
- props: {
32
- title: {
33
- type: String,
34
- default: ""
35
- },
36
- ikey: {
37
- type: [String, Number],
38
- default: ""
39
- },
40
- open: {
41
- type: Boolean,
42
- default: true
43
- }
44
- },
45
- emits: ["title-click"],
46
- setup: (props, context) => {
47
- const state = reactive({
48
- direction: ""
49
- });
50
- const classes = computed(() => {
51
- const prefixCls = componentName;
52
- return {
53
- [prefixCls]: true
54
- };
55
- });
56
- const style = computed(() => {
57
- return {
58
- height: !state.direction ? "auto" : "0px"
59
- };
60
- });
61
- const handleClick = () => {
62
- context.emit("title-click");
63
- state.direction = !state.direction ? "up" : "";
64
- };
65
- onMounted(() => {
66
- state.direction = props.open ? "" : "up";
67
- });
68
- return __spreadProps(__spreadValues({}, toRefs(state)), {
69
- classes,
70
- style,
71
- handleClick
72
- });
73
- }
74
- });
75
- const _hoisted_1 = ["ikey"];
76
- const _hoisted_2 = { class: "nut-subsidenavbar__title__text" };
77
- const _hoisted_3 = { class: "nut-subsidenavbar__title__icon" };
78
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
79
- const _component_nut_icon = resolveComponent("nut-icon");
80
- return openBlock(), createElementBlock("view", {
81
- class: normalizeClass(_ctx.classes),
82
- ikey: _ctx.ikey
83
- }, [
84
- createElementVNode("view", {
85
- class: "nut-subsidenavbar__title",
86
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
87
- }, [
88
- createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1),
89
- createElementVNode("span", _hoisted_3, [
90
- createVNode(_component_nut_icon, {
91
- name: "down-arrow",
92
- class: normalizeClass(_ctx.direction)
93
- }, null, 8, ["class"])
94
- ])
95
- ]),
96
- createElementVNode("view", {
97
- class: normalizeClass(["nut-subsidenavbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
98
- style: normalizeStyle(_ctx.style)
99
- }, [
100
- renderSlot(_ctx.$slots, "default")
101
- ], 6)
102
- ], 10, _hoisted_1);
103
- }
104
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
105
- export { index as default };
29
+ const { componentName: v, create: k } = _("subsidenavbar"), y = k({ props: { title: { type: String, default: "" }, ikey: { type: [String, Number], default: "" }, open: { type: Boolean, default: true } }, emits: ["title-click"], setup: (s2, a2) => {
30
+ const l2 = e({ direction: "" }), o2 = t(() => ({ [v]: true })), r2 = t(() => ({ height: l2.direction ? "0px" : "auto" }));
31
+ return i(() => {
32
+ l2.direction = s2.open ? "" : "up";
33
+ }), __spreadProps(__spreadValues({}, n(l2)), { classes: o2, style: r2, handleClick: () => {
34
+ a2.emit("title-click"), l2.direction = l2.direction ? "" : "up";
35
+ } });
36
+ } }), f = ["ikey"], h = { class: "nut-subsidenavbar__title__text" }, g = { class: "nut-subsidenavbar__title__icon" };
37
+ var w = b(y, [["render", function(e2, t2, i2, n2, _2, b2) {
38
+ const v2 = s("nut-icon");
39
+ return a(), l("view", { class: o(e2.classes), ikey: e2.ikey }, [r("view", { class: "nut-subsidenavbar__title", onClick: t2[0] || (t2[0] = c((...t3) => e2.handleClick && e2.handleClick(...t3), ["stop"])) }, [r("span", h, u(e2.title), 1), r("span", g, [d(v2, { name: "down-arrow", class: o(e2.direction) }, null, 8, ["class"])])]), r("view", { class: o(["nut-subsidenavbar__list", e2.direction ? "nutFadeOut" : "nutFadeIn"]), style: p(e2.style) }, [m(e2.$slots, "default")], 6)], 10, f);
40
+ }]]);
41
+ export { w as default };