@varlet/ui 1.26.9 → 1.27.0-alpha.1649265140569

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 (247) hide show
  1. package/README.en-US.md +1 -1
  2. package/README.md +1 -1
  3. package/es/action-sheet/ActionSheet.js +29 -27
  4. package/es/app-bar/AppBar.js +32 -27
  5. package/es/back-top/BackTop.js +9 -2
  6. package/es/badge/Badge.js +22 -14
  7. package/es/bottom-navigation/BottomNavigation.js +204 -0
  8. package/es/bottom-navigation/BottomNavigationSfc.css +0 -0
  9. package/es/bottom-navigation/BottomNavigationSfc.less +0 -0
  10. package/es/bottom-navigation/bottomNavigation.css +1 -0
  11. package/es/bottom-navigation/bottomNavigation.less +51 -0
  12. package/es/bottom-navigation/index.js +8 -0
  13. package/es/bottom-navigation/props.js +40 -0
  14. package/es/bottom-navigation/provide.js +17 -0
  15. package/es/bottom-navigation/style/index.js +4 -0
  16. package/es/bottom-navigation/style/less.js +4 -0
  17. package/es/bottom-navigation-item/BottomNavigationItem.js +122 -0
  18. package/es/bottom-navigation-item/BottomNavigationItemSfc.css +0 -0
  19. package/es/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
  20. package/es/bottom-navigation-item/bottomNavigationItem.css +1 -0
  21. package/es/bottom-navigation-item/bottomNavigationItem.less +78 -0
  22. package/es/bottom-navigation-item/index.js +8 -0
  23. package/es/bottom-navigation-item/props.js +22 -0
  24. package/es/bottom-navigation-item/provide.js +21 -0
  25. package/es/bottom-navigation-item/style/index.js +6 -0
  26. package/es/bottom-navigation-item/style/less.js +6 -0
  27. package/es/button/Button.js +12 -5
  28. package/es/card/Card.js +33 -28
  29. package/es/cell/Cell.js +26 -15
  30. package/es/checkbox/Checkbox.js +28 -26
  31. package/es/checkbox-group/CheckboxGroup.js +21 -25
  32. package/es/chip/Chip.js +16 -7
  33. package/es/chip/chip.css +1 -1
  34. package/es/chip/chip.less +11 -11
  35. package/es/col/Col.js +12 -5
  36. package/es/collapse/Collapse.js +15 -12
  37. package/es/collapse-item/CollapseItem.js +31 -30
  38. package/es/collapse-item/collapseItem.css +1 -1
  39. package/es/collapse-item/collapseItem.less +16 -16
  40. package/es/countdown/Countdown.js +14 -11
  41. package/es/counter/Counter.js +30 -27
  42. package/es/date-picker/DatePicker.js +28 -23
  43. package/es/date-picker/date-picker.css +1 -1
  44. package/es/date-picker/date-picker.less +22 -20
  45. package/es/date-picker/src/day-picker-panel.js +41 -34
  46. package/es/date-picker/src/month-picker-panel.js +27 -21
  47. package/es/date-picker/src/panel-header.js +16 -11
  48. package/es/date-picker/src/year-picker-panel.js +17 -9
  49. package/es/dialog/Dialog.js +36 -40
  50. package/es/divider/Divider.js +16 -12
  51. package/es/form/Form.js +11 -8
  52. package/es/form-details/FormDetails.js +27 -22
  53. package/es/icon/Icon.js +8 -1
  54. package/es/image/Image.js +19 -12
  55. package/es/image-preview/ImagePreview.js +35 -34
  56. package/es/index-anchor/IndexAnchor.js +8 -1
  57. package/es/index-bar/IndexBar.js +22 -20
  58. package/es/index.js +10 -0
  59. package/es/input/Input.js +45 -44
  60. package/es/lazy/index.js +2 -1
  61. package/es/less.js +2 -0
  62. package/es/list/List.js +39 -38
  63. package/es/loading/Loading.js +31 -23
  64. package/es/loading/loading.css +1 -1
  65. package/es/loading/loading.less +32 -32
  66. package/es/menu/Menu.js +12 -10
  67. package/es/option/Option.js +16 -11
  68. package/es/pagination/Pagination.js +34 -44
  69. package/es/pagination/pagination.css +1 -1
  70. package/es/pagination/pagination.less +8 -8
  71. package/es/picker/Picker.js +51 -47
  72. package/es/popup/Popup.js +9 -5
  73. package/es/progress/Progress.js +44 -35
  74. package/es/progress/progress.css +1 -1
  75. package/es/progress/progress.less +12 -12
  76. package/es/pull-refresh/PullRefresh.js +13 -10
  77. package/es/radio/Radio.js +25 -25
  78. package/es/radio-group/RadioGroup.js +19 -19
  79. package/es/rate/Rate.js +27 -25
  80. package/es/ripple/index.js +6 -2
  81. package/es/row/Row.js +11 -4
  82. package/es/select/Select.js +53 -54
  83. package/es/skeleton/Skeleton.js +70 -81
  84. package/es/slider/Slider.js +44 -40
  85. package/es/slider/slider.css +1 -1
  86. package/es/slider/slider.less +5 -5
  87. package/es/snackbar/Snackbar.js +9 -5
  88. package/es/snackbar/core.js +20 -26
  89. package/es/snackbar/snackbar.css +1 -1
  90. package/es/snackbar/snackbar.less +66 -68
  91. package/es/snackbar/style/index.js +1 -1
  92. package/es/snackbar/style/less.js +1 -1
  93. package/es/space/Space.js +8 -3
  94. package/es/step/Step.js +25 -23
  95. package/es/step/step.css +1 -1
  96. package/es/step/step.less +10 -10
  97. package/es/steps/Steps.js +12 -5
  98. package/es/sticky/Sticky.js +14 -7
  99. package/es/style-provider/StyleProvider.js +6 -2
  100. package/es/style.css +1 -1
  101. package/es/style.js +2 -0
  102. package/es/swipe/Swipe.js +22 -16
  103. package/es/swipe-item/SwipeItem.js +9 -4
  104. package/es/switch/Switch.js +25 -23
  105. package/es/switch/switch.css +1 -1
  106. package/es/switch/switch.less +2 -2
  107. package/es/tab/Tab.js +8 -1
  108. package/es/tab-item/TabItem.js +8 -1
  109. package/es/table/Table.js +27 -20
  110. package/es/tabs/Tabs.js +23 -14
  111. package/es/tabs-items/TabsItems.js +10 -5
  112. package/es/themes/dark/bottomNavigation.js +4 -0
  113. package/es/themes/dark/bottomNavigationItem.js +3 -0
  114. package/es/themes/dark/index.js +3 -1
  115. package/es/time-picker/TimePicker.js +47 -38
  116. package/es/time-picker/clock.js +26 -22
  117. package/es/time-picker/timePicker.css +1 -1
  118. package/es/time-picker/timePicker.less +11 -11
  119. package/es/umdIndex.js +10 -0
  120. package/es/uploader/Uploader.js +62 -57
  121. package/es/utils/components.js +35 -0
  122. package/es/varlet.esm.js +2093 -1504
  123. package/highlight/attributes.json +48 -0
  124. package/highlight/tags.json +20 -0
  125. package/highlight/web-types.json +155 -1
  126. package/lib/action-sheet/ActionSheet.js +30 -26
  127. package/lib/app-bar/AppBar.js +31 -24
  128. package/lib/back-top/BackTop.js +11 -2
  129. package/lib/badge/Badge.js +23 -13
  130. package/lib/bottom-navigation/BottomNavigation.js +221 -0
  131. package/lib/bottom-navigation/BottomNavigationSfc.css +0 -0
  132. package/lib/bottom-navigation/BottomNavigationSfc.less +0 -0
  133. package/lib/bottom-navigation/bottomNavigation.css +1 -0
  134. package/lib/bottom-navigation/bottomNavigation.less +51 -0
  135. package/lib/bottom-navigation/index.js +17 -0
  136. package/lib/bottom-navigation/props.js +45 -0
  137. package/lib/bottom-navigation/provide.js +27 -0
  138. package/lib/bottom-navigation/style/index.js +4 -0
  139. package/lib/bottom-navigation/style/less.js +4 -0
  140. package/lib/bottom-navigation-item/BottomNavigationItem.js +140 -0
  141. package/lib/bottom-navigation-item/BottomNavigationItemSfc.css +0 -0
  142. package/lib/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
  143. package/lib/bottom-navigation-item/bottomNavigationItem.css +1 -0
  144. package/lib/bottom-navigation-item/bottomNavigationItem.less +78 -0
  145. package/lib/bottom-navigation-item/index.js +17 -0
  146. package/lib/bottom-navigation-item/props.js +27 -0
  147. package/lib/bottom-navigation-item/provide.js +28 -0
  148. package/lib/bottom-navigation-item/style/index.js +6 -0
  149. package/lib/bottom-navigation-item/style/less.js +6 -0
  150. package/lib/button/Button.js +13 -4
  151. package/lib/card/Card.js +34 -27
  152. package/lib/cell/Cell.js +26 -13
  153. package/lib/checkbox/Checkbox.js +26 -23
  154. package/lib/checkbox-group/CheckboxGroup.js +19 -22
  155. package/lib/chip/Chip.js +18 -7
  156. package/lib/chip/chip.css +1 -1
  157. package/lib/chip/chip.less +11 -11
  158. package/lib/col/Col.js +14 -5
  159. package/lib/collapse/Collapse.js +15 -10
  160. package/lib/collapse-item/CollapseItem.js +31 -28
  161. package/lib/collapse-item/collapseItem.css +1 -1
  162. package/lib/collapse-item/collapseItem.less +16 -16
  163. package/lib/countdown/Countdown.js +14 -10
  164. package/lib/counter/Counter.js +29 -26
  165. package/lib/date-picker/DatePicker.js +30 -23
  166. package/lib/date-picker/date-picker.css +1 -1
  167. package/lib/date-picker/date-picker.less +22 -20
  168. package/lib/date-picker/src/day-picker-panel.js +41 -32
  169. package/lib/date-picker/src/month-picker-panel.js +27 -19
  170. package/lib/date-picker/src/panel-header.js +16 -9
  171. package/lib/date-picker/src/year-picker-panel.js +19 -9
  172. package/lib/dialog/Dialog.js +36 -38
  173. package/lib/divider/Divider.js +16 -10
  174. package/lib/form/Form.js +11 -6
  175. package/lib/form-details/FormDetails.js +27 -20
  176. package/lib/icon/Icon.js +10 -1
  177. package/lib/image/Image.js +20 -11
  178. package/lib/image-preview/ImagePreview.js +35 -33
  179. package/lib/index-anchor/IndexAnchor.js +10 -1
  180. package/lib/index-bar/IndexBar.js +24 -20
  181. package/lib/index.js +6 -0
  182. package/lib/input/Input.js +45 -43
  183. package/lib/lazy/index.js +3 -1
  184. package/lib/less.js +2 -0
  185. package/lib/list/List.js +39 -36
  186. package/lib/loading/Loading.js +33 -23
  187. package/lib/loading/loading.css +1 -1
  188. package/lib/loading/loading.less +32 -32
  189. package/lib/menu/Menu.js +12 -9
  190. package/lib/option/Option.js +16 -9
  191. package/lib/pagination/Pagination.js +36 -44
  192. package/lib/pagination/pagination.css +1 -1
  193. package/lib/pagination/pagination.less +8 -8
  194. package/lib/picker/Picker.js +51 -46
  195. package/lib/popup/Popup.js +9 -4
  196. package/lib/progress/Progress.js +45 -34
  197. package/lib/progress/progress.css +1 -1
  198. package/lib/progress/progress.less +12 -12
  199. package/lib/pull-refresh/PullRefresh.js +14 -10
  200. package/lib/radio/Radio.js +23 -22
  201. package/lib/radio-group/RadioGroup.js +17 -16
  202. package/lib/rate/Rate.js +27 -24
  203. package/lib/ripple/index.js +7 -2
  204. package/lib/row/Row.js +12 -3
  205. package/lib/select/Select.js +53 -53
  206. package/lib/skeleton/Skeleton.js +69 -78
  207. package/lib/slider/Slider.js +42 -38
  208. package/lib/slider/slider.css +1 -1
  209. package/lib/slider/slider.less +5 -5
  210. package/lib/snackbar/Snackbar.js +9 -4
  211. package/lib/snackbar/core.js +20 -25
  212. package/lib/snackbar/snackbar.css +1 -1
  213. package/lib/snackbar/snackbar.less +66 -68
  214. package/lib/space/Space.js +9 -3
  215. package/lib/step/Step.js +26 -22
  216. package/lib/step/step.css +1 -1
  217. package/lib/step/step.less +10 -10
  218. package/lib/steps/Steps.js +13 -4
  219. package/lib/sticky/Sticky.js +15 -6
  220. package/lib/style-provider/StyleProvider.js +8 -2
  221. package/lib/style.css +1 -1
  222. package/lib/style.js +2 -0
  223. package/lib/swipe/Swipe.js +23 -16
  224. package/lib/swipe-item/SwipeItem.js +10 -3
  225. package/lib/switch/Switch.js +23 -20
  226. package/lib/switch/switch.css +1 -1
  227. package/lib/switch/switch.less +2 -2
  228. package/lib/tab/Tab.js +10 -1
  229. package/lib/tab-item/TabItem.js +10 -1
  230. package/lib/table/Table.js +27 -18
  231. package/lib/tabs/Tabs.js +25 -14
  232. package/lib/tabs-items/TabsItems.js +11 -4
  233. package/lib/themes/dark/bottomNavigation.js +9 -0
  234. package/lib/themes/dark/bottomNavigationItem.js +8 -0
  235. package/lib/themes/dark/index.js +5 -1
  236. package/lib/time-picker/TimePicker.js +49 -38
  237. package/lib/time-picker/clock.js +26 -20
  238. package/lib/time-picker/timePicker.css +1 -1
  239. package/lib/time-picker/timePicker.less +11 -11
  240. package/lib/uploader/Uploader.js +60 -55
  241. package/lib/utils/components.js +39 -0
  242. package/package.json +5 -5
  243. package/types/bottomNavigation.d.ts +19 -0
  244. package/types/bottomNavigationItem.d.ts +16 -0
  245. package/types/global.d.ts +2 -0
  246. package/types/index.d.ts +2 -0
  247. package/umd/varlet.js +4 -4
