fix
parent
21086b78a8
commit
1eac28906e
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"i18n-ally.localesPaths": [
|
||||||
|
"src/uni_modules/uv-calendars/components/uv-calendars/i18n"
|
||||||
|
],
|
||||||
|
"vue-i18n.i18nPaths": "src\\uni_modules\\uv-calendars\\components\\uv-calendars\\i18n"
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,10 @@
|
|||||||
|
export default function globalComponents(app) {
|
||||||
|
// 全局组件
|
||||||
|
// @ts-ignore
|
||||||
|
const components = import.meta.glob("./**/**.{vue,tsx}", { eager: true });
|
||||||
|
for (let [key, value] of Object.entries(components)) {
|
||||||
|
const name = key.replace("./", "").split("/")[0];
|
||||||
|
// @ts-ignore
|
||||||
|
app.component(value.default.name || name, value.default);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<!-- 建议放在外层 -->
|
||||||
|
<uv-sticky>
|
||||||
|
<uv-navbar fixed @leftClick="backhandle" safeAreaInsetTop>
|
||||||
|
<template v-slot:left>
|
||||||
|
<view class="uv-nav-slot">
|
||||||
|
<uv-icon name="arrow-left" size="19" v-if="isShowLeft"></uv-icon>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<template v-slot:right>
|
||||||
|
<slot name="right"></slot>
|
||||||
|
</template>
|
||||||
|
<template v-slot:center>
|
||||||
|
<slot name="center">
|
||||||
|
<span style="font-size: 34rpx; font-weight: bold"
|
||||||
|
>退画接收确认</span
|
||||||
|
>
|
||||||
|
</slot>
|
||||||
|
</template>
|
||||||
|
</uv-navbar>
|
||||||
|
</uv-sticky>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { computed } from "vue";
|
||||||
|
const isShowLeft = computed(() => {
|
||||||
|
const pages = getCurrentPages();
|
||||||
|
return pages.length === 1 ? false : true;
|
||||||
|
});
|
||||||
|
const backhandle = (): void => {
|
||||||
|
// console.log(pages);
|
||||||
|
const pages = getCurrentPages();
|
||||||
|
if (pages.length === 1) return;
|
||||||
|
uni.navigateBack();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@mixin flex($direction: row) {
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
display: flex;
|
||||||
|
/* #endif */
|
||||||
|
flex-direction: $direction;
|
||||||
|
}
|
||||||
|
.uv-nav-slot {
|
||||||
|
@include flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
border-width: 0.5px;
|
||||||
|
border-radius: 100px;
|
||||||
|
border-color: #dadbde;
|
||||||
|
padding: 3px 7px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue