普兆健康管家后端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.9 KiB

4 days ago
  1. {
  2. "Print unibest Vue3 SFC": {
  3. "scope": "vue",
  4. "prefix": "v3",
  5. "body": [
  6. "<route lang=\"json5\" type=\"page\">",
  7. "{",
  8. " layout: 'default',",
  9. " style: {",
  10. " navigationBarTitleText: '',",
  11. " navigationStyle: 'custom',",
  12. " disableScroll: true, // 微信禁止页面滚动",
  13. " 'app-plus': {",
  14. " bounce: 'none', // 禁用 iOS 弹性效果",
  15. " },",
  16. " },",
  17. "}",
  18. "</route>\n",
  19. "<template>",
  20. " <PageLayout navTitle=\"页面标题\" backRouteName=\"index\"></PageLayout>",
  21. "</template>\n",
  22. "<script lang=\"ts\" setup>",
  23. "import { ref, reactive } from 'vue'",
  24. "import { onShow, onHide, onLoad, onReady } from '@dcloudio/uni-app'",
  25. "import { useMessage, useToast } from 'wot-design-uni'",
  26. "import { useRouter } from '@/plugin/uni-mini-router'",
  27. "import { useUserStore } from '@/store/user'",
  28. "import { http } from '@/utils/http'",
  29. "import { useParamsStore } from '@/store/page-params'\n",
  30. "defineOptions({",
  31. " name: '组件名',",
  32. " options: {",
  33. " styleIsolation: '‌shared‌',",
  34. " },",
  35. "})",
  36. "const router = useRouter()",
  37. "const paramsStore = useParamsStore()",
  38. "const userStore = useUserStore()",
  39. "const toast = useToast()",
  40. "const message = useMessage()",
  41. "</script>\n",
  42. "<style lang=\"scss\" scoped>",
  43. "//",
  44. "</style>\n",
  45. ],
  46. },
  47. "Print unibest style": {
  48. "scope": "vue",
  49. "prefix": "st",
  50. "body": ["<style lang=\"scss\" scoped>", "//", "</style>\n"],
  51. },
  52. "Print unibest script": {
  53. "scope": "vue",
  54. "prefix": "sc",
  55. "body": ["<script lang=\"ts\" setup>", "//$3", "</script>\n"],
  56. },
  57. "Print unibest template": {
  58. "scope": "vue",
  59. "prefix": "te",
  60. "body": ["<template>", " <view class=\"\">$1</view>", "</template>\n"],
  61. },
  62. }