引入全局组件
This commit is contained in:
parent
ffa6c9a5d9
commit
045a296d3a
@ -81,7 +81,6 @@ import { computed, nextTick, onMounted, reactive, shallowRef, watch,ref } from '
|
||||
import { useEventListener } from '@vueuse/core'
|
||||
import { ElInput } from 'element-plus'
|
||||
import { getElementPlusIconNames } from './index'
|
||||
import icon from './index.vue';
|
||||
interface Props {
|
||||
modelValue: string
|
||||
disabled?: boolean
|
||||
|
@ -17,7 +17,6 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import icon from "@/components/icon/index.vue";
|
||||
export default {
|
||||
name: 'ReSubMenu',
|
||||
};
|
||||
|
@ -32,7 +32,6 @@
|
||||
import { useProjectSetting } from '@/hooks/setting/useProjectSetting';
|
||||
import { useAsyncRouteStore } from '@/store/modules/asyncRoute';
|
||||
import { useProjectSettingStore } from '@/store/modules/projectSetting';
|
||||
import icon from "@/components/icon/index.vue";
|
||||
import ReSubMenu from './ReSubMenu.vue';
|
||||
|
||||
const collapsed = inject('collapsed');
|
||||
|
@ -1,5 +1,8 @@
|
||||
import { PageWrapper, PageFooter } from '@/components/Page';
|
||||
|
||||
import NumberInput from '@/components/numberInput/index.vue';
|
||||
import icon from '@/components/icon/index.vue';
|
||||
import { BasicTable } from '@/components/Table';
|
||||
import { BasicForm } from '@/components/Form/index';
|
||||
/**
|
||||
* 全局注册自定义组件 待完善
|
||||
* @param app
|
||||
@ -7,4 +10,8 @@ import { PageWrapper, PageFooter } from '@/components/Page';
|
||||
export function setupCustomComponents(app) {
|
||||
app.component('PageWrapper', PageWrapper);
|
||||
app.component('PageFooter', PageFooter);
|
||||
app.component('NumberInput',NumberInput)
|
||||
app.component('icon',icon)
|
||||
app.component('BasicTable',BasicTable)
|
||||
app.component('BasicForm',BasicForm)
|
||||
}
|
||||
|
@ -32,6 +32,7 @@
|
||||
<el-input
|
||||
class="ls-input"
|
||||
v-model="formData.code"
|
||||
:disabled="props.dictId"
|
||||
placeholder="请输入字典编码"
|
||||
clearable
|
||||
/>
|
||||
|
@ -51,8 +51,8 @@
|
||||
import { reactive, ref, h,nextTick,defineAsyncComponent } from 'vue';
|
||||
import { ColProps } from 'element-plus';
|
||||
import { schemas } from './querySchemas';
|
||||
import { BasicForm, useForm } from '@/components/Form/index';
|
||||
import { BasicTable, TableAction } from '@/components/Table';
|
||||
import { useForm } from '@/components/Form/index';
|
||||
import { TableAction } from '@/components/Table';
|
||||
import { getParamList,paramDelete,paramBatchDelete } from '@/api/data/param';
|
||||
import { columns } from './columns';
|
||||
import { PlusOutlined } from '@vicons/antd';
|
||||
|
@ -69,7 +69,6 @@
|
||||
import {defineAsyncComponent, nextTick, onMounted, readonly, ref, shallowRef,onActivated} from "vue";
|
||||
import {getMenuList,menuDelete} from "@/api/system/menu";
|
||||
import type {ElTable} from "element-plus";
|
||||
import icon from "@/components/icon/index.vue";
|
||||
const tableRef = shallowRef<InstanceType<typeof ElTable>>();
|
||||
import {confirm, message,buildTree} from "@/utils/auth";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user