feat(vite): 重新引入 @uni-helper/vite-plugin-uni-layouts

This commit is contained in:
Burt
2024-01-12 17:12:31 +08:00
parent 2d4a96cbe8
commit e0c5dc1763
7 changed files with 174 additions and 0 deletions

3
src/layouts/default.vue Normal file
View File

@@ -0,0 +1,3 @@
<template>
<slot />
</template>

5
src/layouts/display.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<view class="text-center p-4">
<slot />
</view>
</template>

View File

@@ -147,6 +147,7 @@
{
"path": "pages/index/demo/pinia",
"type": "page",
"layout": "display",
"style": {
"navigationBarTitleText": "pinia+持久化"
}

View File

@@ -1,5 +1,6 @@
<route lang="json5">
{
layout: 'display',
style: { navigationBarTitleText: 'pinia+持久化' },
}
</route>