@@ -16,16 +16,14 @@ var _shared = require("../utils/shared");
16
16
 
17
17
  var _locale = require("../locale");
18
18
 
19
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+ var _components = require("../utils/components");
20
20
 
21
- var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
21
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
22
 
23
- var _hoisted_1 = {
24
- class: "var-dialog__title"
25
- };
26
- var _hoisted_2 = {
27
- class: "var-dialog__actions"
28
- };
23
+ var {
24
+ n,
25
+ classes
26
+ } = (0, _components.createNamespace)('dialog');
29
27
 
30
28
  function render(_ctx, _cache) {
31
29
  var _component_var_button = (0, _vue.resolveComponent)("var-button");
@@ -33,7 +31,7 @@ function render(_ctx, _cache) {
33
31
  var _component_var_popup = (0, _vue.resolveComponent)("var-popup");
34
32
 
35
33
  return (0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_popup, {
36
- class: "var-dialog__popup",
34
+ class: (0, _vue.normalizeClass)(_ctx.n('popup')),
37
35
  "var-dialog-cover": "",
38
36
  show: _ctx.popupShow,
39
37
  overlay: _ctx.overlay,
@@ -50,22 +48,28 @@ function render(_ctx, _cache) {
50
48
  onClickOverlay: _ctx.handleClickOverlay
51
49
  }, {
52
50
  default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", (0, _vue.mergeProps)({
53
- class: ["var--box var-dialog", _ctx.dialogClass],
51
+ class: _ctx.classes('var--box', _ctx.n(), _ctx.dialogClass),
54
52
  style: _ctx.dialogStyle
55
- }, _ctx.$attrs), [(0, _vue.createElementVNode)("div", _hoisted_1, [(0, _vue.renderSlot)(_ctx.$slots, "title", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.dt(_ctx.title, _ctx.pack.dialogTitle)), 1
53
+ }, _ctx.$attrs), [(0, _vue.createElementVNode)("div", {
54
+ class: (0, _vue.normalizeClass)(_ctx.n('title'))
55
+ }, [(0, _vue.renderSlot)(_ctx.$slots, "title", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.dt(_ctx.title, _ctx.pack.dialogTitle)), 1
56
56
  /* TEXT */
57
- )])]), (0, _vue.createElementVNode)("div", {
58
- class: "var-dialog__message",
57
+ )])], 2
58
+ /* CLASS */
59
+ ), (0, _vue.createElementVNode)("div", {
60
+ class: (0, _vue.normalizeClass)(_ctx.n('message')),
59
61
  style: (0, _vue.normalizeStyle)({
60
62
  textAlign: _ctx.messageAlign
61
63
  })
62
64
  }, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.message), 1
