Narrow shared component common ui imports

This commit is contained in:
2026-06-09 14:53:32 +08:00
parent ed63f43839
commit a5b4492f8f
8 changed files with 10 additions and 10 deletions
@@ -1,11 +1,11 @@
<script lang="ts" setup generic="T extends Record<string, any>"> <script lang="ts" setup generic="T extends Record<string, any>">
import type { VbenFormProps } from '@vben/common-ui'; import type { VbenFormProps } from '@vben-core/form-ui';
import type { PaginationProps } from './types'; import type { PaginationProps } from './types';
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'; import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
import { useVbenForm } from '@vben/common-ui'; import { useVbenForm } from '@vben-core/form-ui';
import { LayoutGrid, List, RefreshCw } from '@vben/icons'; import { LayoutGrid, List, RefreshCw } from '@vben/icons';
import { import {
@@ -7,7 +7,7 @@ import type {
import { computed, ref } from 'vue'; import { computed, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben-core/popup-ui';
import { Mail, MailCheck, Megaphone, MessageSquare, Trash2 } from '@vben/icons'; import { Mail, MailCheck, Megaphone, MessageSquare, Trash2 } from '@vben/icons';
import { ElButton, ElEmpty, ElScrollbar, ElTooltip } from 'element-plus'; import { ElButton, ElEmpty, ElScrollbar, ElTooltip } from 'element-plus';
@@ -7,7 +7,7 @@ import type {
import { computed } from 'vue'; import { computed } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben-core/popup-ui';
import { Bell } from '@vben/icons'; import { Bell } from '@vben/icons';
import { ElBadge } from 'element-plus'; import { ElBadge } from 'element-plus';
@@ -1,4 +1,4 @@
import type { ExtendedFormApi } from '@vben/common-ui'; import type { ExtendedFormApi } from '@vben-core/form-ui';
import type { ZqCursorState, ZqPaginationInfo, ZqTableProps } from './types'; import type { ZqCursorState, ZqPaginationInfo, ZqTableProps } from './types';
@@ -1,6 +1,6 @@
import type { SetupZqTable } from './types'; import type { SetupZqTable } from './types';
import { useVbenForm } from '@vben/common-ui'; import { useVbenForm } from '@vben-core/form-ui';
// 是否加载过 // 是否加载过
let isInit = false; let isInit = false;
@@ -2,12 +2,12 @@ import type { Column } from 'element-plus';
import type { Ref } from 'vue'; import type { Ref } from 'vue';
import type { BaseFormComponentType, VbenFormProps } from '@vben/common-ui'; import type { BaseFormComponentType, VbenFormProps } from '@vben-core/form-ui';
import type { ClassType, DeepPartial } from '@vben/types'; import type { ClassType, DeepPartial } from '@vben/types';
import type { ZqTableApi } from './api'; import type { ZqTableApi } from './api';
import { useVbenForm } from '@vben/common-ui'; import { useVbenForm } from '@vben-core/form-ui';
export interface ZqPaginationInfo { export interface ZqPaginationInfo {
currentPage: number; currentPage: number;
@@ -1,4 +1,4 @@
import type { BaseFormComponentType } from '@vben/common-ui'; import type { BaseFormComponentType } from '@vben-core/form-ui';
import type { ExtendedZqTableApi, ZqTableProps } from './types'; import type { ExtendedZqTableApi, ZqTableProps } from './types';
@@ -13,7 +13,7 @@ import {
watch, watch,
} from 'vue'; } from 'vue';
import { VbenHelpTooltip } from '@vben/common-ui'; import { VbenHelpTooltip } from '@vben-core/shadcn-ui';
import { usePriorityValues } from '@vben/hooks'; import { usePriorityValues } from '@vben/hooks';
import { import {
EmptyIcon, EmptyIcon,