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