vxe-pc-ui 4.11.28 → 4.11.30

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 (233) hide show
  1. package/README.md +6 -0
  2. package/es/backtop/index.js +12 -0
  3. package/es/backtop/src/backtop.js +231 -0
  4. package/es/backtop/style.css +90 -0
  5. package/es/backtop/style.min.css +1 -0
  6. package/es/cascader/index.js +12 -0
  7. package/es/cascader/src/cascader.js +669 -0
  8. package/es/cascader/style.css +168 -0
  9. package/es/cascader/style.min.css +1 -0
  10. package/es/components.js +18 -0
  11. package/es/icon/{iconfont.1767178201934.ttf → iconfont.1767491587367.ttf} +0 -0
  12. package/es/icon/iconfont.1767491587367.woff +0 -0
  13. package/es/icon/iconfont.1767491587367.woff2 +0 -0
  14. package/es/icon/style.css +9 -1
  15. package/es/icon/style.min.css +1 -1
  16. package/{lib/icon/style/iconfont.1767178201934.ttf → es/iconfont.1767491587367.ttf} +0 -0
  17. package/es/iconfont.1767491587367.woff +0 -0
  18. package/es/iconfont.1767491587367.woff2 +0 -0
  19. package/es/layout-body/src/layout-body.js +39 -6
  20. package/es/mention/index.js +12 -0
  21. package/es/mention/src/mention.js +51 -0
  22. package/es/mention/style.css +0 -0
  23. package/es/mention/style.min.css +0 -0
  24. package/es/segmented/index.js +12 -0
  25. package/es/segmented/src/segmented.js +228 -0
  26. package/es/segmented/style.css +197 -0
  27. package/es/segmented/style.min.css +1 -0
  28. package/es/style.css +1 -1
  29. package/es/style.min.css +1 -1
  30. package/es/tabs/src/tabs.js +1 -4
  31. package/es/timeline/index.js +12 -0
  32. package/es/timeline/src/timeline-item.js +46 -0
  33. package/es/timeline/src/timeline.js +51 -0
  34. package/es/timeline/style.css +0 -0
  35. package/es/timeline/style.min.css +0 -0
  36. package/es/timeline-item/index.js +12 -0
  37. package/es/timeline-item/style.css +0 -0
  38. package/es/timeline-item/style.min.css +0 -0
  39. package/es/tour/index.js +12 -0
  40. package/es/tour/src/tour.js +51 -0
  41. package/es/tour/style.css +0 -0
  42. package/es/tour/style.min.css +0 -0
  43. package/es/ui/index.js +15 -2
  44. package/es/ui/src/log.js +1 -1
  45. package/es/vxe-backtop/index.js +3 -0
  46. package/es/vxe-backtop/style.css +90 -0
  47. package/es/vxe-backtop/style.min.css +1 -0
  48. package/es/vxe-cascader/index.js +3 -0
  49. package/es/vxe-cascader/style.css +168 -0
  50. package/es/vxe-cascader/style.min.css +1 -0
  51. package/es/vxe-icon/style.css +9 -1
  52. package/es/vxe-icon/style.min.css +1 -1
  53. package/es/vxe-mention/index.js +3 -0
  54. package/es/vxe-mention/style.css +0 -0
  55. package/es/vxe-mention/style.min.css +0 -0
  56. package/es/vxe-segmented/index.js +3 -0
  57. package/es/vxe-segmented/style.css +197 -0
  58. package/es/vxe-segmented/style.min.css +1 -0
  59. package/es/vxe-timeline/index.js +3 -0
  60. package/es/vxe-timeline/style.css +0 -0
  61. package/es/vxe-timeline/style.min.css +0 -0
  62. package/es/vxe-timeline-item/index.js +3 -0
  63. package/es/vxe-timeline-item/style.css +0 -0
  64. package/es/vxe-timeline-item/style.min.css +0 -0
  65. package/es/vxe-tour/index.js +3 -0
  66. package/es/vxe-tour/style.css +0 -0
  67. package/es/vxe-tour/style.min.css +0 -0
  68. package/lib/backtop/index.js +19 -0
  69. package/lib/backtop/index.min.js +1 -0
  70. package/lib/backtop/src/backtop.js +256 -0
  71. package/lib/backtop/src/backtop.min.js +1 -0
  72. package/lib/backtop/style/index.js +1 -0
  73. package/lib/backtop/style/style.css +90 -0
  74. package/lib/backtop/style/style.min.css +1 -0
  75. package/lib/cascader/index.js +19 -0
  76. package/lib/cascader/index.min.js +1 -0
  77. package/lib/cascader/src/cascader.js +723 -0
  78. package/lib/cascader/src/cascader.min.js +1 -0
  79. package/lib/cascader/style/index.js +1 -0
  80. package/lib/cascader/style/style.css +168 -0
  81. package/lib/cascader/style/style.min.css +1 -0
  82. package/lib/components.js +73 -1
  83. package/lib/components.min.js +1 -1
  84. package/lib/{iconfont.1767178201934.ttf → icon/style/iconfont.1767491587367.ttf} +0 -0
  85. package/lib/icon/style/iconfont.1767491587367.woff +0 -0
  86. package/lib/icon/style/iconfont.1767491587367.woff2 +0 -0
  87. package/lib/icon/style/style.css +9 -1
  88. package/lib/icon/style/style.min.css +9 -1
  89. package/{es/iconfont.1767178201934.ttf → lib/iconfont.1767491587367.ttf} +0 -0
  90. package/lib/iconfont.1767491587367.woff +0 -0
  91. package/lib/iconfont.1767491587367.woff2 +0 -0
  92. package/lib/index.umd.js +5263 -3740
  93. package/lib/index.umd.min.js +1 -1
  94. package/lib/layout-body/src/layout-body.js +34 -4
  95. package/lib/layout-body/src/layout-body.min.js +1 -1
  96. package/lib/mention/index.js +19 -0
  97. package/lib/mention/index.min.js +1 -0
  98. package/lib/mention/src/mention.js +62 -0
  99. package/lib/mention/src/mention.min.js +1 -0
  100. package/lib/mention/style/index.js +1 -0
  101. package/lib/mention/style/style.css +0 -0
  102. package/lib/mention/style/style.min.css +0 -0
  103. package/lib/segmented/index.js +19 -0
  104. package/lib/segmented/index.min.js +1 -0
  105. package/lib/segmented/src/segmented.js +245 -0
  106. package/lib/segmented/src/segmented.min.js +1 -0
  107. package/lib/segmented/style/index.js +1 -0
  108. package/lib/segmented/style/style.css +197 -0
  109. package/lib/segmented/style/style.min.css +1 -0
  110. package/lib/style.css +1 -1
  111. package/lib/style.min.css +1 -1
  112. package/lib/tabs/src/tabs.js +1 -5
  113. package/lib/tabs/src/tabs.min.js +1 -1
  114. package/lib/timeline/index.js +19 -0
  115. package/lib/timeline/index.min.js +1 -0
  116. package/lib/timeline/src/timeline-item.js +57 -0
  117. package/lib/timeline/src/timeline-item.min.js +1 -0
  118. package/lib/timeline/src/timeline.js +62 -0
  119. package/lib/timeline/src/timeline.min.js +1 -0
  120. package/lib/timeline/style/index.js +1 -0
  121. package/lib/timeline/style/style.css +0 -0
  122. package/lib/timeline/style/style.min.css +0 -0
  123. package/lib/timeline-item/index.js +19 -0
  124. package/lib/timeline-item/index.min.js +1 -0
  125. package/lib/timeline-item/style/index.js +1 -0
  126. package/lib/timeline-item/style/style.css +0 -0
  127. package/lib/timeline-item/style/style.min.css +0 -0
  128. package/lib/tour/index.js +19 -0
  129. package/lib/tour/index.min.js +1 -0
  130. package/lib/tour/src/tour.js +62 -0
  131. package/lib/tour/src/tour.min.js +1 -0
  132. package/lib/tour/style/index.js +1 -0
  133. package/lib/tour/style/style.css +0 -0
  134. package/lib/tour/style/style.min.css +0 -0
  135. package/lib/ui/index.js +15 -2
  136. package/lib/ui/index.min.js +1 -1
  137. package/lib/ui/src/log.js +1 -1
  138. package/lib/ui/src/log.min.js +1 -1
  139. package/lib/vxe-backtop/index.js +22 -0
  140. package/lib/vxe-backtop/index.min.js +1 -0
  141. package/lib/vxe-backtop/style/index.js +1 -0
  142. package/lib/vxe-backtop/style/style.css +90 -0
  143. package/lib/vxe-backtop/style/style.min.css +1 -0
  144. package/lib/vxe-cascader/index.js +22 -0
  145. package/lib/vxe-cascader/index.min.js +1 -0
  146. package/lib/vxe-cascader/style/index.js +1 -0
  147. package/lib/vxe-cascader/style/style.css +168 -0
  148. package/lib/vxe-cascader/style/style.min.css +1 -0
  149. package/lib/vxe-icon/style/style.css +9 -1
  150. package/lib/vxe-icon/style/style.min.css +1 -1
  151. package/lib/vxe-mention/index.js +22 -0
  152. package/lib/vxe-mention/index.min.js +1 -0
  153. package/lib/vxe-mention/style/index.js +1 -0
  154. package/lib/vxe-mention/style/style.css +0 -0
  155. package/lib/vxe-mention/style/style.min.css +0 -0
  156. package/lib/vxe-segmented/index.js +22 -0
  157. package/lib/vxe-segmented/index.min.js +1 -0
  158. package/lib/vxe-segmented/style/index.js +1 -0
  159. package/lib/vxe-segmented/style/style.css +197 -0
  160. package/lib/vxe-segmented/style/style.min.css +1 -0
  161. package/lib/vxe-timeline/index.js +22 -0
  162. package/lib/vxe-timeline/index.min.js +1 -0
  163. package/lib/vxe-timeline/style/index.js +1 -0
  164. package/lib/vxe-timeline/style/style.css +0 -0
  165. package/lib/vxe-timeline/style/style.min.css +0 -0
  166. package/lib/vxe-timeline-item/index.js +22 -0
  167. package/lib/vxe-timeline-item/index.min.js +1 -0
  168. package/lib/vxe-timeline-item/style/index.js +1 -0
  169. package/lib/vxe-timeline-item/style/style.css +0 -0
  170. package/lib/vxe-timeline-item/style/style.min.css +0 -0
  171. package/lib/vxe-tour/index.js +22 -0
  172. package/lib/vxe-tour/index.min.js +1 -0
  173. package/lib/vxe-tour/style/index.js +1 -0
  174. package/lib/vxe-tour/style/style.css +0 -0
  175. package/lib/vxe-tour/style/style.min.css +0 -0
  176. package/package.json +1 -1
  177. package/packages/backtop/index.ts +16 -0
  178. package/packages/backtop/src/backtop.ts +264 -0
  179. package/packages/cascader/index.ts +16 -0
  180. package/packages/cascader/src/cascader.ts +739 -0
  181. package/packages/components.ts +18 -0
  182. package/packages/layout-body/src/layout-body.ts +43 -9
  183. package/packages/mention/index.ts +16 -0
  184. package/packages/mention/src/mention.ts +71 -0
  185. package/packages/segmented/index.ts +16 -0
  186. package/packages/segmented/src/segmented.ts +264 -0
  187. package/packages/tabs/src/tabs.ts +1 -4
  188. package/packages/timeline/index.ts +16 -0
  189. package/packages/timeline/src/timeline-item.ts +67 -0
  190. package/packages/timeline/src/timeline.ts +71 -0
  191. package/packages/timeline-item/index.ts +16 -0
  192. package/packages/tour/index.ts +16 -0
  193. package/packages/tour/src/tour.ts +71 -0
  194. package/packages/ui/index.ts +15 -1
  195. package/styles/all.scss +7 -0
  196. package/styles/components/backtop.scss +111 -0
  197. package/styles/components/cascader.scss +140 -0
  198. package/styles/components/icon.scss +9 -2
  199. package/styles/components/mention.scss +0 -0
  200. package/styles/components/segmented.scss +216 -0
  201. package/styles/components/timeline-item.scss +0 -0
  202. package/styles/components/timeline.scss +0 -0
  203. package/styles/components/tour.scss +0 -0
  204. package/styles/icon/iconfont.ttf +0 -0
  205. package/styles/icon/iconfont.woff +0 -0
  206. package/styles/icon/iconfont.woff2 +0 -0
  207. package/styles/theme/base.scss +4 -0
  208. package/types/all.d.ts +21 -0
  209. package/types/components/backtop.d.ts +111 -0
  210. package/types/components/cascader.d.ts +255 -0
  211. package/types/components/icon.d.ts +2 -2
  212. package/types/components/layout-body.d.ts +9 -0
  213. package/types/components/list.d.ts +2 -2
  214. package/types/components/mention.d.ts +77 -0
  215. package/types/components/rate.d.ts +1 -1
  216. package/types/components/segmented.d.ts +123 -0
  217. package/types/components/select.d.ts +1 -1
  218. package/types/components/table.d.ts +4 -4
  219. package/types/components/timeline-item.d.ts +75 -0
  220. package/types/components/timeline.d.ts +77 -0
  221. package/types/components/tour.d.ts +77 -0
  222. package/types/components/tree-select.d.ts +1 -1
  223. package/types/components/tree.d.ts +1 -1
  224. package/types/ui/global-config.d.ts +14 -0
  225. package/types/ui/global-icon.d.ts +3 -0
  226. package/es/icon/iconfont.1767178201934.woff +0 -0
  227. package/es/icon/iconfont.1767178201934.woff2 +0 -0
  228. package/es/iconfont.1767178201934.woff +0 -0
  229. package/es/iconfont.1767178201934.woff2 +0 -0
  230. package/lib/icon/style/iconfont.1767178201934.woff +0 -0
  231. package/lib/icon/style/iconfont.1767178201934.woff2 +0 -0
  232. package/lib/iconfont.1767178201934.woff +0 -0
  233. package/lib/iconfont.1767178201934.woff2 +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-pc-ui",
