vft 0.0.133 → 0.0.136

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 (167) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  3. package/es/components/autocomplete/index.d.ts +8 -8
  4. package/es/components/backtop/backtop.vue2.js +3 -2
  5. package/es/components/card/card.vue.d.ts +2 -2
  6. package/es/components/card/index.d.ts +4 -4
  7. package/es/components/carousel/carousel.vue.d.ts +12 -12
  8. package/es/components/carousel/index.d.ts +21 -21
  9. package/es/components/checkbox/checkbox.vue.d.ts +8 -8
  10. package/es/components/checkbox/index.d.ts +19 -19
  11. package/es/components/context-menu/context-menu.vue2.js +3 -2
  12. package/es/components/date-picker/date-picker.d.ts +1 -1
  13. package/es/components/date-picker/index.d.ts +2 -2
  14. package/es/components/descriptions/index.d.ts +2 -2
  15. package/es/components/dialog/index.d.ts +1 -1
  16. package/es/components/drawer/index.d.ts +1 -1
  17. package/es/components/dropdown/dropdown.vue.d.ts +9 -9
  18. package/es/components/dropdown/index.d.ts +15 -15
  19. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  20. package/es/components/header-layout/header-layout.vue2.js +3 -2
  21. package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +10 -1
  22. package/es/components/horizontal-menu/horizontal-menu.vue2.js +79 -75
  23. package/es/components/horizontal-menu/index.d.ts +8 -0
  24. package/es/components/image/index.d.ts +1 -1
  25. package/es/components/image-viewer/index.d.ts +2 -2
  26. package/es/components/index.d.ts +1 -0
  27. package/es/components/index.js +164 -162
  28. package/es/components/infinite-scroll/index.d.ts +26 -0
  29. package/es/components/infinite-scroll/index.js +10 -0
  30. package/es/components/infinite-scroll/infinite-scroll.d.ts +20 -0
  31. package/es/components/infinite-scroll/infinite-scroll.js +92 -0
  32. package/es/components/infinite-scroll/style/css.d.ts +0 -0
  33. package/es/components/infinite-scroll/style/css.js +2 -0
  34. package/es/components/infinite-scroll/style/index.d.ts +0 -0
  35. package/es/components/infinite-scroll/style/index.js +2 -0
  36. package/es/components/input/index.d.ts +6 -6
  37. package/es/components/input/input.vue.d.ts +1 -1
  38. package/es/components/md-container/md-container.vue2.js +3 -2
  39. package/es/components/menu/index.d.ts +2 -0
  40. package/es/components/menu/menu-item.vue2.js +21 -20
  41. package/es/components/menu/menu.vue.d.ts +2 -0
  42. package/es/components/menu/menu.vue2.js +58 -58
  43. package/es/components/menu/sub-menu.vue2.js +3 -2
  44. package/es/components/modal/modal-footer-action.vue2.js +3 -2
  45. package/es/components/multiple-tabs/multiple-tabs.vue2.js +3 -2
  46. package/es/components/popconfirm/index.d.ts +9 -9
  47. package/es/components/popconfirm/popconfirm.vue.d.ts +5 -5
  48. package/es/components/popover/index.d.ts +1 -1
  49. package/es/components/progress/index.d.ts +4 -4
  50. package/es/components/progress/progress.vue.d.ts +2 -2
  51. package/es/components/radio/index.d.ts +2 -2
  52. package/es/components/result/result.vue2.js +3 -2
  53. package/es/components/search/index.d.ts +4 -4
  54. package/es/components/search/search.vue.d.ts +1 -1
  55. package/es/components/select/defaults.d.ts +1 -1
  56. package/es/components/select/index.d.ts +14 -14
  57. package/es/components/select/select.vue.d.ts +7 -7
  58. package/es/components/select/useSelect.d.ts +1 -1
  59. package/es/components/side-menu/side-menu.vue2.js +3 -2
  60. package/es/components/slider/composables/use-slide.d.ts +2 -2
  61. package/es/components/super-form/component-map.js +11 -10
  62. package/es/components/super-form/super-form-action.vue2.js +3 -2
  63. package/es/components/super-form/super-form-item.vue2.js +35 -34
  64. package/es/components/super-form/super-form.vue2.js +14 -13
  65. package/es/components/table/field.js +19 -18
  66. package/es/components/table/index.d.ts +10 -10
  67. package/es/components/table/table.vue.d.ts +6 -6
  68. package/es/components/table/use/use-data-source.js +54 -52
  69. package/es/components/tabs/tab-nav.vue2.js +3 -2
  70. package/es/components/time-picker/common/picker.vue.d.ts +1 -1
  71. package/es/components/time-picker/index.d.ts +2 -2
  72. package/es/components/time-picker/time-picker.d.ts +1 -1
  73. package/es/components/time-select/time-select.vue.d.ts +2 -2
  74. package/es/components/tooltip/index.d.ts +1 -1
  75. package/es/components/upload/index.d.ts +15 -15
  76. package/es/components/upload/upload-content.vue.d.ts +9 -9
  77. package/es/components/upload/upload.vue.d.ts +9 -9
  78. package/es/index.js +279 -277
  79. package/es/package.json.js +1 -1
  80. package/es/plugin.js +5 -3
  81. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  82. package/lib/components/autocomplete/index.d.ts +8 -8
  83. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  84. package/lib/components/card/card.vue.d.ts +2 -2
  85. package/lib/components/card/index.d.ts +4 -4
  86. package/lib/components/carousel/carousel.vue.d.ts +12 -12
  87. package/lib/components/carousel/index.d.ts +21 -21
  88. package/lib/components/checkbox/checkbox.vue.d.ts +8 -8
  89. package/lib/components/checkbox/index.d.ts +19 -19
  90. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  91. package/lib/components/date-picker/date-picker.d.ts +1 -1
  92. package/lib/components/date-picker/index.d.ts +2 -2
  93. package/lib/components/descriptions/index.d.ts +2 -2
  94. package/lib/components/dialog/index.d.ts +1 -1
  95. package/lib/components/drawer/index.d.ts +1 -1
  96. package/lib/components/dropdown/dropdown.vue.d.ts +9 -9
  97. package/lib/components/dropdown/index.d.ts +15 -15
  98. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  99. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  100. package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +10 -1
  101. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  102. package/lib/components/horizontal-menu/index.d.ts +8 -0
  103. package/lib/components/image/index.d.ts +1 -1
  104. package/lib/components/image-viewer/index.d.ts +2 -2
  105. package/lib/components/index.cjs +1 -1
  106. package/lib/components/index.d.ts +1 -0
  107. package/lib/components/infinite-scroll/index.cjs +1 -0
  108. package/lib/components/infinite-scroll/index.d.ts +26 -0
  109. package/lib/components/infinite-scroll/infinite-scroll.cjs +1 -0
  110. package/lib/components/infinite-scroll/infinite-scroll.d.ts +20 -0
  111. package/lib/components/infinite-scroll/style/css.cjs +1 -0
  112. package/lib/components/infinite-scroll/style/css.d.ts +0 -0
  113. package/lib/components/infinite-scroll/style/index.cjs +1 -0
  114. package/lib/components/infinite-scroll/style/index.d.ts +0 -0
  115. package/lib/components/input/index.d.ts +6 -6
  116. package/lib/components/input/input.vue.d.ts +1 -1
  117. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  118. package/lib/components/menu/index.d.ts +2 -0
  119. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  120. package/lib/components/menu/menu.vue.d.ts +2 -0
  121. package/lib/components/menu/menu.vue2.cjs +1 -1
  122. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  123. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  124. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  125. package/lib/components/popconfirm/index.d.ts +9 -9
  126. package/lib/components/popconfirm/popconfirm.vue.d.ts +5 -5
  127. package/lib/components/popover/index.d.ts +1 -1
  128. package/lib/components/progress/index.d.ts +4 -4
  129. package/lib/components/progress/progress.vue.d.ts +2 -2
  130. package/lib/components/radio/index.d.ts +2 -2
  131. package/lib/components/result/result.vue2.cjs +1 -1
  132. package/lib/components/search/index.d.ts +4 -4
  133. package/lib/components/search/search.vue.d.ts +1 -1
  134. package/lib/components/select/defaults.d.ts +1 -1
  135. package/lib/components/select/index.d.ts +14 -14
  136. package/lib/components/select/select.vue.d.ts +7 -7
  137. package/lib/components/select/useSelect.d.ts +1 -1
  138. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  139. package/lib/components/slider/composables/use-slide.d.ts +2 -2
  140. package/lib/components/super-form/component-map.cjs +1 -1
  141. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  142. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  143. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  144. package/lib/components/table/field.cjs +1 -1
  145. package/lib/components/table/index.d.ts +10 -10
  146. package/lib/components/table/table.vue.d.ts +6 -6
  147. package/lib/components/table/use/use-data-source.cjs +1 -1
  148. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  149. package/lib/components/time-picker/common/picker.vue.d.ts +1 -1
  150. package/lib/components/time-picker/index.d.ts +2 -2
  151. package/lib/components/time-picker/time-picker.d.ts +1 -1
  152. package/lib/components/time-select/time-select.vue.d.ts +2 -2
  153. package/lib/components/tooltip/index.d.ts +1 -1
  154. package/lib/components/upload/index.d.ts +15 -15
  155. package/lib/components/upload/upload-content.vue.d.ts +9 -9
  156. package/lib/components/upload/upload.vue.d.ts +9 -9
  157. package/lib/index.cjs +1 -1
  158. package/lib/package.json.cjs +1 -1
  159. package/lib/plugin.cjs +1 -1
  160. package/package.json +4 -4
  161. package/theme-style/index.css +1 -1
  162. package/theme-style/src/common/var.scss +1 -1
  163. package/theme-style/src/image.scss +0 -4
  164. package/theme-style/src/table.scss +6 -0
  165. package/theme-style/vft-image.css +1 -1
  166. package/theme-style/vft-table.css +1 -1
  167. package/web-types.json +1 -1
