新增商品详情md转html

This commit is contained in:
2026-07-06 11:11:22 +08:00
parent e1d99b8ccf
commit 031a96b14e
4 changed files with 158 additions and 14 deletions

View File

@@ -31,6 +31,23 @@
</template>
<span>导入图片</span>
</a-button>
<a-button type="dashed" class="ele-btn-icon" @click="openDetailImport">
<template #icon>
<UploadOutlined />
</template>
<span>导入详情</span>
</a-button>
<a-button
type="dashed"
class="ele-btn-icon"
:disabled="selection?.length === 0"
@click="convertContent"
>
<template #icon>
<SyncOutlined />
</template>
<span>转换详情</span>
</a-button>
<a-button type="dashed" class="ele-btn-icon" @click="handleExport">
导出xls
</a-button>
@@ -70,7 +87,12 @@
</template>
<script lang="ts" setup>
import { PlusOutlined, DeleteOutlined, UploadOutlined } from '@ant-design/icons-vue';
import {
PlusOutlined,
DeleteOutlined,
UploadOutlined,
SyncOutlined
} from '@ant-design/icons-vue';
import { ref, watch } from 'vue';
import { getCount } from '@/api/shop/shopGoods';
import type { GoodsCount, ShopGoodsParam } from '@/api/shop/shopGoods/model';
@@ -112,6 +134,8 @@
(e: 'batchMove'): void;
(e: 'import'): void;
(e: 'imageImport'): void;
(e: 'detailImport'): void;
(e: 'convertContent'): void;
(e: 'export'): void;
}>();
@@ -134,6 +158,14 @@
emit('imageImport');
};
const openDetailImport = () => {
emit('detailImport');
};
const convertContent = () => {
emit('convertContent');
};
// 导出
const handleExport = () => {
emit('export');