plain-design 1.0.0-beta.89 → 1.0.0-beta.90
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/plain-design.commonjs.min.js +2 -2
- package/dist/plain-design.min.css +1 -1
- package/dist/plain-design.min.js +2 -2
- package/dist/report.html +2 -2
- package/package.json +1 -1
- package/src/packages/components/ThemeEditor/index.tsx +8 -2
- package/src/packages/components/ThemeEditor/theme-editor.scss +2 -1
- package/src/packages/i18n/i18n.utils.ts +1 -1
- package/src/packages/i18n/lang/en-us.ts +10 -8
- package/src/packages/i18n/lang/zh-cn.ts +2 -0
package/package.json
CHANGED
@@ -160,7 +160,13 @@ export const ThemeEditor = designComponent({
|
|
160
160
|
|
161
161
|
<div>
|
162
162
|
<div>{i18n.$it('theme.scale').d('大小缩放')}</div>
|
163
|
-
<Select
|
163
|
+
<Select
|
164
|
+
v-model={state.zoom}
|
165
|
+
onChange={handler.onZoomChange}
|
166
|
+
size="mini"
|
167
|
+
placeholder={i18n.$it('theme.pageScale').d('页面缩放')}
|
168
|
+
popperAttrs={publicPopperAttrs}
|
169
|
+
>
|
164
170
|
<SelectOption label="0.6" val={0.6}/>
|
165
171
|
<SelectOption label="0.7" val={0.7}/>
|
166
172
|
<SelectOption label="0.8" val={0.8}/>
|
@@ -181,7 +187,7 @@ export const ThemeEditor = designComponent({
|
|
181
187
|
|
182
188
|
<div>
|
183
189
|
<div> </div>
|
184
|
-
<Button block size="mini" label={i18n.$it('theme.
|
190
|
+
<Button block size="mini" label={i18n.$it('theme.resetThem').d('重置主题')} onClick={() => {
|
185
191
|
PageThemeUtils.clear();
|
186
192
|
}}/>
|
187
193
|
</div>
|
@@ -9,6 +9,7 @@
|
|
9
9
|
transition: all ease 300ms;
|
10
10
|
overflow-y: hidden;
|
11
11
|
z-index: 1500;
|
12
|
+
background-color: plv(bg-4);
|
12
13
|
|
13
14
|
&:before {
|
14
15
|
content: '';
|
@@ -99,7 +100,7 @@
|
|
99
100
|
}
|
100
101
|
}
|
101
102
|
|
102
|
-
@include comp(theme-editor-block-item){
|
103
|
+
@include comp(theme-editor-block-item) {
|
103
104
|
display: flex;
|
104
105
|
align-items: center;
|
105
106
|
}
|
@@ -110,7 +110,7 @@ export const i18n = (() => {
|
|
110
110
|
*/
|
111
111
|
const $intl = (path: string, options?: Record<string, any>) => {
|
112
112
|
return {
|
113
|
-
d: (desc: string) => {
|
113
|
+
d: (desc: string): any => {
|
114
114
|
const valString = $t(path, options);
|
115
115
|
if (!!valString) {
|
116
116
|
return valString;
|
@@ -275,18 +275,20 @@ export const EnUsLocale: tZhCnLocale = {
|
|
275
275
|
radiusModeNormal: 'Filet',
|
276
276
|
radiusModeNone: 'None',
|
277
277
|
scale: 'SCALE',
|
278
|
+
pageScale: 'Page Scale',
|
278
279
|
reset: 'RESET',
|
279
|
-
|
280
|
+
resetThem: 'Reset Theme',
|
281
|
+
darkOrLight: 'Dark / Light',
|
280
282
|
sizeOptions: {
|
281
|
-
large: '
|
282
|
-
normal: '
|
283
|
-
small: '
|
284
|
-
mini: '
|
283
|
+
large: 'Large',
|
284
|
+
normal: 'Normal',
|
285
|
+
small: 'Small',
|
286
|
+
mini: 'Mini',
|
285
287
|
},
|
286
288
|
radiusOptions: {
|
287
|
-
round: '
|
288
|
-
square: '
|
289
|
-
none: '
|
289
|
+
round: 'Corner',
|
290
|
+
square: 'Small Corner',
|
291
|
+
none: 'None',
|
290
292
|
}
|
291
293
|
},
|
292
294
|
colorName: {
|