@@ -4,12 +4,12 @@ import { VftBacktop as p } from "./backtop/index.js";
4
4
  import { VftButton as a, VftButtonGroup as i } from "./button/index.js";
5
5
  import { VftCard as V } from "./card/index.js";
6
6
  import { VftCheckTag as u } from "./check-tag/index.js";
7
- import { VftCheckbox as l, VftCheckboxButton as c, VftCheckboxGroup as C } from "./checkbox/index.js";
7
+ import { VftCheckbox as d, VftCheckboxButton as c, VftCheckboxGroup as C } from "./checkbox/index.js";
8
8
  import { VftClamp as T } from "./clamp/index.js";
9
9
  import { VftClampToggle as g } from "./clamp-toggle/index.js";
10
10
  import { VftCol as P } from "./col/index.js";
11
11
  import { VftCollapseTransition as F } from "./collapse-transition/index.js";
12
- import { VftColorPicker as S } from "./color-picker/index.js";
12
+ import { VftColorPicker as L } from "./color-picker/index.js";
13
13
  import { VftConfigProvider as b } from "./config-provider/index.js";
14
14
  import { VftAside as A, VftContainer as K, VftFooter as k, VftHeader as v, VftMain as R } from "./container/index.js";
15
15
  import { createContextMenu as O, destroyContextMenu as w } from "./context-menu/createContextMenu.js";
