@sdata/web-vue 4.4.1 → 4.4.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 (227) hide show
  1. package/dist/sd.css +20 -5
  2. package/dist/sd.min.css +2 -2
  3. package/es/_utils/global-config.js +9 -5
  4. package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +5 -8
  5. package/es/anchor/utils.d.ts +1 -1
  6. package/es/anchor/utils.js +6 -1
  7. package/es/auto-complete/auto-complete.vue.d.ts +6 -6
  8. package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +22 -6
  9. package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +2 -1
  10. package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +3 -3
  11. package/es/avatar/style/index.css +1 -1
  12. package/es/avatar/style/index.scss +2 -1
  13. package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +59 -42
  14. package/es/basic-crud-table/basic-crud-modal.vue.d.ts +22 -22
  15. package/es/basic-crud-table/basic-crud-table.vue.d.ts +66 -66
  16. package/es/basic-crud-table/index.d.ts +198 -198
  17. package/es/bloom-menu/bloom-menu.vue.d.ts +1 -1
  18. package/es/bloom-menu/bloom-menu.vue_vue_type_script_setup_true_lang.js +16 -3
  19. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +32 -18
  20. package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +3 -3
  21. package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +1 -1
  22. package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +1 -1
  23. package/es/calendar/core/config.js +4 -1
  24. package/es/calendar/core/events.js +22 -2
  25. package/es/calendar/default-theme.scss +1 -1
  26. package/es/calendar/style/index.css +2 -2
  27. package/es/carousel/carousel.vue.d.ts +5 -1
  28. package/es/carousel/carousel.vue_vue_type_script_setup_true_lang.js +55 -12
  29. package/es/carousel/index.d.ts +15 -3
  30. package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +6 -3
  31. package/es/checkbox/checkbox.vue.d.ts +2 -0
  32. package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +12 -6
  33. package/es/checkbox/index.d.ts +6 -0
  34. package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +13 -5
  35. package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/es/color-picker/hooks/use-control-block.d.ts +1 -1
  37. package/es/color-picker/hooks/use-control-block.js +6 -6
  38. package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +1 -1
  39. package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +7 -2
  40. package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +7 -6
  41. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +3 -0
  42. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +23 -8
  43. package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +16 -7
  44. package/es/drawer/drawer.vue.d.ts +2 -2
  45. package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +5 -12
  46. package/es/drawer/index.d.ts +3 -3
  47. package/es/dropdown/dropdown-panel.vue.d.ts +0 -9
  48. package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +0 -4
  49. package/es/dropdown/dropdown.vue.d.ts +16 -3
  50. package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +24 -3
  51. package/es/dropdown/index.d.ts +25 -0
  52. package/es/dropdown/interface.d.ts +2 -0
  53. package/es/ellipsis/ellipsis.vue.d.ts +2 -0
  54. package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +37 -8
  55. package/es/ellipsis/index.d.ts +3 -0
  56. package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +3 -0
  57. package/es/empty/empty.vue.d.ts +9 -8
  58. package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +9 -6
  59. package/es/file-previewer/file-previewer.vue.d.ts +0 -3
  60. package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +3 -6
  61. package/es/file-previewer/index.d.ts +0 -9
  62. package/es/form/context.d.ts +1 -2
  63. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +6 -6
  64. package/es/form/form.vue.d.ts +3 -3
  65. package/es/form/form.vue_vue_type_script_setup_true_lang.js +5 -7
  66. package/es/form/index.d.ts +6 -6
  67. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +5 -4
  68. package/es/grid/hook/use-responsive-state.js +15 -4
  69. package/es/grid/hook/use-responsive-value.js +3 -2
  70. package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +4 -1
  71. package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +4 -1
  72. package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +4 -1
  73. package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +4 -1
  74. package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +4 -1
  75. package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +4 -1
  76. package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +4 -1
  77. package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  78. package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +4 -1
  79. package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +4 -1
  80. package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  81. package/es/icon/icon-components.d.ts +1 -1
  82. package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +4 -1
  83. package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +4 -1
  84. package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +4 -1
  85. package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +4 -1
  86. package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +4 -1
  87. package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +4 -1
  88. package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +4 -1
  89. package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +4 -1
  90. package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +4 -1
  91. package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +4 -1
  92. package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  93. package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +4 -1
  94. package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +4 -1
  95. package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  96. package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  97. package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  98. package/es/icon/{icon-faceBook-circle-fill → icon-facebook-circle-fill}/index.d.ts +5 -5
  99. package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +4 -1
  100. package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +4 -1
  101. package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +4 -1
  102. package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +4 -1
  103. package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +4 -1
  104. package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +4 -1
  105. package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +4 -1
  106. package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +4 -1
  107. package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +4 -1
  108. package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  109. package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +4 -1
  110. package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +4 -1
  111. package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +4 -1
  112. package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +4 -1
  113. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +4 -1
  114. package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +4 -1
  115. package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +4 -1
  116. package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +4 -1
  117. package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +4 -1
  118. package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +4 -1
  119. package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +4 -1
  120. package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +4 -1
  121. package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +4 -1
  122. package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  123. package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +4 -1
  124. package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +4 -1
  125. package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +4 -1
  126. package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +4 -1
  127. package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +4 -1
  128. package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +4 -1
  129. package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +4 -1
  130. package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +4 -1
  131. package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +4 -1
  132. package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +4 -1
  133. package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +4 -1
  134. package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +4 -1
  135. package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +4 -1
  136. package/es/icon/index.d.ts +1 -1
  137. package/es/icon.js +1162 -300
  138. package/es/image/image.vue_vue_type_script_setup_true_lang.js +5 -3
  139. package/es/image/preview.vue_vue_type_script_setup_true_lang.js +1 -1
  140. package/es/index.css +20 -5
  141. package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +4 -4
  142. package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +25 -11
  143. package/es/input-mask/mask-engine.d.ts +4 -0
  144. package/es/input-mask/mask-engine.js +12 -1
  145. package/es/input-number/index.d.ts +15 -0
  146. package/es/input-number/input-number.vue.d.ts +9 -0
  147. package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +47 -14
  148. package/es/json-form/index.d.ts +11 -11
  149. package/es/json-form/json-form-item.vue.d.ts +3 -6
  150. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +14 -15
  151. package/es/json-form/json-form.vue.d.ts +7 -10
  152. package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +17 -16
  153. package/es/json-form/style/index.css +15 -0
  154. package/es/json-form/style/index.scss +21 -0
  155. package/es/json-form/types.d.ts +1 -0
  156. package/es/json-form/utils.d.ts +1 -1
  157. package/es/json-form/utils.js +20 -13
  158. package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +1 -0
  159. package/es/layout/hooks/use-has-sider.js +23 -2
  160. package/es/layout/interface.d.ts +1 -1
  161. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +1 -1
  162. package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +3 -3
  163. package/es/locale/interface.d.ts +7 -0
  164. package/es/locale/lang/en-us.js +5 -0
  165. package/es/locale/lang/zh-cn.js +5 -0
  166. package/es/mention/index.d.ts +15 -0
  167. package/es/mention/mention.vue.d.ts +10 -1
  168. package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +16 -9
  169. package/es/message/index.js +1 -1
  170. package/es/modal/index.js +9 -1
  171. package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +15 -16
  172. package/es/model-selector/model-selector-input.vue_vue_type_script_setup_true_lang.js +4 -1
  173. package/es/model-selector/model-selector-item.vue_vue_type_script_setup_true_lang.js +27 -3
  174. package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +15 -3
  175. package/es/notification/index.js +5 -2
  176. package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +5 -5
  177. package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +27 -8
  178. package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +2 -1
  179. package/es/pagination/page-item-ellipsis.vue.d.ts +9 -0
  180. package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +19 -3
  181. package/es/pagination/page-jumper.vue_vue_type_script_setup_true_lang.js +3 -2
  182. package/es/pagination/pagination.vue_vue_type_script_setup_true_lang.js +10 -0
  183. package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +4 -11
  184. package/es/popover/index.d.ts +2 -0
  185. package/es/popover/popover.vue.d.ts +4 -2
  186. package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +10 -3
  187. package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +1 -0
  188. package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +1 -2
  189. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +10 -10
  190. package/es/result/result.vue_vue_type_script_setup_true_lang.js +6 -4
  191. package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +16 -13
  192. package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +2 -0
  193. package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +20 -9
  194. package/es/slider/utils.js +1 -1
  195. package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +1 -1
  196. package/es/split/split.vue_vue_type_script_setup_true_lang.js +3 -1
  197. package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +7 -0
  198. package/es/statistic/index.d.ts +0 -3
  199. package/es/statistic/statistic.vue.d.ts +0 -2
  200. package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +0 -5
  201. package/es/style/icon.scss +2 -2
  202. package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +1 -1
  203. package/es/tag/index.d.ts +8 -8
  204. package/es/tag/tag.vue.d.ts +4 -4
  205. package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +1 -2
  206. package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +2 -2
  207. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +14 -8
  208. package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
  209. package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +10 -3
  210. package/es/trigger/index.d.ts +0 -6
  211. package/es/trigger/interface.d.ts +1 -2
  212. package/es/trigger/trigger.vue.d.ts +0 -2
  213. package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +0 -4
  214. package/es/typography/base.vue_vue_type_script_setup_true_lang.js +1 -0
  215. package/es/typography/interface.d.ts +0 -4
  216. package/es/typography/utils/getInnerText.js +11 -10
  217. package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +7 -5
  218. package/es/upload/utils.d.ts +1 -2
  219. package/es/verification-code/index.d.ts +12 -3
  220. package/es/verification-code/verification-code.vue.d.ts +6 -1
  221. package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +29 -5
  222. package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +4 -2
  223. package/json/vetur-attributes.json +22 -10
  224. package/json/vetur-tags.json +10 -4
  225. package/json/web-types.json +43 -17
  226. package/package.json +1 -1
  227. /package/es/icon/{icon-faceBook-circle-fill/icon-faceBook-circle-fill.vue.d.ts → icon-facebook-circle-fill/icon-facebook-circle-fill.vue.d.ts} +0 -0
