chore(cli): update eslint config and prettier codes

This commit is contained in:
陈嘉涵
2020-01-19 11:42:22 +08:00
parent 633e9cf59d
commit 1691451813
52 changed files with 383 additions and 363 deletions

View File

@@ -4,7 +4,7 @@
import { iframeReady, isMobile } from '.';
window.syncPath = function () {
window.syncPath = function() {
const router = window.vueRouter;
const isInIframe = window !== window.top;
const currentDir = router.history.current.path;
@@ -21,7 +21,7 @@ window.syncPath = function () {
}
};
window.replacePath = function (path = '') {
window.replacePath = function(path = '') {
// should preserve hash for anchor
if (window.vueRouter.currentRoute.path !== path) {
window.vueRouter.replace(path).catch(() => {});

View File

@@ -27,7 +27,4 @@ export function decamelize(str, sep = '-') {
.toLowerCase();
}
export {
isMobile,
iframeReady
};
export { isMobile, iframeReady };

View File

@@ -4,7 +4,7 @@
@van-doc-fuchsia: #a7419e;
@van-doc-green: #4fc08d;
@van-doc-text-color: #34495e;
@van-doc-text-light-blue: rgba(69, 90, 100, .6);
@van-doc-text-light-blue: rgba(69, 90, 100, 0.6);
@van-doc-background-color: #f7f8fa;
@van-doc-grey: #999;
@van-doc-dark-grey: #666;