fix: ele统一风格
This commit is contained in:
@@ -8,7 +8,7 @@ import { DICT_TYPE } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { getSimpleAccountList } from '#/api/mp/account';
|
||||
import { ReplySelect } from '#/views/mp/modules';
|
||||
import { ReplySelect } from '#/views/mp/components';
|
||||
|
||||
import { MsgType } from './types';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { Music, News, VideoPlayer, VoicePlayer } from '#/views/mp/modules';
|
||||
import { Music, News, VideoPlayer, VoicePlayer } from '#/views/mp/components';
|
||||
// DONE @hw:迁移到 /apps/web-antd/src/views/mp/autoReply/modules 里;组件名可能要换一个,= = 之前写的不太好;类似 content.vue ?本质是内容~
|
||||
defineOptions({ name: 'ReplyContentCell' });
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Reply } from '#/views/mp/modules/reply/types';
|
||||
import type { Reply } from '#/views/mp/components/reply/types';
|
||||
|
||||
import { computed, nextTick, ref } from 'vue';
|
||||
|
||||
@@ -10,7 +10,7 @@ import { message } from 'ant-design-vue';
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { createAutoReply, updateAutoReply } from '#/api/mp/autoReply';
|
||||
import { $t } from '#/locales';
|
||||
import { ReplyType } from '#/views/mp/modules/reply/types';
|
||||
import { ReplyType } from '#/views/mp/components/reply/types';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import { MsgType } from '../types';
|
||||
|
||||
@@ -12,7 +12,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getDraftPage } from '#/api/mp/draft';
|
||||
import { getFreePublishPage } from '#/api/mp/freePublish';
|
||||
import { getMaterialPage } from '#/api/mp/material';
|
||||
import { News, VideoPlayer, VoicePlayer } from '#/views/mp/modules/index';
|
||||
import { News, VideoPlayer, VoicePlayer } from '#/views/mp/components/index';
|
||||
|
||||
import { NewsType } from './types';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
News,
|
||||
VideoPlayer,
|
||||
VoicePlayer,
|
||||
} from '#/views/mp/modules';
|
||||
} from '#/views/mp/components';
|
||||
|
||||
import MsgEvent from './msg-event.vue';
|
||||
import { MsgType } from './types';
|
||||
@@ -38,7 +38,7 @@ defineExpose({
|
||||
:preview="false"
|
||||
/>
|
||||
<div
|
||||
class="absolute bottom-0 left-0 inline-block w-[98%] whitespace-normal bg-black p-[1%] text-xs text-white opacity-65"
|
||||
class="absolute bottom-0 left-0 inline-block w-[100%] whitespace-normal bg-black p-[1%] text-xs text-white opacity-65"
|
||||
>
|
||||
<span>{{ article.title }}</span>
|
||||
</div>
|
||||
@@ -29,7 +29,7 @@ defineOptions({ name: 'ReplySelect' });
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
modelValue: Reply;
|
||||
modelValue: Reply | undefined;
|
||||
newsType?: NewsType;
|
||||
}>(),
|
||||
{
|
||||
@@ -11,7 +11,7 @@ import { useAccessStore } from '@vben/stores';
|
||||
import { Button, Col, message, Modal, Row, Upload } from 'ant-design-vue';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import { MaterialSelect } from '#/views/mp/modules';
|
||||
import { MaterialSelect } from '#/views/mp/components';
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: Reply;
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import { MaterialSelect } from '#/views/mp/modules';
|
||||
import { MaterialSelect } from '#/views/mp/components';
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: Reply;
|
||||
@@ -7,7 +7,7 @@ import { IconifyIcon } from '@vben/icons';
|
||||
|
||||
import { Button, Col, Modal, Row } from 'ant-design-vue';
|
||||
|
||||
import { MaterialSelect, News } from '#/views/mp/modules';
|
||||
import { MaterialSelect, News } from '#/views/mp/components';
|
||||
|
||||
import { NewsType } from '../material-select/types';
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import { MaterialSelect, VideoPlayer } from '#/views/mp/modules';
|
||||
import { MaterialSelect, VideoPlayer } from '#/views/mp/components';
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: Reply;
|
||||
@@ -11,7 +11,7 @@ import { useAccessStore } from '@vben/stores';
|
||||
import { Button, Col, message, Modal, Row, Upload } from 'ant-design-vue';
|
||||
|
||||
import { UploadType, useBeforeUpload } from '#/utils/useUpload';
|
||||
import { MaterialSelect, VoicePlayer } from '#/views/mp/modules';
|
||||
import { MaterialSelect, VoicePlayer } from '#/views/mp/components';
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: Reply;
|
||||
@@ -17,12 +17,12 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
minWidth: 300,
|
||||
slots: { default: 'content' },
|
||||
},
|
||||
{
|
||||
field: 'updateTime',
|
||||
title: '更新时间',
|
||||
minWidth: 180,
|
||||
formatter: 'formatDateTime', // TODO @YunaiV 接口返回数据不对,需要乘1000
|
||||
},
|
||||
// {
|
||||
// field: 'updateTime',
|
||||
// title: '更新时间',
|
||||
// minWidth: 180,
|
||||
// formatter: 'formatDateTime', // TODO @YunaiV 接口返回数据不对,需要乘1000
|
||||
// },
|
||||
{
|
||||
title: '操作',
|
||||
width: 200,
|
||||
|
||||
@@ -230,6 +230,10 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
.vxe-body--column {
|
||||
.vxe-cell {
|
||||
padding: 0;
|
||||
height: auto !important;
|
||||
img {
|
||||
width: 300px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 { MaterialSelect } from '#/views/mp/modules';
|
||||
import { MaterialSelect } from '#/views/mp/components';
|
||||
|
||||
const props = defineProps<{
|
||||
isFirst: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { Article } from './types';
|
||||
|
||||
import { News } from '#/views/mp/modules';
|
||||
import { News } from '#/views/mp/components';
|
||||
|
||||
defineOptions({ name: 'DraftTableCell' });
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
Select,
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { MaterialSelect, News, ReplySelect } from '#/views/mp/modules';
|
||||
import { MaterialSelect, News, ReplySelect } from '#/views/mp/components';
|
||||
|
||||
import { menuOptions } from './types';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user