openatc-components 0.0.1 → 0.0.2

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.
Files changed (154) hide show
  1. package/.babelrc +18 -18
  2. package/.editorconfig +9 -9
  3. package/.eslintignore +5 -5
  4. package/.eslintrc.js +29 -29
  5. package/.postcssrc.js +10 -10
  6. package/README.md +30 -30
  7. package/build/build.js +41 -41
  8. package/build/check-versions.js +54 -54
  9. package/build/package.config.js +58 -58
  10. package/build/package.dev.config.js +25 -25
  11. package/build/package.prod.config.js +60 -60
  12. package/build/utils.js +101 -101
  13. package/build/vue-loader.conf.js +22 -22
  14. package/build/webpack.base.conf.js +109 -109
  15. package/build/webpack.dev.conf.js +95 -95
  16. package/build/webpack.prod.conf.js +149 -149
  17. package/config/dev.env.js +7 -7
  18. package/config/index.js +76 -76
  19. package/config/prod.env.js +4 -4
  20. package/config/test.env.js +7 -7
  21. package/index.html +12 -12
  22. package/package/kisscomps/components/CircleMenu/KissCircleMenu.vue +398 -398
  23. package/package/kisscomps/components/CircleMenu/index.js +2 -2
  24. package/package/kisscomps/components/DashBoard/MakeGradientColor.js +84 -84
  25. package/package/kisscomps/components/DashBoard/dashboard.js +471 -471
  26. package/package/kisscomps/components/DashBoard/dashboard.vue +57 -57
  27. package/package/kisscomps/components/DashBoard/index.js +2 -2
  28. package/package/kisscomps/components/Horizontal/KissHorizontal.vue +146 -146
  29. package/package/kisscomps/components/Horizontal/index.js +2 -2
  30. package/package/kisscomps/components/HorizontalChildren/KissHorizontalChildren.vue +196 -196
  31. package/package/kisscomps/components/HorizontalChildren/index.js +2 -2
  32. package/package/kisscomps/components/KissCircleMenu/CircleMenu.vue +113 -113
  33. package/package/kisscomps/components/KissCircleMenu/index.js +2 -2
  34. package/package/kisscomps/components/KissCircleMenu/style/index.less +1 -1
  35. package/package/kisscomps/components/KissCircleMenu/style/main/core.less +161 -161
  36. package/package/kisscomps/components/KissCircleMenu/style/main/other.less +94 -94
  37. package/package/kisscomps/components/KissCircleMenu/style/mixin/mixin.less +36 -36
  38. package/package/kisscomps/components/KissCircleMenu/style/var/var.less +21 -21
  39. package/package/kisscomps/components/KissCircleMenu/utils/colorRE.js +5 -5
  40. package/package/kisscomps/components/KissMessageBox/KissMessageBox.vue +108 -108
  41. package/package/kisscomps/components/KissMessageBox/index.js +2 -2
  42. package/package/kisscomps/components/KissSearchInput/index.js +2 -2
  43. package/package/kisscomps/components/KissSearchInput/kisssearchinput.vue +77 -77
  44. package/package/kisscomps/components/KissSimulationProgress/KissSimulationProgress.vue +294 -294
  45. package/package/kisscomps/components/KissSimulationProgress/index.js +2 -2
  46. package/package/kisscomps/components/StatusBar/StatusBar.vue +222 -222
  47. package/package/kisscomps/components/StatusBar/index.js +2 -2
  48. package/package/kisscomps/components/TragResize/index.js +2 -2
  49. package/package/kisscomps/components/TragResize/kissdragresize.vue +536 -536
  50. package/package/kisscomps/components/TragResize/util/dom.js +23 -23
  51. package/package/kisscomps/components/TragResize/util/fns.js +3 -3
  52. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.1.vue +320 -320
  53. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +345 -345
  54. package/package/kisscomps/components/XRDDirSelector/index.js +2 -2
  55. package/package/kisscomps/components/button/index.js +2 -2
  56. package/package/kisscomps/components/button/kissbutton.vue +168 -168
  57. package/package/kisscomps/components/compass3D/compass.vue +180 -180
  58. package/package/kisscomps/components/compass3D/index.js +2 -2
  59. package/package/kisscomps/components/header/index.js +2 -2
  60. package/package/kisscomps/components/header/kissHead.vue +83 -83
  61. package/package/kisscomps/components/horizontalMenu/index.js +2 -2
  62. package/package/kisscomps/components/horizontalMenu/kissHorizontalMenu.vue +254 -254
  63. package/package/kisscomps/components/input/index.js +2 -2
  64. package/package/kisscomps/components/input/kissinput.vue +57 -57
  65. package/package/kisscomps/components/menu/index.js +2 -2
  66. package/package/kisscomps/components/menu/kissmenu.vue +324 -324
  67. package/package/kisscomps/components/mutipletips/Tdrag.js +585 -585
  68. package/package/kisscomps/components/mutipletips/index.js +2 -2
  69. package/package/kisscomps/components/mutipletips/kissmutipletips.vue +192 -192
  70. package/package/kisscomps/components/panel/index.js +2 -2
  71. package/package/kisscomps/components/panel/kissPanel.vue +151 -151
  72. package/package/kisscomps/components/select/chosen.jquery.min.js +3 -3
  73. package/package/kisscomps/components/select/index.js +2 -2
  74. package/package/kisscomps/components/select/kissselect.vue +527 -527
  75. package/package/kisscomps/components/tablebutton/index.js +2 -2
  76. package/package/kisscomps/components/tablebutton/tablebutton.vue +97 -97
  77. package/package/kisscomps/components/timectrl/KissTimeCtrl.vue +67 -67
  78. package/package/kisscomps/components/timectrl/index.js +2 -2
  79. package/package/kisscomps/components/timectrl/timectrl.css +851 -851
  80. package/package/kisscomps/components/tip/Tdrag.js +585 -585
  81. package/package/kisscomps/components/tip/index.js +2 -2
  82. package/package/kisscomps/components/tip/kisstips.1.vue +154 -154
  83. package/package/kisscomps/components/tip/kisstips.vue +154 -154
  84. package/package/kisscomps/components/tip/kisstips.vue.bak +211 -211
  85. package/package/kisscomps/index.js +71 -71
  86. package/package/kissui.js +203 -203
  87. package/package/kissui.min.js +203 -203
  88. package/package.json +1 -1
  89. package/src/App.vue +25 -25
  90. package/src/kisscomps/components/CircleMenu/KissCircleMenu.vue +398 -398
  91. package/src/kisscomps/components/CircleMenu/index.js +2 -2
  92. package/src/kisscomps/components/DashBoard/MakeGradientColor.js +84 -84
  93. package/src/kisscomps/components/DashBoard/dashboard.js +471 -471
  94. package/src/kisscomps/components/DashBoard/dashboard.vue +57 -57
  95. package/src/kisscomps/components/DashBoard/index.js +2 -2
  96. package/src/kisscomps/components/KissCircleMenu/CircleMenu.vue +113 -113
  97. package/src/kisscomps/components/KissCircleMenu/index.js +2 -2
  98. package/src/kisscomps/components/KissCircleMenu/style/index.less +1 -1
  99. package/src/kisscomps/components/KissCircleMenu/style/main/core.less +161 -161
  100. package/src/kisscomps/components/KissCircleMenu/style/main/other.less +94 -94
  101. package/src/kisscomps/components/KissCircleMenu/style/mixin/mixin.less +36 -36
  102. package/src/kisscomps/components/KissCircleMenu/style/var/var.less +21 -21
  103. package/src/kisscomps/components/KissCircleMenu/utils/colorRE.js +5 -5
  104. package/src/kisscomps/components/KissSearchInput/index.js +2 -2
  105. package/src/kisscomps/components/KissSearchInput/kisssearchinput.vue +77 -77
  106. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +193 -0
  107. package/src/kisscomps/components/SchemeConfig/index.js +2 -0
  108. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +214 -0
  109. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +176 -0
  110. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +294 -0
  111. package/src/kisscomps/components/SchemeConfig/schemeconfig.vue +711 -0
  112. package/src/kisscomps/components/StatusBar/StatusBar.vue +222 -222
  113. package/src/kisscomps/components/StatusBar/index.js +2 -2
  114. package/src/kisscomps/components/TragResize/index.js +2 -2
  115. package/src/kisscomps/components/TragResize/kissdragresize.vue +536 -536
  116. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.1.vue +320 -320
  117. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +345 -345
  118. package/src/kisscomps/components/XRDDirSelector/index.js +2 -2
  119. package/src/kisscomps/components/button/index.js +2 -2
  120. package/src/kisscomps/components/button/kissbutton.vue +168 -168
  121. package/src/kisscomps/components/compass3D/compass.vue +180 -180
  122. package/src/kisscomps/components/compass3D/index.js +2 -2
  123. package/src/kisscomps/components/horizontalMenu/index.js +2 -2
  124. package/src/kisscomps/components/horizontalMenu/kissHorizontalMenu.vue +254 -254
  125. package/src/kisscomps/components/input/index.js +2 -2
  126. package/src/kisscomps/components/input/kissinput.vue +57 -57
  127. package/src/kisscomps/components/menu/index.js +2 -2
  128. package/src/kisscomps/components/menu/kissmenu.vue +324 -324
  129. package/src/kisscomps/components/mutipletips/Tdrag.js +585 -585
  130. package/src/kisscomps/components/mutipletips/index.js +2 -2
  131. package/src/kisscomps/components/mutipletips/kissmutipletips.vue +192 -192
  132. package/src/kisscomps/components/select/chosen.jquery.min.js +3 -3
  133. package/src/kisscomps/components/select/index.js +2 -2
  134. package/src/kisscomps/components/select/kissselect.vue +527 -527
  135. package/src/kisscomps/components/timectrl/KissTimeCtrl.vue +67 -67
  136. package/src/kisscomps/components/timectrl/index.js +2 -2
  137. package/src/kisscomps/components/tip/Tdrag.js +585 -585
  138. package/src/kisscomps/components/tip/index.js +2 -2
  139. package/src/kisscomps/components/tip/kisstips.1.vue +154 -154
  140. package/src/kisscomps/components/tip/kisstips.vue +154 -154
  141. package/src/kisscomps/components/tip/kisstips.vue.bak +211 -211
  142. package/src/kisscomps/index.js +73 -71
  143. package/src/main.js +23 -23
  144. package/src/router/index.js +15 -15
  145. package/src/views/home.1.vue +479 -479
  146. package/src/views/home.vue +196 -196
  147. package/test/e2e/custom-assertions/elementCount.js +27 -27
  148. package/test/e2e/nightwatch.conf.js +46 -46
  149. package/test/e2e/runner.js +48 -48
  150. package/test/e2e/specs/test.js +19 -19
  151. package/test/unit/.eslintrc +7 -7
  152. package/test/unit/jest.conf.js +30 -30
  153. package/test/unit/setup.js +3 -3
  154. package/test/unit/specs/HelloWorld.spec.js +11 -11
