feat:【antd】【mall】diy-editor 初始化(暂时不可用,保证界面先有。。。)linter
This commit is contained in:
@@ -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'"
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user