feat: import form components
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Rule } from 'ant-design-vue/es/form';
|
||||
|
||||
import type { Reply } from '#/views/mp/modules/wx-reply';
|
||||
import type { Reply } from '#/views/mp/components/wx-reply';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
@@ -10,7 +10,7 @@ import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Form, FormItem, Input, Select, SelectOption } from 'ant-design-vue';
|
||||
|
||||
import { WxReplySelect } from '#/views/mp/modules/wx-reply';
|
||||
import { WxReplySelect } from '#/views/mp/components/wx-reply';
|
||||
|
||||
import { MsgType } from './types';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts" setup>
|
||||
import { WxMusic } from '#/views/mp/modules/wx-music';
|
||||
import { WxNews } from '#/views/mp/modules/wx-news';
|
||||
import { WxVideoPlayer } from '#/views/mp/modules/wx-video-play';
|
||||
import { WxVoicePlayer } from '#/views/mp/modules/wx-voice-play';
|
||||
import { WxMusic } from '#/views/mp/components/wx-music';
|
||||
import { WxNews } from '#/views/mp/components/wx-news';
|
||||
import { WxVideoPlayer } from '#/views/mp/components/wx-video-play';
|
||||
import { WxVoicePlayer } from '#/views/mp/components/wx-voice-play';
|
||||
// TODO @hw:迁移到 /Users/yunai/Java/yudao-ui-admin-vben-v5/apps/web-antd/src/views/mp/autoReply/modules 里;组件名可能要换一个,= = 之前写的不太好;类似 content.vue ?本质是内容~
|
||||
defineOptions({ name: 'ReplyContentCell' });
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { WxAccountSelect } from '#/views/mp/modules/wx-account-select';
|
||||
import { WxAccountSelect } from '#/views/mp/components/wx-account-select';
|
||||
|
||||
import { MsgType } from './components/types';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Reply } from '#/views/mp/modules/wx-reply';
|
||||
import type { Reply } from '#/views/mp/components/wx-reply';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
@@ -9,7 +9,7 @@ import { message } from 'ant-design-vue';
|
||||
|
||||
import { createAutoReply, updateAutoReply } from '#/api/mp/autoReply';
|
||||
import { $t } from '#/locales';
|
||||
import { ReplyType } from '#/views/mp/modules/wx-reply/types';
|
||||
import { ReplyType } from '#/views/mp/components/wx-reply/types';
|
||||
|
||||
import ReplyForm from '../components/ReplyForm.vue';
|
||||
import { MsgType } from '../components/types';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export type { NewsType, Reply, ReplyType } from './components/types';
|
||||
export * from './components/types';
|
||||
export { createEmptyReply } from './components/types';
|
||||
|
||||
export { default as WxReplySelect } from './main.vue';
|
||||
|
||||
@@ -11,7 +11,7 @@ import { useAccessStore } from '@vben/stores';
|
||||
import { Button, Image, message, Modal, Upload } from 'ant-design-vue';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import { WxMaterialSelect } from '#/views/mp/modules/wx-material-select';
|
||||
import { WxMaterialSelect } from '#/views/mp/components/wx-material-select';
|
||||
|
||||
const props = defineProps<{
|
||||
isFirst: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Article } from './types';
|
||||
|
||||
import { WxNews } from '#/views/mp/modules/wx-news';
|
||||
import { WxNews } from '#/views/mp/components/wx-news';
|
||||
|
||||
defineOptions({ name: 'DraftTableCell' });
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { markRaw } from 'vue';
|
||||
|
||||
import { WxAccountSelect } from '#/views/mp/modules/wx-account-select';
|
||||
import { WxAccountSelect } from '#/views/mp/components/wx-account-select';
|
||||
|
||||
/** 获取表格列配置 */
|
||||
export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
|
||||
@@ -14,9 +14,9 @@ import {
|
||||
Select,
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { WxMaterialSelect } from '#/views/mp/modules/wx-material-select';
|
||||
import { WxNews } from '#/views/mp/modules/wx-news';
|
||||
import { WxReplySelect } from '#/views/mp/modules/wx-reply';
|
||||
import { WxMaterialSelect } from '#/views/mp/components/wx-material-select';
|
||||
import { WxNews } from '#/views/mp/components/wx-news';
|
||||
import { WxReplySelect } from '#/views/mp/components/wx-reply';
|
||||
|
||||
import menuOptions from './menuOptions';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { Button, Form, message } from 'ant-design-vue';
|
||||
import { deleteMenu, getMenuList, saveMenu } from '#/api/mp/menu';
|
||||
import { MenuEditor, MenuPreviewer } from '#/views/mp/menu/components';
|
||||
import { Level, MENU_NOT_SELECTED } from '#/views/mp/menu/data';
|
||||
import { WxAccountSelect } from '#/views/mp/modules/wx-account-select';
|
||||
import { WxAccountSelect } from '#/views/mp/components/wx-account-select';
|
||||
|
||||
defineOptions({ name: 'MpMenu' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user