mcrm-mobile 1.2.1 → 1.2.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.css +114 -0
- package/es/index.js +4 -3
- package/es/index.less +1 -0
- package/es/menu-jump/index.js +6 -1
- package/es/rank/index.css +374 -0
- package/es/rank/index.js +151 -0
- package/es/rank/index.less +107 -0
- package/es/rank/style/index.js +7 -0
- package/es/rank/style/less.js +7 -0
- package/es/style/css/iconfont.css +4 -0
- package/es/style/fonts/iconfont.ttf +0 -0
- package/es/style/fonts/iconfont.woff +0 -0
- package/es/style/fonts/iconfont.woff2 +0 -0
- package/es/style/theme.less +21 -0
- package/lib/index.css +114 -0
- package/lib/index.js +6 -2
- package/lib/index.less +1 -0
- package/lib/mcrm-mobile.js +162 -3
- package/lib/mcrm-mobile.min.js +7 -7
- package/lib/menu-jump/index.js +6 -1
- package/lib/rank/index.css +374 -0
- package/lib/rank/index.js +163 -0
- package/lib/rank/index.less +107 -0
- package/lib/rank/style/index.js +7 -0
- package/lib/rank/style/less.js +7 -0
- package/lib/style/css/iconfont.css +4 -0
- package/lib/style/fonts/iconfont.ttf +0 -0
- package/lib/style/fonts/iconfont.woff +0 -0
- package/lib/style/fonts/iconfont.woff2 +0 -0
- package/lib/style/theme.less +21 -0
- package/package.json +1 -1
- package/vetur/attributes.json +148 -108
- package/vetur/tags.json +36 -22
- package/vetur/web-types.json +291 -179
package/es/index.css
CHANGED
|
@@ -4026,6 +4026,120 @@ textarea {
|
|
|
4026
4026
|
-ms-flex-wrap: wrap;
|
|
4027
4027
|
flex-wrap: wrap;
|
|
4028
4028
|
}
|
|
4029
|
+
.mm-rank-personal {
|
|
4030
|
+
position: relative;
|
|
4031
|
+
margin-bottom: 20px;
|
|
4032
|
+
}
|
|
4033
|
+
.mm-rank-personal-content {
|
|
4034
|
+
display: -webkit-box;
|
|
4035
|
+
display: -ms-flexbox;
|
|
4036
|
+
display: flex;
|
|
4037
|
+
background-color: #e5f1ff;
|
|
4038
|
+
border-radius: 4px;
|
|
4039
|
+
}
|
|
4040
|
+
.mm-rank-personal-content-title {
|
|
4041
|
+
padding: 0 7px;
|
|
4042
|
+
display: -webkit-box;
|
|
4043
|
+
display: -ms-flexbox;
|
|
4044
|
+
display: flex;
|
|
4045
|
+
-webkit-box-pack: center;
|
|
4046
|
+
-ms-flex-pack: center;
|
|
4047
|
+
justify-content: center;
|
|
4048
|
+
-webkit-box-align: center;
|
|
4049
|
+
-ms-flex-align: center;
|
|
4050
|
+
align-items: center;
|
|
4051
|
+
width: 30px;
|
|
4052
|
+
background-color: #7ab9ff;
|
|
4053
|
+
border-radius: 4px;
|
|
4054
|
+
font-size: 12px;
|
|
4055
|
+
color: #fff;
|
|
4056
|
+
line-height: 16px;
|
|
4057
|
+
}
|
|
4058
|
+
.mm-rank-personal-content-biz {
|
|
4059
|
+
min-height: 16px;
|
|
4060
|
+
padding: 16px 0;
|
|
4061
|
+
-webkit-box-flex: 1;
|
|
4062
|
+
-ms-flex: 1;
|
|
4063
|
+
flex: 1;
|
|
4064
|
+
display: -webkit-box;
|
|
4065
|
+
display: -ms-flexbox;
|
|
4066
|
+
display: flex;
|
|
4067
|
+
-ms-flex-wrap: wrap;
|
|
4068
|
+
flex-wrap: wrap;
|
|
4069
|
+
-webkit-box-pack: justify;
|
|
4070
|
+
-ms-flex-pack: justify;
|
|
4071
|
+
justify-content: space-between;
|
|
4072
|
+
margin-right: 16px;
|
|
4073
|
+
}
|
|
4074
|
+
.mm-rank-personal-content-biz div {
|
|
4075
|
+
display: -webkit-box;
|
|
4076
|
+
display: -ms-flexbox;
|
|
4077
|
+
display: flex;
|
|
4078
|
+
-webkit-box-align: center;
|
|
4079
|
+
-ms-flex-align: center;
|
|
4080
|
+
align-items: center;
|
|
4081
|
+
margin-left: 16px;
|
|
4082
|
+
}
|
|
4083
|
+
.mm-rank-personal-content-biz div + div {
|
|
4084
|
+
margin-top: 4px;
|
|
4085
|
+
}
|
|
4086
|
+
.mm-rank-personal-content-name {
|
|
4087
|
+
font-size: 12px;
|
|
4088
|
+
color: #666666;
|
|
4089
|
+
line-height: 16px;
|
|
4090
|
+
}
|
|
4091
|
+
.mm-rank-personal-content-value {
|
|
4092
|
+
font-size: 18px;
|
|
4093
|
+
font-weight: bold;
|
|
4094
|
+
color: #0095fd;
|
|
4095
|
+
margin-left: 8px;
|
|
4096
|
+
}
|
|
4097
|
+
.mm-rank-personal-icon {
|
|
4098
|
+
position: absolute;
|
|
4099
|
+
bottom: -20px;
|
|
4100
|
+
}
|
|
4101
|
+
.mm-rank-track {
|
|
4102
|
+
position: relative;
|
|
4103
|
+
height: 4px;
|
|
4104
|
+
background-color: #eeeeee;
|
|
4105
|
+
border-radius: 4px;
|
|
4106
|
+
}
|
|
4107
|
+
.mm-rank-kpi {
|
|
4108
|
+
position: absolute;
|
|
4109
|
+
width: 1px;
|
|
4110
|
+
height: 6px;
|
|
4111
|
+
top: -1px;
|
|
4112
|
+
}
|
|
4113
|
+
.mm-rank-property {
|
|
4114
|
+
margin-top: 12px;
|
|
4115
|
+
display: -webkit-box;
|
|
4116
|
+
display: -ms-flexbox;
|
|
4117
|
+
display: flex;
|
|
4118
|
+
-webkit-box-pack: justify;
|
|
4119
|
+
-ms-flex-pack: justify;
|
|
4120
|
+
justify-content: space-between;
|
|
4121
|
+
text-align: center;
|
|
4122
|
+
-ms-flex-wrap: wrap;
|
|
4123
|
+
flex-wrap: wrap;
|
|
4124
|
+
}
|
|
4125
|
+
.mm-rank-property div {
|
|
4126
|
+
margin-top: 8px;
|
|
4127
|
+
}
|
|
4128
|
+
.mm-rank-property-max::after {
|
|
4129
|
+
content: "";
|
|
4130
|
+
-webkit-box-flex: 1;
|
|
4131
|
+
-ms-flex: auto;
|
|
4132
|
+
flex: auto;
|
|
4133
|
+
}
|
|
4134
|
+
.mm-rank-property-name {
|
|
4135
|
+
font-size: 12px;
|
|
4136
|
+
color: #666666;
|
|
4137
|
+
margin-top: 8px;
|
|
4138
|
+
}
|
|
4139
|
+
.mm-rank-property-value {
|
|
4140
|
+
font-size: 22px;
|
|
4141
|
+
font-weight: 500;
|
|
4142
|
+
}
|
|
4029
4143
|
.mm-rate {
|
|
4030
4144
|
display: -webkit-inline-box;
|
|
4031
4145
|
display: -ms-inline-flexbox;
|
package/es/index.js
CHANGED
|
@@ -62,6 +62,7 @@ import Progress from './progress';
|
|
|
62
62
|
import PullRefresh from './pull-refresh';
|
|
63
63
|
import Radio from './radio';
|
|
64
64
|
import RadioGroup from './radio-group';
|
|
65
|
+
import Rank from './rank';
|
|
65
66
|
import Rate from './rate';
|
|
66
67
|
import Row from './row';
|
|
67
68
|
import SafeKeyboard from './safe-keyboard';
|
|
@@ -90,8 +91,8 @@ import Tag from './tag';
|
|
|
90
91
|
import Toast from './toast';
|
|
91
92
|
import TreeSelect from './tree-select';
|
|
92
93
|
import Uploader from './uploader';
|
|
93
|
-
var version = '1.2.1';
|
|
94
|
-
var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
|
|
94
|
+
var version = '1.2.2-beta.1';
|
|
95
|
+
var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
|
|
95
96
|
|
|
96
97
|
var install = function install(Vue) {
|
|
97
98
|
components.forEach(function (Component) {
|
|
@@ -105,7 +106,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
105
106
|
install(window.Vue);
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
export { install, version, ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, LazyLoad, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader };
|
|
109
|
+
export { install, version, ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, LazyLoad, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader };
|
|
109
110
|
export default {
|
|
110
111
|
install: install,
|
|
111
112
|
version: version
|
package/es/index.less
CHANGED
package/es/menu-jump/index.js
CHANGED
|
@@ -540,7 +540,12 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
540
540
|
return _context2.abrupt("break", 149);
|
|
541
541
|
|
|
542
542
|
case 147:
|
|
543
|
-
|
|
543
|
+
if (isDef(sybInfo[value])) {
|
|
544
|
+
paramsObj[value] = sybInfo[value];
|
|
545
|
+
} else {
|
|
546
|
+
console.error("Did not match " + value);
|
|
547
|
+
}
|
|
548
|
+
|
|
544
549
|
return _context2.abrupt("break", 149);
|
|
545
550
|
|
|
546
551
|
case 149:
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
/**
|
|
2
|
+
颜色主题
|
|
3
|
+
*/
|
|
4
|
+
.bg-red {
|
|
5
|
+
background-color: #ff3b30;
|
|
6
|
+
color: #fff;
|
|
7
|
+
}
|
|
8
|
+
.bg-orange {
|
|
9
|
+
background-color: #ff9800;
|
|
10
|
+
color: #fff;
|
|
11
|
+
}
|
|
12
|
+
.bg-yellow {
|
|
13
|
+
background-color: #f7931e;
|
|
14
|
+
color: #333;
|
|
15
|
+
}
|
|
16
|
+
.bg-olive {
|
|
17
|
+
background-color: #4caf50;
|
|
18
|
+
color: #fff;
|
|
19
|
+
}
|
|
20
|
+
.bg-green {
|
|
21
|
+
background-color: #32b305;
|
|
22
|
+
color: #fff;
|
|
23
|
+
}
|
|
24
|
+
.bg-cyan {
|
|
25
|
+
background-color: #00bcd4;
|
|
26
|
+
color: #fff;
|
|
27
|
+
}
|
|
28
|
+
.bg-blue {
|
|
29
|
+
background-color: #0095fd;
|
|
30
|
+
color: #fff;
|
|
31
|
+
}
|
|
32
|
+
.bg-purple {
|
|
33
|
+
background-color: #6739b6;
|
|
34
|
+
color: #fff;
|
|
35
|
+
}
|
|
36
|
+
.bg-mauve {
|
|
37
|
+
background-color: #9c26b0;
|
|
38
|
+
color: #fff;
|
|
39
|
+
}
|
|
40
|
+
.bg-pink {
|
|
41
|
+
background-color: #e03997;
|
|
42
|
+
color: #fff;
|
|
43
|
+
}
|
|
44
|
+
.bg-brown {
|
|
45
|
+
background-color: #795548;
|
|
46
|
+
color: #fff;
|
|
47
|
+
}
|
|
48
|
+
.bg-grey {
|
|
49
|
+
background-color: #9e9e9e;
|
|
50
|
+
color: #fff;
|
|
51
|
+
}
|
|
52
|
+
.bg-gray {
|
|
53
|
+
background-color: #c8c9cc;
|
|
54
|
+
color: #666666;
|
|
55
|
+
}
|
|
56
|
+
.bg-black {
|
|
57
|
+
background-color: #333;
|
|
58
|
+
color: #fff;
|
|
59
|
+
}
|
|
60
|
+
.bg-white {
|
|
61
|
+
background-color: #fff;
|
|
62
|
+
color: #666666;
|
|
63
|
+
}
|
|
64
|
+
.bg-red.light {
|
|
65
|
+
background-color: #fadbd9;
|
|
66
|
+
color: #ff3b30;
|
|
67
|
+
}
|
|
68
|
+
.bg-orange.light {
|
|
69
|
+
background-color: #fffbe8;
|
|
70
|
+
color: #ff9800;
|
|
71
|
+
}
|
|
72
|
+
.bg-yellow.light {
|
|
73
|
+
background-color: #fef2ce;
|
|
74
|
+
color: #f7931e;
|
|
75
|
+
}
|
|
76
|
+
.bg-olive.light {
|
|
77
|
+
background-color: #e8f4d9;
|
|
78
|
+
color: #4caf50;
|
|
79
|
+
}
|
|
80
|
+
.bg-green.light {
|
|
81
|
+
background-color: #d7f0db;
|
|
82
|
+
color: #32b305;
|
|
83
|
+
}
|
|
84
|
+
.bg-cyan.light {
|
|
85
|
+
background-color: #d2f1f0;
|
|
86
|
+
color: #00bcd4;
|
|
87
|
+
}
|
|
88
|
+
.bg-blue.light {
|
|
89
|
+
background-color: #cce6ff;
|
|
90
|
+
color: #0095fd;
|
|
91
|
+
}
|
|
92
|
+
.bg-purple.light {
|
|
93
|
+
background-color: #e1d7f0;
|
|
94
|
+
color: #6739b6;
|
|
95
|
+
}
|
|
96
|
+
.bg-mauve.light {
|
|
97
|
+
background-color: #ebd4ef;
|
|
98
|
+
color: #9c26b0;
|
|
99
|
+
}
|
|
100
|
+
.bg-pink.light {
|
|
101
|
+
background-color: #f9d7ea;
|
|
102
|
+
color: #e03997;
|
|
103
|
+
}
|
|
104
|
+
.bg-brown.light {
|
|
105
|
+
background-color: #ede1d9;
|
|
106
|
+
color: #795548;
|
|
107
|
+
}
|
|
108
|
+
.bg-grey.light {
|
|
109
|
+
background-color: #f5f5f9;
|
|
110
|
+
color: #9e9e9e;
|
|
111
|
+
}
|
|
112
|
+
.bg-gray.light {
|
|
113
|
+
background-color: #f5f5f9;
|
|
114
|
+
color: #666666;
|
|
115
|
+
}
|
|
116
|
+
.bg-gradual-red {
|
|
117
|
+
background-image: linear-gradient(45deg, #ff3b30, #f7931e);
|
|
118
|
+
color: #fff;
|
|
119
|
+
}
|
|
120
|
+
.bg-gradual-orange {
|
|
121
|
+
background-image: linear-gradient(45deg, #ff9800, #ff3b30);
|
|
122
|
+
color: #fff;
|
|
123
|
+
}
|
|
124
|
+
.bg-gradual-green {
|
|
125
|
+
background-image: linear-gradient(45deg, #32b305, #4caf50);
|
|
126
|
+
color: #fff;
|
|
127
|
+
}
|
|
128
|
+
.bg-gradual-purple {
|
|
129
|
+
background-image: linear-gradient(45deg, #6739b6, #9c26b0);
|
|
130
|
+
color: #fff;
|
|
131
|
+
}
|
|
132
|
+
.bg-gradual-pink {
|
|
133
|
+
background-image: linear-gradient(45deg, #e03997, #6739b6);
|
|
134
|
+
color: #fff;
|
|
135
|
+
}
|
|
136
|
+
.bg-gradual-blue {
|
|
137
|
+
background-image: linear-gradient(45deg, #0095fd, #00bcd4);
|
|
138
|
+
color: #fff;
|
|
139
|
+
}
|
|
140
|
+
.bg-img {
|
|
141
|
+
background-size: cover;
|
|
142
|
+
background-position: center;
|
|
143
|
+
background-repeat: no-repeat;
|
|
144
|
+
}
|
|
145
|
+
.shadow[class*="-red"] {
|
|
146
|
+
-webkit-box-shadow: 6px 6px 8px rgba(204, 69, 59, 0.2);
|
|
147
|
+
box-shadow: 6px 6px 8px rgba(204, 69, 59, 0.2);
|
|
148
|
+
}
|
|
149
|
+
.shadow[class*="-orange"] {
|
|
150
|
+
-webkit-box-shadow: 6px 6px 8px rgba(217, 109, 26, 0.2);
|
|
151
|
+
box-shadow: 6px 6px 8px rgba(217, 109, 26, 0.2);
|
|
152
|
+
}
|
|
153
|
+
.shadow[class*="-yellow"] {
|
|
154
|
+
-webkit-box-shadow: 6px 6px 8px rgba(224, 170, 7, 0.2);
|
|
155
|
+
box-shadow: 6px 6px 8px rgba(224, 170, 7, 0.2);
|
|
156
|
+
}
|
|
157
|
+
.shadow[class*="-olive"] {
|
|
158
|
+
-webkit-box-shadow: 6px 6px 8px rgba(124, 173, 55, 0.2);
|
|
159
|
+
box-shadow: 6px 6px 8px rgba(124, 173, 55, 0.2);
|
|
160
|
+
}
|
|
161
|
+
.shadow[class*="-green"] {
|
|
162
|
+
-webkit-box-shadow: 6px 6px 8px rgba(48, 156, 63, 0.2);
|
|
163
|
+
box-shadow: 6px 6px 8px rgba(48, 156, 63, 0.2);
|
|
164
|
+
}
|
|
165
|
+
.shadow[class*="-cyan"] {
|
|
166
|
+
-webkit-box-shadow: 6px 6px 8px rgba(28, 187, 180, 0.2);
|
|
167
|
+
box-shadow: 6px 6px 8px rgba(28, 187, 180, 0.2);
|
|
168
|
+
}
|
|
169
|
+
.shadow[class*="-blue"] {
|
|
170
|
+
-webkit-box-shadow: 6px 6px 8px rgba(0, 102, 204, 0.2);
|
|
171
|
+
box-shadow: 6px 6px 8px rgba(0, 102, 204, 0.2);
|
|
172
|
+
}
|
|
173
|
+
.shadow[class*="-purple"] {
|
|
174
|
+
-webkit-box-shadow: 6px 6px 8px rgba(88, 48, 156, 0.2);
|
|
175
|
+
box-shadow: 6px 6px 8px rgba(88, 48, 156, 0.2);
|
|
176
|
+
}
|
|
177
|
+
.shadow[class*="-mauve"] {
|
|
178
|
+
-webkit-box-shadow: 6px 6px 8px rgba(133, 33, 150, 0.2);
|
|
179
|
+
box-shadow: 6px 6px 8px rgba(133, 33, 150, 0.2);
|
|
180
|
+
}
|
|
181
|
+
.shadow[class*="-pink"] {
|
|
182
|
+
-webkit-box-shadow: 6px 6px 8px rgba(199, 50, 134, 0.2);
|
|
183
|
+
box-shadow: 6px 6px 8px rgba(199, 50, 134, 0.2);
|
|
184
|
+
}
|
|
185
|
+
.shadow[class*="-brown"] {
|
|
186
|
+
-webkit-box-shadow: 6px 6px 8px rgba(140, 88, 53, 0.2);
|
|
187
|
+
box-shadow: 6px 6px 8px rgba(140, 88, 53, 0.2);
|
|
188
|
+
}
|
|
189
|
+
.shadow[class*="-grey"] {
|
|
190
|
+
-webkit-box-shadow: 6px 6px 8px rgba(114, 130, 138, 0.2);
|
|
191
|
+
box-shadow: 6px 6px 8px rgba(114, 130, 138, 0.2);
|
|
192
|
+
}
|
|
193
|
+
.shadow[class*="-gray"] {
|
|
194
|
+
-webkit-box-shadow: 6px 6px 8px rgba(114, 130, 138, 0.2);
|
|
195
|
+
box-shadow: 6px 6px 8px rgba(114, 130, 138, 0.2);
|
|
196
|
+
}
|
|
197
|
+
.shadow[class*="-black"] {
|
|
198
|
+
-webkit-box-shadow: 6px 6px 8px rgba(26, 26, 26, 0.2);
|
|
199
|
+
box-shadow: 6px 6px 8px rgba(26, 26, 26, 0.2);
|
|
200
|
+
}
|
|
201
|
+
.border-red {
|
|
202
|
+
color: #ff3b30;
|
|
203
|
+
border-color: #ff3b30;
|
|
204
|
+
}
|
|
205
|
+
.border-orange {
|
|
206
|
+
color: #ff9800;
|
|
207
|
+
border-color: #ff9800;
|
|
208
|
+
}
|
|
209
|
+
.border-yellow {
|
|
210
|
+
color: #f7931e;
|
|
211
|
+
border-color: #f7931e;
|
|
212
|
+
}
|
|
213
|
+
.border-olive {
|
|
214
|
+
color: #4caf50;
|
|
215
|
+
border-color: #4caf50;
|
|
216
|
+
}
|
|
217
|
+
.border-green {
|
|
218
|
+
color: #32b305;
|
|
219
|
+
border-color: #32b305;
|
|
220
|
+
}
|
|
221
|
+
.border-cyan {
|
|
222
|
+
color: #00bcd4;
|
|
223
|
+
border-color: #00bcd4;
|
|
224
|
+
}
|
|
225
|
+
.border-blue {
|
|
226
|
+
color: #0095fd;
|
|
227
|
+
border-color: #0095fd;
|
|
228
|
+
}
|
|
229
|
+
.border-purple {
|
|
230
|
+
color: #6739b6;
|
|
231
|
+
border-color: #6739b6;
|
|
232
|
+
}
|
|
233
|
+
.border-mauve {
|
|
234
|
+
color: #9c26b0;
|
|
235
|
+
border-color: #9c26b0;
|
|
236
|
+
}
|
|
237
|
+
.border-pink {
|
|
238
|
+
color: #e03997;
|
|
239
|
+
border-color: #e03997;
|
|
240
|
+
}
|
|
241
|
+
.border-brown {
|
|
242
|
+
color: #795548;
|
|
243
|
+
border-color: #795548;
|
|
244
|
+
}
|
|
245
|
+
.border-grey {
|
|
246
|
+
color: #9e9e9e;
|
|
247
|
+
border-color: #9e9e9e;
|
|
248
|
+
}
|
|
249
|
+
.border-gray {
|
|
250
|
+
color: #666666;
|
|
251
|
+
border-color: #666666;
|
|
252
|
+
}
|
|
253
|
+
.border-black {
|
|
254
|
+
color: #333;
|
|
255
|
+
border-color: #333;
|
|
256
|
+
}
|
|
257
|
+
.border-white {
|
|
258
|
+
color: #fff;
|
|
259
|
+
border-color: #fff;
|
|
260
|
+
}
|
|
261
|
+
.mm-rank-personal {
|
|
262
|
+
position: relative;
|
|
263
|
+
margin-bottom: 20px;
|
|
264
|
+
}
|
|
265
|
+
.mm-rank-personal-content {
|
|
266
|
+
display: -webkit-box;
|
|
267
|
+
display: -ms-flexbox;
|
|
268
|
+
display: flex;
|
|
269
|
+
background-color: #e5f1ff;
|
|
270
|
+
border-radius: 4px;
|
|
271
|
+
}
|
|
272
|
+
.mm-rank-personal-content-title {
|
|
273
|
+
padding: 0 7px;
|
|
274
|
+
display: -webkit-box;
|
|
275
|
+
display: -ms-flexbox;
|
|
276
|
+
display: flex;
|
|
277
|
+
-webkit-box-pack: center;
|
|
278
|
+
-ms-flex-pack: center;
|
|
279
|
+
justify-content: center;
|
|
280
|
+
-webkit-box-align: center;
|
|
281
|
+
-ms-flex-align: center;
|
|
282
|
+
align-items: center;
|
|
283
|
+
width: 30px;
|
|
284
|
+
background-color: #7ab9ff;
|
|
285
|
+
border-radius: 4px;
|
|
286
|
+
font-size: 12px;
|
|
287
|
+
color: #fff;
|
|
288
|
+
line-height: 16px;
|
|
289
|
+
}
|
|
290
|
+
.mm-rank-personal-content-biz {
|
|
291
|
+
min-height: 16px;
|
|
292
|
+
padding: 16px 0;
|
|
293
|
+
-webkit-box-flex: 1;
|
|
294
|
+
-ms-flex: 1;
|
|
295
|
+
flex: 1;
|
|
296
|
+
display: -webkit-box;
|
|
297
|
+
display: -ms-flexbox;
|
|
298
|
+
display: flex;
|
|
299
|
+
-ms-flex-wrap: wrap;
|
|
300
|
+
flex-wrap: wrap;
|
|
301
|
+
-webkit-box-pack: justify;
|
|
302
|
+
-ms-flex-pack: justify;
|
|
303
|
+
justify-content: space-between;
|
|
304
|
+
margin-right: 16px;
|
|
305
|
+
}
|
|
306
|
+
.mm-rank-personal-content-biz div {
|
|
307
|
+
display: -webkit-box;
|
|
308
|
+
display: -ms-flexbox;
|
|
309
|
+
display: flex;
|
|
310
|
+
-webkit-box-align: center;
|
|
311
|
+
-ms-flex-align: center;
|
|
312
|
+
align-items: center;
|
|
313
|
+
margin-left: 16px;
|
|
314
|
+
}
|
|
315
|
+
.mm-rank-personal-content-biz div + div {
|
|
316
|
+
margin-top: 4px;
|
|
317
|
+
}
|
|
318
|
+
.mm-rank-personal-content-name {
|
|
319
|
+
font-size: 12px;
|
|
320
|
+
color: #666666;
|
|
321
|
+
line-height: 16px;
|
|
322
|
+
}
|
|
323
|
+
.mm-rank-personal-content-value {
|
|
324
|
+
font-size: 18px;
|
|
325
|
+
font-weight: bold;
|
|
326
|
+
color: #0095fd;
|
|
327
|
+
margin-left: 8px;
|
|
328
|
+
}
|
|
329
|
+
.mm-rank-personal-icon {
|
|
330
|
+
position: absolute;
|
|
331
|
+
bottom: -20px;
|
|
332
|
+
}
|
|
333
|
+
.mm-rank-track {
|
|
334
|
+
position: relative;
|
|
335
|
+
height: 4px;
|
|
336
|
+
background-color: #eeeeee;
|
|
337
|
+
border-radius: 4px;
|
|
338
|
+
}
|
|
339
|
+
.mm-rank-kpi {
|
|
340
|
+
position: absolute;
|
|
341
|
+
width: 1px;
|
|
342
|
+
height: 6px;
|
|
343
|
+
top: -1px;
|
|
344
|
+
}
|
|
345
|
+
.mm-rank-property {
|
|
346
|
+
margin-top: 12px;
|
|
347
|
+
display: -webkit-box;
|
|
348
|
+
display: -ms-flexbox;
|
|
349
|
+
display: flex;
|
|
350
|
+
-webkit-box-pack: justify;
|
|
351
|
+
-ms-flex-pack: justify;
|
|
352
|
+
justify-content: space-between;
|
|
353
|
+
text-align: center;
|
|
354
|
+
-ms-flex-wrap: wrap;
|
|
355
|
+
flex-wrap: wrap;
|
|
356
|
+
}
|
|
357
|
+
.mm-rank-property div {
|
|
358
|
+
margin-top: 8px;
|
|
359
|
+
}
|
|
360
|
+
.mm-rank-property-max::after {
|
|
361
|
+
content: "";
|
|
362
|
+
-webkit-box-flex: 1;
|
|
363
|
+
-ms-flex: auto;
|
|
364
|
+
flex: auto;
|
|
365
|
+
}
|
|
366
|
+
.mm-rank-property-name {
|
|
367
|
+
font-size: 12px;
|
|
368
|
+
color: #666666;
|
|
369
|
+
margin-top: 8px;
|
|
370
|
+
}
|
|
371
|
+
.mm-rank-property-value {
|
|
372
|
+
font-size: 22px;
|
|
373
|
+
font-weight: 500;
|
|
374
|
+
}
|
package/es/rank/index.js
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import create from "../utils/create";
|
|
2
|
+
import { addUnit } from "../utils/format/unit";
|
|
3
|
+
import mmIcon from "../icon";
|
|
4
|
+
export default create({
|
|
5
|
+
render: function render() {
|
|
6
|
+
var _vm = this;
|
|
7
|
+
|
|
8
|
+
var _h = _vm.$createElement;
|
|
9
|
+
|
|
10
|
+
var _c = _vm._self._c || _h;
|
|
11
|
+
|
|
12
|
+
return _c('div', {
|
|
13
|
+
class: _vm.b()
|
|
14
|
+
}, [_c('div', {
|
|
15
|
+
class: _vm.b('personal')
|
|
16
|
+
}, [_vm._t("personal", function () {
|
|
17
|
+
return [_c('div', {
|
|
18
|
+
class: _vm.b('personal-content')
|
|
19
|
+
}, [_c('div', {
|
|
20
|
+
class: _vm.b('personal-content-title')
|
|
21
|
+
}, [_vm._v("\n " + _vm._s(_vm.personalTitle || "我的情况") + "\n ")]), _c('div', {
|
|
22
|
+
class: _vm.b('personal-content-biz')
|
|
23
|
+
}, _vm._l(_vm.personalList, function (personal, index) {
|
|
24
|
+
return _c('div', {
|
|
25
|
+
key: index
|
|
26
|
+
}, [_c('span', {
|
|
27
|
+
class: _vm.b('personal-content-name')
|
|
28
|
+
}, [_vm._v("\n " + _vm._s(personal.name) + "\n ")]), _c('span', {
|
|
29
|
+
class: _vm.b('personal-content-value')
|
|
30
|
+
}, [_vm._v("\n " + _vm._s(personal.value) + "\n ")])]);
|
|
31
|
+
}), 0)])];
|
|
32
|
+
}), _c('mm-icon', {
|
|
33
|
+
class: _vm.b('personal-icon'),
|
|
34
|
+
style: _vm.iconStyle,
|
|
35
|
+
attrs: {
|
|
36
|
+
"name": "long-arrow-dotted-down",
|
|
37
|
+
"size": "20",
|
|
38
|
+
"color": _vm.iconColor
|
|
39
|
+
}
|
|
40
|
+
})], 2), _c('div', {
|
|
41
|
+
ref: "track",
|
|
42
|
+
class: _vm.b('track'),
|
|
43
|
+
style: _vm.wrapperStyle
|
|
44
|
+
}, _vm._l(_vm.optionsStyle, function (optionStyle, index) {
|
|
45
|
+
return _c('span', {
|
|
46
|
+
key: index,
|
|
47
|
+
class: _vm.b('kpi'),
|
|
48
|
+
style: optionStyle
|
|
49
|
+
});
|
|
50
|
+
}), 0), _c('div', {
|
|
51
|
+
class: _vm.b('property', {
|
|
52
|
+
max: _vm.options.length > 4
|
|
53
|
+
})
|
|
54
|
+
}, _vm._l(_vm.options, function (option, index) {
|
|
55
|
+
return _c('div', {
|
|
56
|
+
key: index
|
|
57
|
+
}, [_c('p', {
|
|
58
|
+
class: _vm.b('property-value'),
|
|
59
|
+
style: {
|
|
60
|
+
color: option.color
|
|
61
|
+
}
|
|
62
|
+
}, [_vm._v("\n " + _vm._s(option.value) + "\n ")]), _c('p', {
|
|
63
|
+
class: _vm.b('property-name')
|
|
64
|
+
}, [_vm._v(_vm._s(option.name))])]);
|
|
65
|
+
}), 0)]);
|
|
66
|
+
},
|
|
67
|
+
name: "rank",
|
|
68
|
+
components: {
|
|
69
|
+
mmIcon: mmIcon
|
|
70
|
+
},
|
|
71
|
+
props: {
|
|
72
|
+
color: String,
|
|
73
|
+
iconColor: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "#0095FD"
|
|
76
|
+
},
|
|
77
|
+
trackWidth: [Number, String],
|
|
78
|
+
kpiWidth: [Number, String],
|
|
79
|
+
options: Array,
|
|
80
|
+
total: [Number, String],
|
|
81
|
+
rank: {
|
|
82
|
+
type: [Number, String],
|
|
83
|
+
default: 0
|
|
84
|
+
},
|
|
85
|
+
personalTitle: String,
|
|
86
|
+
personalList: Array
|
|
87
|
+
},
|
|
88
|
+
data: function data() {
|
|
89
|
+
return {
|
|
90
|
+
trackClientWidth: 0
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
mounted: function mounted() {
|
|
94
|
+
var _this = this;
|
|
95
|
+
|
|
96
|
+
this.$nextTick(function () {
|
|
97
|
+
_this.trackClientWidth = _this.$refs.track.clientWidth;
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
methods: {},
|
|
101
|
+
computed: {
|
|
102
|
+
wrapperStyle: function wrapperStyle() {
|
|
103
|
+
return {
|
|
104
|
+
background: this.color,
|
|
105
|
+
height: addUnit(this.trackWidth),
|
|
106
|
+
borderRadius: addUnit(this.trackWidth)
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
trackSize: function trackSize() {
|
|
110
|
+
var total = this.total,
|
|
111
|
+
_this$options = this.options,
|
|
112
|
+
options = _this$options === void 0 ? [] : _this$options;
|
|
113
|
+
var newOptions = JSON.parse(JSON.stringify(options));
|
|
114
|
+
newOptions.sort(function (a, b) {
|
|
115
|
+
return a.value - b.value;
|
|
116
|
+
});
|
|
117
|
+
var length = newOptions.length;
|
|
118
|
+
|
|
119
|
+
if (total || length === 0) {
|
|
120
|
+
return total;
|
|
121
|
+
} else {
|
|
122
|
+
return newOptions.pop().value;
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
optionsStyle: function optionsStyle() {
|
|
126
|
+
var optionsStyle = [];
|
|
127
|
+
var options = this.options,
|
|
128
|
+
trackClientWidth = this.trackClientWidth,
|
|
129
|
+
trackSize = this.trackSize,
|
|
130
|
+
trackWidth = this.trackWidth,
|
|
131
|
+
kpiWidth = this.kpiWidth;
|
|
132
|
+
options.forEach(function (option) {
|
|
133
|
+
optionsStyle.push({
|
|
134
|
+
background: option.color,
|
|
135
|
+
left: trackClientWidth * option.value / trackSize + "px",
|
|
136
|
+
width: addUnit(kpiWidth),
|
|
137
|
+
height: addUnit(parseInt(trackWidth) + 2)
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
return optionsStyle;
|
|
141
|
+
},
|
|
142
|
+
iconStyle: function iconStyle() {
|
|
143
|
+
var trackClientWidth = this.trackClientWidth,
|
|
144
|
+
trackSize = this.trackSize,
|
|
145
|
+
rank = this.rank;
|
|
146
|
+
return {
|
|
147
|
+
left: trackClientWidth * rank / trackSize - 10 + "px"
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|