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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.89",
3
+ "version": "1.0.0-beta.90",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -160,7 +160,13 @@ export const ThemeEditor = designComponent({
160
160
 
161
161
  <div>
162
162
  <div>{i18n.$it('theme.scale').d('大小缩放')}</div>
163
- <Select v-model={state.zoom} onChange={handler.onZoomChange} size="mini" placeholder="页面缩放" popperAttrs={publicPopperAttrs}>
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>&nbsp;</div>
184
- <Button block size="mini" label={i18n.$it('theme.reset').d('重置')} onClick={() => {
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
- darkOrLight: '深浅主题',
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: {
@@ -273,7 +273,9 @@ export const ZhCnLocale = {
273
273
  radiusModeNormal: '小圆角',
274
274
  radiusModeNone: '无圆角',
275
275
  scale: '大小缩放',
276
+ pageScale: '页面缩放',
276
277
  reset: '重置',
278
+ resetThem: '重置主题',
277
279
  darkOrLight: '深浅主题',
278
280
  sizeOptions: {
279
281
  large: '大',