chore: remove LazyContainer
| | |
| | | import type { Ref } from 'vue'; |
| | | import { onBeforeUpdate, ref } from 'vue'; |
| | | import { onBeforeUpdate, shallowRef } from 'vue'; |
| | | |
| | | export function useRefs(): [Ref<HTMLElement[]>, (index: number) => (el: HTMLElement) => void] { |
| | | const refs = ref([]) as Ref<HTMLElement[]>; |
| | | const refs = shallowRef([]) as Ref<HTMLElement[]>; |
| | | |
| | | onBeforeUpdate(() => { |
| | | refs.value = []; |
| | |
| | | import { withInstall } from '/@/utils'; |
| | | import collapseContainer from './src/collapse/CollapseContainer.vue'; |
| | | import scrollContainer from './src/ScrollContainer.vue'; |
| | | import lazyContainer from './src/LazyContainer.vue'; |
| | | |
| | | export const CollapseContainer = withInstall(collapseContainer); |
| | | export const ScrollContainer = withInstall(scrollContainer); |
| | | export const LazyContainer = withInstall(lazyContainer); |
| | | |
| | | export * from './src/typing'; |
| | |
| | | import type { ModalFunc, ModalFuncProps } from 'ant-design-vue/lib/modal/Modal'; |
| | | |
| | | import { Modal, message as Message, notification } from 'ant-design-vue'; |
| | | import { InfoCircleFilled, CheckCircleFilled, CloseCircleFilled } from '@ant-design/icons-vue'; |
| | | |
| | | import { NotificationArgsProps, ConfigProps } from 'ant-design-vue/lib/notification'; |
| | | import { useI18n } from './useI18n'; |
| | | import { isString } from '/@/utils/is'; |
| | |
| | | drawer: 'Drawer', |
| | | desc: 'Desc', |
| | | |
| | | lazy: 'Lazy', |
| | | lazyBasic: 'Basic', |
| | | lazyTransition: 'Animation', |
| | | |
| | | verify: 'Verify', |
| | | verifyDrag: 'Drag ', |
| | | verifyRotate: 'Picture Restore', |
| | |
| | | drawer: '抽屉扩展', |
| | | desc: '详情组件', |
| | | |
| | | lazy: '懒加载组件', |
| | | lazyBasic: '基础示例', |
| | | lazyTransition: '动画效果', |
| | | |
| | | verify: '验证组件', |
| | | verifyDrag: '拖拽校验', |
| | | verifyRotate: '图片还原', |
| | |
| | | }, |
| | | |
| | | { |
| | | path: 'lazy', |
| | | name: 'LazyDemo', |
| | | component: getParentLayout('LazyDemo'), |
| | | redirect: '/comp/lazy/basic', |
| | | meta: { |
| | | title: t('routes.demo.comp.lazy'), |
| | | }, |
| | | children: [ |
| | | { |
| | | path: 'basic', |
| | | name: 'BasicLazyDemo', |
| | | component: () => import('/@/views/demo/comp/lazy/index.vue'), |
| | | meta: { |
| | | title: t('routes.demo.comp.lazyBasic'), |
| | | }, |
| | | }, |
| | | { |
| | | path: 'transition', |
| | | name: 'BasicTransitionDemo', |
| | | component: () => import('/@/views/demo/comp/lazy/Transition.vue'), |
| | | meta: { |
| | | title: t('routes.demo.comp.lazyTransition'), |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | path: 'verify', |
| | | name: 'VerifyDemo', |
| | | component: getParentLayout('VerifyDemo'), |