63
65
  /* TEXT */
64
- )])], 4
65
- /* STYLE */
66
- ), (0, _vue.createElementVNode)("div", _hoisted_2, [_ctx.cancelButton ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_button, {
66
+ )])], 6
67
+ /* CLASS, STYLE */
68
+ ), (0, _vue.createElementVNode)("div", {
69
+ class: (0, _vue.normalizeClass)(_ctx.n('actions'))
70
+ }, [_ctx.cancelButton ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_button, {
67
71
  key: 0,
68
- class: "var-dialog__button var-dialog__cancel-button",
72
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('button'), _ctx.n('cancel-button'))),
69
73
  "var-dialog-cover": "",
70
74
  text: "",
71
75
  "text-color": _ctx.cancelButtonTextColor,
@@ -80,9 +84,9 @@ function render(_ctx, _cache) {
80
84
 
81
85
  }, 8
82
86
  /* PROPS */
83
- , ["text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true), _ctx.confirmButton ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_button, {
87
+ , ["class", "text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true), _ctx.confirmButton ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_button, {
84
88
  key: 1,
85
- class: "var-dialog__button var-dialog__confirm-button",
89
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('button'), _ctx.n('confirm-button'))),
86
90
  "var-dialog-cover": "",
87
91
  text: "",
88
92
  "text-color": _ctx.confirmButtonTextColor,
@@ -97,7 +101,9 @@ function render(_ctx, _cache) {
97
101
 
98
102
  }, 8
99
103
  /* PROPS */
100
- , ["text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true)])], 16
104
+ , ["class", "text-color", "color", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true)], 2
105
+ /* CLASS */
106
+ )], 16
101
107
  /* FULL_PROPS */
