mirror of https://gitee.com/xiaonuobase/snowy
移动端菜单使用移动端图标选择器
parent
45e2f2528f
commit
bb0a54c5d8
|
@ -73,7 +73,8 @@
|
||||||
<a-button style="margin-right: 8px" @click="onClose">关闭</a-button>
|
<a-button style="margin-right: 8px" @click="onClose">关闭</a-button>
|
||||||
<a-button type="primary" @click="onSubmit" :loading="submitLoading">保存</a-button>
|
<a-button type="primary" @click="onSubmit" :loading="submitLoading">保存</a-button>
|
||||||
</template>
|
</template>
|
||||||
<Icon-selector ref="iconSelector" @iconCallBack="iconCallBack" />
|
<!-- <Icon-selector ref="iconSelector" @iconCallBack="iconCallBack" />-->
|
||||||
|
<icon-mobile-selector ref="iconSelector" @iconCallBack="iconCallBack" />
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -84,7 +85,8 @@
|
||||||
import { required } from '@/utils/formRules'
|
import { required } from '@/utils/formRules'
|
||||||
import mobileMenuApi from '@/api/mobile/resource/menuApi'
|
import mobileMenuApi from '@/api/mobile/resource/menuApi'
|
||||||
import ColorPicker from '@/components/ColorPicker/index.vue'
|
import ColorPicker from '@/components/ColorPicker/index.vue'
|
||||||
import IconSelector from '@/components/Selector/iconSelector.vue'
|
// import IconSelector from '@/components/Selector/iconSelector.vue'
|
||||||
|
import IconMobileSelector from '@/components/Selector/iconMobileSelector.vue'
|
||||||
// 抽屉状态
|
// 抽屉状态
|
||||||
const visible = ref(false)
|
const visible = ref(false)
|
||||||
const emit = defineEmits({ successful: null })
|
const emit = defineEmits({ successful: null })
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
<span v-else>{{record.path}}</span>
|
<span v-else>{{record.path}}</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'icon'">
|
<template v-if="column.dataIndex === 'icon'">
|
||||||
<component :is="record.icon" />
|
<!-- <component :is="record.icon" />-->
|
||||||
|
<span class="snowy xn-icons" :class="record.icon" ></span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.dataIndex === 'regType'">
|
<template v-if="column.dataIndex === 'regType'">
|
||||||
{{ $TOOL.dictTypeData('MOBILE_REG_TYPE', record.regType) }}
|
{{ $TOOL.dictTypeData('MOBILE_REG_TYPE', record.regType) }}
|
||||||
|
|
Loading…
Reference in New Issue