Skip to content

Commit 66c0bee

Browse files
【fix】border范例增加国际化,修改下拉框样式
1 parent fa1b4e3 commit 66c0bee

File tree

3 files changed

+59
-32
lines changed

3 files changed

+59
-32
lines changed

examples/locales/en-US/resources.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,8 @@ window.examplesResources = {
12231223
'text_symbolEqualSize':"Equal large",
12241224
'text_symbolDistribution':"Uniform distribution",
12251225
'text_myRasterLayer':"My Raster Layer",
1226+
'text_opt_border': "border",
1227+
'text_sel_border': "Border type",
12261228

12271229
"btn_overlayAnalyst": "Start analysis",
12281230
"btn_terrainCurvatureCalculation": "Start calculation",

examples/locales/zh-CN/resources.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,8 @@ window.examplesResources = {
11711171
'text_symbolEqualSize':"等大",
11721172
'text_symbolDistribution':"均匀分布",
11731173
'text_myRasterLayer':"我的栅格图层",
1174+
'text_opt_border': "边框",
1175+
'text_sel_border': "边框类型",
11741176

11751177

11761178
"btn_overlayAnalyst": "叠加分析",

examples/mapboxgl/components_border_vue.html

Lines changed: 55 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,24 @@
2424
width: 100%;
2525
height: 100%;
2626
}
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+
2745
.select-group {
2846
display: flex;
2947
align-items: center;
@@ -38,29 +56,34 @@
3856
margin-right: 10px;
3957
}
4058
.select-border{
41-
width: 100px;
59+
width: 110px;
4260
}
4361
.ant-select-selection{
4462
background: #262626;
4563
color: #fff;
4664
}
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);
5769
}
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;
6385
}
86+
6487
</style>
6588
</head>
6689

@@ -95,23 +118,23 @@
95118
</sm-border>
96119
</div>
97120

98-
<!-- 切换边框类型 -->
121+
<!-- 切换{{resources.text_opt_border}}类型 -->
99122
<div class="select-group">
100-
<span>边框类型:</span>
123+
<span>{{resources.text_sel_border}}:</span>
101124
<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>
115138
</a-select>
116139
</div>
117140

@@ -665,7 +688,7 @@
665688
background: 'rgba(0,0,0,0)',
666689
colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad', '#96dee8']
667690
};
668-
//边框最好配上透明主题, body设置一个底色
691+
//{{resources.text_opt_border}}最好配上透明主题, body设置一个底色
669692
SuperMap.Components.setTheme(transparent);
670693
document.getElementsByTagName('body')[0].style.background = 'rgba(0, 0, 0, 0.9)';
671694
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy