feat:【antd】【mall】diy-editor 初始化(暂时不可用,保证界面先有。。。)linter

This commit is contained in:
YunaiV
2025-10-25 23:40:03 +08:00
parent db1b3be27a
commit 0fb4f0f9eb
75 changed files with 137 additions and 235 deletions

View File

@@ -120,8 +120,9 @@ function handleGroupSelected(group: string) {
/** 自动滚动分组按钮,确保分组按钮保持在可视区域内 */
function scrollToGroupBtn(group: string) {
const groupBtn = groupBtnRefs.value
.find((ref: HTMLButtonElement | undefined) => ref?.textContent === group);
const groupBtn = groupBtnRefs.value.find(
(ref: HTMLButtonElement | undefined) => ref?.textContent === group,
);
if (groupBtn && groupScrollbar.value) {
groupScrollbar.value.scrollTop = groupBtn.offsetTop;
}
@@ -150,14 +151,11 @@ function handleProductCategorySelected(id: number) {
<Modal v-model:open="dialogVisible" title="选择链接" width="65%">
<div class="flex h-[500px] gap-2">
<!-- 左侧分组列表 -->
<div
class="h-full overflow-y-auto flex flex-col"
ref="groupScrollbar"
>
<div class="flex h-full flex-col overflow-y-auto" ref="groupScrollbar">
<Button
v-for="(group, groupIndex) in APP_LINK_GROUP_LIST"
:key="groupIndex"
class="ml-0 mr-4 w-[90px] justify-start mb-1"
class="mb-1 ml-0 mr-4 w-[90px] justify-start"
:class="[{ active: activeGroup === group.name }]"
ref="groupBtnRefs"
:type="activeGroup === group.name ? 'primary' : 'default'"

View File

@@ -39,7 +39,11 @@ watch(
</script>
<template>
<InputGroup compact>
<Input v-model:value="appLink" placeholder="输入或选择链接" class="flex-1" />
<Input
v-model:value="appLink"
placeholder="输入或选择链接"
class="flex-1"
/>
<Button @click="handleOpenDialog">选择</Button>
</InputGroup>