|
24 | 24 | width: 100%;
|
25 | 25 | height: 100%;
|
26 | 26 | }
|
| 27 | + .all-borders { |
| 28 | + width: 98%; |
| 29 | + margin: 0 auto; |
| 30 | + position: absolute; |
| 31 | + left: 1%; |
| 32 | + bottom: 0px; |
| 33 | + display: flex; |
| 34 | + justify-content: space-between; |
| 35 | + flex-wrap: wrap-reverse; |
| 36 | + align-content: flex-start; |
| 37 | + } |
| 38 | + .common-border { |
| 39 | + margin-bottom: 10px; |
| 40 | + width: 300px; |
| 41 | + height: 230px; |
| 42 | + z-index: 1000; |
| 43 | + } |
| 44 | + |
27 | 45 | .select-group {
|
28 | 46 | display: flex;
|
29 | 47 | align-items: center;
|
|
38 | 56 | margin-right: 10px;
|
39 | 57 | }
|
40 | 58 | .select-border{
|
41 |
| - width: 100px; |
| 59 | + width: 110px; |
42 | 60 | }
|
43 | 61 | .ant-select-selection{
|
44 | 62 | background: #262626;
|
45 | 63 | color: #fff;
|
46 | 64 | }
|
47 |
| - .all-borders { |
48 |
| - width: 98%; |
49 |
| - margin: 0 auto; |
50 |
| - position: absolute; |
51 |
| - left: 1%; |
52 |
| - bottom: 0px; |
53 |
| - display: flex; |
54 |
| - justify-content: space-between; |
55 |
| - flex-wrap: wrap-reverse; |
56 |
| - align-content: flex-start; |
| 65 | + .ant-select-dropdown-content ul::-webkit-scrollbar{ |
| 66 | + width: 4px; |
| 67 | + height: 4px; |
| 68 | + background-color: rgba(245, 245, 245, 0); |
57 | 69 | }
|
58 |
| - .common-border { |
59 |
| - margin-bottom: 10px; |
60 |
| - width: 300px; |
61 |
| - height: 230px; |
62 |
| - z-index: 1000; |
| 70 | + .ant-select-dropdown-content ul::-webkit-scrollbar-thumb { |
| 71 | + border-radius: 10px; |
| 72 | + background-color: gray; |
| 73 | + } |
| 74 | + .ant-select-dropdown-menu-item { |
| 75 | + background: #262626; |
| 76 | + color: #909399; |
| 77 | + } |
| 78 | + .ant-select-dropdown-menu-item-active { |
| 79 | + background: #dddcdc !important; |
| 80 | + color: #4f4f4f !important; |
| 81 | + } |
| 82 | + .ant-select-dropdown-menu-item-selected, .ant-select-dropdown-menu-item-selected:hover{ |
| 83 | + background: #dddcdc !important; |
| 84 | + color: #4f4f4f !important; |
63 | 85 | }
|
| 86 | + |
64 | 87 | </style>
|
65 | 88 | </head>
|
66 | 89 |
|
|
95 | 118 | </sm-border>
|
96 | 119 | </div>
|
97 | 120 |
|
98 |
| - <!-- 切换边框类型 --> |
| 121 | + <!-- 切换{{resources.text_opt_border}}类型 --> |
99 | 122 | <div class="select-group">
|
100 |
| - <span>边框类型:</span> |
| 123 | + <span>{{resources.text_sel_border}}:</span> |
101 | 124 | <a-select class="select-border" v-model="borderType" >
|
102 |
| - <a-select-option value="border1">边框1</a-select-option> |
103 |
| - <a-select-option value="border2">边框2</a-select-option> |
104 |
| - <a-select-option value="border3">边框3</a-select-option> |
105 |
| - <a-select-option value="border4">边框4</a-select-option> |
106 |
| - <a-select-option value="border5">边框5</a-select-option> |
107 |
| - <a-select-option value="border6">边框6</a-select-option> |
108 |
| - <a-select-option value="border7">边框7</a-select-option> |
109 |
| - <a-select-option value="border8">边框8</a-select-option> |
110 |
| - <a-select-option value="border9">边框9</a-select-option> |
111 |
| - <a-select-option value="border10">边框10</a-select-option> |
112 |
| - <a-select-option value="border11">边框11</a-select-option> |
113 |
| - <a-select-option value="border12">边框12</a-select-option> |
114 |
| - <a-select-option value="border13">边框13</a-select-option> |
| 125 | + <a-select-option value="border1">{{resources.text_opt_border}}1</a-select-option> |
| 126 | + <a-select-option value="border2">{{resources.text_opt_border}}2</a-select-option> |
| 127 | + <a-select-option value="border3">{{resources.text_opt_border}}3</a-select-option> |
| 128 | + <a-select-option value="border4">{{resources.text_opt_border}}4</a-select-option> |
| 129 | + <a-select-option value="border5">{{resources.text_opt_border}}5</a-select-option> |
| 130 | + <a-select-option value="border6">{{resources.text_opt_border}}6</a-select-option> |
| 131 | + <a-select-option value="border7">{{resources.text_opt_border}}7</a-select-option> |
| 132 | + <a-select-option value="border8">{{resources.text_opt_border}}8</a-select-option> |
| 133 | + <a-select-option value="border9">{{resources.text_opt_border}}9</a-select-option> |
| 134 | + <a-select-option value="border10">{{resources.text_opt_border}}10</a-select-option> |
| 135 | + <a-select-option value="border11">{{resources.text_opt_border}}11</a-select-option> |
| 136 | + <a-select-option value="border12">{{resources.text_opt_border}}12</a-select-option> |
| 137 | + <a-select-option value="border13">{{resources.text_opt_border}}13</a-select-option> |
115 | 138 | </a-select>
|
116 | 139 | </div>
|
117 | 140 |
|
|
665 | 688 | background: 'rgba(0,0,0,0)',
|
666 | 689 | colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad', '#96dee8']
|
667 | 690 | };
|
668 |
| - //边框最好配上透明主题, body设置一个底色 |
| 691 | + //{{resources.text_opt_border}}最好配上透明主题, body设置一个底色 |
669 | 692 | SuperMap.Components.setTheme(transparent);
|
670 | 693 | document.getElementsByTagName('body')[0].style.background = 'rgba(0, 0, 0, 0.9)';
|
671 | 694 | }
|
|
0 commit comments