review:【antd/ele】代码迁移的 review

This commit is contained in:
YunaiV
2025-11-25 21:13:46 +08:00
parent b4a679dd08
commit eb27bd5c6d
22 changed files with 52 additions and 44 deletions

View File

@@ -7,9 +7,10 @@ import { IconifyIcon } from '@vben/icons';
import { Col, Row } from 'ant-design-vue';
/** 微信消息 - 定位 */
defineOptions({ name: 'WxLocation' });
// TODO @dylanapps/web-antd/src/views/mall/trade/delivery/pickUpStore/modules/form.vue 参考这个,从后端拿 key 哈
// TODO @dylanapps/web-antd/src/views/mall/trade/delivery/pickUpStore/modules/form.vue 参考这个,从后端拿 key 哈;参考 apps/web-ele/src/views/mp/components/wx-location/wx-location.vue
const props = withDefaults(defineProps<WxLocationProps>(), {
qqMapKey: 'TVDBZ-TDILD-4ON4B-PFDZA-RNLKH-VVF6E', // QQ 地图的密钥 https://lbs.qq.com/service/staticV2/staticGuide/staticDoc
});
@@ -31,7 +32,6 @@ defineExpose({
</script>
<template>
<!-- 微信消息 - 定位 -->
<div>
<a :href="mapUrl" target="_blank" class="text-primary">
<Col>

View File

@@ -7,6 +7,7 @@ import { Typography } from 'ant-design-vue';
/** 微信消息 - 音乐 */
defineOptions({ name: 'WxMusic' });
// TODO @hwantd 和 ele 的代码风格不一致例如说props
const props = withDefaults(defineProps<WxMusicProps>(), {
title: '',

View File

@@ -104,7 +104,6 @@ defineExpose({
.news-content-item-title {
flex: 1;
font-size: 14px;
// padding-left: 10px;
}
.news-content-item-img {

View File

@@ -85,12 +85,14 @@ async function customRequest(options: any) {
}
}
/** 删除图片 */
function onDelete() {
reply.value.mediaId = null;
reply.value.url = null;
reply.value.name = null;
}
/** 选择素材 */
function selectMaterial(item: any) {
showDialog.value = false;
reply.value.mediaId = item.mediaId;

View File

@@ -86,6 +86,7 @@ function plusNews() {
<Layout>
<Layout.Sider width="40%" theme="light">
<div class="mx-auto mb-[10px] w-[60%] border border-[#eaeaea] p-[10px]">
<!-- TODO @hw头条次条的展示不对微信聊过的呀~ -->
<div v-for="(news, index) in newsList" :key="index">
<div
class="group relative mx-auto mb-[10px] w-full cursor-pointer border-[2px] bg-white"

View File

@@ -170,6 +170,7 @@ function onChildDragEnd({ newIndex }: { newIndex: number }) {
</div>
</template>
</draggable>
<!-- 二级菜单加号 当长度 小于 5 才显示二级菜单的加号 -->
<div
class="relative float-left box-border block flex h-[46px] w-[85.5px] cursor-pointer items-center justify-center border border-[#ebedee] bg-white text-center leading-[46px]"
v-if="!parent.children || parent.children.length < 5"