Browse Source

引入 uni-ui 组件库

template
liruiqiang 2 months ago
parent
commit
633c9f6602
  1. 4
      package-lock.json
  2. 5
      package.json
  3. 12
      src/pages.json
  4. 2
      tsconfig.json

4
package-lock.json

@ -37,8 +37,8 @@
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-3081220230802001", "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3081220230802001",
"@rushstack/eslint-patch": "^1.1.4", "@rushstack/eslint-patch": "^1.1.4",
"@types/node": "^18.11.9", "@types/node": "^18.11.9",
"@uni-helper/uni-app-types": "1.0.0-alpha.6",
"@uni-helper/uni-ui-types": "1.0.0-alpha.6",
"@uni-helper/uni-app-types": "^1.0.0-alpha.6",
"@uni-helper/uni-ui-types": "^1.0.0-alpha.6",
"@vue/eslint-config-prettier": "^7.0.0", "@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0", "@vue/eslint-config-typescript": "^11.0.0",
"@vue/runtime-core": "^3.2.45", "@vue/runtime-core": "^3.2.45",

5
package.json

@ -63,6 +63,7 @@
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-3081220230802001", "@dcloudio/uni-mp-weixin": "3.0.0-alpha-3081220230802001",
"@dcloudio/uni-mp-xhs": "3.0.0-alpha-3081220230802001", "@dcloudio/uni-mp-xhs": "3.0.0-alpha-3081220230802001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-3081220230802001", "@dcloudio/uni-quickapp-webview": "3.0.0-alpha-3081220230802001",
"@dcloudio/uni-ui": "^1.5.10",
"pinia": "2.0.27", "pinia": "2.0.27",
"pinia-plugin-persistedstate": "^3.2.0", "pinia-plugin-persistedstate": "^3.2.0",
"vue": "^3.2.47", "vue": "^3.2.47",
@ -77,8 +78,8 @@
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-3081220230802001", "@dcloudio/vite-plugin-uni": "3.0.0-alpha-3081220230802001",
"@rushstack/eslint-patch": "^1.1.4", "@rushstack/eslint-patch": "^1.1.4",
"@types/node": "^18.11.9", "@types/node": "^18.11.9",
"@uni-helper/uni-app-types": "1.0.0-alpha.6",
"@uni-helper/uni-ui-types": "1.0.0-alpha.6",
"@uni-helper/uni-app-types": "^1.0.0-alpha.6",
"@uni-helper/uni-ui-types": "^1.0.0-alpha.6",
"@vue/eslint-config-prettier": "^7.0.0", "@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0", "@vue/eslint-config-typescript": "^11.0.0",
"@vue/runtime-core": "^3.2.45", "@vue/runtime-core": "^3.2.45",

12
src/pages.json

@ -1,4 +1,16 @@
{ {
//
"easycom": {
// @/components/$1/$1.vue
"autoscan": true,
//
"custom": {
// uni-ui
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
// Xtx components
"^Xtx(.*)": "@/components/Xtx$1.vue"
}
},
"pages": [ "pages": [
//pageshttps://uniapp.dcloud.io/collocation/pages //pageshttps://uniapp.dcloud.io/collocation/pages
{ {

2
tsconfig.json

@ -12,7 +12,7 @@
"@dcloudio/types", "@dcloudio/types",
"miniprogram-api-typings", "miniprogram-api-typings",
"@uni-helper/uni-app-types", "@uni-helper/uni-app-types",
"@uni-helper/uni-ui-types"
"@uni-helper/uni-ui-types" // uni-ui
] ]
}, },
"vueCompilerOptions": { "vueCompilerOptions": {

Loading…
Cancel
Save