vben
2023-04-06 6a9bd686d5e7d3928f39856da4e9e3920ac5cbee
chore: remove LazyContainer
5个文件已删除
6个文件已修改
384 ■■■■■ 已修改文件
packages/hooks/src/useRefs.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Container/index.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Container/src/LazyContainer.vue 145 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/hooks/event/useIntersectionObserver.ts 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/hooks/web/useMessage.tsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/lang/en/routes/demo.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/lang/zh-CN/routes/demo.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/routes/modules/demo/comp.ts 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/demo/comp/lazy/TargetContent.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/demo/comp/lazy/Transition.vue 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/demo/comp/lazy/index.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/hooks/src/useRefs.ts
@@ -1,8 +1,8 @@
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 = [];
src/components/Container/index.ts
@@ -1,10 +1,8 @@
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';
src/components/Container/src/LazyContainer.vue
File was deleted
src/hooks/event/useIntersectionObserver.ts
File was deleted
src/hooks/web/useMessage.tsx
@@ -1,8 +1,6 @@
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';
src/locales/lang/en/routes/demo.ts
@@ -29,10 +29,6 @@
    drawer: 'Drawer',
    desc: 'Desc',
    lazy: 'Lazy',
    lazyBasic: 'Basic',
    lazyTransition: 'Animation',
    verify: 'Verify',
    verifyDrag: 'Drag ',
    verifyRotate: 'Picture Restore',
src/locales/lang/zh-CN/routes/demo.ts
@@ -28,10 +28,6 @@
    drawer: '抽屉扩展',
    desc: '详情组件',
    lazy: '懒加载组件',
    lazyBasic: '基础示例',
    lazyTransition: '动画效果',
    verify: '验证组件',
    verifyDrag: '拖拽校验',
    verifyRotate: '图片还原',
src/router/routes/modules/demo/comp.ts
@@ -471,33 +471,6 @@
    },
    {
      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'),
src/views/demo/comp/lazy/TargetContent.vue
File was deleted
src/views/demo/comp/lazy/Transition.vue
File was deleted
src/views/demo/comp/lazy/index.vue
File was deleted