plain-design 1.0.0-beta.2 → 1.0.0-beta.4
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 +1 -1
- package/dist/plain-design.min.js +1 -1
- package/dist/report.html +2 -2
- package/package.json +1 -1
- package/src/packages/build.ts +1 -1
- package/src/{pages/index/PageThemeUtils.tsx → packages/components/PageThemeUtils/index.tsx} +4 -4
- package/src/packages/entry.tsx +1 -0
- package/src/pages/index/App.tsx +3 -2
- package/src/pages/index/home/AppHead.tsx +1 -2
- package/src/pages/index/main.tsx +0 -4
package/package.json
CHANGED
package/src/packages/build.ts
CHANGED
@@ -3,7 +3,7 @@ import Plain from './index';
|
|
3
3
|
import allIcons from 'plain-icons/dist/icons.js';
|
4
4
|
|
5
5
|
// @ts-ignore
|
6
|
-
Plain.Icon.PlainIcon.props.getIcon.default = (icon: string) => {
|
6
|
+
Plain.Icon.PlainIcon.use.options.props.getIcon.default = (icon: string) => {
|
7
7
|
const iconMeta = (allIcons as any)[icon];
|
8
8
|
if (!iconMeta) {
|
9
9
|
throw new Error(`getIcon: can't find icon match ${icon}`);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import {computed, getComponentCls, reactive} from "plain-design-composition";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
2
|
+
import {createCache} from "../../utils/createCache";
|
3
|
+
import {ThemeShape, ThemeSize} from "../../uses/useStyle";
|
4
|
+
import {DeepPartial} from "../../utils/type";
|
5
|
+
import {iApplicationConfiguration} from "../Application/utils/application.utils";
|
6
6
|
|
7
7
|
export const PageThemeUtils = (() => {
|
8
8
|
|
package/src/packages/entry.tsx
CHANGED
@@ -162,5 +162,6 @@ export type {
|
|
162
162
|
iTableOptionCacheRegistryConfig,
|
163
163
|
iTableOptionGetCacheParam
|
164
164
|
} from './components/AutoTable/use/useTableOption.cache.utils';
|
165
|
+
export {PageThemeUtils, ThemePrimaryColors} from './components/PageThemeUtils';
|
165
166
|
|
166
167
|
setComponentPrefix(globalComponentPrefix);
|
package/src/pages/index/App.tsx
CHANGED
@@ -2,8 +2,9 @@ import {designPage} from 'plain-design-composition';
|
|
2
2
|
import './app.scss';
|
3
3
|
import {AppHome} from "./home/AppHome";
|
4
4
|
import {DemoRowController} from "./Demo/DemoRowController";
|
5
|
-
import {Application} from "../../packages";
|
6
|
-
|
5
|
+
import {Application, ClientZoom, PageThemeUtils} from "../../packages";
|
6
|
+
|
7
|
+
PageThemeUtils.state.zoom != null && ClientZoom.set(PageThemeUtils.state.zoom);
|
7
8
|
|
8
9
|
export const App = designPage(() => {
|
9
10
|
return () => (
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import {designPage, reactive} from "plain-design-composition";
|
2
2
|
import {PlainLogo} from 'plain-icons/src/packages/component/logo/react';
|
3
|
-
import {Select, SelectOption} from "../../../packages";
|
4
|
-
import {PageThemeUtils, ThemePrimaryColors} from "../PageThemeUtils";
|
3
|
+
import {PageThemeUtils, Select, SelectOption, ThemePrimaryColors} from "../../../packages";
|
5
4
|
import ClientZoom from "../../../packages/components/ClientZoom";
|
6
5
|
|
7
6
|
export const AppHead = designPage(() => {
|
package/src/pages/index/main.tsx
CHANGED
@@ -6,8 +6,6 @@ import {installAllIcon} from "../../packages/utils/installAllIcons";
|
|
6
6
|
import {designPage, provide, setComponentPrefix} from "plain-design-composition";
|
7
7
|
import {App} from "./App";
|
8
8
|
import '../module';
|
9
|
-
import {ClientZoom} from "../../packages";
|
10
|
-
import {PageThemeUtils} from "./PageThemeUtils";
|
11
9
|
|
12
10
|
setComponentPrefix(globalComponentPrefix);
|
13
11
|
|
@@ -17,8 +15,6 @@ installIconfontSymbol();
|
|
17
15
|
installAllIcon();
|
18
16
|
// installAllLazyIcons();
|
19
17
|
|
20
|
-
PageThemeUtils.state.zoom != null && ClientZoom.set(PageThemeUtils.state.zoom);
|
21
|
-
|
22
18
|
const Main = designPage(() => {
|
23
19
|
provide('customAppMessage', '全局上下文名称');
|
24
20
|
return () => <App/>;
|