@@ -1,22 +1,26 @@
1
1
  import { configProviderInjectionKey } from "../config-provider/context.js";
2
2
  import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
3
- import { getCurrentInstance, inject } from "vue";
3
+ import { getCurrentInstance, inject, ref } from "vue";
4
4
  //#region components/_utils/global-config.ts
5
5
  var COMPONENT_PREFIX = "Sd";
6
6
  var CLASS_PREFIX = "sd";
7
7
  var GLOBAL_CONFIG_NAME = "$sd";
8
+ var globalClassPrefix = ref(void 0);
8
9
  var getComponentPrefix = (options) => {
9
10
  var _options$componentPre;
10
11
  return (_options$componentPre = options === null || options === void 0 ? void 0 : options.componentPrefix) !== null && _options$componentPre !== void 0 ? _options$componentPre : COMPONENT_PREFIX;
11
12
  };
12
13
  var setGlobalConfig = (app, options) => {
13
- if (options === null || options === void 0 ? void 0 : options.classPrefix) app.config.globalProperties[GLOBAL_CONFIG_NAME] = _objectSpread2(_objectSpread2({}, app.config.globalProperties[GLOBAL_CONFIG_NAME]), {}, { classPrefix: options.classPrefix });
14
+ if (options === null || options === void 0 ? void 0 : options.classPrefix) {
15
+ globalClassPrefix.value = options.classPrefix;
16
+ app.config.globalProperties[GLOBAL_CONFIG_NAME] = _objectSpread2(_objectSpread2({}, app.config.globalProperties[GLOBAL_CONFIG_NAME]), {}, { classPrefix: options.classPrefix });
17
+ }
14
18
  };
