@creekjs/web-components 1.0.3 → 1.0.5
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/.turbo/turbo-father$colon$build.log +35 -1
- package/dist/creek-config-provider/CreekConfigContext.d.ts.map +1 -0
- package/dist/creek-config-provider/index.d.ts.map +1 -0
- package/dist/creek-hooks/index.d.ts.map +1 -0
- package/dist/creek-hooks/useApp/DrawerHelper.d.ts.map +1 -0
- package/dist/creek-hooks/useApp/DrawerHelper.js +2 -2
- package/dist/creek-hooks/useApp/DrawerHelper.js.map +2 -2
- package/dist/creek-hooks/useApp/ModalHelper.d.ts.map +1 -0
- package/dist/creek-hooks/useApp/ModalHelper.js +2 -2
- package/dist/creek-hooks/useApp/ModalHelper.js.map +2 -2
- package/dist/creek-hooks/useApp/index.d.ts.map +1 -0
- package/dist/creek-hooks/useApp/types.d.ts.map +1 -0
- package/dist/creek-hooks/useViewportHeight.d.ts.map +1 -0
- package/dist/creek-icon/index.d.ts.map +1 -0
- package/dist/creek-keep-alive/index.d.ts.map +1 -0
- package/dist/creek-layout/ActionRender/FullScreen.d.ts.map +1 -0
- package/dist/creek-layout/{HeaderContent → ActionRender}/FullScreen.js +1 -1
- package/dist/creek-layout/{HeaderContent → ActionRender}/FullScreen.js.map +1 -1
- package/dist/creek-layout/ActionRender/UserInfo.d.ts +8 -0
- package/dist/creek-layout/ActionRender/UserInfo.d.ts.map +1 -0
- package/dist/creek-layout/{HeaderContent → ActionRender}/UserInfo.js +7 -29
- package/dist/creek-layout/ActionRender/UserInfo.js.map +7 -0
- package/dist/creek-layout/ActionRender/index.d.ts +2 -0
- package/dist/creek-layout/ActionRender/index.d.ts.map +1 -0
- package/dist/creek-layout/ActionRender/index.js +33 -0
- package/dist/creek-layout/ActionRender/index.js.map +7 -0
- package/dist/creek-layout/CollapseButton.d.ts.map +1 -0
- package/dist/creek-layout/Exception/NotFound.d.ts.map +1 -0
- package/dist/creek-layout/Exception/NotFoundPage.d.ts.map +1 -0
- package/dist/creek-layout/Exception/index.d.ts.map +1 -0
- package/dist/creek-layout/index.d.ts +9 -2
- package/dist/creek-layout/index.d.ts.map +1 -0
- package/dist/creek-layout/index.js +25 -31
- package/dist/creek-layout/index.js.map +2 -2
- package/dist/creek-loading/index.d.ts.map +1 -0
- package/dist/creek-table/SearchTable.d.ts.map +1 -0
- package/dist/creek-table/SearchTable.js +50 -37
- package/dist/creek-table/SearchTable.js.map +3 -3
- package/dist/creek-table/TableOptionRender.d.ts.map +1 -0
- package/dist/creek-table/hooks/index.d.ts +1 -0
- package/dist/creek-table/hooks/index.d.ts.map +1 -0
- package/dist/creek-table/hooks/index.js +3 -1
- package/dist/creek-table/hooks/index.js.map +2 -2
- package/dist/creek-table/hooks/useAdaptiveToolBar.d.ts.map +1 -0
- package/dist/creek-table/hooks/useAutoWidthColumns.d.ts.map +1 -0
- package/dist/creek-table/hooks/useElementDistance.d.ts.map +1 -0
- package/dist/creek-table/hooks/useTableScrollHeight.d.ts +1 -0
- package/dist/creek-table/hooks/useTableScrollHeight.d.ts.map +1 -0
- package/dist/creek-table/hooks/useTableScrollHeight.js +72 -0
- package/dist/creek-table/hooks/useTableScrollHeight.js.map +7 -0
- package/dist/creek-table/index.d.ts.map +1 -0
- package/dist/creek-table/index.js +1 -1
- package/dist/creek-table/index.js.map +2 -2
- package/dist/creek-table/toolBarRender.d.ts +1 -0
- package/dist/creek-table/toolBarRender.d.ts.map +1 -0
- package/dist/creek-table/toolBarRender.js +2 -2
- package/dist/creek-table/toolBarRender.js.map +2 -2
- package/dist/creek-table/type.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/creek-hooks/useApp/DrawerHelper.tsx +2 -2
- package/src/creek-hooks/useApp/ModalHelper.tsx +2 -2
- package/src/creek-layout/{HeaderContent → ActionRender}/UserInfo.tsx +13 -24
- package/src/creek-layout/ActionRender/index.tsx +3 -0
- package/src/creek-layout/index.tsx +46 -45
- package/src/creek-table/SearchTable.tsx +54 -41
- package/src/creek-table/hooks/index.ts +2 -0
- package/src/creek-table/hooks/useTableScrollHeight.tsx +63 -0
- package/src/creek-table/index.tsx +1 -1
- package/src/creek-table/toolBarRender.tsx +3 -3
- package/dist/creek-layout/HeaderContent/UserInfo.d.ts +0 -1
- package/dist/creek-layout/HeaderContent/UserInfo.js.map +0 -7
- package/dist/creek-layout/HeaderContent/index.d.ts +0 -1
- package/dist/creek-layout/HeaderContent/index.js +0 -49
- package/dist/creek-layout/HeaderContent/index.js.map +0 -7
- package/dist/creek-table/TableViewContent.d.ts +0 -4
- package/dist/creek-table/TableViewContent.js +0 -66
- package/dist/creek-table/TableViewContent.js.map +0 -7
- package/src/creek-layout/HeaderContent/index.tsx +0 -24
- package/src/creek-table/TableViewContent.tsx +0 -53
- /package/dist/creek-layout/{HeaderContent → ActionRender}/FullScreen.d.ts +0 -0
- /package/src/creek-layout/{HeaderContent → ActionRender}/FullScreen.tsx +0 -0
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @creekjs/web-components@1.0.
|
|
3
|
+
> @creekjs/web-components@1.0.4 father:build /Users/ernestwang/Documents/code-resoorce/creek/packages/web-components
|
|
4
4
|
> father build
|
|
5
5
|
|
|
6
|
+
[36minfo[39m - Clean output directories
|
|
7
|
+
[36minfo[39m - Bundless for [33msrc[39m directory to [33mcjs[39m format
|
|
8
|
+
[35mevent[39m - Bundless [90mCreekConfigContext.tsx[39m to [90mdist/creek-config-provider/CreekConfigContext.js[39m (with declaration)
|
|
9
|
+
[35mevent[39m - Bundless [90mindex.ts[39m to [90mdist/creek-hooks/index.js[39m (with declaration)
|
|
10
|
+
[35mevent[39m - Bundless [90mDrawerHelper.tsx[39m to [90mdist/creek-hooks/useApp/DrawerHelper.js[39m (with declaration)
|
|
11
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-hooks/useApp/index.js[39m (with declaration)
|
|
12
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-config-provider/index.js[39m (with declaration)
|
|
13
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-icon/index.js[39m (with declaration)
|
|
14
|
+
[35mevent[39m - Bundless [90mtypes.ts[39m to [90mdist/creek-hooks/useApp/types.js[39m (with declaration)
|
|
15
|
+
[35mevent[39m - Bundless [90mModalHelper.tsx[39m to [90mdist/creek-hooks/useApp/ModalHelper.js[39m (with declaration)
|
|
16
|
+
[35mevent[39m - Bundless [90museViewportHeight.tsx[39m to [90mdist/creek-hooks/useViewportHeight.js[39m (with declaration)
|
|
17
|
+
[35mevent[39m - Bundless [90mFullScreen.tsx[39m to [90mdist/creek-layout/ActionRender/FullScreen.js[39m (with declaration)
|
|
18
|
+
[35mevent[39m - Bundless [90mCollapseButton.tsx[39m to [90mdist/creek-layout/CollapseButton.js[39m (with declaration)
|
|
19
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-layout/Exception/index.js[39m (with declaration)
|
|
20
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-keep-alive/index.js[39m (with declaration)
|
|
21
|
+
[35mevent[39m - Bundless [90mUserInfo.tsx[39m to [90mdist/creek-layout/ActionRender/UserInfo.js[39m (with declaration)
|
|
22
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-layout/ActionRender/index.js[39m (with declaration)
|
|
23
|
+
[35mevent[39m - Bundless [90mNotFound.tsx[39m to [90mdist/creek-layout/Exception/NotFound.js[39m (with declaration)
|
|
24
|
+
[35mevent[39m - Bundless [90mNotFoundPage.tsx[39m to [90mdist/creek-layout/Exception/NotFoundPage.js[39m (with declaration)
|
|
25
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-loading/index.js[39m (with declaration)
|
|
26
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-layout/index.js[39m (with declaration)
|
|
27
|
+
[35mevent[39m - Bundless [90mindex.ts[39m to [90mdist/creek-table/hooks/index.js[39m (with declaration)
|
|
28
|
+
[35mevent[39m - Bundless [90museAutoWidthColumns.tsx[39m to [90mdist/creek-table/hooks/useAutoWidthColumns.js[39m (with declaration)
|
|
29
|
+
[35mevent[39m - Bundless [90museAdaptiveToolBar.tsx[39m to [90mdist/creek-table/hooks/useAdaptiveToolBar.js[39m (with declaration)
|
|
30
|
+
[35mevent[39m - Bundless [90museElementDistance.tsx[39m to [90mdist/creek-table/hooks/useElementDistance.js[39m (with declaration)
|
|
31
|
+
[35mevent[39m - Bundless [90mSearchTable.tsx[39m to [90mdist/creek-table/SearchTable.js[39m (with declaration)
|
|
32
|
+
[35mevent[39m - Bundless [90mTableOptionRender.tsx[39m to [90mdist/creek-table/TableOptionRender.js[39m (with declaration)
|
|
33
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/index.js[39m (with declaration)
|
|
34
|
+
[35mevent[39m - Bundless [90mtype.ts[39m to [90mdist/creek-table/type.js[39m (with declaration)
|
|
35
|
+
[35mevent[39m - Bundless [90museTableScrollHeight.tsx[39m to [90mdist/creek-table/hooks/useTableScrollHeight.js[39m (with declaration)
|
|
36
|
+
[35mevent[39m - Bundless [90mindex.tsx[39m to [90mdist/creek-table/index.js[39m (with declaration)
|
|
37
|
+
[35mevent[39m - Bundless [90mtoolBarRender.tsx[39m to [90mdist/creek-table/toolBarRender.js[39m (with declaration)
|
|
38
|
+
[35mevent[39m - Generate declaration files...
|
|
39
|
+
[35mevent[39m - Transformed successfully in 5787 ms (30 files)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreekConfigContext.d.ts","sourceRoot":"","sources":["../../src/creek-config-provider/CreekConfigContext.tsx"],"names":[],"mappings":";AAEA,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,kDAA6C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/creek-config-provider/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,GAAG;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,mBAAmB;YAAW,wBAAwB;;CAGlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/creek-hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawerHelper.d.ts","sourceRoot":"","sources":["../../../src/creek-hooks/useApp/DrawerHelper.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAwC,MAAM,SAAS,CAAC;AAE7E,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8BpD,CAAC"}
|
|
@@ -35,7 +35,7 @@ var DrawerHelper = ({ open, config, onClose }) => {
|
|
|
35
35
|
open,
|
|
36
36
|
onOpenChange: (visible) => !visible && onClose(),
|
|
37
37
|
drawerProps: {
|
|
38
|
-
|
|
38
|
+
destroyOnHidden: true,
|
|
39
39
|
onClose,
|
|
40
40
|
...config.drawerProps || {}
|
|
41
41
|
},
|
|
@@ -49,7 +49,7 @@ var DrawerHelper = ({ open, config, onClose }) => {
|
|
|
49
49
|
{
|
|
50
50
|
open,
|
|
51
51
|
onClose,
|
|
52
|
-
|
|
52
|
+
destroyOnHidden: true,
|
|
53
53
|
...restConfig,
|
|
54
54
|
children: content
|
|
55
55
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/creek-hooks/useApp/DrawerHelper.tsx"],
|
|
4
|
-
"sourcesContent": ["import { DrawerForm } from '@ant-design/pro-components';\nimport { Drawer } from 'antd';\nimport { omit } from 'lodash';\nimport React from 'react';\nimport { DrawerConfig, FormDrawerConfig, NormalDrawerConfig } from './types';\n\ninterface DrawerHelperProps {\n open: boolean;\n config: DrawerConfig;\n onClose: () => void;\n}\n\nexport const DrawerHelper: React.FC<DrawerHelperProps> = ({ open, config, onClose }) => {\n const { content, type, ...restConfig } = config;\n\n if (type === 'form') {\n return (\n <DrawerForm\n open={open}\n onOpenChange={(visible) => !visible && onClose()}\n drawerProps={{\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA2B;AAC3B,kBAAuB;AACvB,oBAAqB;AAef;AALC,IAAM,eAA4C,CAAC,EAAE,MAAM,QAAQ,QAAQ,MAAM;AACtF,QAAM,EAAE,SAAS,MAAM,GAAG,WAAW,IAAI;AAEzC,MAAI,SAAS,QAAQ;AACnB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,cAAc,CAAC,YAAY,CAAC,WAAW,QAAQ;AAAA,QAC/C,aAAa;AAAA,UACX,
|
|
4
|
+
"sourcesContent": ["import { DrawerForm } from '@ant-design/pro-components';\nimport { Drawer } from 'antd';\nimport { omit } from 'lodash';\nimport React from 'react';\nimport { DrawerConfig, FormDrawerConfig, NormalDrawerConfig } from './types';\n\ninterface DrawerHelperProps {\n open: boolean;\n config: DrawerConfig;\n onClose: () => void;\n}\n\nexport const DrawerHelper: React.FC<DrawerHelperProps> = ({ open, config, onClose }) => {\n const { content, type, ...restConfig } = config;\n\n if (type === 'form') {\n return (\n <DrawerForm\n open={open}\n onOpenChange={(visible) => !visible && onClose()}\n drawerProps={{\n destroyOnHidden: true,\n onClose,\n ...((config as FormDrawerConfig).drawerProps || {}),\n }}\n {...(omit(restConfig, 'drawerProps') as any)}\n >\n {content}\n </DrawerForm>\n );\n }\n\n return (\n <Drawer\n open={open}\n onClose={onClose}\n destroyOnHidden\n {...(restConfig as NormalDrawerConfig)}\n >\n {content}\n </Drawer>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA2B;AAC3B,kBAAuB;AACvB,oBAAqB;AAef;AALC,IAAM,eAA4C,CAAC,EAAE,MAAM,QAAQ,QAAQ,MAAM;AACtF,QAAM,EAAE,SAAS,MAAM,GAAG,WAAW,IAAI;AAEzC,MAAI,SAAS,QAAQ;AACnB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,cAAc,CAAC,YAAY,CAAC,WAAW,QAAQ;AAAA,QAC/C,aAAa;AAAA,UACX,iBAAiB;AAAA,UACjB;AAAA,UACA,GAAK,OAA4B,eAAe,CAAC;AAAA,QACnD;AAAA,QACC,OAAI,oBAAK,YAAY,aAAa;AAAA,QAElC;AAAA;AAAA,IACH;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,iBAAe;AAAA,MACd,GAAI;AAAA,MAEJ;AAAA;AAAA,EACH;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalHelper.d.ts","sourceRoot":"","sources":["../../../src/creek-hooks/useApp/ModalHelper.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,WAAW,EAAqB,MAAM,SAAS,CAAC;AAE1E,UAAU,gBAAgB;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8BlD,CAAC"}
|
|
@@ -35,7 +35,7 @@ var ModalHelper = ({ open, config, onClose }) => {
|
|
|
35
35
|
open,
|
|
36
36
|
onOpenChange: (visible) => !visible && onClose(),
|
|
37
37
|
modalProps: {
|
|
38
|
-
|
|
38
|
+
destroyOnHidden: true,
|
|
39
39
|
onCancel: onClose,
|
|
40
40
|
...config.modalProps || {}
|
|
41
41
|
},
|
|
@@ -49,7 +49,7 @@ var ModalHelper = ({ open, config, onClose }) => {
|
|
|
49
49
|
{
|
|
50
50
|
open,
|
|
51
51
|
onCancel: onClose,
|
|
52
|
-
|
|
52
|
+
destroyOnHidden: true,
|
|
53
53
|
...restConfig,
|
|
54
54
|
children: content
|
|
55
55
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/creek-hooks/useApp/ModalHelper.tsx"],
|
|
4
|
-
"sourcesContent": ["import { ModalForm } from '@ant-design/pro-components';\nimport { Modal } from 'antd';\nimport { omit } from 'lodash';\nimport React from 'react';\nimport { FormModalConfig, ModalConfig, NormalModalConfig } from './types';\n\ninterface ModalHelperProps {\n open: boolean;\n config: ModalConfig;\n onClose: () => void;\n}\n\nexport const ModalHelper: React.FC<ModalHelperProps> = ({ open, config, onClose }) => {\n const { content, type, ...restConfig } = config;\n\n if (type === 'form') {\n return (\n <ModalForm\n open={open}\n onOpenChange={(visible) => !visible && onClose()}\n modalProps={{\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA0B;AAC1B,kBAAsB;AACtB,oBAAqB;AAef;AALC,IAAM,cAA0C,CAAC,EAAE,MAAM,QAAQ,QAAQ,MAAM;AACpF,QAAM,EAAE,SAAS,MAAM,GAAG,WAAW,IAAI;AAEzC,MAAI,SAAS,QAAQ;AACnB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,cAAc,CAAC,YAAY,CAAC,WAAW,QAAQ;AAAA,QAC/C,YAAY;AAAA,UACV,
|
|
4
|
+
"sourcesContent": ["import { ModalForm } from '@ant-design/pro-components';\nimport { Modal } from 'antd';\nimport { omit } from 'lodash';\nimport React from 'react';\nimport { FormModalConfig, ModalConfig, NormalModalConfig } from './types';\n\ninterface ModalHelperProps {\n open: boolean;\n config: ModalConfig;\n onClose: () => void;\n}\n\nexport const ModalHelper: React.FC<ModalHelperProps> = ({ open, config, onClose }) => {\n const { content, type, ...restConfig } = config;\n\n if (type === 'form') {\n return (\n <ModalForm\n open={open}\n onOpenChange={(visible) => !visible && onClose()}\n modalProps={{\n destroyOnHidden: true,\n onCancel: onClose,\n ...((config as FormModalConfig).modalProps || {}),\n }}\n {...(omit(restConfig, 'modalProps') as any)}\n >\n {content}\n </ModalForm>\n );\n }\n\n return (\n <Modal\n open={open}\n onCancel={onClose}\n destroyOnHidden\n {...(restConfig as NormalModalConfig)}\n >\n {content}\n </Modal>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA0B;AAC1B,kBAAsB;AACtB,oBAAqB;AAef;AALC,IAAM,cAA0C,CAAC,EAAE,MAAM,QAAQ,QAAQ,MAAM;AACpF,QAAM,EAAE,SAAS,MAAM,GAAG,WAAW,IAAI;AAEzC,MAAI,SAAS,QAAQ;AACnB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,cAAc,CAAC,YAAY,CAAC,WAAW,QAAQ;AAAA,QAC/C,YAAY;AAAA,UACV,iBAAiB;AAAA,UACjB,UAAU;AAAA,UACV,GAAK,OAA2B,cAAc,CAAC;AAAA,QACjD;AAAA,QACC,OAAI,oBAAK,YAAY,YAAY;AAAA,QAEjC;AAAA;AAAA,IACH;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,UAAU;AAAA,MACV,iBAAe;AAAA,MACd,GAAI;AAAA,MAEJ;AAAA;AAAA,EACH;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/creek-hooks/useApp/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAI5E,OAAO,EAGL,gBAAgB,EAChB,eAAe,EAEf,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAsBjB,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CA6B/D,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAiDlB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/creek-hooks/useApp/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAGF,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG;IAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC9E,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAC1G,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAG9D,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAChF,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5G,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useViewportHeight.d.ts","sourceRoot":"","sources":["../../src/creek-hooks/useViewportHeight.tsx"],"names":[],"mappings":";AAGA,UAAU,wBAAwB;IAChC,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yBAAyB;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC;IAE5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,aAAa,wBAAwB;IAuJ/D,wBAAwB;;IAExB,kBAAkB;;IAElB,kBAAkB;;IAElB,gBAAgB;;CAGnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/creek-icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAA8B,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAIrC,OAAO,EAAuB,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,KAAK,wBAAwB,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG;IACtD,WAAW,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,cAAc,mDAkB9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/creek-keep-alive/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,+CAQ1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullScreen.d.ts","sourceRoot":"","sources":["../../../src/creek-layout/ActionRender/FullScreen.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,8EAU7B,CAAC;AAEH,eAAO,MAAM,UAAU,+CAuBtB,CAAC"}
|
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// src/creek-layout/
|
|
19
|
+
// src/creek-layout/ActionRender/FullScreen.tsx
|
|
20
20
|
var FullScreen_exports = {};
|
|
21
21
|
__export(FullScreen_exports, {
|
|
22
22
|
FullScreen: () => FullScreen,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/creek-layout/
|
|
3
|
+
"sources": ["../../../src/creek-layout/ActionRender/FullScreen.tsx"],
|
|
4
4
|
"sourcesContent": ["import { FullscreenExitOutlined, FullscreenOutlined } from \"@ant-design/icons\";\nimport { useFullscreen, useMemoizedFn } from \"ahooks\";\nimport { Tooltip } from \"antd\";\nimport { create } from \"zustand\";\n\nexport type FullScreenStore = {\n isFullScreen: boolean;\n changeFullScreen: () => void;\n};\n\nexport const useFullScreenStore = create<FullScreenStore>((set, get) => {\n return {\n isFullScreen: false,\n changeFullScreen: () => {\n const _isFullScreen = get().isFullScreen;\n set({\n isFullScreen: !_isFullScreen,\n });\n },\n };\n});\n\nexport const FullScreen = () => {\n const [, { toggleFullscreen }] = useFullscreen(document.body);\n\n const { isFullScreen, changeFullScreen } = useFullScreenStore.getState();\n\n const handleFullScreen = useMemoizedFn(() => {\n toggleFullscreen();\n changeFullScreen();\n });\n\n return (\n <>\n {isFullScreen ? (\n <Tooltip title=\"退出全屏\" placement=\"top\">\n <FullscreenExitOutlined onClick={handleFullScreen} />\n </Tooltip>\n ) : (\n <Tooltip title=\"全屏\" placement=\"top\">\n <FullscreenOutlined onClick={handleFullScreen} />\n </Tooltip>\n )}\n </>\n );\n};\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2D;AAC3D,oBAA6C;AAC7C,kBAAwB;AACxB,qBAAuB;AA8BnB;AAvBG,IAAM,yBAAqB,uBAAwB,CAAC,KAAK,QAAQ;AACtE,SAAO;AAAA,IACL,cAAc;AAAA,IACd,kBAAkB,MAAM;AACtB,YAAM,gBAAgB,IAAI,EAAE;AAC5B,UAAI;AAAA,QACF,cAAc,CAAC;AAAA,MACjB,CAAC;AAAA,IACH;AAAA,EACF;AACF,CAAC;AAEM,IAAM,aAAa,MAAM;AAC9B,QAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC,QAAI,6BAAc,SAAS,IAAI;AAE5D,QAAM,EAAE,cAAc,iBAAiB,IAAI,mBAAmB,SAAS;AAEvE,QAAM,uBAAmB,6BAAc,MAAM;AAC3C,qBAAiB;AACjB,qBAAiB;AAAA,EACnB,CAAC;AAED,SACE,2EACG,yBACC,4CAAC,uBAAQ,OAAM,QAAO,WAAU,OAC9B,sDAAC,uCAAuB,SAAS,kBAAkB,GACrD,IAEA,4CAAC,uBAAQ,OAAM,MAAK,WAAU,OAC5B,sDAAC,mCAAmB,SAAS,kBAAkB,GACjD,GAEJ;AAEJ;",
|
|
6
6
|
"names": []
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropDownProps } from "antd";
|
|
3
|
+
export interface UserInfoProps {
|
|
4
|
+
name?: React.ReactNode;
|
|
5
|
+
avatar?: string;
|
|
6
|
+
menu?: DropDownProps['menu'];
|
|
7
|
+
}
|
|
8
|
+
export declare const UserInfo: (props: UserInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserInfo.d.ts","sourceRoot":"","sources":["../../../src/creek-layout/ActionRender/UserInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,aAAa,EAAS,MAAM,MAAM,CAAC;AAsB9D,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,eAAO,MAAM,QAAQ,UAAW,aAAa,4CAc5C,CAAC"}
|
|
@@ -16,13 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// src/creek-layout/
|
|
19
|
+
// src/creek-layout/ActionRender/UserInfo.tsx
|
|
20
20
|
var UserInfo_exports = {};
|
|
21
21
|
__export(UserInfo_exports, {
|
|
22
22
|
UserInfo: () => UserInfo
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(UserInfo_exports);
|
|
25
|
-
var import_icons = require("@ant-design/icons");
|
|
26
25
|
var import_antd = require("antd");
|
|
27
26
|
var import_antd_style = require("antd-style");
|
|
28
27
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -44,34 +43,13 @@ var useStyles = (0, import_antd_style.createStyles)(({ token }) => ({
|
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
}));
|
|
47
|
-
var UserInfo = () => {
|
|
46
|
+
var UserInfo = (props) => {
|
|
48
47
|
const { styles } = useStyles();
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.LogoutOutlined, {}),
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "退出登录" })
|
|
56
|
-
] }),
|
|
57
|
-
onClick: () => {
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
};
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
|
-
import_antd.Dropdown,
|
|
64
|
-
{
|
|
65
|
-
arrow: true,
|
|
66
|
-
placement: "bottom",
|
|
67
|
-
overlayClassName: styles.userInfoDropdownOverlay,
|
|
68
|
-
menu: userInfoMenu,
|
|
69
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_antd.Space, { size: 4, align: "center", children: [
|
|
70
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Avatar, { className: styles.avatarContainer, children: "C" }),
|
|
71
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Creek" })
|
|
72
|
-
] })
|
|
73
|
-
}
|
|
74
|
-
);
|
|
48
|
+
const { name, avatar, menu } = props;
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Dropdown, { arrow: true, placement: "bottom", overlayClassName: styles.userInfoDropdownOverlay, menu, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_antd.Space, { size: 4, align: "center", children: [
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Avatar, { className: styles.avatarContainer, src: avatar, children: name }),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: name })
|
|
52
|
+
] }) });
|
|
75
53
|
};
|
|
76
54
|
// Annotate the CommonJS export names for ESM import in node:
|
|
77
55
|
0 && (module.exports = {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/creek-layout/ActionRender/UserInfo.tsx"],
|
|
4
|
+
"sourcesContent": ["import { Avatar, Dropdown, DropDownProps, Space } from \"antd\";\nimport { createStyles } from \"antd-style\";\n\nconst useStyles = createStyles(({ token }) => ({\n avatarContainer: {\n backgroundColor: token.colorPrimary,\n width: 24,\n height: 24,\n },\n userInfoDropdownOverlay: {\n \".ant-dropdown-menu\": {\n padding: \"8px 0\",\n },\n \".ant-dropdown-menu-item\": {\n \".ant-dropdown-menu-item-icon\": {\n fontSize: \"18px\",\n marginRight: \"8px\",\n },\n },\n },\n}));\n\nexport interface UserInfoProps {\n name?: React.ReactNode;\n avatar?: string;\n menu?: DropDownProps['menu'];\n}\n\nexport const UserInfo = (props: UserInfoProps) => {\n const { styles } = useStyles();\n const { name, avatar, menu } = props;\n\n return (\n <Dropdown arrow placement=\"bottom\" overlayClassName={styles.userInfoDropdownOverlay} menu={menu}>\n <Space size={4} align=\"center\">\n <Avatar className={styles.avatarContainer} src={avatar}>\n {name}\n </Avatar>\n <span>{name}</span>\n </Space>\n </Dropdown>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuD;AACvD,wBAA6B;AAiCvB;AA/BN,IAAM,gBAAY,gCAAa,CAAC,EAAE,MAAM,OAAO;AAAA,EAC7C,iBAAiB;AAAA,IACf,iBAAiB,MAAM;AAAA,IACvB,OAAO;AAAA,IACP,QAAQ;AAAA,EACV;AAAA,EACA,yBAAyB;AAAA,IACvB,sBAAsB;AAAA,MACpB,SAAS;AAAA,IACX;AAAA,IACA,2BAA2B;AAAA,MACzB,gCAAgC;AAAA,QAC9B,UAAU;AAAA,QACV,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AACF,EAAE;AAQK,IAAM,WAAW,CAAC,UAAyB;AAChD,QAAM,EAAE,OAAO,IAAI,UAAU;AAC7B,QAAM,EAAE,MAAM,QAAQ,KAAK,IAAI;AAE/B,SACE,4CAAC,wBAAS,OAAK,MAAC,WAAU,UAAS,kBAAkB,OAAO,yBAAyB,MACnF,uDAAC,qBAAM,MAAM,GAAG,OAAM,UACpB;AAAA,gDAAC,sBAAO,WAAW,OAAO,iBAAiB,KAAK,QAC7C,gBACH;AAAA,IACA,4CAAC,UAAM,gBAAK;AAAA,KACd,GACF;AAEJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/creek-layout/ActionRender/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/creek-layout/ActionRender/index.tsx
|
|
20
|
+
var ActionRender_exports = {};
|
|
21
|
+
__export(ActionRender_exports, {
|
|
22
|
+
FullScreen: () => import_FullScreen.FullScreen,
|
|
23
|
+
UserInfo: () => import_UserInfo.UserInfo
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(ActionRender_exports);
|
|
26
|
+
var import_FullScreen = require("./FullScreen");
|
|
27
|
+
var import_UserInfo = require("./UserInfo");
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
FullScreen,
|
|
31
|
+
UserInfo
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/creek-layout/ActionRender/index.tsx"],
|
|
4
|
+
"sourcesContent": ["export { FullScreen } from './FullScreen';\nexport { UserInfo } from './UserInfo';\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2B;AAC3B,sBAAyB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollapseButton.d.ts","sourceRoot":"","sources":["../../src/creek-layout/CollapseButton.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAiBF,eAAO,MAAM,iBAAiB,mFAU5B,CAAC;AAEH,eAAO,MAAM,eAAe,UAAW,oBAAoB,4CAwB1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFound.d.ts","sourceRoot":"","sources":["../../../src/creek-layout/Exception/NotFound.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,+CASpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFoundPage.d.ts","sourceRoot":"","sources":["../../../src/creek-layout/Exception/NotFoundPage.tsx"],"names":[],"mappings":";AACA,wBAEE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/creek-layout/Exception/index.tsx"],"names":[],"mappings":";AAAA,cAAc,YAAY,CAAC;AAE3B,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,cAAc,4CAG9C,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProLayoutProps } from '@ant-design/pro-components';
|
|
2
3
|
export type LayoutProps = ProLayoutProps & {
|
|
3
4
|
runtimeConfig: ProLayoutProps;
|
|
4
5
|
userConfig?: ProLayoutProps;
|
|
5
6
|
navigate?: (path?: string | number) => void;
|
|
7
|
+
showFullScreen?: boolean;
|
|
8
|
+
userInfo?: {
|
|
9
|
+
name?: React.ReactNode;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
menu?: any;
|
|
12
|
+
};
|
|
6
13
|
initialInfo?: {
|
|
7
14
|
initialState: any;
|
|
8
15
|
loading: boolean;
|
|
@@ -10,4 +17,4 @@ export type LayoutProps = ProLayoutProps & {
|
|
|
10
17
|
};
|
|
11
18
|
};
|
|
12
19
|
export declare const CreekLayout: (props: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export * from
|
|
20
|
+
export * from './Exception';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/creek-layout/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,4BAA4B,CAAC;AASvE,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,aAAa,EAAE,cAAc,CAAC;IAC9B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,GAAG,CAAC;KACZ,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,YAAY,EAAE,GAAG,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,eAAe,EAAE,MAAM,IAAI,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,WAAW,4CAuE7C,CAAC;AAEF,cAAc,aAAa,CAAC"}
|
|
@@ -37,52 +37,46 @@ var import_pro_components = require("@ant-design/pro-components");
|
|
|
37
37
|
var import_ahooks = require("ahooks");
|
|
38
38
|
var import_antd = require("antd");
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
|
+
var import_ActionRender = require("./ActionRender");
|
|
40
41
|
var import_CollapseButton = require("./CollapseButton");
|
|
41
42
|
var import_Exception = require("./Exception");
|
|
42
|
-
var import_HeaderContent = require("./HeaderContent");
|
|
43
43
|
__reExport(creek_layout_exports, require("./Exception"), module.exports);
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
45
|
var CreekLayout = (props) => {
|
|
46
|
-
const {
|
|
47
|
-
route,
|
|
48
|
-
userConfig,
|
|
49
|
-
runtimeConfig,
|
|
50
|
-
children,
|
|
51
|
-
location,
|
|
52
|
-
navigate,
|
|
53
|
-
...more
|
|
54
|
-
} = props;
|
|
46
|
+
const { route, userConfig, runtimeConfig, children, location, navigate, showFullScreen, userInfo, ...more } = props;
|
|
55
47
|
const { useToken } = import_antd.theme;
|
|
56
48
|
const { token } = useToken();
|
|
57
49
|
const { collapsed } = (0, import_CollapseButton.useCollapsedStore)();
|
|
58
|
-
const menuItemRender = (0, import_ahooks.useMemoizedFn)(
|
|
59
|
-
(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
)
|
|
50
|
+
const menuItemRender = (0, import_ahooks.useMemoizedFn)((itemProps, defaultDom) => {
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
"span",
|
|
53
|
+
{
|
|
54
|
+
onClick: () => {
|
|
55
|
+
if (navigate) {
|
|
56
|
+
navigate(itemProps.path);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
children: defaultDom
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
});
|
|
63
|
+
const actions = [];
|
|
64
|
+
if (showFullScreen) {
|
|
65
|
+
actions.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ActionRender.FullScreen, {}, "full-screen"));
|
|
66
|
+
}
|
|
67
|
+
if (userInfo) {
|
|
68
|
+
actions.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ActionRender.UserInfo, { ...userInfo }, "user-info"));
|
|
69
|
+
}
|
|
73
70
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
71
|
import_pro_components.ProLayout,
|
|
75
72
|
{
|
|
76
73
|
className: (0, import_classnames.default)("creek-layout-container", userConfig == null ? void 0 : userConfig.className),
|
|
77
|
-
layout: "mix",
|
|
78
74
|
route,
|
|
79
75
|
title: userConfig == null ? void 0 : userConfig.title,
|
|
80
76
|
siderWidth: 212,
|
|
81
77
|
location,
|
|
82
78
|
menuItemRender,
|
|
83
|
-
|
|
84
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_HeaderContent.HeaderContent, {});
|
|
85
|
-
},
|
|
79
|
+
actionsRender: () => actions,
|
|
86
80
|
token: {
|
|
87
81
|
header: {
|
|
88
82
|
colorBgHeader: "#fff",
|
|
@@ -99,8 +93,8 @@ var CreekLayout = (props) => {
|
|
|
99
93
|
colorTextMenu: "#333"
|
|
100
94
|
},
|
|
101
95
|
pageContainer: {
|
|
102
|
-
paddingBlockPageContainerContent:
|
|
103
|
-
paddingInlinePageContainerContent:
|
|
96
|
+
paddingBlockPageContainerContent: token.padding,
|
|
97
|
+
paddingInlinePageContainerContent: token.padding,
|
|
104
98
|
colorBgPageContainer: "linear-gradient(180deg, #F7F9FF 0%, #FFF 45.59%);"
|
|
105
99
|
}
|
|
106
100
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/creek-layout/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import { ProLayout, ProLayoutProps } from
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA0C;AAC1C,oBAA8B;AAC9B,kBAAsB;AACtB,wBAAuB;AAEvB,4BAAmD;AACnD,uBAA0B;
|
|
4
|
+
"sourcesContent": ["import { ProLayout, ProLayoutProps } from '@ant-design/pro-components';\nimport { useMemoizedFn } from 'ahooks';\nimport { theme } from 'antd';\nimport classnames from 'classnames';\n\nimport { FullScreen, UserInfo } from './ActionRender';\nimport { CollapsedButton, useCollapsedStore } from './CollapseButton';\nimport { Exception } from './Exception';\n\nexport type LayoutProps = ProLayoutProps & {\n runtimeConfig: ProLayoutProps;\n userConfig?: ProLayoutProps;\n navigate?: (path?: string | number) => void;\n showFullScreen?: boolean;\n userInfo?: {\n name?: React.ReactNode;\n avatar?: string;\n menu?: any;\n };\n initialInfo?: {\n initialState: any;\n loading: boolean;\n setInitialState: () => void;\n };\n};\n\nexport const CreekLayout = (props: LayoutProps) => {\n const { route, userConfig, runtimeConfig, children, location, navigate, showFullScreen, userInfo, ...more } = props;\n\n const { useToken } = theme;\n const { token } = useToken();\n\n const { collapsed } = useCollapsedStore();\n\n const menuItemRender: ProLayoutProps['menuItemRender'] = useMemoizedFn((itemProps, defaultDom) => {\n return (\n <span\n onClick={() => {\n if (navigate) {\n navigate(itemProps.path);\n }\n }}\n >\n {defaultDom}\n </span>\n );\n });\n\n const actions: React.ReactNode[] = [];\n if (showFullScreen) {\n actions.push(<FullScreen key=\"full-screen\" />);\n }\n if (userInfo) {\n actions.push(<UserInfo key=\"user-info\" {...userInfo} />);\n }\n\n return (\n <ProLayout\n className={classnames('creek-layout-container', userConfig?.className)}\n route={route}\n title={userConfig?.title}\n siderWidth={212}\n location={location}\n menuItemRender={menuItemRender}\n actionsRender={() => actions}\n token={{\n header: {\n colorBgHeader: '#fff',\n colorHeaderTitle: 'rgba(0, 0, 0, 0.80);',\n colorTextMenuSelected: token.colorPrimary,\n heightLayoutHeader: 48,\n },\n sider: {\n colorMenuBackground: '#f7f8fa',\n colorBgMenuItemSelected: 'transparent',\n colorTextMenuActive: token.colorPrimary,\n colorTextMenuSelected: token.colorPrimary,\n colorTextMenuItemHover: token.colorPrimary,\n colorTextMenu: '#333',\n },\n pageContainer: {\n paddingBlockPageContainerContent: token.padding,\n paddingInlinePageContainerContent: token.padding,\n colorBgPageContainer: 'linear-gradient(180deg, #F7F9FF 0%, #FFF 45.59%);',\n },\n }}\n fixSiderbar\n fixedHeader\n collapsed={collapsed}\n collapsedButtonRender={(collapsed) => {\n return <CollapsedButton collapsed={collapsed} />;\n }}\n {...more}\n >\n <Exception>{children}</Exception>\n </ProLayout>\n );\n};\n\nexport * from './Exception';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA0C;AAC1C,oBAA8B;AAC9B,kBAAsB;AACtB,wBAAuB;AAEvB,0BAAqC;AACrC,4BAAmD;AACnD,uBAA0B;AA4F1B,iCAAc,wBAnGd;AAoCM;AAVC,IAAM,cAAc,CAAC,UAAuB;AACjD,QAAM,EAAE,OAAO,YAAY,eAAe,UAAU,UAAU,UAAU,gBAAgB,UAAU,GAAG,KAAK,IAAI;AAE9G,QAAM,EAAE,SAAS,IAAI;AACrB,QAAM,EAAE,MAAM,IAAI,SAAS;AAE3B,QAAM,EAAE,UAAU,QAAI,yCAAkB;AAExC,QAAM,qBAAmD,6BAAc,CAAC,WAAW,eAAe;AAChG,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAM;AACb,cAAI,UAAU;AACZ,qBAAS,UAAU,IAAI;AAAA,UACzB;AAAA,QACF;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ,CAAC;AAED,QAAM,UAA6B,CAAC;AACpC,MAAI,gBAAgB;AAClB,YAAQ,KAAK,4CAAC,oCAAe,aAAc,CAAE;AAAA,EAC/C;AACA,MAAI,UAAU;AACZ,YAAQ,KAAK,4CAAC,gCAA0B,GAAG,YAAhB,WAA0B,CAAE;AAAA,EACzD;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW,kBAAAA,SAAW,0BAA0B,yCAAY,SAAS;AAAA,MACrE;AAAA,MACA,OAAO,yCAAY;AAAA,MACnB,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA,eAAe,MAAM;AAAA,MACrB,OAAO;AAAA,QACL,QAAQ;AAAA,UACN,eAAe;AAAA,UACf,kBAAkB;AAAA,UAClB,uBAAuB,MAAM;AAAA,UAC7B,oBAAoB;AAAA,QACtB;AAAA,QACA,OAAO;AAAA,UACL,qBAAqB;AAAA,UACrB,yBAAyB;AAAA,UACzB,qBAAqB,MAAM;AAAA,UAC3B,uBAAuB,MAAM;AAAA,UAC7B,wBAAwB,MAAM;AAAA,UAC9B,eAAe;AAAA,QACjB;AAAA,QACA,eAAe;AAAA,UACb,kCAAkC,MAAM;AAAA,UACxC,mCAAmC,MAAM;AAAA,UACzC,sBAAsB;AAAA,QACxB;AAAA,MACF;AAAA,MACA,aAAW;AAAA,MACX,aAAW;AAAA,MACX;AAAA,MACA,uBAAuB,CAACC,eAAc;AACpC,eAAO,4CAAC,yCAAgB,WAAWA,YAAW;AAAA,MAChD;AAAA,MACC,GAAG;AAAA,MAEJ,sDAAC,8BAAW,UAAS;AAAA;AAAA,EACvB;AAEJ;",
|
|
6
6
|
"names": ["classnames", "collapsed"]
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/creek-loading/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,qBAAa,OAAO;IAClB,OAAO,CAAC,MAAM,CAAC,SAAS,CAA+B;IACvD,OAAO,CAAC,MAAM,CAAC,IAAI,CAA8C;IAEjE,OAAO,CAAC,MAAM,CAAC,eAAe;IAS9B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IAMtD,MAAM,CAAC,KAAK;CAWb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchTable.d.ts","sourceRoot":"","sources":["../../src/creek-table/SearchTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,4BAA4B,CAAC;AAUlE,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AA6CzC,eAAO,MAAM,cAAc,0EAA2E,gBAAgB,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,4CAmDrI,CAAC"}
|
|
@@ -33,74 +33,87 @@ __export(SearchTable_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(SearchTable_exports);
|
|
35
35
|
var import_pro_components = require("@ant-design/pro-components");
|
|
36
|
+
var import_antd = require("antd");
|
|
36
37
|
var import_antd_style = require("antd-style");
|
|
37
38
|
var import_classnames = __toESM(require("classnames"));
|
|
38
39
|
var import_lodash = __toESM(require("lodash"));
|
|
39
40
|
var import_react = require("react");
|
|
40
41
|
var import_hooks = require("./hooks");
|
|
41
42
|
var import_TableOptionRender = require("./TableOptionRender");
|
|
42
|
-
var import_TableViewContent = require("./TableViewContent");
|
|
43
43
|
var import_toolBarRender = require("./toolBarRender");
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
var useStyles = (0, import_antd_style.createStyles)(({ prefixCls }) => {
|
|
45
|
+
var useStyles = (0, import_antd_style.createStyles)(({ css, token }, { scrollY, prefixCls }) => {
|
|
46
46
|
return {
|
|
47
|
-
"creek-table-container":
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
"creek-table-container": css`
|
|
48
|
+
.${prefixCls}-table-body {
|
|
49
|
+
overflow-y: auto !important;
|
|
50
|
+
min-height: ${typeof scrollY === "number" ? `${scrollY}px` : scrollY ?? "auto"};
|
|
51
|
+
|
|
52
|
+
/* Firefox 滚动条样式 */
|
|
53
|
+
scrollbar-width: thin;
|
|
54
|
+
scrollbar-color: ${token.colorFillSecondary} transparent;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Webkit (Chrome, Safari, Edge) 滚动条样式 */
|
|
58
|
+
& *::-webkit-scrollbar {
|
|
59
|
+
width: 6px !important;
|
|
60
|
+
height: 6px !important;
|
|
61
|
+
background-color: transparent !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& *::-webkit-scrollbar-thumb {
|
|
65
|
+
background-color: ${token.colorFillSecondary} !important;
|
|
66
|
+
border-radius: 3px !important;
|
|
67
|
+
transition: all 0.3s;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
71
|
+
background-color: ${token.colorFill} !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
& *::-webkit-scrollbar-track {
|
|
75
|
+
background-color: transparent !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.${prefixCls}-pagination {
|
|
79
|
+
.${prefixCls}-pagination-total-text {
|
|
80
|
+
flex: 1;
|
|
51
81
|
}
|
|
52
82
|
}
|
|
53
|
-
|
|
83
|
+
`
|
|
54
84
|
};
|
|
55
85
|
});
|
|
56
86
|
var SearchProTable = (props) => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
params,
|
|
60
|
-
prefixCls = "ant",
|
|
61
|
-
autoAddFilterForColumn = true,
|
|
62
|
-
className,
|
|
63
|
-
optionsRender,
|
|
64
|
-
tableViewRender,
|
|
65
|
-
pagination,
|
|
66
|
-
pageFixedBottom = true,
|
|
67
|
-
pageFixedBottomConfig,
|
|
68
|
-
...restProps
|
|
69
|
-
} = props;
|
|
87
|
+
var _a;
|
|
88
|
+
const { columns, prefixCls = "ant", autoAddFilterForColumn = true, className, optionsRender, tableViewRender, pagination, pageFixedBottom = true, pageFixedBottomConfig, ...restProps } = props;
|
|
70
89
|
const proTableRef = (0, import_react.useRef)(null);
|
|
90
|
+
const { token } = import_antd.theme.useToken();
|
|
71
91
|
const { columns: adaptiveColumns, totalWidth } = (0, import_hooks.useAutoWidthColumns)(columns, proTableRef);
|
|
72
|
-
const
|
|
92
|
+
const scrollY = (0, import_hooks.useTableScrollHeight)(prefixCls, proTableRef, pageFixedBottom, token.paddingContentVerticalLG, (pageFixedBottomConfig == null ? void 0 : pageFixedBottomConfig.bottomFix) || token.padding);
|
|
93
|
+
const { styles } = useStyles({ scrollY, prefixCls });
|
|
94
|
+
console.log("scrollY", scrollY);
|
|
73
95
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: proTableRef, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
96
|
import_pro_components.ProTable,
|
|
75
97
|
{
|
|
76
|
-
...
|
|
98
|
+
...props,
|
|
77
99
|
className: (0, import_classnames.default)(styles["creek-table-container"], className),
|
|
78
100
|
columns: adaptiveColumns,
|
|
79
101
|
scroll: {
|
|
80
102
|
x: totalWidth,
|
|
81
|
-
|
|
103
|
+
y: scrollY ?? ((_a = restProps.scroll) == null ? void 0 : _a.y)
|
|
82
104
|
},
|
|
83
105
|
toolbar: {
|
|
84
106
|
...restProps.toolbar
|
|
85
107
|
},
|
|
86
|
-
pagination: {
|
|
87
|
-
showTotal: (total) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
88
|
-
"共 ",
|
|
89
|
-
total,
|
|
90
|
-
" 条"
|
|
91
|
-
] }),
|
|
92
|
-
showSizeChanger: true,
|
|
93
|
-
...pagination
|
|
94
|
-
},
|
|
95
108
|
optionsRender: (defaultProps, dom) => {
|
|
96
|
-
var
|
|
97
|
-
return import_lodash.default.isFunction(optionsRender) ? optionsRender(defaultProps, dom) : (restProps == null ? void 0 : restProps.options) ? [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TableOptionRender.TableOptionRender, { defaultDom: dom, importConfig: (
|
|
109
|
+
var _a2, _b;
|
|
110
|
+
return import_lodash.default.isFunction(optionsRender) ? optionsRender(defaultProps, dom) : (restProps == null ? void 0 : restProps.options) ? [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TableOptionRender.TableOptionRender, { defaultDom: dom, importConfig: (_a2 = restProps == null ? void 0 : restProps.options) == null ? void 0 : _a2.importConfig, exportConfig: (_b = restProps == null ? void 0 : restProps.options) == null ? void 0 : _b.exportConfig }, "option")] : [];
|
|
98
111
|
},
|
|
99
|
-
toolBarRender: () => {
|
|
100
|
-
return (0, import_toolBarRender.toolBarRender)({ shouldCollapse: false, restProps });
|
|
112
|
+
toolBarRender: (...args) => {
|
|
113
|
+
return (0, import_toolBarRender.toolBarRender)({ shouldCollapse: false, restProps, args });
|
|
101
114
|
},
|
|
102
115
|
tableViewRender: (defaultProps, defaultDom) => {
|
|
103
|
-
return import_lodash.default.isFunction(tableViewRender) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: tableViewRender(defaultProps, defaultDom) }) :
|
|
116
|
+
return import_lodash.default.isFunction(tableViewRender) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: tableViewRender(defaultProps, defaultDom) }) : defaultDom;
|
|
104
117
|
}
|
|
105
118
|
}
|
|
106
119
|
) });
|