plain-design 1.0.0-beta.47 → 1.0.0-beta.49
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.
- package/dist/plain-design.commonjs.min.js +2 -2
- package/dist/plain-design.min.css +7 -7
- package/dist/plain-design.min.js +2 -2
- package/dist/report.html +2 -2
- package/package.json +3 -3
- package/src/packages/components/$object/createObjectService.tsx +1 -0
- package/src/packages/components/Application/index.tsx +6 -3
- package/src/packages/components/Application/theme/theme.ts +3 -3
- package/src/packages/components/Application/utils/application.utils.ts +3 -2
- package/src/packages/components/AutoTable/AutoTable.tsx +1 -1
- package/src/packages/components/AutoTable/auto-table.scss +8 -41
- package/src/packages/components/AutoTable/filter/useTableOption.filter.form.tsx +14 -18
- package/src/packages/components/AutoTable/use/useTableOption.column.popper.tsx +1 -0
- package/src/packages/components/AutoTable/use/useTableOption.hooks.tsx +9 -1
- package/src/packages/components/Button/button.scss +32 -0
- package/src/packages/components/Button/index.tsx +1 -1
- package/src/packages/components/ButtonGroup/button-group.scss +2 -2
- package/src/packages/components/ButtonGroup/index.tsx +1 -1
- package/src/packages/components/Checkbox/checkbox.scss +4 -0
- package/src/packages/components/FilterFormMultiple/filter-form-multiple.scss +10 -0
- package/src/packages/components/FilterFormMultiple/index.tsx +0 -1
- package/src/packages/components/Input/input.utils.ts +2 -2
- package/src/packages/components/PageRenderList/index.tsx +22 -0
- package/src/packages/components/PageThemeUtils/index.tsx +21 -4
- package/src/packages/components/Pagination/index.tsx +3 -3
- package/src/packages/components/Pagination/pagination.scss +2 -1
- package/src/packages/components/Table/table/Table.tsx +1 -0
- package/src/packages/components/ThemeEditor/index.tsx +23 -0
- package/src/packages/components/ThemeEditor/theme-editor.scss +1 -1
- package/src/packages/components/usePageRender/index.tsx +3 -0
- package/src/packages/components/usePageRenderContext/index.tsx +8 -0
- package/src/packages/i18n/i18n.utils.ts +17 -1
- package/src/packages/i18n/lang/en-us.ts +8 -1
- package/src/packages/i18n/lang/zh-cn.ts +8 -1
- package/src/packages/uses/useStyle.tsx +3 -1
@@ -248,6 +248,12 @@ export const EnUsLocale: tZhCnLocale = {
|
|
248
248
|
inputMode: 'INPUT MODE',
|
249
249
|
inputModeFlat: 'flat',
|
250
250
|
inputModelStroke: 'stroke',
|
251
|
+
buttonMode: 'BUTTON MODE',
|
252
|
+
buttonModeFlat: 'flat',
|
253
|
+
buttonModeFill: 'fill',
|
254
|
+
buttonModeOutline: 'outline',
|
255
|
+
buttonModeStroke: 'stroke',
|
256
|
+
buttonModeText: 'text',
|
251
257
|
primaryColor: 'PRIMARY COLOR',
|
252
258
|
size: 'SIZE',
|
253
259
|
sizeLarge: 'large',
|
@@ -261,7 +267,8 @@ export const EnUsLocale: tZhCnLocale = {
|
|
261
267
|
radiusModeRound: 'round',
|
262
268
|
radiusModeNormal: 'filet',
|
263
269
|
radiusModeNone: 'none',
|
264
|
-
scale: 'SCALE'
|
270
|
+
scale: 'SCALE',
|
271
|
+
reset: 'RESET',
|
265
272
|
},
|
266
273
|
colorName: {
|
267
274
|
默认主题: 'Default',
|
@@ -246,6 +246,12 @@ export const ZhCnLocale = {
|
|
246
246
|
inputMode: '输入框类型',
|
247
247
|
inputModeFlat: '填充',
|
248
248
|
inputModelStroke: '描边',
|
249
|
+
buttonMode: '按钮类型',
|
250
|
+
buttonModeFlat: '扁平',
|
251
|
+
buttonModeFill: '填充',
|
252
|
+
buttonModeOutline: '线框',
|
253
|
+
buttonModeStroke: '描边',
|
254
|
+
buttonModeText: '文字',
|
249
255
|
primaryColor: '主题色',
|
250
256
|
size: '大小尺寸',
|
251
257
|
sizeLarge: '大尺寸',
|
@@ -259,7 +265,8 @@ export const ZhCnLocale = {
|
|
259
265
|
radiusModeRound: '圆角',
|
260
266
|
radiusModeNormal: '小圆角',
|
261
267
|
radiusModeNone: '无圆角',
|
262
|
-
scale: '大小缩放'
|
268
|
+
scale: '大小缩放',
|
269
|
+
reset: '重置',
|
263
270
|
},
|
264
271
|
colorName: {
|
265
272
|
默认主题: '默认主题',
|
@@ -8,10 +8,11 @@ import {ApplicationConfigurationProvider} from "../components/Application/utils/
|
|
8
8
|
* @author 韦胜健
|
9
9
|
* @date 2022.4.27 0:22
|
10
10
|
*/
|
11
|
-
export const ThemeMode = createEnum(['fill', 'flat', 'outline', 'text'] as const);
|
11
|
+
export const ThemeMode = createEnum(['fill', 'flat', 'outline', 'text', 'stroke'] as const);
|
12
12
|
export const ThemeStatus = createEnum(['secondary', 'primary', 'success', 'warn', 'error'] as const);
|
13
13
|
export const ThemeShape = createEnum(['square', 'round', 'none'] as const);
|
14
14
|
export const ThemeSize = createEnum(['large', 'normal', 'small', 'mini'] as const);
|
15
|
+
export const InputMode = createEnum(['flat', 'stroke'] as const);
|
15
16
|
|
16
17
|
export const StyleProps = {
|
17
18
|
shape: { type: String as PropType<typeof ThemeShape.TYPE> }, // 'square', 'round'
|
@@ -27,6 +28,7 @@ export interface UseStyleProvideData {
|
|
27
28
|
shape: typeof ThemeShape.TYPE,
|
28
29
|
size: typeof ThemeSize.TYPE,
|
29
30
|
inputMode: 'stroke' | 'flat',
|
31
|
+
buttonMode: typeof ThemeMode.TYPE,
|
30
32
|
},
|
31
33
|
}
|
32
34
|
|