15
19
  var getPrefixCls = (componentName) => {
16
- var _ref, _configProvider$prefi, _instance$appContext$;
20
+ var _ref, _ref2, _configProvider$prefi, _instance$appContext$;
17
21
  const instance = getCurrentInstance();
18
- const configProvider = inject(configProviderInjectionKey, void 0);
19
- const prefix = (_ref = (_configProvider$prefi = configProvider === null || configProvider === void 0 ? void 0 : configProvider.prefixCls) !== null && _configProvider$prefi !== void 0 ? _configProvider$prefi : instance === null || instance === void 0 || (_instance$appContext$ = instance.appContext.config.globalProperties[GLOBAL_CONFIG_NAME]) === null || _instance$appContext$ === void 0 ? void 0 : _instance$appContext$.classPrefix) !== null && _ref !== void 0 ? _ref : CLASS_PREFIX;
22
+ const configProvider = instance ? inject(configProviderInjectionKey, void 0) : void 0;
23
+ const prefix = (_ref = (_ref2 = (_configProvider$prefi = configProvider === null || configProvider === void 0 ? void 0 : configProvider.prefixCls) !== null && _configProvider$prefi !== void 0 ? _configProvider$prefi : globalClassPrefix.value) !== null && _ref2 !== void 0 ? _ref2 : instance === null || instance === void 0 || (_instance$appContext$ = instance.appContext.config.globalProperties[GLOBAL_CONFIG_NAME]) === null || _instance$appContext$ === void 0 ? void 0 : _instance$appContext$.classPrefix) !== null && _ref !== void 0 ? _ref : CLASS_PREFIX;
20
24
  if (componentName) return `${prefix}-${componentName}`;
21
25
  return prefix;
22
26
  };
@@ -3,6 +3,7 @@ import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import { isNumber, isWindow } from "../_utils/is.js";
4
4
  import { getElement, off, on } from "../_utils/dom.js";
5
5
  import { throttleByRaf } from "../_utils/throttle-by-raf.js";
6
+ import Affix from "../affix/index.js";
6
7
  import { useI18n } from "../locale/index.js";
7
8
  import { anchorInjectionKey } from "./context.js";
8
9
  import { BOUNDARY_POSITIONS, slide } from "./utils.js";
@@ -118,11 +119,12 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
118
119
  };
119
120
  const handleClick = (e, hash) => {
120
121
  if (!props.changeHash) e.preventDefault();
122
+ const preHash = currentLink.value;
121
123
  if (hash) {
122
124
  scrollIntoView(hash);
123
125
  handleAnchorChange(hash);
124
126
  }
125
- emit("select", hash, currentLink.value);
127
+ emit("select", hash, preHash);
126
128
  };
127
129
  const scrollIntoView = (hash) => {
128
130
  try {
@@ -141,7 +143,7 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
141
143
  const targetTop = top - diff;
142
144
  slide(el, targetTop, () => {
143
145
  isScrolling.value = false;
144
- });
146
+ }, props.smooth);
145
147
  isScrolling.value = true;
146
148
  } catch (e) {
147
149
  console.error(e);
@@ -156,11 +158,6 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
156
158
  }
157
159
  });