@@ -30,7 +30,7 @@ import { VftHeaderLayout as Co } from "./header-layout/index.js";
30
30
  import { VftHorizontalMenu as To } from "./horizontal-menu/index.js";
31
31
  import { VftIcon as go, VftIcon as Eo } from "./icon/index.js";
32
32
  import { VftIconText as Mo } from "./icon-text/index.js";
33
- import { VftIframeLayout as Lo } from "./iframe-layout/index.js";
33
+ import { VftIframeLayout as So } from "./iframe-layout/index.js";
34
34
  import { VftImage as yo } from "./image/index.js";
35
35
  import { VftImageViewer as _o } from "./image-viewer/index.js";
36
36
  import { VftInput as Ko } from "./input/index.js";
@@ -49,13 +49,13 @@ import { VftPopper as mr } from "./popper/index.js";
49
49
  import { VftQrcode as xr } from "./qrcode/index.js";
50
50
  import { VftRadio as ir, VftRadioButton as nr, VftRadioGroup as Vr } from "./radio/index.js";
51
51
  import { VftResult as ur } from "./result/index.js";
52
- import { VftRouterViewContent as lr } from "./router-view-content/index.js";
52
+ import { VftRouterViewContent as dr } from "./router-view-content/index.js";
53
53
  import { VftRow as Cr } from "./row/index.js";
54
54
  import { VftScrollbar as Tr } from "./scrollbar/index.js";
55
55
  import { VftSearch as gr } from "./search/index.js";
56
56
  import { VftSelect as Pr } from "./select/index.js";
57
57
  import { VftSideMenu as Fr } from "./side-menu/index.js";
58
- import { VftSkeleton as Sr, VftSkeletonItem as yr } from "./skeleton/index.js";
58
+ import { VftSkeleton as Lr, VftSkeletonItem as yr } from "./skeleton/index.js";
59
59
  import { VftSlider as _r } from "./slider/index.js";
60
60
  import { VftSpace as Kr } from "./space/index.js";
61
61
  import { VftSwitch as vr } from "./switch/index.js";
@@ -73,99 +73,100 @@ import { default as te } from "./virtual-list/components/fixed-size-list.js";
73
73
  import { virtualizedGridProps as me, virtualizedListProps as pe, virtualizedProps as xe, virtualizedScrollbarProps as ae } from "./virtual-list/props.js";
74
74
  import { VftAutocomplete as ne } from "./autocomplete/index.js";
75
75
  import { VftModal as se } from "./modal/index.js";
76
- import { VftProgress as de } from "./progress/index.js";
76
+ import { VftProgress as le } from "./progress/index.js";
77
77
  import { VftSuperForm as ce } from "./super-form/index.js";
78
78
  import { VftUpload as Ie } from "./upload/index.js";
79
79
  import { VftCarousel as De, VftCarouselItem as ge } from "./carousel/index.js";
80
80
  import { VftMdCodeDemo as Pe } from "./md-code-demo/index.js";
81
81
  import { VftMdCodeTabs as Fe } from "./md-code-tabs/index.js";
82
- import { VftMdComment as Se } from "./md-comment/index.js";
82
+ import { VftMdComment as Le } from "./md-comment/index.js";
83
83
  import { VftMdContainer as be } from "./md-container/index.js";
84
84
  import { VftMdTabs as Ae } from "./md-tabs/index.js";
85
85
  import { VftMdVuePlayground as ke } from "./md-vue-playground/index.js";
86
86
  import { VftLoading as Re } from "./loading/index.js";
87
87
  import { VftMessage as Oe, VftMessage as we } from "./message/index.js";
