feat(vite): 重新引入 @uni-helper/vite-plugin-uni-layouts
This commit is contained in:
3
src/layouts/default.vue
Normal file
3
src/layouts/default.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<slot />
|
||||
</template>
|
||||
5
src/layouts/display.vue
Normal file
5
src/layouts/display.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<view class="text-center p-4">
|
||||
<slot />
|
||||
</view>
|
||||
</template>
|
||||
@@ -147,6 +147,7 @@
|
||||
{
|
||||
"path": "pages/index/demo/pinia",
|
||||
"type": "page",
|
||||
"layout": "display",
|
||||
"style": {
|
||||
"navigationBarTitleText": "pinia+持久化"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<route lang="json5">
|
||||
{
|
||||
layout: 'display',
|
||||
style: { navigationBarTitleText: 'pinia+持久化' },
|
||||
}
|
||||
</route>
|
||||
|
||||
Reference in New Issue
Block a user