158
160
  const handleAnchorChange = (hash) => {
159
- if (!links[hash] && anchorRef.value) {
160
- const element = getElement(`a[data-href='${hash}']`, anchorRef.value);
161
- if (!element) return;
162
- links[hash] = element;
163
- }
164
161
  if (hash !== currentLink.value) {
165
162
  currentLink.value = hash;
166
163
  nextTick(() => {
@@ -224,7 +221,7 @@ var anchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
224
221
  [`${prefixCls}-line-less`]: props.lineLess,
225
222
  [`${prefixCls}-horizontal`]: props.direction === "horizontal"
226
223
  }]);
227
- const wrapperComponent = computed(() => props.affix ? "Affix" : "div");
224
+ const wrapperComponent = computed(() => props.affix ? Affix : "div");
228
225
  const wrapperProps = computed(() => {
229
226
  if (!props.affix) return {};
230
227
  return {
@@ -1,3 +1,3 @@
1
- export declare function slide(el: HTMLElement, top: number, cb: () => void): void;
1
+ export declare function slide(el: HTMLElement, top: number, cb: () => void, smooth?: boolean): void;
2
2
  export declare const BOUNDARY_POSITIONS: readonly ["start", "end", "center", "nearest"];
3
3
  export type BoundaryPosition = (typeof BOUNDARY_POSITIONS)[number];
@@ -1,7 +1,12 @@
1
1
  import { isFunction } from "../_utils/is.js";
2
2
  import BTween from "b-tween";
3
3
  //#region components/anchor/utils.ts
4
- function slide(el, top, cb) {
4
+ function slide(el, top, cb, smooth = true) {
5
+ if (!smooth) {
6
+ el.scrollTop = top;
7
+ cb();
8
+ return;
9
+ }
5
10
  new BTween({
6
11
  from: { scrollTop: el.scrollTop },
7
12
  to: { scrollTop: top },
@@ -3,17 +3,17 @@ import type { VirtualListProps } from '../_components/virtual-list/interface';
3
3
  import type { FloatingOptions } from '../_utils/floating';
4
4
  import type { FilterOption, SelectOptionData, SelectOptionGroup, SelectOptionInfo } from '../select/interface';
5
5
  import { type TriggerProps } from '../trigger';
6
- declare var __VLS_7: {
6
+ declare var __VLS_18: {
7
7
  data: SelectOptionInfo;
8
- }, __VLS_56: {}, __VLS_71: {}, __VLS_74: {};
8
+ }, __VLS_67: {}, __VLS_82: {}, __VLS_85: {};
9
9
  type __VLS_Slots = {} & {
10
- option?: (props: typeof __VLS_7) => any;
10
+ option?: (props: typeof __VLS_18) => any;
11
11
  } & {
12
- footer?: (props: typeof __VLS_56) => any;
12
+ footer?: (props: typeof __VLS_67) => any;
13
13
  } & {
14
- prefix?: (props: typeof __VLS_71) => any;
14
+ prefix?: (props: typeof __VLS_82) => any;
15
15
  } & {
16
- suffix?: (props: typeof __VLS_74) => any;
16
+ suffix?: (props: typeof __VLS_85) => any;
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
19
19
  modelValue: {
@@ -9,13 +9,14 @@ import { resolveDropdownVirtualListProps } from "../_utils/virtual-dropdown.js";
9
9
  import Trigger from "../trigger/index.js";
10
10
  import Ellipsis from "../ellipsis/index.js";
11
11
  import Input from "../input/index.js";
12
- import { getKeyFromValue } from "../select/utils.js";
12
+ import { getKeyFromValue, isGroupOptionInfo } from "../select/utils.js";
13
13
  import { useSelect } from "../select/hooks/use-select.js";
14
14
  import select_dropdown_default from "../select/select-dropdown.js";
15
15
  import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toRef, unref, useAttrs, useSlots, watch, withCtx } from "vue";
16
16
  import { createReusableTemplate } from "@vueuse/core";
17
17
  //#region components/auto-complete/auto-complete.vue?vue&type=script&setup=true&lang.ts
18
- var _hoisted_1 = [
18
+ var _hoisted_1 = ["aria-label"];
19
+ var _hoisted_2 = [
19
20
  "aria-disabled",
20
21
  "onClick",
21
22
  "onMouseenter",
@@ -90,6 +91,7 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
90
91
  const [DefineOption, ReuseOption] = createReusableTemplate();
91
92
  const prefixCls = getPrefixCls("auto-complete");
92
93
  const optionPrefixCls = getPrefixCls("select-option");
94
+ const groupPrefixCls = getPrefixCls("select-group");
93
95
  const { mergedDisabled, eventHandlers } = useFormItem({ disabled: toRef(props, "disabled") });
94
96
  const { mergedAllowClear } = useAllowClear(toRef(props, "allowClear"));
95
97
  const innerValue = ref(props.defaultValue);
@@ -115,8 +117,8 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
115
117
  innerPopupVisible.value = popupVisible;
116
118
  };
117
119
  const strictFilterOption = (inputValue, option) => {
118
- var _option$label;
119
- return Boolean((_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.includes(inputValue));
120
+ var _ref, _option$label;
121
+ return Boolean(String((_ref = (_option$label = option.label) !== null && _option$label !== void 0 ? _option$label : option.value) !== null && _ref !== void 0 ? _ref : "").includes(inputValue));
120
122
  };
121
123
  const mergedFilterOption = computed(() => {
122
124
  if (isFunction(props.filterOption)) return props.filterOption;
@@ -206,7 +208,21 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
206
208
  });
207
209
  return (_ctx, _cache) => {
208
210
  return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(DefineOption), null, {
209
- default: withCtx(({ item }) => [createElementVNode("li", {
211
+ default: withCtx(({ item }) => [unref(isGroupOptionInfo)(item) ? (openBlock(), createElementBlock("li", {
212
+ key: item.key,
213
+ role: "group",
214
+ "aria-label": item.label,
215
+ class: normalizeClass(unref(groupPrefixCls))
216
+ }, [createElementVNode("div", { class: normalizeClass(`${unref(groupPrefixCls)}-title`) }, [createVNode(unref(Ellipsis), null, {
217
+ default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
218
+ _: 2
219
+ }, 1024)], 2), (openBlock(true), createElementBlock(Fragment, null, renderList(item.options, (child) => {
220
+ return openBlock(), createBlock(unref(ReuseOption), {
221
+ key: child.key,
222
+ item: child
223
+ }, null, 8, ["item"]);
224
+ }), 128))], 10, _hoisted_1)) : (openBlock(), createElementBlock("li", {
225
+ key: 1,
210
226
  ref: (element) => setOptionRef(item.key, element),
211
227
  class: normalizeClass([unref(optionPrefixCls), {
212
228
  [`${unref(optionPrefixCls)}-active`]: unref(activeKey) === item.key,
@@ -220,7 +236,7 @@ var auto_complete_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
220
236
  }, [createElementVNode("span", { class: normalizeClass(`${unref(optionPrefixCls)}-content`) }, [unref(slots).option && item.value ? renderSlot(_ctx.$slots, "option", { data: item }, void 0, void 0, 0) : (openBlock(), createBlock(unref(Ellipsis), { key: 1 }, {
221
237
  default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
222
238
  _: 2
223
- }, 1024))], 2)], 42, _hoisted_1)]),
239
+ }, 1024))], 2)], 42, _hoisted_2))]),
224
240
  _: 3
225
241
  }), createVNode(unref(Trigger), mergeProps(mergedTriggerProps.value, { onPopupVisibleChange: handlePopupVisibleChange }), {
226
242
  content: withCtx(() => [createVNode(select_dropdown_default, {
@@ -40,6 +40,7 @@ var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
40
40
  }
41
41
  });
42
42
  const prefixCls = getPrefixCls("avatar-group");
43
+ const avatarPrefixCls = getPrefixCls("avatar");
43
44
  const configCtx = inject(configProviderInjectionKey, void 0);
44
45
  const rtl = computed(() => {
45
46
  var _configCtx$rtl;
@@ -65,7 +66,7 @@ var avatar_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
65
66
  return (_ctx, _cache) => {
66
67
  return openBlock(), createElementBlock("div", { class: normalizeClass([unref(prefixCls), { [`${unref(prefixCls)}-rtl`]: rtl.value }]) }, [createVNode(unref(DefineAvatarContent), null, {
67
68
  default: withCtx(({ children }) => [createVNode(unref(RenderVNodes), { content: getVisibleAvatars(children) }, null, 8, ["content"]), getOverflowAvatars(children).length > 0 ? (openBlock(), createBlock(unref(Popover), normalizeProps(mergeProps({ key: 0 }, __props.maxPopoverTriggerProps)), {
68
- content: withCtx(() => [createElementVNode("div", null, [createVNode(unref(RenderVNodes), { content: getOverflowAvatars(children) }, null, 8, ["content"])])]),
69
+ content: withCtx(() => [createElementVNode("div", { class: normalizeClass(`${unref(avatarPrefixCls)}-group-popover`) }, [createVNode(unref(RenderVNodes), { content: getOverflowAvatars(children) }, null, 8, ["content"])], 2)]),
69
70
  default: withCtx(() => [createVNode(avatar_default, {
70
71
  class: normalizeClass(`${unref(prefixCls)}-max-count-avatar`),
71
72
  style: normalizeStyle(__props.maxStyle)
@@ -120,11 +120,11 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
120
120
  }
121
121
  return style;
122
122
  });
123
- const computedTriggerIconStyle = useTriggerIconStyle({
123
+ const computedTriggerIconStyle = computed(() => useTriggerIconStyle({
124
124
  triggerIconStyle: triggerIconStyle === null || triggerIconStyle === void 0 ? void 0 : triggerIconStyle.value,
125
125
  inlineStyle: attrs.style,
126
126
  triggerType: triggerType.value
127
- });
127
+ }));
128
128
  const autoFixFontSizeHandler = () => {
129
129
  if (!isImage.value && !props.imageUrl) nextTick(() => {
130
130
  var _mergedSize$value2;
@@ -201,7 +201,7 @@ var avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
201
201
  }), _ctx.$slots["trigger-icon"] ? (openBlock(), createElementBlock("div", {
202
202
  key: 0,
203
203
  class: normalizeClass(`${unref(prefixCls)}-trigger-icon-${unref(triggerType)}`),
204
- style: normalizeStyle(unref(computedTriggerIconStyle))
204
+ style: normalizeStyle(computedTriggerIconStyle.value)
205
205
  }, [renderSlot(_ctx.$slots, "trigger-icon")], 6)) : createCommentVNode("", true)], 6);
206
206
  };
207
207
  }
@@ -138,5 +138,5 @@
138
138
  margin-left: -10px;
139
139
  }
140
140
  .sd-avatar-group-popover .sd-avatar:not(:first-child) {
141
- margin-left: 4px;
141
+ margin-left: 4px !important;
142
142
  }
@@ -156,6 +156,7 @@ $avatar-prefix-cls: string.unquote('#{theme.$prefix}-avatar');
156
156
  }
157
157
 
158
158
  &-group-popover &:not(:first-child) {
159
- margin-left: $avatar-group-popover-item-spacing;
159
+ // 气泡内头像使用正向间距,需覆盖条带布局写入的内联 margin-left
160
+ margin-left: $avatar-group-popover-item-spacing !important;
160
161
  }
161
162
  }
@@ -47,7 +47,7 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
47
47
  return (_configCtx$rtl = configCtx === null || configCtx === void 0 ? void 0 : configCtx.rtl) !== null && _configCtx$rtl !== void 0 ? _configCtx$rtl : false;
48
48
  });
49
49
  const hasCount = computed(() => __props.count != null);
50
- const countValue = computed(() => Number(__props.count));
50
+ const countValue = computed(() => Math.max(Number(__props.count) || 0, 0));
51
51
  const wrapperClassName = computed(() => [prefixCls, {
52
52
  [`${prefixCls}-status`]: __props.status,
53
53
  [`${prefixCls}-no-children`]: !slots.default,
@@ -56,7 +56,8 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
56
56
  const computedDotStyle = computed(() => {
57
57
  const style = _objectSpread2({}, __props.dotStyle);
58
58
  const [leftOffset, topOffset] = __props.offset;
59
- if (leftOffset) style.marginRight = `${-leftOffset}px`;
59
+ const horizontalMargin = rtl.value ? "marginLeft" : "marginRight";
60
+ if (leftOffset) style[horizontalMargin] = `${-leftOffset}px`;
60
61
  if (topOffset) style.marginTop = `${topOffset}px`;
61
62
  return style;
62
63
  });
@@ -65,46 +66,62 @@ var badge_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
65
66
  const displayCount = computed(() => isCountOverflow.value ? __props.maxCount : countValue.value);
66
67
  const displaySuffix = computed(() => isCountOverflow.value ? "+" : void 0);
67
68
  return (_ctx, _cache) => {
68
- return openBlock(), createElementBlock("span", { class: normalizeClass(wrapperClassName.value) }, [renderSlot(_ctx.$slots, "default"), _ctx.$slots.content ? (openBlock(), createElementBlock("span", {
69
- key: 0,
70
- class: normalizeClass(`${unref(prefixCls)}-custom-dot`),
71
- style: normalizeStyle(computedDotStyle.value)
72
- }, [renderSlot(_ctx.$slots, "content")], 6)) : __props.text && !__props.color && !__props.status ? (openBlock(), createElementBlock("span", {
73
- key: 1,
74
- class: normalizeClass(`${unref(prefixCls)}-text`),
75
- style: normalizeStyle(computedDotStyle.value)
76
- }, toDisplayString(__props.text), 7)) : __props.status || __props.color && !hasCount.value ? (openBlock(), createElementBlock("span", {
77
- key: 2,
78
- class: normalizeClass(`${unref(prefixCls)}-status-wrapper`)
79
- }, [createElementVNode("span", {
80
- class: normalizeClass([`${unref(prefixCls)}-status-dot`, {
81
- [`${unref(prefixCls)}-status-${__props.status}`]: __props.status,
82
- [`${unref(prefixCls)}-color-${__props.color}`]: __props.color
83
- }]),
84
- style: normalizeStyle(mergedStyle.value),
85
- "aria-hidden": "true"
86
- }, null, 6), __props.text ? (openBlock(), createElementBlock("span", {
87
- key: 0,
88
- class: normalizeClass(`${unref(prefixCls)}-status-text`)
89
- }, toDisplayString(__props.text), 3)) : createCommentVNode("", true)], 2)) : (__props.dot || __props.color) && countValue.value > 0 ? (openBlock(), createElementBlock("span", {
90
- key: 3,
91
- role: "status",
92
- "aria-label": String(countValue.value),
93
- class: normalizeClass([`${unref(prefixCls)}-dot`, { [`${unref(prefixCls)}-color-${__props.color}`]: __props.color }]),
94
- style: normalizeStyle(mergedStyle.value)
95
- }, null, 14, _hoisted_1)) : countValue.value !== 0 ? (openBlock(), createElementBlock("span", {
96
- key: 4,
97
- class: normalizeClass(`${unref(prefixCls)}-number`),
98
- style: normalizeStyle(mergedStyle.value)
99
- }, [createVNode(unref(NumberFlow), {
100
- value: displayCount.value,
101
- suffix: displaySuffix.value,
102
- animated: __props.animation
103
- }, null, 8, [
104
- "value",
105
- "suffix",
106
- "animated"
107
- ])], 6)) : createCommentVNode("", true)], 2);
69
+ return openBlock(), createElementBlock("span", { class: normalizeClass(wrapperClassName.value) }, [
70
+ renderSlot(_ctx.$slots, "default"),
71
+ _ctx.$slots.content ? (openBlock(), createElementBlock("span", {
72
+ key: 0,
73
+ class: normalizeClass(`${unref(prefixCls)}-custom-dot`),
74
+ style: normalizeStyle(computedDotStyle.value)
75
+ }, [renderSlot(_ctx.$slots, "content")], 6)) : __props.text && !__props.color && !__props.status ? (openBlock(), createElementBlock("span", {
76
+ key: 1,
77
+ class: normalizeClass(`${unref(prefixCls)}-text`),
78
+ style: normalizeStyle(computedDotStyle.value)
79
+ }, toDisplayString(__props.text), 7)) : __props.status || __props.color && !hasCount.value ? (openBlock(), createElementBlock("span", {
80
+ key: 2,
81
+ class: normalizeClass(`${unref(prefixCls)}-status-wrapper`)
82
+ }, [createElementVNode("span", {
83
+ class: normalizeClass([`${unref(prefixCls)}-status-dot`, {
84
+ [`${unref(prefixCls)}-status-${__props.status}`]: __props.status,
85
+ [`${unref(prefixCls)}-color-${__props.color}`]: __props.color
86
+ }]),
87
+ style: normalizeStyle(mergedStyle.value),
88
+ "aria-hidden": "true"
89
+ }, null, 6), __props.text ? (openBlock(), createElementBlock("span", {
90
+ key: 0,
91
+ class: normalizeClass(`${unref(prefixCls)}-status-text`)
92
+ }, toDisplayString(__props.text), 3)) : createCommentVNode("", true)], 2)) : (__props.dot || __props.color) && countValue.value > 0 ? (openBlock(), createElementBlock("span", {
93
+ key: 3,
94
+ role: "status",
95
+ "aria-label": String(countValue.value),
96
+ class: normalizeClass([`${unref(prefixCls)}-dot`, { [`${unref(prefixCls)}-color-${__props.color}`]: __props.color }]),
97
+ style: normalizeStyle(mergedStyle.value)
98
+ }, null, 14, _hoisted_1)) : countValue.value !== 0 ? (openBlock(), createElementBlock("span", {
99
+ key: 4,
100
+ class: normalizeClass(`${unref(prefixCls)}-number`),
101
+ style: normalizeStyle(mergedStyle.value)
102
+ }, [createVNode(unref(NumberFlow), {
103
+ value: displayCount.value,
104
+ suffix: displaySuffix.value,
105
+ animated: __props.animation
106
+ }, null, 8, [
107
+ "value",
108
+ "suffix",
109
+ "animated"
110
+ ])], 6)) : createCommentVNode("", true),
111
+ __props.status && countValue.value > 0 ? (openBlock(), createElementBlock("span", {
112
+ key: 5,
113
+ class: normalizeClass(`${unref(prefixCls)}-number`),
114
+ style: normalizeStyle(mergedStyle.value)
115
+ }, [createVNode(unref(NumberFlow), {
116
+ value: displayCount.value,
117
+ suffix: displaySuffix.value,
118
+ animated: __props.animation
119
+ }, null, 8, [
120
+ "value",
121
+ "suffix",
122
+ "animated"
123
+ ])], 6)) : createCommentVNode("", true)
124
+ ], 2);
108
125
  };
109
126
  }
110
127
  }));
@@ -29,14 +29,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
29
29
  $data: {};
30
30
  $props: {
31
31
  readonly schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
32
+ readonly modelValue?: import("..").JsonFormModel | undefined;
32
33
  readonly adapter?: import("..").JsonFormAdapter | undefined;
33
34
  readonly model?: import("..").JsonFormModel | undefined;
34
35
  readonly hideLabel?: boolean | undefined;
35
36
  readonly hideAsterisk?: boolean | undefined;
36
37
  readonly showColon?: boolean | undefined;
37
38
  readonly component?: (string | import("vue").Component) | undefined;
38
- readonly modelValue?: import("..").JsonFormModel | undefined;
39
- readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
39
+ readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
40
40
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
41
41
  $attrs: import("vue").Attrs;
42
42
  $refs: {
@@ -48,20 +48,19 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  $root: import("vue").ComponentPublicInstance | null;
49
49
  $parent: import("vue").ComponentPublicInstance | null;
50
50
  $host: Element | null;
51
- $emit: (event: "update:modelValue", value: import("..").JsonFormModel | undefined) => void;
51
+ $emit: (event: "update:modelValue", value: import("..").JsonFormModel) => void;
52
52
  $el: any;
53
53
  $options: import("vue").ComponentOptionsBase<Readonly<{
54
54
  schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
55
+ modelValue?: import("..").JsonFormModel;
55
56
  adapter?: import("..").JsonFormAdapter;
56
57
  model?: import("..").JsonFormModel;
57
58
  hideLabel?: boolean;
58
59
  hideAsterisk?: boolean;
59
60
  showColon?: boolean;
60
61
  component?: string | import("vue").Component;
61
- } & {
62
- modelValue?: import("..").JsonFormModel | undefined;
63
62
  }> & Readonly<{
64
- "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
63
+ "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
65
64
  }>, {
66
65
  validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
67
66
  validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
@@ -70,9 +69,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
70
69
  setFields: (data: Record<string, import("../form/interface").FieldData>) => void | undefined;
71
70
  scrollToField: (field: string) => void | undefined;
72
71
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
- "update:modelValue": (value: import("..").JsonFormModel | undefined) => any;
72
+ "update:modelValue": (value: import("..").JsonFormModel) => any;
74
73
  }, string, {
75
74
  component: string | import("vue").Component;
75
+ modelValue: import("..").JsonFormModel;
76
76
  showColon: boolean;
77
77
  hideLabel: boolean;
78
78
  hideAsterisk: boolean;
@@ -100,6 +100,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
100
100
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
101
101
  } & Readonly<{
102
102
  component: string | import("vue").Component;
103
+ modelValue: import("..").JsonFormModel;
103
104
  showColon: boolean;
104
105
  hideLabel: boolean;
105
106
  hideAsterisk: boolean;
@@ -107,17 +108,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
107
108
  adapter: import("..").JsonFormAdapter;
108
109
  }> & Omit<Readonly<{
109
110
  schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
111
+ modelValue?: import("..").JsonFormModel;
110
112
  adapter?: import("..").JsonFormAdapter;
111
113
  model?: import("..").JsonFormModel;
112
114
  hideLabel?: boolean;
113
115
  hideAsterisk?: boolean;
114
116
  showColon?: boolean;
115
117
  component?: string | import("vue").Component;
116
- } & {
117
- modelValue?: import("..").JsonFormModel | undefined;
118
118
  }> & Readonly<{
119
- "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
120
- }>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
119
+ "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
120
+ }>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "modelValue" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
121
121
  validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
122
122
  validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
123
123
  resetFields: (field?: string | string[] | undefined) => void | undefined;
@@ -137,14 +137,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
137
137
  $data: {};
138
138
  $props: {
139
139
  readonly schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
140
+ readonly modelValue?: import("..").JsonFormModel | undefined;
140
141
  readonly adapter?: import("..").JsonFormAdapter | undefined;
141
142
  readonly model?: import("..").JsonFormModel | undefined;
142
143
  readonly hideLabel?: boolean | undefined;
143
144
  readonly hideAsterisk?: boolean | undefined;
144
145
  readonly showColon?: boolean | undefined;
145
146
  readonly component?: (string | import("vue").Component) | undefined;
146
- readonly modelValue?: import("..").JsonFormModel | undefined;
147
- readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
147
+ readonly "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
148
148
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
149
149
  $attrs: import("vue").Attrs;
150
150
  $refs: {
@@ -156,20 +156,19 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
156
156
  $root: import("vue").ComponentPublicInstance | null;
157
157
  $parent: import("vue").ComponentPublicInstance | null;
158
158
  $host: Element | null;
159
- $emit: (event: "update:modelValue", value: import("..").JsonFormModel | undefined) => void;
159
+ $emit: (event: "update:modelValue", value: import("..").JsonFormModel) => void;
160
160
  $el: any;
161
161
  $options: import("vue").ComponentOptionsBase<Readonly<{
162
162
  schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
163
+ modelValue?: import("..").JsonFormModel;
163
164
  adapter?: import("..").JsonFormAdapter;
164
165
  model?: import("..").JsonFormModel;
165
166
  hideLabel?: boolean;
166
167
  hideAsterisk?: boolean;
167
168
  showColon?: boolean;
168
169
  component?: string | import("vue").Component;
169
- } & {
170
- modelValue?: import("..").JsonFormModel | undefined;
171
170
  }> & Readonly<{
172
- "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
171
+ "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
173
172
  }>, {
174
173
  validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
175
174
  validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
@@ -178,9 +177,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
178
177
  setFields: (data: Record<string, import("../form/interface").FieldData>) => void | undefined;
179
178
  scrollToField: (field: string) => void | undefined;
180
179
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
181
- "update:modelValue": (value: import("..").JsonFormModel | undefined) => any;
180
+ "update:modelValue": (value: import("..").JsonFormModel) => any;
182
181
  }, string, {
183
182
  component: string | import("vue").Component;
183
+ modelValue: import("..").JsonFormModel;
184
184
  showColon: boolean;
185
185
  hideLabel: boolean;
186
186
  hideAsterisk: boolean;
@@ -208,6 +208,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
208
208
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
209
209
  } & Readonly<{
210
210
  component: string | import("vue").Component;
211
+ modelValue: import("..").JsonFormModel;
211
212
  showColon: boolean;
212
213
  hideLabel: boolean;
213
214
  hideAsterisk: boolean;
@@ -215,17 +216,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
215
216
  adapter: import("..").JsonFormAdapter;
216
217
  }> & Omit<Readonly<{
217
218
  schemas: import("..").JsonFormA2UI_0_9_1ComponentNode[] | import("..").JsonFormSchema<import("..").JsonFormComponentType<{}>, {}>[];
219
+ modelValue?: import("..").JsonFormModel;
218
220
  adapter?: import("..").JsonFormAdapter;
219
221
  model?: import("..").JsonFormModel;
220
222
  hideLabel?: boolean;
221
223
  hideAsterisk?: boolean;
222
224
  showColon?: boolean;
223
225
  component?: string | import("vue").Component;
224
- } & {
225
- modelValue?: import("..").JsonFormModel | undefined;
226
226
  }> & Readonly<{
227
- "onUpdate:modelValue"?: ((value: import("..").JsonFormModel | undefined) => any) | undefined;
228
- }>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
227
+ "onUpdate:modelValue"?: ((value: import("..").JsonFormModel) => any) | undefined;
228
+ }>, "validate" | "validateField" | "resetFields" | "clearValidate" | "setFields" | "scrollToField" | ("component" | "modelValue" | "showColon" | "hideLabel" | "hideAsterisk" | "model" | "adapter")> & {
229
229
  validate: (callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
230
230
  validateField: (field: string | string[], callback?: ((errors: undefined | Record<string, import("..").ValidatedError>) => void) | undefined) => Promise<Record<string, import("..").ValidatedError> | undefined> | undefined;
231
231
  resetFields: (field?: string | string[] | undefined) => void | undefined;