-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from biaov/release/v1.2.0
v1.2.0
- Loading branch information
Showing
57 changed files
with
1,300 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
dist | ||
node_modules | ||
dist | ||
.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
VITE_BASE_URL=http://127.0.0.1:3600/api | ||
# VITE_BASE_URL=http://127.0.0.1:3600/api | ||
# VITE_BASE_URL=http://192.168.10.75:3600/api | ||
# VITE_BASE_URL=https://ecosystem.biaov.cn/api | ||
VITE_BASE_URL=https://ecosystem.biaov.cn/api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/node_modules | ||
/dist | ||
/.git | ||
/.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<script setup lang="ts"> | ||
/** | ||
* 响应事件 | ||
*/ | ||
const emit = defineEmits<{ | ||
(event: 'update:visible', e: boolean): void | ||
}>() | ||
/** | ||
* 所需参数 | ||
*/ | ||
const props = withDefaults( | ||
defineProps<{ | ||
/** | ||
* 显示状态 | ||
*/ | ||
visible?: boolean | ||
/** | ||
* 背景颜色 | ||
*/ | ||
background?: string | ||
/** | ||
* 禁止点击遮罩层关闭弹窗 | ||
*/ | ||
disabled?: boolean | ||
}>(), | ||
{ | ||
visible: false, | ||
background: 'rgba(0,0,0,0.6)', | ||
disabled: false | ||
} | ||
) | ||
/** | ||
* 关闭遮罩层 | ||
*/ | ||
const onClose = () => { | ||
!props.disabled && emit('update:visible', false) | ||
} | ||
</script> | ||
|
||
<template> | ||
<!-- 遮罩层 --> | ||
<view v-if="visible" class="view-mask fixed w-fill h-fill" :style="{ background }" @click="onClose" @touchmove.stop.prevent> | ||
<slot></slot> | ||
</view> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
.view-mask { | ||
top: 0; | ||
left: 0; | ||
z-index: 99; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* 显示状态 | ||
*/ | ||
export const useVisible = (initVisible = false) => { | ||
/** | ||
* 是否显示 | ||
*/ | ||
const visible = ref(initVisible) | ||
|
||
/** | ||
* 设置显示状态 | ||
*/ | ||
const setVisible = (value: boolean) => { | ||
visible.value = value | ||
} | ||
|
||
return [visible, setVisible] as const | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* 基础资源路径 | ||
*/ | ||
export const baseAssetURL = 'https://ecosystem.biaov.cn/uploads/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.