@@ -1,527 +1,527 @@
1
- <template>
2
- <select :data-placeholder="placeHolder"
3
- name="country"
4
- class="chosen-select"
5
- style="width:253px">
6
- <option v-for="item of list" :value="item" :key="item">{{item}}</option>
7
- </select>
8
- </template>
9
- <script>
10
- import $ from 'jquery'
11
- // import chosen from 'chosen-js'
12
- import './chosen.jquery.min.js'
13
- export default {
14
- name: 'kiss-select',
15
- props: {
16
- list: {
17
- type: Array,
18
- default () { return [] }
19
- },
20
- placeHolder: {
21
- type: String,
22
- default: '请输入选项'
23
- }
24
- },
25
- watch: {
26
- selValue: function (val, oldvalue) {
27
- console.log(val)
28
- this.$emit('valchange', val)
29
- }
30
- },
31
- data () {
32
- return {
33
- 'selValue': ''
34
- }
35
- },
36
- mounted () {
37
- /* chosen 下拉框样式 */
38
- $('.chosen-select').chosen({
39
- isable_search: false
40
- })
41
- $('.chosen-select').chosen().change(() => {
42
- this.selValue = $('.chosen-select').val()
43
- })
44
- }
45
- }
46
-
47
- </script>
48
- <style>
49
- /* @import './chosen.css' */
50
- /* @group Base */
51
- .chosen-container {
52
- position: relative;
53
- display: inline-block;
54
- vertical-align: middle;
55
- font-size: 14px;
56
- width: 253px;
57
- height:52px;
58
- *display: inline;
59
- -webkit-user-select: none;
60
- -moz-user-select: none;
61
- user-select: none;
62
- }
63
-
64
- /*为元素设定的宽度和高度决定了元素的边框盒*/
65
- .chosen-container * {
66
- -webkit-box-sizing: border-box;
67
- -moz-box-sizing: border-box;
68
- box-sizing: border-box;
69
- text-align:left;
70
- }
71
-
72
- .chosen-container .chosen-drop {
73
- position: absolute;
74
- left: -9999px;
75
- z-index: 1010;
76
- margin-left: 12px;
77
- width: 90%;
78
- /*下拉状态下的边框*/
79
- border: 1px solid #00BFFF;
80
- border-radius: 5px;
81
- background: #232f2f;
82
- box-shadow: 0px 0px 4px #40d8ff;
83
- /*这里实现了一个侧面的动画效果*/
84
- /* transform:translate3d(0, 0px,0);
85
- transition:all 0.3s; */
86
- /*上下浮动的一个动画测试*/
87
- animation: heart 1.3s ease-in-out 2.7s infinite alternate;
88
- }
89
-
90
- .chosen-container.chosen-with-drop .chosen-drop {
91
- left: 0;
92
- }
93
- .chosen-container a {
94
- cursor: pointer;
95
- }
96
-
97
- /* @end */
98
- /* @group Single Chosen */
99
- .chosen-container-single .chosen-single {
100
- position: relative;
101
- display: block;
102
- overflow: hidden;
103
- padding: 0 0 0 8px;
104
- height: 62px;
105
- border: none;
106
- outline: none;
107
- /*暂定其为选择框的背景图片*/
108
- background: url('../image/KissSelect/selectbg.png');
109
- /* 这里是被选择的文字的颜色 */
110
- color: #00BFFF;
111
- text-decoration: none;
112
- white-space: nowrap;
113
- line-height: 29px;
114
- }
115
- .chosen-container-single .chosen-default {
116
- color: #999;
117
- }
118
- .chosen-container-single .chosen-single span {
119
- display: block;
120
- overflow: hidden;
121
- margin-top: 15px;
122
- margin-left: 10px;
123
- margin-right: 53px;
124
- text-overflow: ellipsis;
125
- white-space: nowrap;
126
- color: #42daff;
127
- font-size: 14px;
128
- }
129
-
130
- .chosen-container-single .chosen-single-with-deselect span {
131
- margin-right: 38px;
132
- }
133
-
134
- .chosen-container-single .chosen-single abbr {
135
- position: absolute;
136
- top: 6px;
137
- right: 26px;
138
- display: block;
139
- width: 12px;
140
- height: 12px;
141
- font-size: 1px;
142
- }
143
- /*这个是下拉框的上下图标的样式*/
144
- .chosen-container-single .chosen-single div {
145
- position: absolute;
146
- top: 7px;
147
- right: 23px;
148
- /* border-left:1px solid #D1D1D1; */
149
- display: block;
150
- width: 30px;
151
- height: 100%;
152
- }
153
-
154
- .chosen-container-single .chosen-single div b {
155
- display: block;
156
- width: 100%;
157
- height: 100%;
158
- }
159
- .chosen-container-single .chosen-search {
160
- position: relative;
161
- z-index: 1010;
162
- margin: 0;
163
- padding: 3px 4px;
164
- white-space: nowrap;
165
- }
166
- /************************这个是搜索框************************/
167
- .chosen-container-single .chosen-search input[type="text"] {
168
- margin: 1px 0;
169
- padding: 4px 20px 4px 5px;
170
- /*修改 100*/
171
- width: 100%;
172
- height: auto;
173
- outline: 0;
174
- border: none;
175
- font-size: 1em;
176
- font-family: sans-serif;
177
- background: url() no-repeat 100% -20px;
178
- line-height: normal;
179
- border-radius: 4px;
180
- color: #00BFFF;
181
- }
182
-
183
- .chosen-search-icon{
184
- display: block;
185
- float: left;
186
- margin-top: 5px;
187
- margin-left: 5px;
188
- width:20px;
189
- height: 20px;
190
- background-image: url('../image/KissSelect/search.png');
191
- padding: none;
192
- }
193
-
194
- .chosen-container-single .chosen-drop {
195
- margin-top: -1px;
196
- border-radius: 0 0 4px 4px;
197
- background-clip: padding-box;
198
- }
199
-
200
- .chosen-container-single.chosen-container-single-nosearch .chosen-search {
201
- position: absolute;
202
- left: -9999px;
203
- }
204
-
205
- /* @end */
206
- /* @group Results */
207
- .chosen-container .chosen-results {
208
- /* color: #787878; */
209
- position: relative;
210
- overflow-x: hidden;
211
- overflow-y: auto;
212
- margin: 0 4px 4px 0;
213
- padding: 0 0 0 4px;
214
- max-height: 240px;
215
- -webkit-overflow-scrolling: touch;
216
- }
217
- .chosen-container .chosen-results li {
218
- display: none;
219
- margin: 0;
220
- padding: 5px 6px;
221
- list-style: none;
222
- line-height: 20px;
223
- word-wrap: break-word;
224
- -webkit-touch-callout: none;
225
- color: #fffff3;
226
- }
227
- .chosen-container .chosen-results li.active-result {
228
- display: list-item;
229
- cursor: pointer;
230
- }
231
- .chosen-container .chosen-results li.disabled-result {
232
- display: list-item;
233
- color: #ccc;
234
- cursor: default;
235
- }
236
- /*当一个项目选中的时候高亮效果*/
237
- .chosen-container .chosen-results li.highlighted {
238
- background-color: #0088AB;
239
- background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #0088AB), color-stop(90%, #00718e));
240
- background-image: -webkit-linear-gradient(#0088AB 20%, #00718e 90%);
241
- background-image: -moz-linear-gradient(#0088AB 20%, #00718e 90%);
242
- background-image: -o-linear-gradient(#0088AB 20%, #00718e 90%);
243
- background-image: linear-gradient(#0088AB 20%, #00718e 90%);
244
- color: rgb(10, 230, 211);
245
- }
246
- .chosen-container .chosen-results li.no-results {
247
- color: #777;
248
- display: list-item;
249
- background: #f4f4f4;
250
- }
251
- .chosen-container .chosen-results li.group-result {
252
- display: list-item;
253
- font-weight: bold;
254
- cursor: default;
255
- }
256
- .chosen-container .chosen-results li.group-option {
257
- padding-left: 15px;
258
- }
259
- .chosen-container .chosen-results li em {
260
- font-style: normal;
261
- text-decoration: underline;
262
- }
263
-
264
- /* @end */
265
- /* @group Multi Chosen */
266
- .chosen-container-multi .chosen-choices {
267
- position: relative;
268
- overflow: hidden;
269
- margin: 0;
270
- padding: 0 5px;
271
- width: 100%;
272
- height: auto !important;
273
- height: 1%;
274
- /* border: 1px solid #D1D1D1; */
275
- background-color: #fff;
276
- background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
277
- background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
278
- background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
279
- background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
280
- background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
281
- cursor: text;
282
- }
283
- .chosen-container-multi .chosen-choices li {
284
- float: left;
285
- list-style: none;
286
- }
287
- .chosen-container-multi .chosen-choices li.search-field {
288
- margin: 0;
289
- padding: 0;
290
- white-space: nowrap;
291
- }
292
- .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
293
- margin: 1px 0;
294
- padding: 0;
295
- height: 25px;
296
- outline: 0;
297
- border: 0 !important;
298
- background: transparent !important;
299
- box-shadow: none;
300
- /* color: #999 !important; */
301
- color: #055272 !important;
302
- font-size: 100%;
303
- font-family: sans-serif;
304
- line-height: normal;
305
- border-radius: 0;
306
- }
307
- .chosen-container-multi .chosen-choices li.search-choice {
308
- position: relative;
309
- margin: 3px 5px 3px 0;
310
- padding: 3px 20px 3px 5px;
311
- border: 1px solid #D1D1D1;
312
- max-width: 100%;
313
- border-radius: 3px;
314
- background-color: #eeeeee;
315
- background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
316
- background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
317
- background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
318
- background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
319
- background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
320
- background-size: 100% 19px;
321
- background-repeat: repeat-x;
322
- background-clip: padding-box;
323
- box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
324
- /* color: #333; */
325
- line-height: 13px;
326
- cursor: default;
327
- }
328
- .chosen-container-multi .chosen-choices li.search-choice span {
329
- word-wrap: break-word;
330
- }
331
- .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
332
- position: absolute;
333
- top: 4px;
334
- right: 3px;
335
- display: block;
336
- width: 12px;
337
- height: 12px;
338
- font-size: 1px;
339
- }
340
- .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
341
- background-position: -42px -10px;
342
- }
343
- .chosen-container-multi .chosen-choices li.search-choice-disabled {
344
- padding-right: 5px;
345
- border: 1px solid #ccc;
346
- background-color: #e4e4e4;
347
- background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
348
- background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
349
- background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
350
- background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
351
- background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
352
- color: #666;
353
- }
354
- .chosen-container-multi .chosen-choices li.search-choice-focus {
355
- background: #d4d4d4;
356
- }
357
- .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
358
- background-position: -42px -10px;
359
- }
360
- .chosen-container-multi .chosen-results {
361
- margin: 0;
362
- padding: 0;
363
- }
364
- .chosen-container-multi .chosen-drop .result-selected {
365
- display: list-item;
366
- /* color: #ccc; */
367
- color: #055272;
368
- cursor: default;
369
- }
370
- /* @end */
371
- .chosen-container-active.chosen-with-drop .chosen-single {
372
- /*这里是当下拉框出现的时候的背景样式*/
373
- background: url('../image/KissSelect/selectbg.png');
374
- box-shadow: 0 0px 0 #fff inset;
375
- }
376
- /******************** @brief 这里是选中前后箭头的效果 **************************/
377
- /* 选中前 */
378
- .chosen-single div {
379
- width: 25px;
380
- height: 25px;
381
- background: url("../image/KissSelect/selectdown.png");
382
- /* background: transparent; */
383
- }
384
- .chosen-container-active.chosen-with-drop .chosen-single div {
385
- width: 30px;
386
- height: 30px;
387
- background: url("../image/KissSelect/selectup.png");
388
- /* background: transparent; */
389
- }
390
-
391
- .chosen-single div:hover {
392
- background: url("../image/KissSelect/selectdownhover.png");
393
- }
394
- .chosen-container-active.chosen-with-drop .chosen-single div:hover {
395
- background: url("../image/KissSelect/selectuphover.png");
396
- }
397
- /*******************************************************************************/
398
- .chosen-container-active .chosen-choices {
399
- border: 1px solid #5897fb;
400
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
401
- }
402
- .chosen-container-active .chosen-choices li.search-field input[type="text"] {
403
- color: #222 !important;
404
- }
405
- /* @end */
406
- /* @group Disabled Support */
407
- .chosen-disabled, .chosen-disabled *{
408
- opacity: 0.5 !important;
409
- filter: alpha(opacity=50) !important;
410
- cursor: default;
411
- }
412
-
413
- .chosen-disabled .chosen-single {
414
- cursor: default;
415
- outline: none;
416
- }
417
- .chosen-disabled .chosen-choices .search-choice .search-choice-close {
418
- cursor: default;
419
- }
420
-
421
- /* @end */
422
- /* @group Right to Left */
423
- .chosen-rtl {
424
- text-align: right;
425
- }
426
- .chosen-rtl .chosen-single {
427
- overflow: visible;
428
- padding: 0 8px 0 0;
429
- }
430
- .chosen-rtl .chosen-single span {
431
- margin-right: 0;
432
- margin-left: 26px;
433
- direction: rtl;
434
- }
435
- .chosen-rtl .chosen-single-with-deselect span {
436
- margin-top: 10px;
437
- margin-left: 38px;
438
- }
439
- .chosen-rtl .chosen-single div {
440
- right: auto;
441
- left: 3px;
442
- }
443
- .chosen-rtl .chosen-single abbr {
444
- right: auto;
445
- left: 26px;
446
- }
447
- .chosen-rtl .chosen-choices li {
448
- float: right;
449
- }
450
- .chosen-rtl .chosen-choices li.search-field input[type="text"] {
451
- direction: rtl;
452
- }
453
- .chosen-rtl .chosen-choices li.search-choice {
454
- margin: 3px 5px 3px 0;
455
- padding: 3px 5px 3px 19px;
456
- }
457
- .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
458
- right: auto;
459
- left: 4px;
460
- }
461
- .chosen-rtl.chosen-container-single-nosearch .chosen-search,
462
- .chosen-rtl .chosen-drop {
463
- left: 9999px;
464
- }
465
- .chosen-rtl.chosen-container-single .chosen-results {
466
- margin: 0 0 4px 4px;
467
- padding: 0 4px 0 0;
468
- }
469
- .chosen-rtl .chosen-results li.group-option {
470
- padding-right: 15px;
471
- padding-left: 0;
472
- }
473
- .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
474
- border-right: none;
475
- }
476
- .chosen-rtl .chosen-search input[type="text"] {
477
- padding: 4px 5px 4px 20px;
478
- direction: rtl;
479
- }
480
- .chosen-rtl.chosen-container-single .chosen-single div b {
481
- background-position: 6px 2px;
482
- }
483
- .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
484
- background-position: -12px 2px;
485
- }
486
-
487
- /* @end */
488
- /* @group Retina compatibility */
489
- @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
490
- .chosen-rtl .chosen-search input[type="text"],
491
- .chosen-container-single .chosen-single abbr,
492
- .chosen-container-single .chosen-single div b,
493
- .chosen-container-single .chosen-search input[type="text"],
494
- .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
495
- .chosen-container .chosen-results-scroll-down span,
496
- .chosen-container .chosen-results-scroll-up span {
497
- /* background-image: url('chosen-sprite@2x.png') !important; */
498
- background-size: 52px 37px !important;
499
- background-repeat: no-repeat !important;
500
- }
501
- }
502
-
503
- /*动画测试*/
504
- /* @-webkit-keyframes slide-down{
505
- 0%{transform: scale(1,0);}
506
- 25%{transform: scale(1,1.2);}
507
- 50%{transform: scale(1,0.85);}
508
- 75%{transform: scale(1,1.05);}
509
- 100%{transform: scale(1,1);}
510
- } */
511
-
512
- @keyframes heart{
513
- from{transform:translate(0,0)}
514
- to{transform:translate(0,6px)}
515
- }
516
-
517
- /* @end */
518
- /* 滚动条的样式 */
519
- ::-webkit-scrollbar{width:5px;}
520
- ::-webkit-scrollbar-button:vertical{display:none}
521
- ::-webkit-scrollbar-track:vertical{background-color:black;}
522
- ::-webkit-scrollbar-track-piece{background:#00738f}
523
- ::-webkit-scrollbar-thumb:vertical{background-color:#40d8ff ;border-radius:5px} /*拉条的样式*/
524
- ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3B3B3B} /*鼠标覆盖上去拉的时候的样式*/
525
- ::-webkit-scrollbar-corner:vertical{background-color:#535353} /*即两个滚动条的交汇处*/
526
- ::-webkit-scrollbar-resizer:vertical{background-color:#FF6E00} /*两个滚动条的交汇处上用于通过拖动调整元素大小的小控件*/
527
- </style>
1
+ <template>
2
+ <select :data-placeholder="placeHolder"
3
+ name="country"
4
+ class="chosen-select"
5
+ style="width:253px">
6
+ <option v-for="item of list" :value="item" :key="item">{{item}}</option>
7
+ </select>
8
+ </template>
9
+ <script>
10
+ import $ from 'jquery'
11
+ // import chosen from 'chosen-js'
12
+ import './chosen.jquery.min.js'
13
+ export default {
14
+ name: 'kiss-select',
15
+ props: {
16
+ list: {
17
+ type: Array,
18
+ default () { return [] }
19
+ },
20
+ placeHolder: {
21
+ type: String,
22
+ default: '请输入选项'
23
+ }
24
+ },
25
+ watch: {
26
+ selValue: function (val, oldvalue) {
27
+ console.log(val)
28
+ this.$emit('valchange', val)
29
+ }
30
+ },
31
+ data () {
32
+ return {
33
+ 'selValue': ''
34
+ }
35
+ },
36
+ mounted () {
37
+ /* chosen 下拉框样式 */
38
+ $('.chosen-select').chosen({
39
+ isable_search: false
40
+ })
41
+ $('.chosen-select').chosen().change(() => {
42
+ this.selValue = $('.chosen-select').val()
43
+ })
44
+ }
45
+ }
46
+
47
+ </script>
48
+ <style>
49
+ /* @import './chosen.css' */
50
+ /* @group Base */
51
+ .chosen-container {
52
+ position: relative;
53
+ display: inline-block;
54
+ vertical-align: middle;
55
+ font-size: 14px;
56
+ width: 253px;
57
+ height:52px;
58
+ *display: inline;
59
+ -webkit-user-select: none;
60
+ -moz-user-select: none;
61
+ user-select: none;
62
+ }
63
+
64
+ /*为元素设定的宽度和高度决定了元素的边框盒*/
65
+ .chosen-container * {
66
+ -webkit-box-sizing: border-box;
67
+ -moz-box-sizing: border-box;
68
+ box-sizing: border-box;
69
+ text-align:left;
70
+ }
71
+
72
+ .chosen-container .chosen-drop {
73
+ position: absolute;
74
+ left: -9999px;
75
+ z-index: 1010;
76
+ margin-left: 12px;
77
+ width: 90%;
78
+ /*下拉状态下的边框*/
79
+ border: 1px solid #00BFFF;
80
+ border-radius: 5px;
81
+ background: #232f2f;
82
+ box-shadow: 0px 0px 4px #40d8ff;
83
+ /*这里实现了一个侧面的动画效果*/
84
+ /* transform:translate3d(0, 0px,0);
85
+ transition:all 0.3s; */
86
+ /*上下浮动的一个动画测试*/
87
+ animation: heart 1.3s ease-in-out 2.7s infinite alternate;
88
+ }
89
+
90
+ .chosen-container.chosen-with-drop .chosen-drop {
91
+ left: 0;
92
+ }
93
+ .chosen-container a {
94
+ cursor: pointer;
95
+ }
96
+
97
+ /* @end */
98
+ /* @group Single Chosen */
99
+ .chosen-container-single .chosen-single {
100
+ position: relative;
101
+ display: block;
102
+ overflow: hidden;
103
+ padding: 0 0 0 8px;
104
+ height: 62px;
105
+ border: none;
106
+ outline: none;
107
+ /*暂定其为选择框的背景图片*/
108
+ background: url('../image/KissSelect/selectbg.png');
109
+ /* 这里是被选择的文字的颜色 */
110
+ color: #00BFFF;
111
+ text-decoration: none;
112
+ white-space: nowrap;
113
+ line-height: 29px;
114
+ }
115
+ .chosen-container-single .chosen-default {
116
+ color: #999;
117
+ }
118
+ .chosen-container-single .chosen-single span {
119
+ display: block;
120
+ overflow: hidden;
121
+ margin-top: 15px;
122
+ margin-left: 10px;
123
+ margin-right: 53px;
124
+ text-overflow: ellipsis;
125
+ white-space: nowrap;
126
+ color: #42daff;
127
+ font-size: 14px;
128
+ }
129
+
130
+ .chosen-container-single .chosen-single-with-deselect span {
131
+ margin-right: 38px;
132
+ }
133
+
134
+ .chosen-container-single .chosen-single abbr {
135
+ position: absolute;
136
+ top: 6px;
137
+ right: 26px;
138
+ display: block;
139
+ width: 12px;
140
+ height: 12px;
141
+ font-size: 1px;
142
+ }
143
+ /*这个是下拉框的上下图标的样式*/
144
+ .chosen-container-single .chosen-single div {
145
+ position: absolute;
146
+ top: 7px;
147
+ right: 23px;
148
+ /* border-left:1px solid #D1D1D1; */
149
+ display: block;
150
+ width: 30px;
151
+ height: 100%;
152
+ }
153
+
154
+ .chosen-container-single .chosen-single div b {
155
+ display: block;
156
+ width: 100%;
157
+ height: 100%;
158
+ }
159
+ .chosen-container-single .chosen-search {
160
+ position: relative;
161
+ z-index: 1010;
162
+ margin: 0;
163
+ padding: 3px 4px;
164
+ white-space: nowrap;
165
+ }
166
+ /************************这个是搜索框************************/
167
+ .chosen-container-single .chosen-search input[type="text"] {
168
+ margin: 1px 0;
169
+ padding: 4px 20px 4px 5px;
170
+ /*修改 100*/
171
+ width: 100%;
172
+ height: auto;
173
+ outline: 0;
174
+ border: none;
175
+ font-size: 1em;
176
+ font-family: sans-serif;
177
+ background: url() no-repeat 100% -20px;
178
+ line-height: normal;
179
+ border-radius: 4px;
180
+ color: #00BFFF;
181
+ }
182
+
183
+ .chosen-search-icon{
184
+ display: block;
185
+ float: left;
186
+ margin-top: 5px;
187
+ margin-left: 5px;
188
+ width:20px;
189
+ height: 20px;
190
+ background-image: url('../image/KissSelect/search.png');
191
+ padding: none;
192
+ }
193
+
194
+ .chosen-container-single .chosen-drop {
195
+ margin-top: -1px;
196
+ border-radius: 0 0 4px 4px;
197
+ background-clip: padding-box;
198
+ }
199
+
200
+ .chosen-container-single.chosen-container-single-nosearch .chosen-search {
201
+ position: absolute;
202
+ left: -9999px;
203
+ }
204
+
205
+ /* @end */
206
+ /* @group Results */
207
+ .chosen-container .chosen-results {
208
+ /* color: #787878; */
209
+ position: relative;
210
+ overflow-x: hidden;
211
+ overflow-y: auto;
212
+ margin: 0 4px 4px 0;
213
+ padding: 0 0 0 4px;
214
+ max-height: 240px;
215
+ -webkit-overflow-scrolling: touch;
216
+ }
217
+ .chosen-container .chosen-results li {
218
+ display: none;
219
+ margin: 0;
220
+ padding: 5px 6px;
221
+ list-style: none;
222
+ line-height: 20px;
223
+ word-wrap: break-word;
224
+ -webkit-touch-callout: none;
225
+ color: #fffff3;
226
+ }
227
+ .chosen-container .chosen-results li.active-result {
228
+ display: list-item;
229
+ cursor: pointer;
230
+ }
231
+ .chosen-container .chosen-results li.disabled-result {
232
+ display: list-item;
233
+ color: #ccc;
234
+ cursor: default;
235
+ }
236
+ /*当一个项目选中的时候高亮效果*/
237
+ .chosen-container .chosen-results li.highlighted {
238
+ background-color: #0088AB;
239
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #0088AB), color-stop(90%, #00718e));
240
+ background-image: -webkit-linear-gradient(#0088AB 20%, #00718e 90%);
241
+ background-image: -moz-linear-gradient(#0088AB 20%, #00718e 90%);
242
+ background-image: -o-linear-gradient(#0088AB 20%, #00718e 90%);
243
+ background-image: linear-gradient(#0088AB 20%, #00718e 90%);
244
+ color: rgb(10, 230, 211);
245
+ }
246
+ .chosen-container .chosen-results li.no-results {
247
+ color: #777;
248
+ display: list-item;
249
+ background: #f4f4f4;
250
+ }
251
+ .chosen-container .chosen-results li.group-result {
252
+ display: list-item;
253
+ font-weight: bold;
254
+ cursor: default;
255
+ }
256
+ .chosen-container .chosen-results li.group-option {
257
+ padding-left: 15px;
258
+ }
259
+ .chosen-container .chosen-results li em {
260
+ font-style: normal;
261
+ text-decoration: underline;
262
+ }
263
+
264
+ /* @end */
265
+ /* @group Multi Chosen */
266
+ .chosen-container-multi .chosen-choices {
267
+ position: relative;
268
+ overflow: hidden;
269
+ margin: 0;
270
+ padding: 0 5px;
271
+ width: 100%;
272
+ height: auto !important;
273
+ height: 1%;
274
+ /* border: 1px solid #D1D1D1; */
275
+ background-color: #fff;
276
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
277
+ background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
278
+ background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
279
+ background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
280
+ background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
281
+ cursor: text;
282
+ }
283
+ .chosen-container-multi .chosen-choices li {
284
+ float: left;
285
+ list-style: none;
286
+ }
287
+ .chosen-container-multi .chosen-choices li.search-field {
288
+ margin: 0;
289
+ padding: 0;
290
+ white-space: nowrap;
291
+ }
292
+ .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
293
+ margin: 1px 0;
294
+ padding: 0;
295
+ height: 25px;
296
+ outline: 0;
297
+ border: 0 !important;
298
+ background: transparent !important;
299
+ box-shadow: none;
300
+ /* color: #999 !important; */
301
+ color: #055272 !important;
302
+ font-size: 100%;
303
+ font-family: sans-serif;
304
+ line-height: normal;
305
+ border-radius: 0;
306
+ }
307
+ .chosen-container-multi .chosen-choices li.search-choice {
308
+ position: relative;
309
+ margin: 3px 5px 3px 0;
310
+ padding: 3px 20px 3px 5px;
311
+ border: 1px solid #D1D1D1;
312
+ max-width: 100%;
313
+ border-radius: 3px;
314
+ background-color: #eeeeee;
315
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
316
+ background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
317
+ background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
318
+ background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
319
+ background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
320
+ background-size: 100% 19px;
321
+ background-repeat: repeat-x;
322
+ background-clip: padding-box;
323
+ box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
324
+ /* color: #333; */
325
+ line-height: 13px;
326
+ cursor: default;
327
+ }
328
+ .chosen-container-multi .chosen-choices li.search-choice span {
329
+ word-wrap: break-word;
330
+ }
331
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
332
+ position: absolute;
333
+ top: 4px;
334
+ right: 3px;
335
+ display: block;
336
+ width: 12px;
337
+ height: 12px;
338
+ font-size: 1px;
339
+ }
340
+ .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
341
+ background-position: -42px -10px;
342
+ }
343
+ .chosen-container-multi .chosen-choices li.search-choice-disabled {
344
+ padding-right: 5px;
345
+ border: 1px solid #ccc;
346
+ background-color: #e4e4e4;
347
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
348
+ background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
349
+ background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
350
+ background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
351
+ background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
352
+ color: #666;
353
+ }
354
+ .chosen-container-multi .chosen-choices li.search-choice-focus {
355
+ background: #d4d4d4;
356
+ }
357
+ .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
358
+ background-position: -42px -10px;
359
+ }
360
+ .chosen-container-multi .chosen-results {
361
+ margin: 0;
362
+ padding: 0;
363
+ }
364
+ .chosen-container-multi .chosen-drop .result-selected {
365
+ display: list-item;
366
+ /* color: #ccc; */
367
+ color: #055272;
368
+ cursor: default;
369
+ }
370
+ /* @end */
371
+ .chosen-container-active.chosen-with-drop .chosen-single {
372
+ /*这里是当下拉框出现的时候的背景样式*/
373
+ background: url('../image/KissSelect/selectbg.png');
374
+ box-shadow: 0 0px 0 #fff inset;
375
+ }
376
+ /******************** @brief 这里是选中前后箭头的效果 **************************/
377
+ /* 选中前 */
378
+ .chosen-single div {
379
+ width: 25px;
380
+ height: 25px;
381
+ background: url("../image/KissSelect/selectdown.png");
382
+ /* background: transparent; */
383
+ }
384
+ .chosen-container-active.chosen-with-drop .chosen-single div {
385
+ width: 30px;
386
+ height: 30px;
387
+ background: url("../image/KissSelect/selectup.png");
388
+ /* background: transparent; */
389
+ }
390
+
391
+ .chosen-single div:hover {
392
+ background: url("../image/KissSelect/selectdownhover.png");
393
+ }
394
+ .chosen-container-active.chosen-with-drop .chosen-single div:hover {
395
+ background: url("../image/KissSelect/selectuphover.png");
396
+ }
397
+ /*******************************************************************************/
398
+ .chosen-container-active .chosen-choices {
399
+ border: 1px solid #5897fb;
400
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
401
+ }
402
+ .chosen-container-active .chosen-choices li.search-field input[type="text"] {
403
+ color: #222 !important;
404
+ }
405
+ /* @end */
406
+ /* @group Disabled Support */
407
+ .chosen-disabled, .chosen-disabled *{
408
+ opacity: 0.5 !important;
409
+ filter: alpha(opacity=50) !important;
410
+ cursor: default;
411
+ }
412
+
413
+ .chosen-disabled .chosen-single {
414
+ cursor: default;
415
+ outline: none;
416
+ }
417
+ .chosen-disabled .chosen-choices .search-choice .search-choice-close {
418
+ cursor: default;
419
+ }
420
+
421
+ /* @end */
422
+ /* @group Right to Left */
423
+ .chosen-rtl {
424
+ text-align: right;
425
+ }
426
+ .chosen-rtl .chosen-single {
427
+ overflow: visible;
428
+ padding: 0 8px 0 0;
429
+ }
430
+ .chosen-rtl .chosen-single span {
431
+ margin-right: 0;
432
+ margin-left: 26px;
433
+ direction: rtl;
434
+ }
435
+ .chosen-rtl .chosen-single-with-deselect span {
436
+ margin-top: 10px;
437
+ margin-left: 38px;
438
+ }
439
+ .chosen-rtl .chosen-single div {
440
+ right: auto;
441
+ left: 3px;
442
+ }
443
+ .chosen-rtl .chosen-single abbr {
444
+ right: auto;
445
+ left: 26px;
446
+ }
447
+ .chosen-rtl .chosen-choices li {
448
+ float: right;
449
+ }
450
+ .chosen-rtl .chosen-choices li.search-field input[type="text"] {
451
+ direction: rtl;
452
+ }
453
+ .chosen-rtl .chosen-choices li.search-choice {
454
+ margin: 3px 5px 3px 0;
455
+ padding: 3px 5px 3px 19px;
456
+ }
457
+ .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
458
+ right: auto;
459
+ left: 4px;
460
+ }
461
+ .chosen-rtl.chosen-container-single-nosearch .chosen-search,
462
+ .chosen-rtl .chosen-drop {
463
+ left: 9999px;
464
+ }
465
+ .chosen-rtl.chosen-container-single .chosen-results {
466
+ margin: 0 0 4px 4px;
467
+ padding: 0 4px 0 0;
468
+ }
469
+ .chosen-rtl .chosen-results li.group-option {
470
+ padding-right: 15px;
471
+ padding-left: 0;
472
+ }
473
+ .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
474
+ border-right: none;
475
+ }
476
+ .chosen-rtl .chosen-search input[type="text"] {
477
+ padding: 4px 5px 4px 20px;
478
+ direction: rtl;
479
+ }
480
+ .chosen-rtl.chosen-container-single .chosen-single div b {
481
+ background-position: 6px 2px;
482
+ }
483
+ .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
484
+ background-position: -12px 2px;
485
+ }
486
+
487
+ /* @end */
488
+ /* @group Retina compatibility */
489
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
490
+ .chosen-rtl .chosen-search input[type="text"],
491
+ .chosen-container-single .chosen-single abbr,
492
+ .chosen-container-single .chosen-single div b,
493
+ .chosen-container-single .chosen-search input[type="text"],
494
+ .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
495
+ .chosen-container .chosen-results-scroll-down span,
496
+ .chosen-container .chosen-results-scroll-up span {
497
+ /* background-image: url('chosen-sprite@2x.png') !important; */
498
+ background-size: 52px 37px !important;
499
+ background-repeat: no-repeat !important;
500
+ }
501
+ }
502
+
503
+ /*动画测试*/
504
+ /* @-webkit-keyframes slide-down{
505
+ 0%{transform: scale(1,0);}
506
+ 25%{transform: scale(1,1.2);}
507
+ 50%{transform: scale(1,0.85);}
508
+ 75%{transform: scale(1,1.05);}
509
+ 100%{transform: scale(1,1);}
510
+ } */
511
+
512
+ @keyframes heart{
513
+ from{transform:translate(0,0)}
514
+ to{transform:translate(0,6px)}
515
+ }
516
+
517
+ /* @end */
518
+ /* 滚动条的样式 */
519
+ ::-webkit-scrollbar{width:5px;}
520
+ ::-webkit-scrollbar-button:vertical{display:none}
521
+ ::-webkit-scrollbar-track:vertical{background-color:black;}
522
+ ::-webkit-scrollbar-track-piece{background:#00738f}
523
+ ::-webkit-scrollbar-thumb:vertical{background-color:#40d8ff ;border-radius:5px} /*拉条的样式*/
524
+ ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3B3B3B} /*鼠标覆盖上去拉的时候的样式*/
525
+ ::-webkit-scrollbar-corner:vertical{background-color:#535353} /*即两个滚动条的交汇处*/
526
+ ::-webkit-scrollbar-resizer:vertical{background-color:#FF6E00} /*两个滚动条的交汇处上用于通过拖动调整元素大小的小控件*/
527
+ </style>