去除less依赖

This commit is contained in:
cookfront 2017-02-13 23:12:52 +08:00
parent e3d5585e9b
commit 866148b3d9
8 changed files with 48 additions and 58 deletions

View File

@ -62,10 +62,6 @@ module.exports = {
test: /\.pcss$/, test: /\.pcss$/,
loader: 'style-loader!css-loader!postcss-loader' loader: 'style-loader!css-loader!postcss-loader'
}, },
{
test: /\.less$/,
loader: 'style-loader!css-loader!less-loader'
},
{ {
test: /\.md/, test: /\.md/,
loader: 'vue-markdown-loader' loader: 'vue-markdown-loader'

View File

@ -67,7 +67,7 @@
}; };
</script> </script>
<style lang="less"> <style lang="css">
.demo-block { .demo-block {
border: solid 1px #eaeefb; border: solid 1px #eaeefb;
border-radius: 4px; border-radius: 4px;

View File

@ -60,7 +60,7 @@
}; };
</script> </script>
<style lang="less"> <style lang="css">
.side-nav { .side-nav {
width: 25%; width: 25%;
box-sizing: border-box; box-sizing: border-box;

View File

@ -1,5 +1,4 @@
import './assets/docs.less'; import './assets/docs.css';
// import '../packages/zenui/index.pcss';
import Vue from 'vue'; import Vue from 'vue';
import VueRouter from 'vue-router'; import VueRouter from 'vue-router';
import App from './App'; import App from './App';

View File

@ -73,8 +73,6 @@
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"json-templater": "^1.0.4", "json-templater": "^1.0.4",
"lerna": "2.0.0-beta.31", "lerna": "2.0.0-beta.31",
"less": "^2.7.0",
"less-loader": "^2.2.3",
"lolex": "^1.5.1", "lolex": "^1.5.1",
"markdown-it": "^6.1.1", "markdown-it": "^6.1.1",
"markdown-it-anchor": "^2.5.0", "markdown-it-anchor": "^2.5.0",

View File

@ -13,7 +13,7 @@
<span v-text="value"></span> <span v-text="value"></span>
</slot> </slot>
</div> </div>
<i class="o2-cell-arrow-right" v-if="isLink"></i> <i class="zui-icon zui-icon-arrow" v-if="isLink"></i>
</a> </a>
</template> </template>

View File

@ -1,4 +1,3 @@
import Sample from '../packages/sample/index.js';
import Button from '../packages/button/index.js'; import Button from '../packages/button/index.js';
import Switch from '../packages/switch/index.js'; import Switch from '../packages/switch/index.js';
import Field from '../packages/field/index.js'; import Field from '../packages/field/index.js';
@ -11,7 +10,6 @@ import '../packages/zenui/src/index.pcss';
const install = function(Vue) { const install = function(Vue) {
if (install.installed) return; if (install.installed) return;
Vue.component(Sample.name, Sample);
Vue.component(Button.name, Button); Vue.component(Button.name, Button);
Vue.component(Switch.name, Switch); Vue.component(Switch.name, Switch);
Vue.component(Field.name, Field); Vue.component(Field.name, Field);
@ -28,7 +26,6 @@ if (typeof window !== 'undefined' && window.Vue) {
module.exports = { module.exports = {
install, install,
version: '0.0.1', version: '0.0.1',
Sample,
Button, Button,
Switch, Switch,
Field, Field,