create-young-proj 0.5.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/template-uni-app/.vscode/vue-html.code-snippets +14 -0
  3. package/template-uni-app/README.md +24 -1
  4. package/template-uni-app/_env +3 -1
  5. package/template-uni-app/auto-imports.d.ts +3 -0
  6. package/template-uni-app/components.d.ts +1 -4
  7. package/template-uni-app/custom-plugins/multiconf.ts +3 -4
  8. package/template-uni-app/manifest.config.ts +88 -0
  9. package/template-uni-app/package.json +7 -0
  10. package/template-uni-app/pages.config.ts +58 -0
  11. package/template-uni-app/pnpm-lock.yaml +212 -1
  12. package/template-uni-app/src/App.vue +6 -1
  13. package/template-uni-app/src/apis/index.ts +17 -3
  14. package/template-uni-app/src/components/young-loading/young-loading.vue +2 -2
  15. package/template-uni-app/src/components/young-loading-mini/young-loading-mini.vue +38 -0
  16. package/template-uni-app/src/components/young-navbar/young-navbar.vue +3 -3
  17. package/template-uni-app/src/components/young-tabbar/young-tabbar.vue +14 -10
  18. package/template-uni-app/src/config/enum.ts +4 -3
  19. package/template-uni-app/src/env.d.ts +5 -4
  20. package/template-uni-app/src/layouts/default.vue +24 -0
  21. package/template-uni-app/src/layouts/tabbar.vue +28 -0
  22. package/template-uni-app/src/manifest.json +1 -9
  23. package/template-uni-app/src/pages/demo/index.vue +24 -0
  24. package/template-uni-app/src/pages/index.vue +22 -34
  25. package/template-uni-app/src/pages/my.vue +18 -22
  26. package/template-uni-app/src/pages.json +23 -18
  27. package/template-uni-app/src/static/back.png +0 -0
  28. package/template-uni-app/src/static/h.png +0 -0
  29. package/template-uni-app/src/static/home.png +0 -0
  30. package/template-uni-app/src/static/home_active.png +0 -0
  31. package/template-uni-app/src/static/more.png +0 -0
  32. package/template-uni-app/src/static/my.png +0 -0
  33. package/template-uni-app/src/static/my_active.png +0 -0
  34. package/template-uni-app/src/static/network.png +0 -0
  35. package/template-uni-app/src/store/system.ts +10 -2
  36. package/template-uni-app/src/utils/map.ts +3 -2
  37. package/template-uni-app/src/utils/system.ts +2 -2
  38. package/template-uni-app/tsconfig.json +5 -2
  39. package/template-uni-app/vite.config.ts +20 -24
  40. package/template-uni-app/volar.config.js +6 -0
  41. package/template-uni-app/src/components/young-tabbar-layout/young-tabbar-layout.vue +0 -27
@@ -1,27 +0,0 @@
1
- <!--
2
- * @Author: zhangyang
3
- * @Date: 2023-07-18 18:04:48
4
- * @LastEditTime: 2023-07-19 16:49:58
5
- * @Description:
6
- -->
7
- <script lang="ts" setup>
8
- withDefaults(defineProps<{
9
- scrollY?: boolean;
10
- bg?: string;
11
- top?: number | string;
12
- }>(), {
13
- scrollY: true,
14
- bg: 'transparent',
15
- top: 0
16
- });
17
- const bottom = getNavbarHeihgt().safeBottom;
18
- </script>
19
-
20
- <template>
21
- <div class="flex flex-col" :style="{ height: `calc(100vh - ${top}px - ${bottom}px - 44px)` }">
22
- <scroll-view :scroll-y="scrollY" class="flex-1" :style="{ backgroundColor: bg }">
23
- <slot></slot>
24
- </scroll-view>
25
- <young-tabbar :z="999" />
26
- </div>
27
- </template>