feat: 新增打包属性配置

This commit is contained in:
duanshuwen
2026-03-25 21:06:17 +08:00
parent 0dc7f39db2
commit 15139bd606
6 changed files with 42 additions and 56 deletions

View File

@@ -8,23 +8,23 @@
<native-tooltip :content="t('window.minimize')">
<button v-show="isMinimizable" class="flex items-center justify-center cursor-pointer w-[40px] h-[40px]"
@click="minimizeWindow">
<iconify-icon icon="material-symbols:check-indeterminate-small" color="#525866" :width="btnSize"
<iconify-icon icon="material-symbols:check-indeterminate-small" :color="color" :width="btnSize"
:height="btnSize" />
</button>
</native-tooltip>
<native-tooltip :content="isMaximized ? t('window.restore') : t('window.maximize')">
<button v-show="isMaximizable" class="flex items-center justify-center cursor-pointer w-[40px] h-[40px]"
@click="maximizeWindow">
<iconify-icon icon="material-symbols:chrome-maximize-outline-sharp" color="#525866" :width="btnSize"
<iconify-icon icon="material-symbols:chrome-maximize-outline-sharp" :color="color" :width="btnSize"
:height="btnSize" v-show="!isMaximized" />
<iconify-icon icon="material-symbols:chrome-restore-outline-sharp" color="#525866" :width="btnSize"
<iconify-icon icon="material-symbols:chrome-restore-outline-sharp" :color="color" :width="btnSize"
:height="btnSize" v-show="isMaximized" />
</button>
</native-tooltip>
<native-tooltip :content="t('window.close')">
<button v-show="isClosable" class="flex items-center justify-center cursor-pointer w-[40px] h-[40px]"
@click="handleClose">
<iconify-icon icon="material-symbols:close" color="#525866" :width="btnSize" :height="btnSize" />
<iconify-icon icon="material-symbols:close" :color="color" :width="btnSize" :height="btnSize" />
</button>
</native-tooltip>
</div>
@@ -42,9 +42,10 @@ interface HeaderBarProps {
isMaximizable?: boolean;
isMinimizable?: boolean;
isClosable?: boolean;
color?: string;
}
defineOptions({ name: 'HeaderBar' })
defineOptions({ name: 'HeaderBar', color: '#525866' })
withDefaults(defineProps<HeaderBarProps>(), {
isMaximizable: true,

View File

@@ -20,6 +20,6 @@ export const channels: Item[] = [
{
id: uuidv4(),
channelName: 'douyin',
channelUrl: 'https://life.douyin.com/p/goods_winetour/physical_room_list?groupid=1816249020842116',
channelUrl: 'https://life.douyin.com/p/travel-ari/hotel/price_amount_state?groupid=1816249020842116',
}
]

View File

@@ -1,6 +1,6 @@
<template>
<div class="h-screen login-bg flex flex-col">
<header-bar>
<header-bar color="#fff">
<drag-region class="w-full" />
</header-bar>