102
108
  )]),
103
109
  _: 3
@@ -105,7 +111,7 @@ function render(_ctx, _cache) {
105
111
 
106
112
  }, 8
107
113
  /* PROPS */
108
- , ["show", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onClickOverlay"]);
114
+ , ["class", "show", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onClickOverlay"]);
109
115
  }
110
116
 
111
117
  var _default = (0, _vue.defineComponent)({
@@ -122,21 +128,15 @@ var _default = (0, _vue.defineComponent)({
122
128
  var popupShow = (0, _vue.ref)(false);
123
129
  var popupCloseOnClickOverlay = (0, _vue.ref)(false);
124
130
 
125
- var done = () => {
126
- var _props$onUpdateShow;
127
-
128
- return (_props$onUpdateShow = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow.call(props, false);
129
- };
131
+ var done = () => (0, _components.call)(props['onUpdate:show'], false);
130
132
 
131
133
  var handleClickOverlay = () => {
132
- var _props$onUpdateShow2;
133
-
134
134
  var {
135
135
  closeOnClickOverlay,
136
136
  onClickOverlay,
137
137
  onBeforeClose
138
138
  } = props;
139
- onClickOverlay == null ? void 0 : onClickOverlay();
139
+ (0, _components.call)(onClickOverlay);
140
140
 
141
141
  if (!closeOnClickOverlay) {
142
142
  return;
@@ -147,41 +147,37 @@ var _default = (0, _vue.defineComponent)({
147
147
  return;
148
148
  }
149
149
 
150
- (_props$onUpdateShow2 = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow2.call(props, false);
150
+ (0, _components.call)(props['onUpdate:show'], false);
151
151
  };
152
152
 
153
153
  var confirm = () => {
154
- var _props$onUpdateShow3;
155
-
156
154
  var {
157
155
  onBeforeClose,
158
156
  onConfirm
159
157
  } = props;
160
- onConfirm == null ? void 0 : onConfirm();
158
+ (0, _components.call)(onConfirm);
161
159
 
162
160
  if (onBeforeClose != null) {
163
161
  onBeforeClose('confirm', done);
164
162
  return;
165
163
  }
166
164
 
167
- (_props$onUpdateShow3 = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow3.call(props, false);
165
+ (0, _components.call)(props['onUpdate:show'], false);
168
166
  };
169
167
 
170
168
  var cancel = () => {
171
- var _props$onUpdateShow4;
172
-
173
169
  var {
174
170
  onBeforeClose,
175
171
  onCancel
176
172
  } = props;
177
- onCancel == null ? void 0 : onCancel();
173
+ (0, _components.call)(onCancel);
178
174
 
179
175
  if (onBeforeClose != null) {
180
176
  onBeforeClose('cancel', done);
181
177
  return;
182
178
  }
183
179
 
184
- (_props$onUpdateShow4 = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow4.call(props, false);
180
+ (0, _components.call)(props['onUpdate:show'], false);
185
181
  };
186
182
 
187
183
  (0, _vue.watch)(() => props.show, newValue => {
@@ -200,6 +196,8 @@ var _default = (0, _vue.defineComponent)({
200
196
  immediate: true
201
197
  });
202
198
  return {
199
+ n,
200
+ classes,
203
201
  pack: _locale.pack,
204
202
  dt: _shared.dt,
205
203
  popupShow,
@@ -12,21 +12,24 @@ var _shared = require("../utils/shared");
12
12
 
13
13
  var _props = require("./props");
14
14
 
15
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+ var _components = require("../utils/components");
16
16
 
17
- var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
17
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
18
 
19
- var _hoisted_1 = {
20
- key: 0,
21
- class: "var-divider__text"
22
- };
19
+ var {
20
+ n,
21
+ classes
22
+ } = (0, _components.createNamespace)('divider');
23
23
 
24
24
  function render(_ctx, _cache) {
25
25
  return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
26
- class: (0, _vue.normalizeClass)(["var-divider var--box", [_ctx.vertical ? 'var-divider--vertical' : null, _ctx.withText ? 'var-divider--with-text' : null, _ctx.isInset ? 'var-divider--inset' : null, _ctx.dashed ? 'var-divider--dashed' : null]]),
26
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box', [_ctx.vertical, _ctx.n('--vertical')], [_ctx.withText, _ctx.n('--with-text')], [_ctx.isInset, _ctx.n('--inset')], [_ctx.dashed, _ctx.n('--dashed')])),
27
27
  style: (0, _vue.normalizeStyle)(_ctx.style)
28
- }, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [_ctx.description ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("span", _hoisted_1, (0, _vue.toDisplayString)(_ctx.description), 1
29
- /* TEXT */
28
+ }, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [_ctx.description ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("span", {
29
+ key: 0,
30
+ class: (0, _vue.normalizeClass)(_ctx.n('text'))
31
+ }, (0, _vue.toDisplayString)(_ctx.description), 3
32
+ /* TEXT, CLASS */
30
33
  )) : (0, _vue.createCommentVNode)("v-if", true)])], 6
31
34
  /* CLASS, STYLE */
32
35
  );
@@ -78,7 +81,10 @@ var _default = (0, _vue.defineComponent)({
78
81
  (0, _vue.onUpdated)(() => {
79
82
  checkHasText();
80
83
  });
81
- return _extends({}, (0, _vue.toRefs)(state), {
84
+ return _extends({
85
+ n,
86
+ classes
87
+ }, (0, _vue.toRefs)(state), {
82
88
  style,
83
89
  isInset
84
90
  });
package/lib/form/Form.js CHANGED
@@ -10,18 +10,22 @@ var _props = require("./props");
10
10
 
11
11
  var _provide = require("./provide");
12
12
 
13
+ var _components = require("../utils/components");
14
+
13
15
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
14
16
 
15
17
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
16
18
 
17
- var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
18
-
19
- var _hoisted_1 = {
20
- class: "var-form"
21
- };
19
+ var {
20
+ n
21
+ } = (0, _components.createNamespace)('form');
22
22
 
23
23
  function render(_ctx, _cache) {
24
- return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_1, [(0, _vue.renderSlot)(_ctx.$slots, "default")]);
24
+ return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
25
+ class: (0, _vue.normalizeClass)(_ctx.n())
26
+ }, [(0, _vue.renderSlot)(_ctx.$slots, "default")], 2
27
+ /* CLASS */
28
+ );
25
29
  }
26
30
 
27
31
  var _default = (0, _vue.defineComponent)({
@@ -75,6 +79,7 @@ var _default = (0, _vue.defineComponent)({
75
79
  };
76
80
  bindFormItems(formProvider);
77
81
  return {
82
+ n,
78
83
  validate,
79
84
  reset,
80
85
  resetValidation
@@ -6,40 +6,47 @@ exports.render = render;
6
6
 
7
7
  var _vue = require("vue");
8
8
 
9
- var _props = require("./props");
9
+ var _components = require("../utils/components");
10
10
 
11
- var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
11
+ var _props = require("./props");
12
12
 
13
- var _hoisted_1 = {
14
- key: 0,
15
- class: "var-form-details"
16
- };
17
- var _hoisted_2 = {
18
- class: "var-form-details__message"
19
- };
20
- var _hoisted_3 = {
21
- class: "var-form-details__length"
22
- };
13
+ var {
14
+ n
15
+ } = (0, _components.createNamespace)('form-details');
23
16
 
24
17
  function render(_ctx, _cache) {
25
18
  return (0, _vue.openBlock)(), (0, _vue.createBlock)(_vue.Transition, {
26
- name: "var-form-details"
19
+ name: _ctx.n()
27
20
  }, {
28
- default: (0, _vue.withCtx)(() => [_ctx.errorMessage || _ctx.maxlengthText ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_1, [(0, _vue.createElementVNode)("div", _hoisted_2, (0, _vue.toDisplayString)(_ctx.errorMessage), 1
29
- /* TEXT */
30
- ), (0, _vue.createElementVNode)("div", _hoisted_3, (0, _vue.toDisplayString)(_ctx.maxlengthText), 1
31
- /* TEXT */
32
- )])) : (0, _vue.createCommentVNode)("v-if", true)]),
21
+ default: (0, _vue.withCtx)(() => [_ctx.errorMessage || _ctx.maxlengthText ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
22
+ key: 0,
23
+ class: (0, _vue.normalizeClass)(_ctx.n())
24
+ }, [(0, _vue.createElementVNode)("div", {
25
+ class: (0, _vue.normalizeClass)(_ctx.n('message'))
26
+ }, (0, _vue.toDisplayString)(_ctx.errorMessage), 3
27
+ /* TEXT, CLASS */
28
+ ), (0, _vue.createElementVNode)("div", {
29
+ class: (0, _vue.normalizeClass)(_ctx.n('length'))
30
+ }, (0, _vue.toDisplayString)(_ctx.maxlengthText), 3
31
+ /* TEXT, CLASS */
32
+ )], 2
33
+ /* CLASS */
34
+ )) : (0, _vue.createCommentVNode)("v-if", true)]),
33
35
  _: 1
34
36
  /* STABLE */
35
37
 
36
- });
38
+ }, 8
39
+ /* PROPS */
40
+ , ["name"]);
37
41
  }
38
42
 
39
43
  var _default = (0, _vue.defineComponent)({
40
44
  render,
41
45
  name: 'VarFormDetails',
42
- props: _props.props
46
+ props: _props.props,
47
+ setup: () => ({
48
+ n
49
+ })
43
50
  });
44
51
 
45
52
  exports.default = _default;
package/lib/icon/Icon.js CHANGED
@@ -12,13 +12,20 @@ var _props = require("./props");
12
12
 
13
13
  var _elements = require("../utils/elements");
14
14
 
15
+ var _components = require("../utils/components");
16
+
15
17
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
16
18
 
17
19
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
18
20
 
21
+ var {
22
+ n,
23
+ classes
24
+ } = (0, _components.createNamespace)('icon');
25
+
19
26
  function render(_ctx, _cache) {
20
27
  return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.isURL(_ctx.name) ? 'img' : 'i'), {
21
- class: (0, _vue.normalizeClass)(["var-icon", [_ctx.namespace + "--set", _ctx.isURL(_ctx.name) ? 'var-icon__image' : _ctx.namespace + "-" + _ctx.nextName, _ctx.shrinking ? 'var-icon--shrinking' : null]]),
28
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.namespace + "--set", [_ctx.isURL(_ctx.name), _ctx.n('image'), _ctx.namespace + "-" + _ctx.nextName], [_ctx.shrinking, _ctx.n('--shrinking')])),
22
29
  style: (0, _vue.normalizeStyle)({
23
30
  color: _ctx.color,
24
31
  transition: "transform " + _ctx.toNumber(_ctx.transition) + "ms",
@@ -70,6 +77,8 @@ var _default = (0, _vue.defineComponent)({
70
77
  immediate: true
71
78
  });
72
79
  return {
80
+ n,
81
+ classes,
73
82
  nextName,
74
83
  shrinking,
75
84
  isURL: _shared.isURL,
@@ -14,8 +14,15 @@ var _props = require("./props");
14
14
 
15
15
  var _elements = require("../utils/elements");
16
16
 
17
+ var _components = require("../utils/components");
18
+
17
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
20
 
21
+ var {
22
+ n,
23
+ classes
24
+ } = (0, _components.createNamespace)('image');
25
+
19
26
  var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
20
27
 
21
28
  var _hoisted_1 = ["alt", "lazy-error", "lazy-loading"];
@@ -27,7 +34,7 @@ function render(_ctx, _cache) {
27
34
  var _directive_ripple = (0, _vue.resolveDirective)("ripple");
28
35
 
29
36
  return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
30
- class: (0, _vue.normalizeClass)(["var-image var--box", [!_ctx.block ? 'var--inline-block' : null]]),
37
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box', [!_ctx.block, 'var--inline-block'])),
31
38
  style: (0, _vue.normalizeStyle)({
32
39
  width: _ctx.toSizeUnit(_ctx.width),
33
40
  height: _ctx.toSizeUnit(_ctx.height),
@@ -35,7 +42,7 @@ function render(_ctx, _cache) {
35
42
  })
36
43
  }, [_ctx.lazy ? (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("img", {
37
44
  key: 0,
38
- class: "var-image__image",
45
+ class: (0, _vue.normalizeClass)(_ctx.n('image')),
39
46
  alt: _ctx.alt,
40
47
  "lazy-error": _ctx.error,
41
48
  "lazy-loading": _ctx.loading,
@@ -51,11 +58,11 @@ function render(_ctx, _cache) {
51
58
  onClick: _cache[2] || (_cache[2] = function () {
52
59
  return _ctx.onClick && _ctx.onClick(...arguments);
53
60
  })
54
- }, null, 44
55
- /* STYLE, PROPS, HYDRATE_EVENTS */
61
+ }, null, 46
62
+ /* CLASS, STYLE, PROPS, HYDRATE_EVENTS */
56
63
  , _hoisted_1)), [[_directive_lazy, _ctx.src]]) : ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("img", {
57
64
  key: 1,
58
- class: "var-image__image",
65
+ class: (0, _vue.normalizeClass)(_ctx.n('image')),
59
66
  alt: _ctx.alt,
60
67
  style: (0, _vue.normalizeStyle)({
61
68
  objectFit: _ctx.fit
@@ -70,8 +77,8 @@ function render(_ctx, _cache) {
70
77
  onClick: _cache[5] || (_cache[5] = function () {
71
78
  return _ctx.onClick && _ctx.onClick(...arguments);
72
79
  })
73
- }, null, 44
74
- /* STYLE, PROPS, HYDRATE_EVENTS */
80
+ }, null, 46
81
+ /* CLASS, STYLE, PROPS, HYDRATE_EVENTS */
75
82
  , _hoisted_2))], 6
76
83
  /* CLASS, STYLE */
77
84
  )), [[_directive_ripple, {
@@ -98,10 +105,10 @@ var _default = (0, _vue.defineComponent)({
98
105
  } = props;
99
106
 
100
107
  if (lazy) {
101
- el._lazy.state === 'success' && (onLoad == null ? void 0 : onLoad(e));
102
- el._lazy.state === 'error' && (onError == null ? void 0 : onError(e));
108
+ el._lazy.state === 'success' && (0, _components.call)(onLoad, e);
109
+ el._lazy.state === 'error' && (0, _components.call)(onError, e);
103
110
  } else {
104
- onLoad == null ? void 0 : onLoad(e);
111
+ (0, _components.call)(onLoad, e);
105
112
  }
106
113
  };
107
114
 
@@ -110,10 +117,12 @@ var _default = (0, _vue.defineComponent)({
110
117
  lazy,
111
118
  onError
112
119
  } = props;
113
- !lazy && (onError == null ? void 0 : onError(e));
120
+ !lazy && (0, _components.call)(onError, e);
114
121
  };
115
122
 
116
123
  return {
124
+ n,
125
+ classes,
117
126
  toSizeUnit: _elements.toSizeUnit,
118
127
  handleLoad,
119
128
  handleError
@@ -18,8 +18,14 @@ var _props = require("./props");
18
18
 
19
19
  var _shared = require("../utils/shared");
20
20
 
21
+ var _components = require("../utils/components");
22
+
21
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
24
 
25
+ var {
26
+ n,
27
+ classes
28
+ } = (0, _components.createNamespace)('image-preview');
23
29
  var DISTANCE_OFFSET = 12;
24
30
  var EVENT_DELAY = 200;
25
31
  var TAP_DELAY = 350;
@@ -28,13 +34,6 @@ var ANIMATION_DURATION = 200;
28
34
  var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
29
35
 
30
36
  var _hoisted_1 = ["src", "alt"];
31
- var _hoisted_2 = {
32
- key: 0,
33
- class: "var-image-preview__indicators"
34
- };
35
- var _hoisted_3 = {
36
- class: "var-image-preview__extra"
37
- };
38
37
 
39
38
  function render(_ctx, _cache) {
40
39
  var _component_var_swipe_item = (0, _vue.resolveComponent)("var-swipe-item");
@@ -46,7 +45,7 @@ function render(_ctx, _cache) {
46
45
  var _component_var_popup = (0, _vue.resolveComponent)("var-popup");
47
46
 
48
47
  return (0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_popup, {
49
- class: "var-image-preview__popup",
48
+ class: (0, _vue.normalizeClass)(_ctx.n('popup')),
50
49
  "var-image-preview-cover": "",
51
50
  transition: "var-fade",
52
51
  show: _ctx.popupShow,
@@ -61,7 +60,7 @@ function render(_ctx, _cache) {
61
60
  onRouteChange: _ctx.onRouteChange
62
61
  }, {
63
62
  default: (0, _vue.withCtx)(() => [(0, _vue.createVNode)(_component_var_swipe, (0, _vue.mergeProps)({
64
- class: "var-image-preview__swipe",
63
+ class: _ctx.n('swipe'),
65
64
  "var-image-preview-cover": "",
66
65
  touchable: _ctx.canSwipe,
67
66
  indicator: _ctx.indicator && _ctx.images.length > 1,
@@ -71,12 +70,12 @@ function render(_ctx, _cache) {
71
70
  }, _ctx.$attrs), {
72
71
  default: (0, _vue.withCtx)(() => [((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(_ctx.images, image => {
73
72
  return (0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_swipe_item, {
74
- class: "var-image-preview__swipe-item",
73
+ class: (0, _vue.normalizeClass)(_ctx.n('swipe-item')),
75
74
  "var-image-preview-cover": "",
76
75
  key: image
77
76
  }, {
78
77
  default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
79
- class: "var-image-preview__zoom-container",
78
+ class: (0, _vue.normalizeClass)(_ctx.n('zoom-container')),
80
79
  style: (0, _vue.normalizeStyle)({
81
80
  transform: "scale(" + _ctx.scale + ") translate(" + _ctx.translateX + "px, " + _ctx.translateY + "px)",
82
81
  transitionTimingFunction: _ctx.transitionTimingFunction,
@@ -92,20 +91,20 @@ function render(_ctx, _cache) {
92
91
  return _ctx.handleTouchend && _ctx.handleTouchend(...arguments);
93
92
  })
94
93
  }, [(0, _vue.createElementVNode)("img", {
95
- class: "var-image-preview__image",
94
+ class: (0, _vue.normalizeClass)(_ctx.n('image')),
96
95
  src: image,
97
96
  alt: image
98
- }, null, 8
99
- /* PROPS */
100
- , _hoisted_1)], 36
101
- /* STYLE, HYDRATE_EVENTS */
97
+ }, null, 10
98
+ /* CLASS, PROPS */
99
+ , _hoisted_1)], 38
100
+ /* CLASS, STYLE, HYDRATE_EVENTS */
102
101
  )]),
103
102
  _: 2
104
103
  /* DYNAMIC */
105
104
 
106
- }, 1024
107
- /* DYNAMIC_SLOTS */
108
- );
105
+ }, 1032
106
+ /* PROPS, DYNAMIC_SLOTS */
107
+ , ["class"]);
109
108
  }), 128
110
109
  /* KEYED_FRAGMENT */
111
110
  ))]),
@@ -117,8 +116,11 @@ function render(_ctx, _cache) {
117
116
  return [(0, _vue.renderSlot)(_ctx.$slots, "indicator", {
118
117
  index: index,
119
118
  length: length
120
- }, () => [_ctx.indicator && _ctx.images.length > 1 ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_2, (0, _vue.toDisplayString)(index + 1) + " / " + (0, _vue.toDisplayString)(length), 1
121
- /* TEXT */
119
+ }, () => [_ctx.indicator && _ctx.images.length > 1 ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
120
+ key: 0,
121
+ class: (0, _vue.normalizeClass)(_ctx.n('indicators'))
122
+ }, (0, _vue.toDisplayString)(index + 1) + " / " + (0, _vue.toDisplayString)(length), 3
123
+ /* TEXT, CLASS */
122
124
  )) : (0, _vue.createCommentVNode)("v-if", true)])];
123
125
  }),
124
126
  _: 3
@@ -126,21 +128,25 @@ function render(_ctx, _cache) {
126
128
 
127
129
  }, 16
128
130
  /* FULL_PROPS */
129
- , ["touchable", "indicator", "initial-index", "loop", "onChange"]), (0, _vue.renderSlot)(_ctx.$slots, "close-icon", {}, () => [_ctx.closeable ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
131
+ , ["class", "touchable", "indicator", "initial-index", "loop", "onChange"]), (0, _vue.renderSlot)(_ctx.$slots, "close-icon", {}, () => [_ctx.closeable ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
130
132
  key: 0,
131
- class: "var-image-preview__close-icon",
133
+ class: (0, _vue.normalizeClass)(_ctx.n('close-icon')),
132
134
  name: "close-circle",
133
135
  "var-image-preview-cover": "",
134
136
  onClick: _ctx.close
135
137
  }, null, 8
136
138
  /* PROPS */
137
- , ["onClick"])) : (0, _vue.createCommentVNode)("v-if", true)]), (0, _vue.createElementVNode)("div", _hoisted_3, [(0, _vue.renderSlot)(_ctx.$slots, "extra")])]),
139
+ , ["class", "onClick"])) : (0, _vue.createCommentVNode)("v-if", true)]), (0, _vue.createElementVNode)("div", {
140
+ class: (0, _vue.normalizeClass)(_ctx.n('extra'))
141
+ }, [(0, _vue.renderSlot)(_ctx.$slots, "extra")], 2
142
+ /* CLASS */
143
+ )]),
138
144
  _: 3
139
145
  /* FORWARDED */
140
146
 
141
147
  }, 8
