diff --git a/src/components/MDinput/index.vue b/src/components/MDinput/index.vue
index 731311f7..f93ae258 100644
--- a/src/components/MDinput/index.vue
+++ b/src/components/MDinput/index.vue
@@ -164,6 +164,7 @@ export default {
.material-input__icon {
position: absolute;
left: 0;
+ line-height: $font-size-base;
color: $color-blue;
top: $spacer;
width: $index-has-icon;
diff --git a/src/router/index.js b/src/router/index.js
index 67a87197..52011bd6 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -95,18 +95,17 @@ export const asyncRouterMap = [
icon: 'component'
},
children: [
- { path: 'index', component: _import('components/index'), name: 'componentIndex', meta: { title: 'componentIndex' }},
- { path: 'tinymce', component: _import('components/tinymce'), name: 'tinymce', meta: { title: 'tinymce' }},
- { path: 'markdown', component: _import('components/markdown'), name: 'markdown', meta: { title: 'markdown' }},
- { path: 'json-editor', component: _import('components/jsonEditor'), name: 'jsonEditor', meta: { title: 'jsonEditor' }},
- { path: 'dnd-list', component: _import('components/dndList'), name: 'dndList', meta: { title: 'dndList' }},
- { path: 'splitpane', component: _import('components/splitpane'), name: 'splitpane', meta: { title: 'splitPane' }},
- { path: 'avatar-upload', component: _import('components/avatarUpload'), name: 'avatarUpload', meta: { title: 'avatarUpload' }},
- { path: 'dropzone', component: _import('components/dropzone'), name: 'dropzone', meta: { title: 'dropzone' }},
- { path: 'sticky', component: _import('components/sticky'), name: 'sticky', meta: { title: 'sticky' }},
- { path: 'count-to', component: _import('components/countTo'), name: 'countTo', meta: { title: 'countTo' }},
- { path: 'mixin', component: _import('components/mixin'), name: 'componentMixin', meta: { title: 'componentMixin' }},
- { path: 'back-to-top', component: _import('components/backToTop'), name: 'backToTop', meta: { title: 'backToTop' }}
+ { path: 'tinymce', component: _import('components-demo/tinymce'), name: 'tinymce', meta: { title: 'tinymce' }},
+ { path: 'markdown', component: _import('components-demo/markdown'), name: 'markdown', meta: { title: 'markdown' }},
+ { path: 'json-editor', component: _import('components-demo/jsonEditor'), name: 'jsonEditor', meta: { title: 'jsonEditor' }},
+ { path: 'dnd-list', component: _import('components-demo/dndList'), name: 'dndList', meta: { title: 'dndList' }},
+ { path: 'splitpane', component: _import('components-demo/splitpane'), name: 'splitpane', meta: { title: 'splitPane' }},
+ { path: 'avatar-upload', component: _import('components-demo/avatarUpload'), name: 'avatarUpload', meta: { title: 'avatarUpload' }},
+ { path: 'dropzone', component: _import('components-demo/dropzone'), name: 'dropzone', meta: { title: 'dropzone' }},
+ { path: 'sticky', component: _import('components-demo/sticky'), name: 'sticky', meta: { title: 'sticky' }},
+ { path: 'count-to', component: _import('components-demo/countTo'), name: 'countTo', meta: { title: 'countTo' }},
+ { path: 'mixin', component: _import('components-demo/mixin'), name: 'componentMixin', meta: { title: 'componentMixin' }},
+ { path: 'back-to-top', component: _import('components-demo/backToTop'), name: 'backToTop', meta: { title: 'backToTop' }}
]
},
@@ -235,7 +234,7 @@ export const asyncRouterMap = [
{
path: '/i18n',
component: Layout,
- children: [{ path: 'index', component: _import('i18n/index'), name: 'i18n', meta: { title: 'i18n', icon: 'international' }}]
+ children: [{ path: 'index', component: _import('i18n-demo/index'), name: 'i18n', meta: { title: 'i18n', icon: 'international' }}]
},
{ path: '*', redirect: '/404', hidden: true }
diff --git a/src/views/components/avatarUpload.vue b/src/views/components-demo/avatarUpload.vue
similarity index 100%
rename from src/views/components/avatarUpload.vue
rename to src/views/components-demo/avatarUpload.vue
diff --git a/src/views/components/backToTop.vue b/src/views/components-demo/backToTop.vue
similarity index 100%
rename from src/views/components/backToTop.vue
rename to src/views/components-demo/backToTop.vue
diff --git a/src/views/components/countTo.vue b/src/views/components-demo/countTo.vue
similarity index 100%
rename from src/views/components/countTo.vue
rename to src/views/components-demo/countTo.vue
diff --git a/src/views/components/dndList.vue b/src/views/components-demo/dndList.vue
similarity index 100%
rename from src/views/components/dndList.vue
rename to src/views/components-demo/dndList.vue
diff --git a/src/views/components/dropzone.vue b/src/views/components-demo/dropzone.vue
similarity index 100%
rename from src/views/components/dropzone.vue
rename to src/views/components-demo/dropzone.vue
diff --git a/src/views/components/jsonEditor.vue b/src/views/components-demo/jsonEditor.vue
similarity index 100%
rename from src/views/components/jsonEditor.vue
rename to src/views/components-demo/jsonEditor.vue
diff --git a/src/views/components/markdown.vue b/src/views/components-demo/markdown.vue
similarity index 100%
rename from src/views/components/markdown.vue
rename to src/views/components-demo/markdown.vue
diff --git a/src/views/components-demo/mixin.vue b/src/views/components-demo/mixin.vue
new file mode 100644
index 00000000..32d164f9
--- /dev/null
+++ b/src/views/components-demo/mixin.vue
@@ -0,0 +1,118 @@
+
+ 这里暂时列出了自己在项目中用到的组件和一些自己封装的组件,如有补充可以提 issue
-
- 我个人崇尚自己封装组件,因为很多组件会和业务后高度的耦合,而且第三方封装的组件灵活性可控性都不高,如有需要可以看楼主之前写过的一篇文章
- Material Design 的input
- 图片hover效果
- 水波纹 v-directive
-