md-iview 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -0
- package/package.json +116 -0
- package/src/components/libs/util.js +117 -0
- package/src/components/md-error-page/403.less +92 -0
- package/src/components/md-error-page/403.vue +34 -0
- package/src/components/md-error-page/404.less +60 -0
- package/src/components/md-error-page/404.vue +34 -0
- package/src/components/md-error-page/500.less +73 -0
- package/src/components/md-error-page/500.vue +36 -0
- package/src/components/md-error-page/demo/index.less +22 -0
- package/src/components/md-error-page/demo/index.vue +97 -0
- package/src/components/md-form-item/index.js +3 -0
- package/src/components/md-icon/icon.vue +77 -0
- package/src/components/md-icon/icons.js +5 -0
- package/src/components/md-icon/index.js +11 -0
- package/src/components/md-icon/style/index.less +1 -0
- package/src/components/md-loading/index.js +55 -0
- package/src/components/md-loading/index.vue +53 -0
- package/src/components/md-loading/md-loading.js +38 -0
- package/src/components/md-print/demo/index.vue +260 -0
- package/src/components/md-print/index.js +123 -0
- package/src/components/md-rich-editor/index.vue +69 -0
- package/src/components/md-rich-editor/module/image-extend/index.js +216 -0
- package/src/components/md-scroll-bar/demo/index.vue +102 -0
- package/src/components/md-scroll-bar/index.js +3 -0
- package/src/components/md-scroll-bar/index.less +90 -0
- package/src/components/md-scroll-bar/index.vue +250 -0
- package/src/components/md-select/index.js +7 -0
- package/src/components/md-select/select.vue +841 -0
- package/src/components/md-shrinkable-menu/components/sidebarMenu.vue +167 -0
- package/src/components/md-shrinkable-menu/components/sidebarMenuShrink.vue +119 -0
- package/src/components/md-shrinkable-menu/demo/data/cachePage.js +1 -0
- package/src/components/md-shrinkable-menu/demo/data/currentPath.js +9 -0
- package/src/components/md-shrinkable-menu/demo/data/menu.js +575 -0
- package/src/components/md-shrinkable-menu/demo/data/menu2.js +1017 -0
- package/src/components/md-shrinkable-menu/demo/data/pageTagsList.js +153 -0
- package/src/components/md-shrinkable-menu/demo/index.less +297 -0
- package/src/components/md-shrinkable-menu/demo/index.vue +285 -0
- package/src/components/md-shrinkable-menu/index.vue +112 -0
- package/src/components/md-shrinkable-menu/sidebar.vue +195 -0
- package/src/components/md-shrinkable-menu/styles/menu.less +5 -0
- package/src/components/md-shrinkable-menu/styles/sidebar.less +363 -0
- package/src/components/md-split-pane/demo/index.vue +101 -0
- package/src/components/md-split-pane/index.js +3 -0
- package/src/components/md-split-pane/index.less +93 -0
- package/src/components/md-split-pane/index.vue +230 -0
- package/src/components/md-table/action-tooltip.vue +45 -0
- package/src/components/md-table/can-edit-v2.vue +823 -0
- package/src/components/md-table/can-edit.vue +723 -0
- package/src/components/md-table/custom-cell.vue +71 -0
- package/src/components/md-table/date-picker-cell-v2.vue +48 -0
- package/src/components/md-table/date-picker-cell.vue +39 -0
- package/src/components/md-table/demo/data/search.js +67 -0
- package/src/components/md-table/demo/data/table2csv.js +200 -0
- package/src/components/md-table/demo/data/table2excel.js +239 -0
- package/src/components/md-table/demo/data/table_data.js +251 -0
- package/src/components/md-table/demo/editable-table.vue +144 -0
- package/src/components/md-table/demo/exportable-table.vue +124 -0
- package/src/components/md-table/demo/widgets/header-search.vue +88 -0
- package/src/components/md-table/drop-down-cell-v2.vue +87 -0
- package/src/components/md-table/drop-down-cell.vue +81 -0
- package/src/components/md-table/editable-expand.vue +143 -0
- package/src/components/md-table/expand.vue +97 -0
- package/src/components/md-table/index.vue +53 -0
- package/src/components/md-table/iview-table/cell.vue +99 -0
- package/src/components/md-table/iview-table/expand.js +21 -0
- package/src/components/md-table/iview-table/export-csv.js +76 -0
- package/src/components/md-table/iview-table/header.js +16 -0
- package/src/components/md-table/iview-table/index.js +2 -0
- package/src/components/md-table/iview-table/mixin.js +31 -0
- package/src/components/md-table/iview-table/table-body.vue +101 -0
- package/src/components/md-table/iview-table/table-head.vue +311 -0
- package/src/components/md-table/iview-table/table-tr.vue +31 -0
- package/src/components/md-table/iview-table/table.vue +1026 -0
- package/src/components/md-table/iview-table/util.js +93 -0
- package/src/components/md-table/libs/table2excel.js +100 -0
- package/src/components/md-table/select-cell-v2.vue +64 -0
- package/src/components/md-table/select-cell.vue +46 -0
- package/src/components/md-table/table.less +76 -0
- package/src/components/md-toolbar/index.vue +171 -0
- package/src/components/md-tree/index.js +2 -0
- package/src/components/md-tree/node.vue +238 -0
- package/src/components/md-tree/render.js +17 -0
- package/src/components/md-tree/tree.vue +241 -0
- package/src/components/utilities/can.js +35 -0
- package/src/directives/index.js +34 -0
- package/src/directives/resize.js +27 -0
- package/src/directives/scroll.js +27 -0
- package/src/directives/style/bg-color.js +23 -0
- package/src/directives/style/color.js +23 -0
- package/src/directives/style/font-size.js +23 -0
- package/src/directives/style/height.js +23 -0
- package/src/directives/style/lineHeight.js +23 -0
- package/src/directives/style/margin.js +48 -0
- package/src/directives/style/opacity.js +23 -0
- package/src/directives/style/padding.js +48 -0
- package/src/directives/style/width.js +24 -0
- package/src/index.js +442 -0
- package/src/locale/lang.js +5 -0
- package/src/mixins/colorable.js +51 -0
- package/src/style/color/bezierEasing.less +110 -0
- package/src/style/color/colorPalette.less +75 -0
- package/src/style/color/colors.less +146 -0
- package/src/style/color/tinyColor.less +1184 -0
- package/src/style/common.less +72 -0
- package/src/style/components/_ripple.less +60 -0
- package/src/style/components/_shrinkable-menu.less +46 -0
- package/src/style/components/_toolbar.less +96 -0
- package/src/style/components/index.less +3 -0
- package/src/style/components/rich-editor.less +6 -0
- package/src/style/index.less +10 -0
- package/src/style/theme.less +155 -0
- package/src/utils/color.js +46 -0
- package/src/utils/console.js +105 -0
- package/src/utils/load.js +79 -0
- package/src/utils/mask.js +139 -0
- package/src/utils/mixins.js +5 -0
- package/src/utils/validate.js +271 -0
@@ -0,0 +1,153 @@
|
|
1
|
+
export default [{
|
2
|
+
"path": "home",
|
3
|
+
"title": {
|
4
|
+
"i18n": "home"
|
5
|
+
},
|
6
|
+
"name": "home_index",
|
7
|
+
"argu": {},
|
8
|
+
"query": {}
|
9
|
+
}, {
|
10
|
+
"path": "index",
|
11
|
+
"title": "错误页面",
|
12
|
+
"name": "errorpage_index",
|
13
|
+
"component": {
|
14
|
+
"_custom": {
|
15
|
+
"type": "function",
|
16
|
+
"display": "<span>ƒ</span> component()"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"argu": {},
|
20
|
+
"query": {}
|
21
|
+
}, {
|
22
|
+
"path": "mutative-router",
|
23
|
+
"title": "动态路由",
|
24
|
+
"name": "mutative-router",
|
25
|
+
"icon": "link",
|
26
|
+
"component": {
|
27
|
+
"_custom": {
|
28
|
+
"type": "function",
|
29
|
+
"display": "<span>ƒ</span> component()"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"argu": {},
|
33
|
+
"query": {}
|
34
|
+
}, {
|
35
|
+
"path": "order/:order_id",
|
36
|
+
"title": "订单详情",
|
37
|
+
"name": "order-info",
|
38
|
+
"component": {
|
39
|
+
"_custom": {
|
40
|
+
"type": "function",
|
41
|
+
"display": "<span>ƒ</span> component()"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"argu": {
|
45
|
+
"order_id": "1000002"
|
46
|
+
},
|
47
|
+
"query": {}
|
48
|
+
}, {
|
49
|
+
"path": "argument-page",
|
50
|
+
"title": "带参页面",
|
51
|
+
"name": "argument-page",
|
52
|
+
"icon": "android-send",
|
53
|
+
"component": {
|
54
|
+
"_custom": {
|
55
|
+
"type": "function",
|
56
|
+
"display": "<span>ƒ</span> component()"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"argu": {},
|
60
|
+
"query": {}
|
61
|
+
}, {
|
62
|
+
"path": "shopping",
|
63
|
+
"title": "购物详情",
|
64
|
+
"name": "shopping",
|
65
|
+
"component": {
|
66
|
+
"_custom": {
|
67
|
+
"type": "function",
|
68
|
+
"display": "<span>ƒ</span> component()"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"argu": {},
|
72
|
+
"query": {
|
73
|
+
"shopping_id": 100001
|
74
|
+
}
|
75
|
+
}, {
|
76
|
+
"path": "index",
|
77
|
+
"title": "权限测试页",
|
78
|
+
"name": "accesstest_index",
|
79
|
+
"access": 0,
|
80
|
+
"component": {
|
81
|
+
"_custom": {
|
82
|
+
"type": "function",
|
83
|
+
"display": "<span>ƒ</span> component()"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"argu": {},
|
87
|
+
"query": {}
|
88
|
+
}, {
|
89
|
+
"path": "index",
|
90
|
+
"title": "权限管理",
|
91
|
+
"name": "access_index",
|
92
|
+
"component": {
|
93
|
+
"_custom": {
|
94
|
+
"type": "function",
|
95
|
+
"display": "<span>ƒ</span> component()"
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"argu": {},
|
99
|
+
"query": {}
|
100
|
+
}, {
|
101
|
+
"path": "exportableTable",
|
102
|
+
"title": "表格导出数据",
|
103
|
+
"name": "exportable-table",
|
104
|
+
"icon": "code-download",
|
105
|
+
"component": {
|
106
|
+
"_custom": {
|
107
|
+
"type": "function",
|
108
|
+
"display": "<span>ƒ</span> component()"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"argu": {},
|
112
|
+
"query": {}
|
113
|
+
}, {
|
114
|
+
"path": "draggable-list",
|
115
|
+
"icon": "arrow-move",
|
116
|
+
"name": "draggable-list",
|
117
|
+
"title": "可拖拽列表",
|
118
|
+
"component": {
|
119
|
+
"_custom": {
|
120
|
+
"type": "function",
|
121
|
+
"display": "<span>ƒ</span> component()"
|
122
|
+
}
|
123
|
+
},
|
124
|
+
"argu": {},
|
125
|
+
"query": {}
|
126
|
+
}, {
|
127
|
+
"path": "searchableTable",
|
128
|
+
"title": "可搜索表格",
|
129
|
+
"name": "searchable-table",
|
130
|
+
"icon": "search",
|
131
|
+
"component": {
|
132
|
+
"_custom": {
|
133
|
+
"type": "function",
|
134
|
+
"display": "<span>ƒ</span> component()"
|
135
|
+
}
|
136
|
+
},
|
137
|
+
"argu": {},
|
138
|
+
"query": {}
|
139
|
+
}, {
|
140
|
+
"path": "index",
|
141
|
+
"title": {
|
142
|
+
"i18n": "international"
|
143
|
+
},
|
144
|
+
"name": "international_index",
|
145
|
+
"component": {
|
146
|
+
"_custom": {
|
147
|
+
"type": "function",
|
148
|
+
"display": "<span>ƒ</span> component()"
|
149
|
+
}
|
150
|
+
},
|
151
|
+
"argu": {},
|
152
|
+
"query": {}
|
153
|
+
}]
|
@@ -0,0 +1,297 @@
|
|
1
|
+
.lock-screen-back{
|
2
|
+
border-radius: 50%;
|
3
|
+
z-index: -1;
|
4
|
+
box-shadow: 0 0 0 0 #667aa6 inset;
|
5
|
+
position: fixed;
|
6
|
+
left: 50%;
|
7
|
+
top: 50%;
|
8
|
+
transform: translate(-50%,-50%);
|
9
|
+
transition: all 3s;
|
10
|
+
}
|
11
|
+
.main{
|
12
|
+
position: absolute;
|
13
|
+
width: 100%;
|
14
|
+
height: 100%;
|
15
|
+
.unlock-con{
|
16
|
+
width: 0px;
|
17
|
+
height: 0px;
|
18
|
+
position: absolute;
|
19
|
+
left: 50%;
|
20
|
+
top: 50%;
|
21
|
+
z-index: 11000;
|
22
|
+
}
|
23
|
+
.sidebar-menu-con{
|
24
|
+
//height: 100%;
|
25
|
+
height: calc(~"100% - 47px");;
|
26
|
+
position: absolute;
|
27
|
+
top: 0;
|
28
|
+
left: 0;
|
29
|
+
z-index: 21;
|
30
|
+
transition: width .3s;
|
31
|
+
border-right: 1px solid #d3d3d3;
|
32
|
+
//background-color: #fafafa;
|
33
|
+
.sidebar-menu-shrink {
|
34
|
+
.shrink-btn-item:hover {
|
35
|
+
color: #595959 !important;
|
36
|
+
background-color: #f0f0f0 !important;
|
37
|
+
border-color: transparent !important;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
.menus{
|
41
|
+
padding-bottom: 120px;
|
42
|
+
&:after {
|
43
|
+
content: none;
|
44
|
+
}
|
45
|
+
//background-color: #fafafa;
|
46
|
+
.menus-item {
|
47
|
+
&__submenus {
|
48
|
+
&:first-child {
|
49
|
+
//margin-top: 8px;
|
50
|
+
border-top: 1px solid #e8e8e8;
|
51
|
+
}
|
52
|
+
&:last-child {
|
53
|
+
border-bottom: none !important;
|
54
|
+
}
|
55
|
+
&:hover{
|
56
|
+
background: #f0f0f0;
|
57
|
+
}
|
58
|
+
text-decoration: none;
|
59
|
+
margin: 0 !important;
|
60
|
+
padding: 0 16px!important;
|
61
|
+
height: 40px;
|
62
|
+
line-height: 40px;
|
63
|
+
display: flex;
|
64
|
+
align-items: center;
|
65
|
+
//border-bottom: 1px solid #e8e8e8;
|
66
|
+
}
|
67
|
+
&__icon {
|
68
|
+
margin-right: 17px;
|
69
|
+
color: rgb(89, 89, 89) !important;
|
70
|
+
}
|
71
|
+
text-align: left;
|
72
|
+
align-items: center;
|
73
|
+
//height: 57px;
|
74
|
+
height: auto;
|
75
|
+
line-height: 28px;
|
76
|
+
//border-bottom: 1px solid #e8e8e8;
|
77
|
+
.ivu-menu-submenu-title {
|
78
|
+
line-height: 57px;
|
79
|
+
padding: 0 16px !important;
|
80
|
+
display: flex;
|
81
|
+
align-items: center;
|
82
|
+
justify-content: space-between;
|
83
|
+
}
|
84
|
+
.ivu-menu-submenu-title-icon {
|
85
|
+
//line-height: 28px;
|
86
|
+
line-height: 57px;
|
87
|
+
top: 0 !important;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
background: inherit;
|
91
|
+
}
|
92
|
+
//background: rgb(73, 80, 96);
|
93
|
+
.vue-scroller-bars-content {
|
94
|
+
height: 100% !important;
|
95
|
+
overflow-y: auto;
|
96
|
+
|
97
|
+
}
|
98
|
+
}
|
99
|
+
.menu-right-footer {
|
100
|
+
border-top: 1px solid #d3d3d3;
|
101
|
+
height: 50px;
|
102
|
+
line-height: 49px;
|
103
|
+
cursor: pointer;
|
104
|
+
background-color: #fafafa;
|
105
|
+
text-align: left;
|
106
|
+
position: fixed;
|
107
|
+
bottom: 0;
|
108
|
+
display: flex;
|
109
|
+
align-items: center;
|
110
|
+
border-right: 1px solid #d3d3d3;
|
111
|
+
}
|
112
|
+
.layout-text{
|
113
|
+
display: inline-block;
|
114
|
+
white-space:nowrap;
|
115
|
+
position: absolute;
|
116
|
+
}
|
117
|
+
.main-hide-text .layout-text{
|
118
|
+
display: none;
|
119
|
+
}
|
120
|
+
&-content-container{
|
121
|
+
position: relative;
|
122
|
+
}
|
123
|
+
&-header-con{
|
124
|
+
box-sizing: border-box;
|
125
|
+
position: fixed;
|
126
|
+
display: block;
|
127
|
+
padding-left: 200px;
|
128
|
+
width: 100%;
|
129
|
+
height: 100px;
|
130
|
+
z-index: 20;
|
131
|
+
box-shadow: 0 2px 1px 1px rgba(100,100,100,.1);
|
132
|
+
transition: padding .3s;
|
133
|
+
}
|
134
|
+
&-breadcrumb{
|
135
|
+
padding: 8px 15px 0;
|
136
|
+
}
|
137
|
+
&-menu-left{
|
138
|
+
background: #464c5b;
|
139
|
+
height: 100%;
|
140
|
+
}
|
141
|
+
.tags-con{
|
142
|
+
height: 40px;
|
143
|
+
z-index: -1;
|
144
|
+
overflow: hidden;
|
145
|
+
background: #f0f0f0;
|
146
|
+
.tags-outer-scroll-con{
|
147
|
+
position: relative;
|
148
|
+
box-sizing: border-box;
|
149
|
+
padding-right: 120px;
|
150
|
+
width: 100%;
|
151
|
+
height: 100%;
|
152
|
+
.tags-inner-scroll-body{
|
153
|
+
position: absolute;
|
154
|
+
padding: 2px 10px;
|
155
|
+
overflow: visible;
|
156
|
+
white-space: nowrap;
|
157
|
+
transition: left .3s ease;
|
158
|
+
}
|
159
|
+
.close-all-tag-con{
|
160
|
+
position: absolute;
|
161
|
+
right: 0;
|
162
|
+
top: 0;
|
163
|
+
box-sizing: border-box;
|
164
|
+
padding-top: 8px;
|
165
|
+
text-align: center;
|
166
|
+
width: 110px;
|
167
|
+
height: 100%;
|
168
|
+
background: white;
|
169
|
+
box-shadow: -3px 0 15px 3px rgba(0, 0, 0, .1);
|
170
|
+
z-index: 10;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
&-header{
|
175
|
+
height: 60px;
|
176
|
+
background: #fff;
|
177
|
+
box-shadow: 0 2px 1px 1px rgba(100,100,100,.1);
|
178
|
+
position: relative;
|
179
|
+
z-index: 11;
|
180
|
+
.navicon-con{
|
181
|
+
margin: 6px;
|
182
|
+
display: inline-block;
|
183
|
+
}
|
184
|
+
.header-middle-con{
|
185
|
+
position: absolute;
|
186
|
+
left: 60px;
|
187
|
+
top: 0;
|
188
|
+
right: 340px;
|
189
|
+
bottom: 0;
|
190
|
+
padding: 10px;
|
191
|
+
overflow: hidden;
|
192
|
+
}
|
193
|
+
.header-avator-con{
|
194
|
+
position: absolute;
|
195
|
+
right: 0;
|
196
|
+
top: 0;
|
197
|
+
height: 100%;
|
198
|
+
width: 300px;
|
199
|
+
.switch-theme-con{
|
200
|
+
display: inline-block;
|
201
|
+
width: 40px;
|
202
|
+
height: 100%;
|
203
|
+
}
|
204
|
+
.message-con{
|
205
|
+
display: inline-block;
|
206
|
+
width: 30px;
|
207
|
+
padding: 18px 0;
|
208
|
+
text-align: center;
|
209
|
+
cursor: pointer;
|
210
|
+
i{
|
211
|
+
vertical-align: middle;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
.change-skin{
|
215
|
+
font-size: 14px;
|
216
|
+
font-weight: 500;
|
217
|
+
padding-right: 5px;
|
218
|
+
}
|
219
|
+
.switch-theme{
|
220
|
+
height: 100%;
|
221
|
+
}
|
222
|
+
.user-dropdown{
|
223
|
+
&-menu-con{
|
224
|
+
position: absolute;
|
225
|
+
right: 0;
|
226
|
+
top: 0;
|
227
|
+
width: 150px;
|
228
|
+
height: 100%;
|
229
|
+
.main-user-name{
|
230
|
+
display: inline-block;
|
231
|
+
width: 80px;
|
232
|
+
word-break: keep-all;
|
233
|
+
white-space: nowrap;
|
234
|
+
vertical-align: middle;
|
235
|
+
overflow: hidden;
|
236
|
+
text-overflow: ellipsis;
|
237
|
+
text-align: right;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
&-innercon{
|
241
|
+
height: 100%;
|
242
|
+
padding-right: 14px;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
.full-screen-btn-con{
|
246
|
+
display: inline-block;
|
247
|
+
width: 30px;
|
248
|
+
padding: 18px 0;
|
249
|
+
text-align: center;
|
250
|
+
cursor: pointer;
|
251
|
+
i{
|
252
|
+
vertical-align: middle;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
.lock-screen-btn-con{
|
256
|
+
display: inline-block;
|
257
|
+
width: 30px;
|
258
|
+
padding: 18px 0;
|
259
|
+
text-align: center;
|
260
|
+
cursor: pointer;
|
261
|
+
i{
|
262
|
+
vertical-align: middle;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|
266
|
+
}
|
267
|
+
.single-page-con{
|
268
|
+
position: absolute;
|
269
|
+
top: 100px;
|
270
|
+
right: 0;
|
271
|
+
bottom: 0;
|
272
|
+
overflow: auto;
|
273
|
+
background-color: #F0F0F0;
|
274
|
+
z-index: 1;
|
275
|
+
transition: left .3s;
|
276
|
+
.single-page{
|
277
|
+
margin: 10px;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
&-copy{
|
281
|
+
text-align: center;
|
282
|
+
padding: 10px 0 20px;
|
283
|
+
color: #9ea7b4;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
.taglist-moving-animation-move{
|
287
|
+
transition: transform .3s;
|
288
|
+
}
|
289
|
+
.logo-con{
|
290
|
+
padding: 8px;
|
291
|
+
text-align: center;
|
292
|
+
background-color: #fafafa;
|
293
|
+
img{
|
294
|
+
height: 44px;
|
295
|
+
width: auto;
|
296
|
+
}
|
297
|
+
}
|