From 866148b3d914d566f547f879884f4e916107b78b Mon Sep 17 00:00:00 2001 From: cookfront Date: Mon, 13 Feb 2017 23:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4less=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.config.js | 4 -- docs/assets/{docs.less => docs.css} | 0 docs/components/demo-block.vue | 2 +- docs/components/side-nav.vue | 90 ++++++++++++++--------------- docs/index.js | 3 +- package.json | 2 - packages/cell/src/cell.vue | 2 +- src/index.js | 3 - 8 files changed, 48 insertions(+), 58 deletions(-) rename docs/assets/{docs.less => docs.css} (100%) diff --git a/build/webpack.config.js b/build/webpack.config.js index 2e07a3c81..b74416529 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -62,10 +62,6 @@ module.exports = { test: /\.pcss$/, loader: 'style-loader!css-loader!postcss-loader' }, - { - test: /\.less$/, - loader: 'style-loader!css-loader!less-loader' - }, { test: /\.md/, loader: 'vue-markdown-loader' diff --git a/docs/assets/docs.less b/docs/assets/docs.css similarity index 100% rename from docs/assets/docs.less rename to docs/assets/docs.css diff --git a/docs/components/demo-block.vue b/docs/components/demo-block.vue index 17f06f8cc..4831e123f 100644 --- a/docs/components/demo-block.vue +++ b/docs/components/demo-block.vue @@ -67,7 +67,7 @@ }; - diff --git a/docs/index.js b/docs/index.js index 65a18152b..dfbaf47a3 100644 --- a/docs/index.js +++ b/docs/index.js @@ -1,5 +1,4 @@ -import './assets/docs.less'; -// import '../packages/zenui/index.pcss'; +import './assets/docs.css'; import Vue from 'vue'; import VueRouter from 'vue-router'; import App from './App'; diff --git a/package.json b/package.json index 447de6783..5b4a0e712 100644 --- a/package.json +++ b/package.json @@ -73,8 +73,6 @@ "json-loader": "^0.5.4", "json-templater": "^1.0.4", "lerna": "2.0.0-beta.31", - "less": "^2.7.0", - "less-loader": "^2.2.3", "lolex": "^1.5.1", "markdown-it": "^6.1.1", "markdown-it-anchor": "^2.5.0", diff --git a/packages/cell/src/cell.vue b/packages/cell/src/cell.vue index 4ed2758e8..1df1d260e 100644 --- a/packages/cell/src/cell.vue +++ b/packages/cell/src/cell.vue @@ -13,7 +13,7 @@ - + diff --git a/src/index.js b/src/index.js index 13c936146..e314f26fa 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,3 @@ -import Sample from '../packages/sample/index.js'; import Button from '../packages/button/index.js'; import Switch from '../packages/switch/index.js'; import Field from '../packages/field/index.js'; @@ -11,7 +10,6 @@ import '../packages/zenui/src/index.pcss'; const install = function(Vue) { if (install.installed) return; - Vue.component(Sample.name, Sample); Vue.component(Button.name, Button); Vue.component(Switch.name, Switch); Vue.component(Field.name, Field); @@ -28,7 +26,6 @@ if (typeof window !== 'undefined' && window.Vue) { module.exports = { install, version: '0.0.1', - Sample, Button, Switch, Field,