From a41e67226f86c8c02c9cbbc5a04f043ae724750d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Thu, 12 Dec 2019 20:14:04 +0800 Subject: [PATCH] feat(cli): no longer depend on vant --- package.json | 2 +- packages/vant-cli/package.json | 4 +- .../site/mobile/components/ArrowRight.vue | 12 + .../site/mobile/components/DemoHome.vue | 2 +- .../site/mobile/components/DemoHomeNav.vue | 95 +++-- yarn.lock | 340 ++---------------- 6 files changed, 81 insertions(+), 374 deletions(-) create mode 100644 packages/vant-cli/site/mobile/components/ArrowRight.vue diff --git a/package.json b/package.json index 49728bfc9..a65ee9094 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "vue": ">= 2.5.22" }, "devDependencies": { - "@vant/cli": "^2.0.0-beta.16", + "@vant/cli": "^2.0.0-beta.18", "vue": "^2.6.10", "vue-template-compiler": "^2.6.10" }, diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index 618cd2c12..7571b5258 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -22,7 +22,6 @@ "author": "chenjiahan", "license": "MIT", "peerDependencies": { - "vant": "^2.2.15", "vue": "^2.6.10", "vue-template-compiler": "^2.6.10" }, @@ -41,8 +40,7 @@ "@types/stylelint": "^9.10.1", "@types/webpack": "^4.41.0", "@types/webpack-dev-server": "^3.9.0", - "@types/webpack-merge": "^4.1.5", - "vant": "^2.2.15" + "@types/webpack-merge": "^4.1.5" }, "dependencies": { "@babel/core": "^7.7.4", diff --git a/packages/vant-cli/site/mobile/components/ArrowRight.vue b/packages/vant-cli/site/mobile/components/ArrowRight.vue new file mode 100644 index 000000000..ec9a76226 --- /dev/null +++ b/packages/vant-cli/site/mobile/components/ArrowRight.vue @@ -0,0 +1,12 @@ + diff --git a/packages/vant-cli/site/mobile/components/DemoHome.vue b/packages/vant-cli/site/mobile/components/DemoHome.vue index 3177d2764..4775d5c3e 100644 --- a/packages/vant-cli/site/mobile/components/DemoHome.vue +++ b/packages/vant-cli/site/mobile/components/DemoHome.vue @@ -82,7 +82,7 @@ export default { &__desc { margin: 0 0 40px; - color: #7d7e80; + color: rgba(69, 90, 100, 0.6); font-size: 14px; } } diff --git a/packages/vant-cli/site/mobile/components/DemoHomeNav.vue b/packages/vant-cli/site/mobile/components/DemoHomeNav.vue index a126df099..be649feae 100644 --- a/packages/vant-cli/site/mobile/components/DemoHomeNav.vue +++ b/packages/vant-cli/site/mobile/components/DemoHomeNav.vue @@ -1,41 +1,26 @@