@coffic/cosy-ui 0.8.17 → 0.8.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.css +1 -1
- package/dist/index-vue.ts +2 -2
- package/dist/src-vue/iPhone/StatusBarContent.vue +121 -0
- package/dist/src-vue/iPhone/iPhoneWindow.vue +177 -190
- package/dist/src-vue/iPhone/index.ts +10 -14
- package/dist/src-vue/icons/IPhoneBatteryIcon.vue +7 -0
- package/dist/src-vue/icons/IPhoneSignalIcon.vue +6 -0
- package/dist/src-vue/icons/IPhoneWifiIcon.vue +6 -0
- package/dist/src-vue/icons/index.ts +3 -0
- package/dist/src-vue/mac-window/MacWindow.vue +138 -159
- package/dist/src-vue/mac-window/index.ts +0 -34
- package/package.json +1 -1
- package/dist/src-vue/iPhone/WeatherApp.vue +0 -143
- package/dist/src-vue/mac-window/Basic.vue +0 -9
- package/dist/src-vue/mac-window/CustomHeight.vue +0 -13
- package/dist/src-vue/mac-window/WithEvents.vue +0 -40
- package/dist/src-vue/mac-window/WithSidebar.vue +0 -31
- package/dist/src-vue/mac-window/WithTabs.vue +0 -26
- package/dist/src-vue/mac-window/WithToolbar.vue +0 -44
@@ -1,44 +0,0 @@
|
|
1
|
-
<script setup>
|
2
|
-
import { MacWindow } from './index';
|
3
|
-
import { SearchIcon, SettingsIcon, InfoIcon } from '../../index-vue';
|
4
|
-
|
5
|
-
const handleSearch = () => {
|
6
|
-
console.log('搜索');
|
7
|
-
};
|
8
|
-
|
9
|
-
const handleSettings = () => {
|
10
|
-
console.log('设置');
|
11
|
-
};
|
12
|
-
|
13
|
-
const handleInfo = () => {
|
14
|
-
console.log('信息');
|
15
|
-
};
|
16
|
-
</script>
|
17
|
-
|
18
|
-
<template>
|
19
|
-
<MacWindow title="文件浏览器">
|
20
|
-
<!-- 工具栏插槽 -->
|
21
|
-
<template #toolbar>
|
22
|
-
<button class="cosy:btn cosy:btn-ghost cosy:btn-sm" @click="handleSearch">
|
23
|
-
<SearchIcon class="cosy:w-4 cosy:h-4" />
|
24
|
-
</button>
|
25
|
-
<button
|
26
|
-
class="cosy:btn cosy:btn-ghost cosy:btn-sm"
|
27
|
-
@click="handleSettings"
|
28
|
-
>
|
29
|
-
<SettingsIcon class="cosy:w-4 cosy:h-4" />
|
30
|
-
</button>
|
31
|
-
</template>
|
32
|
-
|
33
|
-
<!-- 主内容 -->
|
34
|
-
<div class="cosy:p-4">窗口内容区域</div>
|
35
|
-
|
36
|
-
<!-- 状态栏插槽 -->
|
37
|
-
<template #status>
|
38
|
-
<div class="cosy:text-xs">就绪</div>
|
39
|
-
<button class="cosy:btn cosy:btn-ghost cosy:btn-xs" @click="handleInfo">
|
40
|
-
<InfoIcon class="cosy:w-4 cosy:h-4" />
|
41
|
-
</button>
|
42
|
-
</template>
|
43
|
-
</MacWindow>
|
44
|
-
</template>
|