fix: todo修复
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export { default } from './account-select.vue';
|
||||
@@ -1,22 +1,24 @@
|
||||
// 统一导出所有模块组件
|
||||
|
||||
export { default as AccountSelect } from './account-select/account-select.vue';
|
||||
export { default as AccountSelect } from './wx-account-select/wx-account-select.vue';
|
||||
export { default as WxAccountSelect } from './wx-account-select/wx-account-select.vue';
|
||||
|
||||
export { default as Location } from './location/location.vue';
|
||||
export { default as MaterialSelect } from './material-select/material-select.vue';
|
||||
// TODO @hw:还是带着 wx 前缀。。。貌似好点,我的锅!!!
|
||||
export { default as Location } from './wx-location/wx-location.vue';
|
||||
export * from './wx-material-select/types';
|
||||
|
||||
export * from './material-select/types';
|
||||
export { default as MaterialSelect } from './wx-material-select/wx-material-select.vue';
|
||||
|
||||
export * from './msg/types';
|
||||
export * from './wx-msg/types';
|
||||
|
||||
export { default as Music } from './music/music.vue';
|
||||
export { default as Music } from './wx-music/wx-music.vue';
|
||||
|
||||
export { default as News } from './news/news.vue';
|
||||
export { default as News } from './wx-news/wx-news.vue';
|
||||
|
||||
export { default as ReplySelect } from './reply/reply.vue';
|
||||
export * from './wx-reply/types';
|
||||
|
||||
export * from './reply/types';
|
||||
export { default as ReplySelect } from './wx-reply/wx-reply.vue';
|
||||
|
||||
export { default as VideoPlayer } from './video-play/video-play.vue';
|
||||
export { default as VideoPlayer } from './wx-video-play/wx-video-play.vue';
|
||||
|
||||
export { default as VoicePlayer } from './voice-play/voice-play.vue';
|
||||
export { default as VoicePlayer } from './wx-voice-play/wx-voice-play.vue';
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from './location.vue';
|
||||
@@ -1,3 +0,0 @@
|
||||
export { default } from './material-select.vue';
|
||||
|
||||
export { MaterialType, NewsType } from './types';
|
||||
@@ -1,3 +0,0 @@
|
||||
export { default } from './msg.vue';
|
||||
|
||||
export { MsgType } from './types';
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from './music.vue';
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from './news.vue';
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from './video-play.vue';
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from './voice-play.vue';
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './wx-account-select.vue';
|
||||
@@ -124,7 +124,7 @@ onMounted(() => {
|
||||
<ElSelect
|
||||
v-model="currentId"
|
||||
placeholder="请选择公众号"
|
||||
class="!w-240px"
|
||||
class="!w-full"
|
||||
@change="onChanged"
|
||||
>
|
||||
<ElOption
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './wx-location.vue';
|
||||
@@ -0,0 +1,3 @@
|
||||
export { default } from './wx-material-select.vue';
|
||||
|
||||
export { MaterialType, NewsType } from './types';
|
||||
@@ -20,9 +20,9 @@ import {
|
||||
import * as MpDraftApi from '#/api/mp/draft';
|
||||
import * as MpFreePublishApi from '#/api/mp/freePublish';
|
||||
import * as MpMaterialApi from '#/api/mp/material';
|
||||
import News from '#/views/mp/components/news/news.vue';
|
||||
import VideoPlayer from '#/views/mp/components/video-play/video-play.vue';
|
||||
import VoicePlayer from '#/views/mp/components/voice-play/voice-play.vue';
|
||||
import News from '#/views/mp/components/wx-news/wx-news.vue';
|
||||
import VideoPlayer from '#/views/mp/components/wx-video-play/wx-video-play.vue';
|
||||
import VoicePlayer from '#/views/mp/components/wx-voice-play/wx-voice-play.vue';
|
||||
|
||||
import { NewsType } from './types';
|
||||
|
||||
3
apps/web-ele/src/views/mp/components/wx-msg/index.ts
Normal file
3
apps/web-ele/src/views/mp/components/wx-msg/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default } from './wx-msg.vue';
|
||||
|
||||
export { MsgType } from './types';
|
||||
@@ -5,7 +5,7 @@ import { formatDateTime } from '@vben/utils';
|
||||
|
||||
import avatarWechat from '#/assets/imgs/wechat.png';
|
||||
|
||||
import Msg from './msg.vue';
|
||||
import Msg from './wx-msg.vue';
|
||||
|
||||
// 确保 User 类型被识别为已使用
|
||||
type PropsUser = User;
|
||||
@@ -1,11 +1,11 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
import Location from '#/views/mp/components/location/location.vue';
|
||||
import Music from '#/views/mp/components/music/music.vue';
|
||||
import News from '#/views/mp/components/news/news.vue';
|
||||
import VideoPlayer from '#/views/mp/components/video-play/video-play.vue';
|
||||
import VoicePlayer from '#/views/mp/components/voice-play/voice-play.vue';
|
||||
import Location from '#/views/mp/components/wx-location/wx-location.vue';
|
||||
import Music from '#/views/mp/components/wx-music/wx-music.vue';
|
||||
import News from '#/views/mp/components/wx-news/wx-news.vue';
|
||||
import VideoPlayer from '#/views/mp/components/wx-video-play/wx-video-play.vue';
|
||||
import VoicePlayer from '#/views/mp/components/wx-voice-play/wx-voice-play.vue';
|
||||
|
||||
import { MsgType } from '../types';
|
||||
import MsgEvent from './msg-event.vue';
|
||||
1
apps/web-ele/src/views/mp/components/wx-music/index.ts
Normal file
1
apps/web-ele/src/views/mp/components/wx-music/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './wx-music.vue';
|
||||
@@ -63,5 +63,5 @@ defineExpose({
|
||||
|
||||
<style lang="scss" scoped>
|
||||
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scss */
|
||||
@import url('../msg/card.scss');
|
||||
@import url('../wx-msg/card.scss');
|
||||
</style>
|
||||
1
apps/web-ele/src/views/mp/components/wx-news/index.ts
Normal file
1
apps/web-ele/src/views/mp/components/wx-news/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './wx-news.vue';
|
||||
@@ -120,5 +120,8 @@ defineExpose({
|
||||
|
||||
.material-img {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
@@ -1,3 +1,3 @@
|
||||
export { default } from './reply.vue';
|
||||
|
||||
export { createEmptyReply, type Reply, ReplyType } from './types';
|
||||
|
||||
export { default } from './wx-reply.vue';
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
} from 'element-plus';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import MaterialSelect from '#/views/mp/components/material-select/material-select.vue';
|
||||
import MaterialSelect from '#/views/mp/components/wx-material-select/wx-material-select.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: Reply;
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
// import { getAccessToken } from '@/utils/auth'
|
||||
import MaterialSelect from '#/views/mp/components/material-select/material-select.vue';
|
||||
import MaterialSelect from '#/views/mp/components/wx-material-select/wx-material-select.vue';
|
||||
|
||||
// 设置上传的请求头部
|
||||
|
||||
@@ -7,10 +7,10 @@ import { IconifyIcon } from '@vben/icons';
|
||||
|
||||
import { ElButton, ElCol, ElDialog, ElRow } from 'element-plus';
|
||||
|
||||
import MaterialSelect from '#/views/mp/components/material-select/material-select.vue';
|
||||
import News from '#/views/mp/components/news/news.vue';
|
||||
import MaterialSelect from '#/views/mp/components/wx-material-select/wx-material-select.vue';
|
||||
import News from '#/views/mp/components/wx-news/wx-news.vue';
|
||||
|
||||
import { NewsType } from '../material-select/types';
|
||||
import { NewsType } from '../wx-material-select/types';
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: Reply;
|
||||
@@ -19,8 +19,8 @@ import {
|
||||
} from 'element-plus';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import MaterialSelect from '#/views/mp/components/material-select/material-select.vue';
|
||||
import VideoPlayer from '#/views/mp/components/video-play/video-play.vue';
|
||||
import MaterialSelect from '#/views/mp/components/wx-material-select/wx-material-select.vue';
|
||||
import VideoPlayer from '#/views/mp/components/wx-video-play/wx-video-play.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: Reply;
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
} from 'element-plus';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import MaterialSelect from '#/views/mp/components/material-select/material-select.vue';
|
||||
import VoicePlayer from '#/views/mp/components/voice-play/voice-play.vue';
|
||||
import MaterialSelect from '#/views/mp/components/wx-material-select/wx-material-select.vue';
|
||||
import VoicePlayer from '#/views/mp/components/wx-voice-play/wx-voice-play.vue';
|
||||
|
||||
// 设置上传的请求头部
|
||||
|
||||
@@ -16,7 +16,7 @@ import { IconifyIcon } from '@vben/icons';
|
||||
|
||||
import { ElRow, ElTabPane, ElTabs } from 'element-plus';
|
||||
|
||||
import { NewsType } from '../material-select/types';
|
||||
import { NewsType } from '../wx-material-select/types';
|
||||
import TabImage from './tab-image.vue';
|
||||
import TabMusic from './tab-music.vue';
|
||||
import TabNews from './tab-news.vue';
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './wx-video-play.vue';
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './wx-voice-play.vue';
|
||||
Reference in New Issue
Block a user