refactor: comps
This commit is contained in:
4
apps/web-antd/src/views/mp/menu/components/index.ts
Normal file
4
apps/web-antd/src/views/mp/menu/components/index.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export { default as MenuEditor } from './menu-editor.vue';
|
||||||
|
export { default as MenuPreviewer } from './menu-previewer.vue';
|
||||||
|
export * from './menuOptions';
|
||||||
|
export type * from './types';
|
||||||
@@ -85,7 +85,7 @@ function deleteMaterial() {
|
|||||||
<div class="configure-page">
|
<div class="configure-page">
|
||||||
<div class="delete-btn">
|
<div class="delete-btn">
|
||||||
<Button type="primary" danger @click="emit('delete')">
|
<Button type="primary" danger @click="emit('delete')">
|
||||||
<IconifyIcon icon="ep:delete" />
|
<IconifyIcon icon="lucide:trash-2" />
|
||||||
删除当前菜单
|
删除当前菜单
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
@@ -182,7 +182,7 @@ function deleteMaterial() {
|
|||||||
shape="circle"
|
shape="circle"
|
||||||
@click="deleteMaterial"
|
@click="deleteMaterial"
|
||||||
>
|
>
|
||||||
<IconifyIcon icon="ep:delete" />
|
<IconifyIcon icon="lucide:trash-2" />
|
||||||
</Button>
|
</Button>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
@@ -191,7 +191,7 @@ function deleteMaterial() {
|
|||||||
<Col :span="24" style="text-align: center">
|
<Col :span="24" style="text-align: center">
|
||||||
<Button type="primary" @click="showNewsDialog = true">
|
<Button type="primary" @click="showNewsDialog = true">
|
||||||
素材库选择
|
素材库选择
|
||||||
<IconifyIcon icon="ep:circle-check" />
|
<IconifyIcon icon="lucide:circle-check" />
|
||||||
</Button>
|
</Button>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { Menu, RawMenu } from './modules/types';
|
import type { Menu, RawMenu } from './components/types';
|
||||||
|
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
@@ -9,9 +9,8 @@ import { handleTree } from '@vben/utils';
|
|||||||
import { Button, Form, message } from 'ant-design-vue';
|
import { Button, Form, message } from 'ant-design-vue';
|
||||||
|
|
||||||
import * as MpMenuApi from '#/api/mp/menu';
|
import * as MpMenuApi from '#/api/mp/menu';
|
||||||
|
import { MenuEditor, MenuPreviewer } from '#/views/mp/menu/components';
|
||||||
import { Level, MENU_NOT_SELECTED } from '#/views/mp/menu/data';
|
import { Level, MENU_NOT_SELECTED } from '#/views/mp/menu/data';
|
||||||
import MenuEditor from '#/views/mp/menu/modules/menu-editor.vue';
|
|
||||||
import MenuPreviewer from '#/views/mp/menu/modules/menu-previewer.vue';
|
|
||||||
import WxAccountSelect from '#/views/mp/modules/wx-account-select/main.vue';
|
import WxAccountSelect from '#/views/mp/modules/wx-account-select/main.vue';
|
||||||
|
|
||||||
defineOptions({ name: 'MpMenu' });
|
defineOptions({ name: 'MpMenu' });
|
||||||
|
|||||||
@@ -113,11 +113,7 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Select
|
<Select v-model:value="currentId" placeholder="请选择公众号" class="w-full">
|
||||||
v-model:value="currentId"
|
|
||||||
placeholder="请选择公众号"
|
|
||||||
style="width: 240px"
|
|
||||||
>
|
|
||||||
<SelectOption v-for="item in accountList" :key="item.id" :value="item.id">
|
<SelectOption v-for="item in accountList" :key="item.id" :value="item.id">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</SelectOption>
|
</SelectOption>
|
||||||
|
|||||||
@@ -168,10 +168,7 @@ async function scrollToBottom() {
|
|||||||
<template>
|
<template>
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<Spin :spinning="loading">
|
<Spin :spinning="loading">
|
||||||
<div
|
<div class="bg-background ml-2 mr-2 h-12 overflow-auto" ref="msgDivRef">
|
||||||
class="ml-[10px] mr-[10px] h-[50vh] overflow-auto bg-[#eaeaea]"
|
|
||||||
ref="msgDivRef"
|
|
||||||
>
|
|
||||||
<!-- 加载更多 -->
|
<!-- 加载更多 -->
|
||||||
<div v-if="!loading">
|
<div v-if="!loading">
|
||||||
<div
|
<div
|
||||||
@@ -179,10 +176,10 @@ async function scrollToBottom() {
|
|||||||
v-if="hasMore"
|
v-if="hasMore"
|
||||||
@click="loadMore"
|
@click="loadMore"
|
||||||
>
|
>
|
||||||
<span class="text-[#999]">点击加载更多</span>
|
<span class="text-foreground">点击加载更多</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="py-5 text-center" v-if="!hasMore">
|
<div class="py-5 text-center" v-if="!hasMore">
|
||||||
<span class="text-[#999]">没有更多了</span>
|
<span class="text-foreground">没有更多了</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -201,5 +198,3 @@ async function scrollToBottom() {
|
|||||||
</Spin>
|
</Spin>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user