diff --git a/.gitignore b/.gitignore index efe7735..3539e58 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -unpackage \ No newline at end of file +unpackage +node_modules \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..71e48d4 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@dcloudio/uni-ui": "^1.5.11" + } +} diff --git a/pages.json b/pages.json index 869105d..5d9e93e 100644 --- a/pages.json +++ b/pages.json @@ -1,4 +1,11 @@ { + "easycom":{ + "autoscan": true, + "custom": { + "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" + } + }, + "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", diff --git a/pages/index/index.vue b/pages/index/index.vue index a2e5908..39e81bd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -12,4 +12,8 @@ function change(){ \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..142f4e5 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,22 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@dcloudio/uni-ui': + specifier: ^1.5.11 + version: 1.5.11 + +packages: + + '@dcloudio/uni-ui@1.5.11': + resolution: {integrity: sha512-DBtk046ofmeFd82zRI7d89SoEwrAxYzUN3WVPm1DIBkpLPG5F5QDNkHMnZGu2wNrMEmGBjBpUh3vqEY1L3jaMw==} + +snapshots: + + '@dcloudio/uni-ui@1.5.11': {} diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..65e7e81 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,3 @@ +module.exports = { + transpileDependencies: ['@dcloudio/uni-ui'] +} \ No newline at end of file