142
148
  /* PROPS */
143
- , ["show", "lock-scroll", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
149
+ , ["class", "show", "lock-scroll", "teleport", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
144
150
  }
145
151
 
146
152
  var _default = (0, _vue.defineComponent)({
@@ -341,19 +347,13 @@ var _default = (0, _vue.defineComponent)({
341
347
  };
342
348
 
343
349
  var close = () => {
344
- var _props$onUpdateShow2;
345
-
346
350
  if (scale.value > 1) {
347
351
  zoomOut();
348
- setTimeout(() => {
349
- var _props$onUpdateShow;
350
-
351
- return (_props$onUpdateShow = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow.call(props, false);
352
- }, ANIMATION_DURATION);
352
+ setTimeout(() => (0, _components.call)(props['onUpdate:show'], false), ANIMATION_DURATION);
353
353
  return;
354
354
  }
355
355
 
356
- (_props$onUpdateShow2 = props['onUpdate:show']) == null ? void 0 : _props$onUpdateShow2.call(props, false);
356
+ (0, _components.call)(props['onUpdate:show'], false);
357
357
  };
358
358
 
359
359
  (0, _vue.watch)(() => props.show, newValue => {
@@ -362,6 +362,8 @@ var _default = (0, _vue.defineComponent)({
362
362
  immediate: true
363
363
  });
364
364
  return {
365
+ n,
366
+ classes,
365
367
  initialIndex,
366
368
  popupShow,
367
369
  scale,
@@ -12,8 +12,15 @@ var _provide = require("./provide");
12
12
 
13
13
  var _props = require("./props");
14
14
 
15
+ var _components = require("../utils/components");
16
+
15
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
18
 
19
+ var {
20
+ n,
21
+ classes
22
+ } = (0, _components.createNamespace)('index-anchor');
23
+
17
24
  function render(_ctx, _cache) {
18
25
  return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.sticky ? 'var-sticky' : _ctx.Transition), {
19
26
  "offset-top": _ctx.sticky ? _ctx.stickyOffsetTop : null,
@@ -23,7 +30,7 @@ function render(_ctx, _cache) {
23
30
  ref: "anchorEl"
24
31
  }, {
25
32
  default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", (0, _vue.mergeProps)({
26
- class: "var-index-anchor"
33
+ class: _ctx.n()
27
34
  }, _ctx.$attrs), [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.name), 1
28
35
  /* TEXT */
29
36
  )])], 16
@@ -82,6 +89,8 @@ var _default = (0, _vue.defineComponent)({
82
89
  };
83
90
  bindIndexBar(indexAnchorProvider);
84
91
  return {
92
+ n,
93
+ classes,
85
94
  name,
86
95
  anchorEl,
87
96
  active,