3
- "version": "4.11.28",
3
+ "version": "4.11.30",
4
4
  "description": "A vue based PC component library",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -0,0 +1,16 @@
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeBacktopComponent from './src/backtop'
4
+ import { dynamicApp } from '../dynamics'
5
+
6
+ export const VxeBacktop = Object.assign({}, VxeBacktopComponent, {
7
+ install (app: App) {
8
+ app.component(VxeBacktopComponent.name as string, VxeBacktopComponent)
9
+ }
10
+ })
11
+
12
+ dynamicApp.use(VxeBacktop)
13
+ VxeUI.component(VxeBacktopComponent)
14
+
15
+ export const Backtop = VxeBacktop
16
+ export default VxeBacktop
@@ -0,0 +1,264 @@
1
+ import { ref, h, reactive, PropType, watch, onMounted, nextTick, computed, onBeforeUnmount, onUnmounted } from 'vue'
2
+ import { defineVxeComponent } from '../../ui/src/comp'
3
+ import XEUtils from 'xe-utils'
4
+ import { getConfig, getIcon, createEvent, useSize, renderEmptyElement } from '../../ui'
5
+ import { errLog } from '../../ui/src/log'
6
+ import { toCssUnit } from '../../ui/src/dom'
7
+
8
+ import type { BacktopInternalData, BacktopReactData, VxeBacktopPropTypes, BacktopPrivateRef, VxeBacktopEmits, VxeComponentStyleType, VxeBacktopPrivateComputed, BacktopMethods, BacktopPrivateMethods, VxeBacktopConstructor, VxeBacktopPrivateMethods, ValueOf } from '../../../types'
9
+
10
+ function createInternalData (): BacktopInternalData {
11
+ return {
12
+ targetEl: null
13
+ }
14
+ }
15
+
16
+ function createReactData (): BacktopReactData {
17
+ return {
18
+ showBtn: false
19
+ }
20
+ }
21
+
22
+ export default defineVxeComponent({
23
+ name: 'VxeBacktop',
24
+ props: {
25
+ target: String as PropType<VxeBacktopPropTypes.Target>,
26
+ size: {
27
+ type: String as PropType<VxeBacktopPropTypes.Size>,
28
+ default: () => getConfig().backtop.size || getConfig().size
29
+ },
30
+ circle: {
31
+ type: Boolean as PropType<VxeBacktopPropTypes.Circle>,
32
+ default: () => getConfig().backtop.circle
33
+ },
34
+ right: {
35
+ type: [String, Number] as PropType<VxeBacktopPropTypes.Right>,
36
+ default: () => getConfig().backtop.right
37
+ },
38
+ bottom: {
39
+ type: [String, Number] as PropType<VxeBacktopPropTypes.Bottom>,
40
+ default: () => getConfig().backtop.bottom
41
+ },
42
+ status: {
43
+ type: [String, Number] as PropType<VxeBacktopPropTypes.Status>,
44
+ default: () => getConfig().backtop.status
45
+ },
46
+ icon: {
47
+ type: String as PropType<VxeBacktopPropTypes.Icon>,
48
+ default: () => getConfig().backtop.icon
49
+ },
50
+ showIcon: {
51
+ type: Boolean as PropType<VxeBacktopPropTypes.ShowIcon>,
52
+ default: () => getConfig().backtop.showIcon
53
+ },
54
+ content: {
55
+ type: [String, Number] as PropType<VxeBacktopPropTypes.Content>,
56
+ default: () => getConfig().backtop.content
57
+ },
58
+ showContent: {
59
+ type: Boolean as PropType<VxeBacktopPropTypes.ShowContent>,
60
+ default: () => getConfig().backtop.showContent
61
+ },
62
+ zIndex: {
63
+ type: [String, Number] as PropType<VxeBacktopPropTypes.ZIndex>,
64
+ default: () => getConfig().backtop.zIndex
65
+ },
66
+ threshold: {
67
+ type: [String, Number] as PropType<VxeBacktopPropTypes.Threshold>,
68
+ default: () => getConfig().backtop.threshold
69
+ },
70
+ position: {
71
+ type: String as PropType<VxeBacktopPropTypes.Position>,
72
+ default: () => getConfig().backtop.position
73
+ }
74
+ },
75
+ emits: [
76
+ 'click'
77
+ ] as VxeBacktopEmits,
78
+ setup (props, context) {
79
+ const { slots, emit } = context
80
+
81
+ const xID = XEUtils.uniqueId()
82
+
83
+ const refElem = ref<HTMLDivElement>()
84
+
85
+ const { computeSize } = useSize(props)
86
+
87
+ const internalData = createInternalData()
88
+ const reactData = reactive(createReactData())
89
+
90
+ const refMaps: BacktopPrivateRef = {
91
+ refElem
92
+ }
93
+
94
+ const computeWrapperStyle = computed(() => {
95
+ const { right, bottom, zIndex } = props
96
+ const stys: VxeComponentStyleType = {}
97
+ if (right) {
98
+ stys.right = toCssUnit(right)
99
+ }
100
+ if (bottom) {
101
+ stys.bottom = toCssUnit(bottom)
102
+ }
103
+ if (zIndex) {
104
+ stys.zIndex = zIndex
105
+ }
106
+ return stys
107
+ })
108
+
109
+ const computeMaps: VxeBacktopPrivateComputed = {
110
+ }
111
+
112
+ const $xeBacktop = {
113
+ xID,
114
+ props,
115
+ context,
116
+ internalData,
117
+ reactData,
118
+
119
+ getRefMaps: () => refMaps,
120
+ getComputeMaps: () => computeMaps
121
+ } as unknown as VxeBacktopConstructor & VxeBacktopPrivateMethods
122
+
123
+ const dispatchEvent = (type: ValueOf<VxeBacktopEmits>, params: Record<string, any>, evnt: Event | null) => {
124
+ emit(type, createEvent(evnt, { $backtop: $xeBacktop }, params))
125
+ }
126
+
127
+ const handleScrollEvent = (evnt: Event) => {
128
+ const { threshold } = props
129
+ const currentEl = evnt.currentTarget as HTMLElement
130
+ const scrollTop = currentEl.scrollTop
131
+ reactData.showBtn = scrollTop > Math.max(1, XEUtils.toNumber(threshold))
132
+ }
133
+
134
+ const handleToTop = () => {
135
+ const { targetEl } = internalData
136
+ if (!targetEl) {
137
+ return
138
+ }
139
+ const scrollTop = targetEl.scrollTop
140
+ if (scrollTop > 0) {
141
+ requestAnimationFrame(handleToTop)
142
+ const currScrollTop = scrollTop - Math.max(12, scrollTop / 6)
143
+ targetEl.scrollTop = currScrollTop > 10 ? currScrollTop : 0
144
+ }
145
+ }
146
+
147
+ const removeScrollEvent = () => {
148
+ const { targetEl } = internalData
149
+ if (targetEl) {
150
+ targetEl.removeEventListener('scroll', handleScrollEvent)
151
+ }
152
+ }
153
+
154
+ const addScrollEvent = () => {
155
+ const { targetEl } = internalData
156
+ if (targetEl) {
157
+ targetEl.addEventListener('scroll', handleScrollEvent, { passive: true })
158
+ }
159
+ }
160
+
161
+ const handleTargetElement = () => {
162
+ nextTick(() => {
163
+ const { target } = props
164
+ if (!target) {
165
+ removeScrollEvent()
166
+ errLog('vxe.error.reqProp', ['target'])
167
+ return
168
+ }
169
+ if (XEUtils.isString(target)) {
170
+ const tEl = document.querySelector<HTMLElement>(target)
171
+ if (!tEl) {
172
+ errLog('vxe.error.errProp', [`target=${target}`, 'body'])
173
+ }
174
+ const { targetEl } = internalData
175
+ if (targetEl !== tEl) {
176
+ removeScrollEvent()
177
+ internalData.targetEl = tEl
178
+ addScrollEvent()
179
+ }
180
+ }
181
+ })
182
+ }
183
+
184
+ const clickEvent = (evnt: MouseEvent) => {
185
+ handleToTop()
186
+ dispatchEvent('click', {}, evnt)
187
+ }
188
+
189
+ const tagMethods: BacktopMethods = {
190
+ dispatchEvent
191
+ }
192
+
193
+ const tagPrivateMethods: BacktopPrivateMethods = {
194
+ }
195
+
196
+ Object.assign($xeBacktop, tagMethods, tagPrivateMethods)
197
+
198
+ const renderVN = () => {
199
+ const { circle, position, status, icon, showIcon, content, showContent } = props
200
+ const { showBtn } = reactData
201
+ const wrapperStyle = computeWrapperStyle.value
202
+ const vSize = computeSize.value
203
+ const defaultSlot = slots.default
204
+ return h('div', {
205
+ ref: refElem,
206
+ class: ['vxe-backtop', position === 'fixed' ? ('is--' + position) : 'is--absolute', {
207
+ [`size--${vSize}`]: vSize,
208
+ [`theme--${status}`]: status,
209
+ 'is--circle': circle,
210
+ 'is--visible': showBtn
211
+ }],
212
+ style: wrapperStyle,
213
+ onClick: clickEvent
214
+ }, [
215
+ h('div', {
216
+ class: 'vxe-backtop--inner'
217
+ }, [
218
+ defaultSlot
219
+ ? defaultSlot({})
220
+ : [
221
+ showIcon
222
+ ? h('div', {
223
+ class: 'vxe-backtop--icon'
224
+ }, [
225
+ h('i', {
226
+ class: icon || getIcon().BACKTOP_TOP
227
+ })
228
+ ])
229
+ : renderEmptyElement($xeBacktop),
230
+ showContent
231
+ ? h('div', {
232
+ class: 'vxe-backtop--content'
233
+ }, `${content || ''}`)
234
+ : renderEmptyElement($xeBacktop)
235
+ ]
236
+ ])
237
+ ])
238
+ }
239
+
240
+ watch(() => props.target, () => {
241
+ handleTargetElement()
242
+ })
243
+
244
+ onMounted(() => {
245
+ handleTargetElement()
246
+ })
247
+
248
+ onBeforeUnmount(() => {
249
+ removeScrollEvent()
250
+ XEUtils.assign(reactData, createReactData())
251
+ })
252
+
253
+ onUnmounted(() => {
254
+ XEUtils.assign(internalData, createInternalData())
255
+ })
256
+
257
+ $xeBacktop.renderVN = renderVN
258
+
259
+ return $xeBacktop
260
+ },
261
+ render () {
262
+ return this.renderVN()
263
+ }
264
+ })
@@ -0,0 +1,16 @@
1
+ import { App } from 'vue'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import VxeCascaderComponent from './src/cascader'
4
+ import { dynamicApp } from '../dynamics'
5
+
6
+ export const VxeCascader = Object.assign({}, VxeCascaderComponent, {
7
+ install (app: App) {
8
+ app.component(VxeCascaderComponent.name as string, VxeCascaderComponent)
9
+ }
10
+ })
11
+
12
+ dynamicApp.use(VxeCascader)
13
+ VxeUI.component(VxeCascaderComponent)
14
+
15
+ export const Cascader = VxeCascader
16
+ export default VxeCascader