88
- import { default as Ne } from "./time-picker/common/picker.vue2.js";
89
- import { default as Ue } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
90
- import { buttonGroupContextKey as He } from "./button/constants.js";
91
- import { checkboxGroupContextKey as Je } from "./checkbox/constants.js";
92
- import { configProviderContextKey as je, messageConfig as Qe } from "./config-provider/constants.js";
93
- import { provideGlobalConfig as Xe, useGlobalComponentSettings as Ze, useGlobalConfig as $e } from "./config-provider/hooks/use-global-config.js";
94
- import { ROOT_PICKER_INJECTION_KEY as rt, datePickerConfig as et } from "./date-picker/constants.js";
95
- import { datePickerProps as ft } from "./date-picker/props/date-picker.js";
96
- import { dialogInjectionKey as pt } from "./dialog/constants.js";
97
- import { useDialog as at } from "./dialog/hooks/use-dialog.js";
98
- import { DROPDOWN_INJECTION_KEY as nt } from "./dropdown/tokens.js";
99
- import { EmptyEnum as st } from "./empty/constants.js";
100
- import { formContextKey as dt, formItemContextKey as lt } from "./form/constants.js";
101
- import { useDisabled as Ct, useFormDisabled as It, useFormSize as Tt, useSize as Dt } from "./form/hooks/use-form-common-props.js";
102
- import { useFormItem as Et, useFormItemInputId as Pt } from "./form/hooks/use-form-item.js";
103
- import { formItemValidateStates as Ft } from "./form/types.js";
104
- import { MenuTypeEnum as St } from "./horizontal-menu/constants.js";
105
- import { initAffixTabs as bt, useTabsDrag as _t } from "./multiple-tabs/use/use-multiple-tabs.js";
106
- import { useTabDropdown as Kt } from "./multiple-tabs/use/use-tab-dropdown.js";
107
- import { usePagination as vt, vftPaginationKey as Rt } from "./pagination/usePagination.js";
108
- import { default as Ot } from "./popper/arrow.vue2.js";
109
- import { default as zt } from "./popper/content.vue2.js";
110
- import { default as ht } from "./popper/trigger.vue2.js";
111
- import { radioGroupKey as Bt } from "./radio/constants.js";
112
- import { rowContextKey as qt } from "./row/constants.js";
113
- import { scrollbarContextKey as Yt } from "./scrollbar/constants.js";
114
- import { BAR_MAP as Qt, GAP as Wt, renderThumbStyle as Xt } from "./scrollbar/util.js";
115
- import { selectInjectionKey as $t } from "./select/token.js";
116
- import { sliderContextKey as rf } from "./slider/constants.js";
117
- import { sliderEmits as tf } from "./slider/slider.js";
118
- import { spaceProps as mf } from "./space/space.js";
119
- import { useSpace as xf } from "./space/use-space.js";
120
- import { ACTION_FIELD as nf, CHECKED_FIELD as Vf, CREATE_TIME_FIELD as sf, DATE_FIELD as uf, DATE_TIME_FIELD as df, ID_FIELD as lf, NAME_FIELD as cf, SEQ_FIELD as Cf, STATUS_FIELD as If, UPDATE_TIME_FIELD as Tf } from "./table/field.js";
121
- import { useTable as gf } from "./table/use/use-table.js";
122
- import { addRequire as Pf, removeRequire as Mf, selectMapping as Ff } from "./table/utils.js";
123
- import { TabsRootContextKey as Sf } from "./tabs/types.js";
124
- import { timePickerDefaultProps as bf } from "./time-picker/common/props.js";
125
- import { DEFAULT_FORMATS_DATE as Af, DEFAULT_FORMATS_DATEPICKER as Kf, DEFAULT_FORMATS_TIME as kf, timeUnits as vf } from "./time-picker/constants.js";
126
- import { buildTimeList as Gf, dateEquals as Of, extractDateFormat as wf, extractTimeFormat as zf, formatter as Nf, makeList as hf, parseDate as Uf, rangeArr as Bf, valueEquals as Hf } from "./time-picker/utils.js";
127
- import { TOOLTIP_INJECTION_KEY as Jf } from "./tooltip/constants.js";
128
- import { getChildState as jf } from "./tree/model/node.js";
129
- import { dragEventsKey as Wf, useDragNodeHandler as Xf } from "./tree/model/useDragNode.js";
130
- import { useModal as $f, useModalInner as om } from "./modal/use/use-modal.js";
131
- import { FormCompEnum as em, add as tm, componentMap as fm, del as mm, isDatePicker as pm, isInput as xm, isRangePicker as am } from "./super-form/component-map.js";
132
- import { getDynamicProps as nm, useForm as Vm } from "./super-form/use/use-form.js";
133
- import { genFileId as um, uploadContextKey as dm } from "./upload/constants.js";
134
- import { carouselContextKey as cm } from "./carousel/constants.js";
135
- import { vLoading as Im, createLoadingDirective as Tm, vLoading as Dm } from "./loading/directive.js";
136
- import { Loading as Em } from "./loading/service.js";
137
- import { messageDefaults as Mm, messageTypes as Fm } from "./message/types.js";
88
+ import { VftInfiniteScroll as Ne } from "./infinite-scroll/index.js";
89
+ import { default as Ue } from "./time-picker/common/picker.vue2.js";
90
+ import { default as He } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
91
+ import { buttonGroupContextKey as Je } from "./button/constants.js";
92
+ import { checkboxGroupContextKey as je } from "./checkbox/constants.js";
93
+ import { configProviderContextKey as We, messageConfig as Xe } from "./config-provider/constants.js";
94
+ import { provideGlobalConfig as $e, useGlobalComponentSettings as ot, useGlobalConfig as rt } from "./config-provider/hooks/use-global-config.js";
95
+ import { ROOT_PICKER_INJECTION_KEY as tt, datePickerConfig as ft } from "./date-picker/constants.js";
96
+ import { datePickerProps as pt } from "./date-picker/props/date-picker.js";
97
+ import { dialogInjectionKey as at } from "./dialog/constants.js";
98
+ import { useDialog as nt } from "./dialog/hooks/use-dialog.js";
99
+ import { DROPDOWN_INJECTION_KEY as st } from "./dropdown/tokens.js";
100
+ import { EmptyEnum as lt } from "./empty/constants.js";
101
+ import { formContextKey as ct, formItemContextKey as Ct } from "./form/constants.js";
102
+ import { useDisabled as Tt, useFormDisabled as Dt, useFormSize as gt, useSize as Et } from "./form/hooks/use-form-common-props.js";
103
+ import { useFormItem as Mt, useFormItemInputId as Ft } from "./form/hooks/use-form-item.js";
104
+ import { formItemValidateStates as Lt } from "./form/types.js";
105
+ import { MenuTypeEnum as bt } from "./horizontal-menu/constants.js";
106
+ import { initAffixTabs as At, useTabsDrag as Kt } from "./multiple-tabs/use/use-multiple-tabs.js";
107
+ import { useTabDropdown as vt } from "./multiple-tabs/use/use-tab-dropdown.js";
108
+ import { usePagination as Gt, vftPaginationKey as Ot } from "./pagination/usePagination.js";
109
+ import { default as zt } from "./popper/arrow.vue2.js";
110
+ import { default as ht } from "./popper/content.vue2.js";
111
+ import { default as Bt } from "./popper/trigger.vue2.js";
112
+ import { radioGroupKey as qt } from "./radio/constants.js";
113
+ import { rowContextKey as Yt } from "./row/constants.js";
114
+ import { scrollbarContextKey as Qt } from "./scrollbar/constants.js";
115
+ import { BAR_MAP as Xt, GAP as Zt, renderThumbStyle as $t } from "./scrollbar/util.js";
116
+ import { selectInjectionKey as rf } from "./select/token.js";
117
+ import { sliderContextKey as tf } from "./slider/constants.js";
118
+ import { sliderEmits as mf } from "./slider/slider.js";
119
+ import { spaceProps as xf } from "./space/space.js";
120
+ import { useSpace as nf } from "./space/use-space.js";
121
+ import { ACTION_FIELD as sf, CHECKED_FIELD as uf, CREATE_TIME_FIELD as lf, DATE_FIELD as df, DATE_TIME_FIELD as cf, ID_FIELD as Cf, NAME_FIELD as If, SEQ_FIELD as Tf, STATUS_FIELD as Df, UPDATE_TIME_FIELD as gf } from "./table/field.js";
122
+ import { useTable as Pf } from "./table/use/use-table.js";
123
+ import { addRequire as Ff, removeRequire as Sf, selectMapping as Lf } from "./table/utils.js";
124
+ import { TabsRootContextKey as bf } from "./tabs/types.js";
125
+ import { timePickerDefaultProps as Af } from "./time-picker/common/props.js";
126
+ import { DEFAULT_FORMATS_DATE as kf, DEFAULT_FORMATS_DATEPICKER as vf, DEFAULT_FORMATS_TIME as Rf, timeUnits as Gf } from "./time-picker/constants.js";
127
+ import { buildTimeList as wf, dateEquals as zf, extractDateFormat as Nf, extractTimeFormat as hf, formatter as Uf, makeList as Bf, parseDate as Hf, rangeArr as qf, valueEquals as Jf } from "./time-picker/utils.js";
128
+ import { TOOLTIP_INJECTION_KEY as jf } from "./tooltip/constants.js";
129
+ import { getChildState as Wf } from "./tree/model/node.js";
130
+ import { dragEventsKey as Zf, useDragNodeHandler as $f } from "./tree/model/useDragNode.js";
131
+ import { useModal as rm, useModalInner as em } from "./modal/use/use-modal.js";
132
+ import { FormCompEnum as fm, add as mm, componentMap as pm, del as xm, isDatePicker as am, isInput as im, isRangePicker as nm } from "./super-form/component-map.js";
133
+ import { getDynamicProps as sm, useForm as um } from "./super-form/use/use-form.js";
134
+ import { genFileId as dm, uploadContextKey as cm } from "./upload/constants.js";
135
+ import { carouselContextKey as Im } from "./carousel/constants.js";
136
+ import { vLoading as Dm, createLoadingDirective as gm, vLoading as Em } from "./loading/directive.js";
137
+ import { Loading as Mm } from "./loading/service.js";
138
+ import { messageDefaults as Sm, messageTypes as Lm } from "./message/types.js";
138
139
  export {
139
- nf as ACTION_FIELD,
140
- Qt as BAR_MAP,
141
- Vf as CHECKED_FIELD,
142
- sf as CREATE_TIME_FIELD,
143
- Ne as CommonPicker,
144
- uf as DATE_FIELD,
145
- df as DATE_TIME_FIELD,
146
- Af as DEFAULT_FORMATS_DATE,
147
- Kf as DEFAULT_FORMATS_DATEPICKER,
148
- kf as DEFAULT_FORMATS_TIME,
149
- nt as DROPDOWN_INJECTION_KEY,
140
+ sf as ACTION_FIELD,
141
+ Xt as BAR_MAP,
142
+ uf as CHECKED_FIELD,
143
+ lf as CREATE_TIME_FIELD,
144
+ Ue as CommonPicker,
145
+ df as DATE_FIELD,
146
+ cf as DATE_TIME_FIELD,
147
+ kf as DEFAULT_FORMATS_DATE,
148
+ vf as DEFAULT_FORMATS_DATEPICKER,
149
+ Rf as DEFAULT_FORMATS_TIME,
150
+ st as DROPDOWN_INJECTION_KEY,
150
151
  Xr as DynamicSizeGrid,
151
152
  $r as DynamicSizeList,
152
- st as EmptyEnum,
153
+ lt as EmptyEnum,
153
154
  re as FixedSizeGrid,
154
155
  te as FixedSizeList,
155
- em as FormCompEnum,
156
- Wt as GAP,
157
- lf as ID_FIELD,
156
+ fm as FormCompEnum,
157
+ Zt as GAP,
158
+ Cf as ID_FIELD,
158
159
  go as Icon,
159
- St as MenuTypeEnum,
160
+ bt as MenuTypeEnum,
160
161
  Oe as Message,
161
- cf as NAME_FIELD,
162
- rt as ROOT_PICKER_INJECTION_KEY,
163
- Cf as SEQ_FIELD,
164
- If as STATUS_FIELD,
165
- Jf as TOOLTIP_INJECTION_KEY,
166
- Sf as TabsRootContextKey,
167
- Ue as TimePickPanel,
168
- Tf as UPDATE_TIME_FIELD,
162
+ If as NAME_FIELD,
163
+ tt as ROOT_PICKER_INJECTION_KEY,
164
+ Tf as SEQ_FIELD,
165
+ Df as STATUS_FIELD,
166
+ jf as TOOLTIP_INJECTION_KEY,
167
+ bf as TabsRootContextKey,
168
+ He as TimePickPanel,
169
+ gf as UPDATE_TIME_FIELD,
169
170
  e as VftAlert,
170
171
  A as VftAside,
171
172
  ne as VftAutocomplete,
@@ -177,14 +178,14 @@ export {
177
178
  De as VftCarousel,
178
179
  ge as VftCarouselItem,
179
180
  u as VftCheckTag,
180
- l as VftCheckbox,
181
+ d as VftCheckbox,
181
182
  c as VftCheckboxButton,
182
183
  C as VftCheckboxGroup,
183
184
  T as VftClamp,
184
185
  g as VftClampToggle,
185
186
  P as VftCol,
186
187
  F as VftCollapseTransition,
187
- S as VftColorPicker,
188
+ L as VftColorPicker,
188
189
  b as VftConfigProvider,
189
190
  K as VftContainer,
190
191
  U as VftDatePicker,
@@ -209,21 +210,22 @@ export {
209
210
  To as VftHorizontalMenu,
210
211
  Eo as VftIcon,
211
212
  Mo as VftIconText,
212
- Lo as VftIframeLayout,
213
+ So as VftIframeLayout,
213
214
  yo as VftImage,
214
215
  _o as VftImageViewer,
216
+ Ne as VftInfiniteScroll,
215
217
  Ko as VftInput,
216
218
  vo as VftInputNumber,
217
219
  Go as VftLink,
218
220
  wo as VftListCell,
219
221
  Re as VftLoading,
220
- Im as VftLoadingDirective,
221
- Em as VftLoadingService,
222
+ Dm as VftLoadingDirective,
223
+ Mm as VftLoadingService,
222
224
  No as VftLogo,
223
225
  R as VftMain,
224
226
  Pe as VftMdCodeDemo,
225
227
  Fe as VftMdCodeTabs,
226
- Se as VftMdComment,
228
+ Le as VftMdComment,
227
229
  be as VftMdContainer,
228
230
  Ae as VftMdTabs,
229
231
  ke as VftMdVuePlayground,
@@ -239,22 +241,22 @@ export {
239
241
  rr as VftPopconfirm,
240
242
  tr as VftPopover,
241
243
  mr as VftPopper,
242
- Ot as VftPopperArrow,
243
- zt as VftPopperContent,
244
- ht as VftPopperTrigger,
245
- de as VftProgress,
244
+ zt as VftPopperArrow,
245
+ ht as VftPopperContent,
246
+ Bt as VftPopperTrigger,
247
+ le as VftProgress,
246
248
  xr as VftQrcode,
247
249
  ir as VftRadio,
248
250
  nr as VftRadioButton,
249
251
  Vr as VftRadioGroup,
250
252
  ur as VftResult,
251
- lr as VftRouterViewContent,
253
+ dr as VftRouterViewContent,
252
254
  Cr as VftRow,
253
255
  Tr as VftScrollbar,
254
256
  gr as VftSearch,
255
257
  Pr as VftSelect,
256
258
  Fr as VftSideMenu,
257
- Sr as VftSkeleton,
259
+ Lr as VftSkeleton,
258
260
  yr as VftSkeletonItem,
259
261
  _r as VftSlider,
260
262
  Kr as VftSpace,
@@ -270,78 +272,78 @@ export {
270
272
  Yr as VftTree,
271
273
  Ie as VftUpload,
272
274
  Qr as VftVerifyCode,
273
- tm as add,
274
- Pf as addRequire,
275
- Gf as buildTimeList,
276
- He as buttonGroupContextKey,
277
- cm as carouselContextKey,
278
- Je as checkboxGroupContextKey,
279
- fm as componentMap,
280
- je as configProviderContextKey,
275
+ mm as add,
276
+ Ff as addRequire,
277
+ wf as buildTimeList,
278
+ Je as buttonGroupContextKey,
279
+ Im as carouselContextKey,
280
+ je as checkboxGroupContextKey,
281
+ pm as componentMap,
282
+ We as configProviderContextKey,
281
283
  O as createContextMenu,
282
- Tm as createLoadingDirective,
283
- Of as dateEquals,
284
- et as datePickerConfig,
285
- ft as datePickerProps,
286
- mm as del,
284
+ gm as createLoadingDirective,
285
+ zf as dateEquals,
286
+ ft as datePickerConfig,
287
+ pt as datePickerProps,
288
+ xm as del,
287
289
  w as destroyContextMenu,
288
- pt as dialogInjectionKey,
289
- Wf as dragEventsKey,
290
- wf as extractDateFormat,
291
- zf as extractTimeFormat,
292
- dt as formContextKey,
293
- lt as formItemContextKey,
294
- Ft as formItemValidateStates,
295
- Nf as formatter,
296
- um as genFileId,
297
- jf as getChildState,
298
- nm as getDynamicProps,
299
- bt as initAffixTabs,
300
- pm as isDatePicker,
301
- xm as isInput,
302
- am as isRangePicker,
303
- hf as makeList,
304
- Qe as messageConfig,
305
- Mm as messageDefaults,
306
- Fm as messageTypes,
307
- Uf as parseDate,
308
- Xe as provideGlobalConfig,
309
- Bt as radioGroupKey,
310
- Bf as rangeArr,
311
- Mf as removeRequire,
312
- Xt as renderThumbStyle,
313
- qt as rowContextKey,
314
- Yt as scrollbarContextKey,
315
- $t as selectInjectionKey,
316
- Ff as selectMapping,
317
- rf as sliderContextKey,
318
- tf as sliderEmits,
319
- mf as spaceProps,
320
- bf as timePickerDefaultProps,
321
- vf as timeUnits,
322
- dm as uploadContextKey,
290
+ at as dialogInjectionKey,
291
+ Zf as dragEventsKey,
292
+ Nf as extractDateFormat,
293
+ hf as extractTimeFormat,
294
+ ct as formContextKey,
295
+ Ct as formItemContextKey,
296
+ Lt as formItemValidateStates,
297
+ Uf as formatter,
298
+ dm as genFileId,
299
+ Wf as getChildState,
300
+ sm as getDynamicProps,
301
+ At as initAffixTabs,
302
+ am as isDatePicker,
303
+ im as isInput,
304
+ nm as isRangePicker,
305
+ Bf as makeList,
306
+ Xe as messageConfig,
307
+ Sm as messageDefaults,
308
+ Lm as messageTypes,
309
+ Hf as parseDate,
310
+ $e as provideGlobalConfig,
311
+ qt as radioGroupKey,
312
+ qf as rangeArr,
313
+ Sf as removeRequire,
314
+ $t as renderThumbStyle,
315
+ Yt as rowContextKey,
316
+ Qt as scrollbarContextKey,
317
+ rf as selectInjectionKey,
318
+ Lf as selectMapping,
319
+ tf as sliderContextKey,
320
+ mf as sliderEmits,
321
+ xf as spaceProps,
322
+ Af as timePickerDefaultProps,
323
+ Gf as timeUnits,
324
+ cm as uploadContextKey,
323
325
  N as useContextMenu,
324
- at as useDialog,
325
- Ct as useDisabled,
326
- Xf as useDragNodeHandler,
327
- Vm as useForm,
328
- It as useFormDisabled,
329
- Et as useFormItem,
330
- Pt as useFormItemInputId,
331
- Tt as useFormSize,
332
- Ze as useGlobalComponentSettings,
333
- $e as useGlobalConfig,
334
- $f as useModal,
335
- om as useModalInner,
336
- vt as usePagination,
337
- Dt as useSize,
338
- xf as useSpace,
339
- Kt as useTabDropdown,
340
- gf as useTable,
341
- _t as useTabsDrag,
342
- Dm as vLoading,
343
- Hf as valueEquals,
344
- Rt as vftPaginationKey,
326
+ nt as useDialog,
327
+ Tt as useDisabled,
328
+ $f as useDragNodeHandler,
329
+ um as useForm,
330
+ Dt as useFormDisabled,
331
+ Mt as useFormItem,
332
+ Ft as useFormItemInputId,
333
+ gt as useFormSize,
334
+ ot as useGlobalComponentSettings,
335
+ rt as useGlobalConfig,
336
+ rm as useModal,
337
+ em as useModalInner,
338
+ Gt as usePagination,
339
+ Et as useSize,
340
+ nf as useSpace,
341
+ vt as useTabDropdown,
342
+ Pf as useTable,
343
+ Kt as useTabsDrag,
344
+ Em as vLoading,
345
+ Jf as valueEquals,
346
+ Ot as vftPaginationKey,
345
347
  me as virtualizedGridProps,
346
348
  pe as virtualizedListProps,
347
349
  xe as virtualizedProps,
@@ -0,0 +1,26 @@
1
+ import type { SFCWithInstall } from 'vft/es/utils';
2
+ declare const _InfiniteScroll: SFCWithInstall<import("vue").ObjectDirective<HTMLElement & {
3
+ VftInfiniteScroll: {
4
+ container: Window | HTMLElement;
5
+ containerEl: HTMLElement;
6
+ instance: import("vue").ComponentPublicInstance;
7
+ delay: number;
8
+ lastScrollTop: number;
9
+ cb: () => void;
10
+ onScroll: () => void;
11
+ observer?: MutationObserver | undefined;
12
+ };
13
+ }, () => void>>;
14
+ export default _InfiniteScroll;
15
+ export declare const VftInfiniteScroll: SFCWithInstall<import("vue").ObjectDirective<HTMLElement & {
16
+ VftInfiniteScroll: {
17
+ container: Window | HTMLElement;
18
+ containerEl: HTMLElement;
19
+ instance: import("vue").ComponentPublicInstance;
20
+ delay: number;
21
+ lastScrollTop: number;
22
+ cb: () => void;
23
+ onScroll: () => void;
24
+ observer?: MutationObserver | undefined;
25
+ };
26
+ }, () => void>>;
@@ -0,0 +1,10 @@
1
+ import l from "./infinite-scroll.js";
2
+ const i = l;
3
+ i.install = (t) => {
4
+ t.directive("InfiniteScroll", i);
5
+ };
6
+ const o = i;
7
+ export {
8
+ o as VftInfiniteScroll,
9
+ i as default
10
+ };
@@ -0,0 +1,20 @@
1
+ import type { ComponentPublicInstance, ObjectDirective } from 'vue';
2
+ export declare const SCOPE = "VftInfiniteScroll";
3
+ export declare const CHECK_INTERVAL = 50;
4
+ export declare const DEFAULT_DELAY = 200;
5
+ export declare const DEFAULT_DISTANCE = 0;
6
+ type InfiniteScrollCallback = () => void;
7
+ type InfiniteScrollEl = HTMLElement & {
8
+ [SCOPE]: {
9
+ container: HTMLElement | Window;
10
+ containerEl: HTMLElement;
11
+ instance: ComponentPublicInstance;
12
+ delay: number;
13
+ lastScrollTop: number;
14
+ cb: InfiniteScrollCallback;
15
+ onScroll: () => void;
16
+ observer?: MutationObserver;
17
+ };
18
+ };
19
+ declare const InfiniteScroll: ObjectDirective<InfiniteScrollEl, InfiniteScrollCallback>;
20
+ export default InfiniteScroll;
@@ -0,0 +1,92 @@
1
+ import { nextTick as p } from "vue";
2
+ import { isFunction as H } from "@vft/utils";
3
+ import { throttle as v } from "lodash";
4
+ import { getOffsetTopDistance as L } from "../../utils/dom/position.js";
5
+ import { getScrollContainer as N } from "../../utils/dom/scroll.js";
6
+ import { throwError as w } from "../../utils/error.js";
7
+ import "../../utils/ns-cover.js";
8
+ import "@vueuse/core";
9
+ const i = "VftInfiniteScroll", A = 50, O = 200, C = 0, D = {
10
+ delay: {
11
+ type: Number,
12
+ default: O
13
+ },
14
+ distance: {
15
+ type: Number,
16
+ default: C
17
+ },
18
+ disabled: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ immediate: {
23
+ type: Boolean,
24
+ default: !0
25
+ }
26
+ }, b = (t, e) => Object.entries(D).reduce((n, [o, c]) => {
27
+ const { type: a, default: s } = c, l = t.getAttribute(`infinite-scroll-${o}`);
28
+ let r = e[l] ?? l ?? s;
29
+ return r = r === "false" ? !1 : r, r = a(r), n[o] = Number.isNaN(r) ? s : r, n;
30
+ }, {}), g = (t) => {
31
+ const { observer: e } = t[i];
32
+ e && (e.disconnect(), delete t[i].observer);
33
+ }, F = (t, e) => {
34
+ const { container: n, containerEl: o, instance: c, observer: a, lastScrollTop: s } = t[i], { disabled: l, distance: r } = b(t, c), { clientHeight: u, scrollHeight: h, scrollTop: d } = o, E = d - s;
35
+ if (t[i].lastScrollTop = d, a || l || E < 0)
36
+ return;
37
+ let f = !1;
38
+ if (n === t)
39
+ f = h - (u + d) <= r;
40
+ else {
41
+ const { clientTop: T, scrollHeight: S } = t, y = L(t, o);
42
+ f = d + u >= y + T + S - r;
43
+ }
44
+ f && e.call(c);
45
+ };
46
+ function m(t, e) {
47
+ const { containerEl: n, instance: o } = t[i], { disabled: c } = b(t, o);
48
+ c || n.clientHeight === 0 || (n.scrollHeight <= n.clientHeight ? e.call(o) : g(t));
49
+ }
50
+ const K = {
51
+ async mounted(t, e) {
52
+ const { instance: n, value: o } = e;
53
+ H(o) || w(i, "'v-infinite-scroll' binding value must be a function"), await p();
54
+ const { delay: c, immediate: a } = b(t, n), s = N(t, !0), l = s === window ? document.documentElement : s, r = v(F.bind(null, t, o), c);
55
+ if (s) {
56
+ if (t[i] = {
57
+ instance: n,
58
+ container: s,
59
+ containerEl: l,
60
+ delay: c,
61
+ cb: o,
62
+ onScroll: r,
63
+ lastScrollTop: l.scrollTop
64
+ }, a) {
65
+ const u = new MutationObserver(
66
+ v(m.bind(null, t, o), A)
67
+ );
68
+ t[i].observer = u, u.observe(t, { childList: !0, subtree: !0 }), m(t, o);
69
+ }
70
+ s.addEventListener("scroll", r);
71
+ }
72
+ },
73
+ unmounted(t) {
74
+ const { container: e, onScroll: n } = t[i];
75
+ e == null || e.removeEventListener("scroll", n), g(t);
76
+ },
77
+ async updated(t) {
78
+ if (!t[i])
79
+ await p();
80
+ else {
81
+ const { containerEl: e, cb: n, observer: o } = t[i];
82
+ e.clientHeight && o && m(t, n);
83
+ }
84
+ }
85
+ };
86
+ export {
87
+ A as CHECK_INTERVAL,
88
+ O as DEFAULT_DELAY,
89
+ C as DEFAULT_DISTANCE,
90
+ i as SCOPE,
91
+ K as default
92
+ };
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-infinite-scroll.css";
File without changes
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/infinite-scroll.scss";