react-toolkits 0.8.87 → 0.8.89
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/CHANGELOG.md +12 -0
- package/lib/index.css +1 -0
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +4 -5
- package/lib/index.js +12 -10
- package/lib/index.js.map +1 -0
- package/locales/en_GB.js +2 -0
- package/locales/en_GB.js.map +1 -0
- package/locales/ja_JP.js +2 -0
- package/locales/ja_JP.js.map +1 -0
- package/locales/ko_KR.js +2 -0
- package/locales/ko_KR.js.map +1 -0
- package/locales/zh_CN.js +2 -0
- package/locales/zh_CN.js.map +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# react-toolkits
|
|
2
2
|
|
|
3
|
+
## 0.8.89
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e5352c9: feat: access FormInstance throught QueryList getDataSource callback
|
|
8
|
+
|
|
9
|
+
## 0.8.88
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- d3b3d59: fix: shoulde call setGame before involking mutate
|
|
14
|
+
|
|
3
15
|
## 0.8.87
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/lib/index.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.left-14{left:3.5rem}.right-0{right:0}.right-16{right:4rem}.top-0{top:0}.top-1\/2{top:50%}.top-16{top:4rem}.top-6{top:1.5rem}.z-10{z-index:10}.my-12{margin-top:3rem;margin-bottom:3rem}.-mb-0{margin-bottom:-0px}.-mb-0\.5{margin-bottom:-.125rem}.mb-12{margin-bottom:3rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-64{margin-left:16rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.h-10{height:2.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:8rem}.w-10\/12{width:83.333333%}.w-12{width:3rem}.w-8{width:2rem}.w-\[18px\]{width:18px}.w-\[650px\]{width:650px}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.p-6{padding:1.5rem}.px-36{padding-left:9rem;padding-right:9rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
|
|
2
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/styles/index.css"],"sourcesContent":["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n.container {\n width: 100%\n}\n@media (min-width: 640px) {\n .container {\n max-width: 640px\n }\n}\n@media (min-width: 768px) {\n .container {\n max-width: 768px\n }\n}\n@media (min-width: 1024px) {\n .container {\n max-width: 1024px\n }\n}\n@media (min-width: 1280px) {\n .container {\n max-width: 1280px\n }\n}\n@media (min-width: 1536px) {\n .container {\n max-width: 1536px\n }\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.bottom-0 {\n bottom: 0px\n}\n.left-0 {\n left: 0px\n}\n.left-14 {\n left: 3.5rem\n}\n.right-0 {\n right: 0px\n}\n.right-16 {\n right: 4rem\n}\n.top-0 {\n top: 0px\n}\n.top-1\\/2 {\n top: 50%\n}\n.top-16 {\n top: 4rem\n}\n.top-6 {\n top: 1.5rem\n}\n.z-10 {\n z-index: 10\n}\n.my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem\n}\n.-mb-0 {\n margin-bottom: -0px\n}\n.-mb-0\\.5 {\n margin-bottom: -0.125rem\n}\n.mb-12 {\n margin-bottom: 3rem\n}\n.mb-4 {\n margin-bottom: 1rem\n}\n.mb-6 {\n margin-bottom: 1.5rem\n}\n.ml-2 {\n margin-left: 0.5rem\n}\n.ml-64 {\n margin-left: 16rem\n}\n.ml-8 {\n margin-left: 2rem\n}\n.mr-2 {\n margin-right: 0.5rem\n}\n.mt-2 {\n margin-top: 0.5rem\n}\n.mt-4 {\n margin-top: 1rem\n}\n.block {\n display: block\n}\n.inline {\n display: inline\n}\n.flex {\n display: flex\n}\n.h-10 {\n height: 2.5rem\n}\n.h-8 {\n height: 2rem\n}\n.h-full {\n height: 100%\n}\n.h-screen {\n height: 100vh\n}\n.max-h-32 {\n max-height: 8rem\n}\n.w-10\\/12 {\n width: 83.333333%\n}\n.w-12 {\n width: 3rem\n}\n.w-8 {\n width: 2rem\n}\n.w-\\[18px\\] {\n width: 18px\n}\n.w-\\[650px\\] {\n width: 650px\n}\n.w-full {\n width: 100%\n}\n.w-screen {\n width: 100vw\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.-translate-y-10 {\n --tw-translate-y: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.overflow-auto {\n overflow: auto\n}\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity))\n}\n.bg-slate-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(248 250 252 / var(--tw-bg-opacity))\n}\n.p-6 {\n padding: 1.5rem\n}\n.px-36 {\n padding-left: 9rem;\n padding-right: 9rem\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n"],"mappings":"AAAA,EAAG,QAAU,OACT,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aACA,aACA,kBACA,6BAA6B,UAC7B,8BACA,6BACA,4BACA,eACA,oBACA,sBACA,uBACA,wBACA,kBACA,wBAAwB,IACxB,wBAAwB,KACxB,iBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE,IAClC,yBAAyB,EAAE,EAAE,MAC7B,kBAAkB,EAAE,EAAE,MACtB,aAAa,EAAE,EAAE,MACjB,qBAAqB,EAAE,EAAE,MACzB,YACA,kBACA,gBACA,iBACA,kBACA,cACA,gBACA,aACA,mBACA,qBACA,2BACA,yBACA,0BACA,2BACA,uBACA,wBACA,yBACA,qBACJ,CACA,WACI,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aACA,aACA,kBACA,6BAA6B,UAC7B,8BACA,6BACA,4BACA,eACA,oBACA,sBACA,uBACA,wBACA,kBACA,wBAAwB,IACxB,wBAAwB,KACxB,iBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE,IAClC,yBAAyB,EAAE,EAAE,MAC7B,kBAAkB,EAAE,EAAE,MACtB,aAAa,EAAE,EAAE,MACjB,qBAAqB,EAAE,EAAE,MACzB,YACA,kBACA,gBACA,iBACA,kBACA,cACA,gBACA,aACA,mBACA,qBACA,2BACA,yBACA,0BACA,2BACA,uBACA,wBACA,yBACA,qBACJ,CACA,CAAC,UACG,MAAO,IACX,CACA,OAAO,CAAC,SAAS,EAAE,OACf,CAJH,UAKO,UAAW,KACf,CACJ,CACA,OAAO,CAAC,SAAS,EAAE,OACf,CATH,UAUO,UAAW,KACf,CACJ,CACA,OAAO,CAAC,SAAS,EAAE,QACf,CAdH,UAeO,UAAW,MACf,CACJ,CACA,OAAO,CAAC,SAAS,EAAE,QACf,CAnBH,UAoBO,UAAW,MACf,CACJ,CACA,OAAO,CAAC,SAAS,EAAE,QACf,CAxBH,UAyBO,UAAW,MACf,CACJ,CACA,CAAC,MACG,SAAU,KACd,CACA,CAAC,SACG,SAAU,QACd,CACA,CAAC,SACG,SAAU,QACd,CACA,CAAC,SACG,OAAQ,CACZ,CACA,CAAC,OACG,KAAM,CACV,CACA,CAAC,QACG,KAAM,MACV,CACA,CAAC,QACG,MAAO,CACX,CACA,CAAC,SACG,MAAO,IACX,CACA,CAAC,MACG,IAAK,CACT,CACA,CAAC,SACG,IAAK,GACT,CACA,CAAC,OACG,IAAK,IACT,CACA,CAAC,MACG,IAAK,MACT,CACA,CAAC,KACG,QAAS,EACb,CACA,CAAC,MACG,WAAY,KACZ,cAAe,IACnB,CACA,CAAC,MACG,cAAe,IACnB,CACA,CAAC,SACG,cAAe,QACnB,CACA,CAAC,MACG,cAAe,IACnB,CACA,CAAC,KACG,cAAe,IACnB,CACA,CAAC,KACG,cAAe,MACnB,CACA,CAAC,KACG,YAAa,KACjB,CACA,CAAC,MACG,YAAa,KACjB,CACA,CAAC,KACG,YAAa,IACjB,CACA,CAAC,KACG,aAAc,KAClB,CACA,CAAC,KACG,WAAY,KAChB,CACA,CAAC,KACG,WAAY,IAChB,CACA,CAAC,MACG,QAAS,KACb,CACA,CAAC,OACG,QAAS,MACb,CACA,CAAC,KACG,QAAS,IACb,CACA,CAAC,KACG,OAAQ,MACZ,CACA,CAAC,IACG,OAAQ,IACZ,CACA,CAAC,OACG,OAAQ,IACZ,CACA,CAAC,SACG,OAAQ,KACZ,CACA,CAAC,SACG,WAAY,IAChB,CACA,CAAC,SACG,MAAO,UACX,CACA,CAAC,KACG,MAAO,IACX,CACA,CAAC,IACG,MAAO,IACX,CACA,CAAC,WACG,MAAO,IACX,CACA,CAAC,YACG,MAAO,KACX,CACA,CAAC,OACG,MAAO,IACX,CACA,CAAC,SACG,MAAO,KACX,CACA,CAAC,OACG,KAAM,EAAE,EAAE,EACd,CACA,CAAC,kBACG,kBAAkB,KAClB,UAAW,UAAU,IAAI,iBAAiB,CAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,KAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI,cACrL,CACA,CAAC,gBACG,kBAAkB,QAClB,UAAW,UAAU,IAAI,iBAAiB,CAAE,IAAI,mBAAmB,OAAO,IAAI,cAAc,KAAM,IAAI,cAAc,MAAM,IAAI,cAAc,OAAO,IAAI,eAAe,OAAO,IAAI,cACrL,CACA,CAAC,SACG,eAAgB,MACpB,CACA,CAAC,aACG,YAAa,MACjB,CACA,CAAC,eACG,gBAAiB,MACrB,CACA,CAAC,gBACG,gBAAiB,aACrB,CACA,CAAC,cACG,SAAU,IACd,CACA,CAAC,WACG,iBAAiB,EACjB,iBAAkB,IAAI,IAAI,IAAI,IAAI,EAAE,IAAI,iBAC5C,CACA,CAAC,YACG,iBAAiB,EACjB,iBAAkB,IAAI,IAAI,IAAI,IAAI,EAAE,IAAI,iBAC5C,CACA,CAAC,IAzRD,QA0Ra,MACb,CACA,CAAC,MACG,aAAc,KACd,cAAe,IACnB,CACA,CAAC,KACG,aAAc,OACd,cAAe,MACnB,CACA,CAAC,KACG,YAAa,KACb,eAAgB,IACpB,CACA,CAAC,OACG,OAAQ,IAAI,WAAW,IAAI,iBAAiB,IAAI,eAAe,IAAI,gBAAgB,IAAI,iBAAiB,IAAI,aAAa,IAAI,eAAe,IAAI,YAAY,IAAI,iBACpK","names":[]}
|
package/lib/index.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ interface QueryListState {
|
|
|
263
263
|
mutate: QueryListMutator;
|
|
264
264
|
refresh(action: string, page?: number): void;
|
|
265
265
|
removeFromStore(action: string): void;
|
|
266
|
+
setProps: (action: string, props: QueryListProps) => void;
|
|
266
267
|
}
|
|
267
268
|
declare const useQueryListStore: zustand.UseBoundStore<zustand.StoreApi<QueryListState>>;
|
|
268
269
|
|
|
@@ -293,7 +294,7 @@ interface QueryListProps<Item = any, Values = any, Response = any> extends Pick<
|
|
|
293
294
|
form?: FormInstance<Values>;
|
|
294
295
|
getBody?: (payload: QueryListPayload<Values>) => RequestOptions['body'];
|
|
295
296
|
getParams?: (payload: QueryListPayload<Values>) => RequestOptions['params'];
|
|
296
|
-
renderForm?: (
|
|
297
|
+
renderForm?: (form: FormInstance<Values>) => ReactNode;
|
|
297
298
|
extra?: (opts: {
|
|
298
299
|
form: FormInstance<Values>;
|
|
299
300
|
data: Response | undefined;
|
|
@@ -301,14 +302,12 @@ interface QueryListProps<Item = any, Values = any, Response = any> extends Pick<
|
|
|
301
302
|
onTableChange?: TableProps<Item>['onChange'];
|
|
302
303
|
afterSuccess?: (action: QueryListAction, data: QueryListDataType<Item>) => void;
|
|
303
304
|
getTotal?: (response: Response) => number;
|
|
304
|
-
getDataSource?: (response: Response) => Item[];
|
|
305
|
+
getDataSource?: (response: Response, form: FormInstance<Values>) => Item[];
|
|
305
306
|
}
|
|
306
307
|
declare const QueryList: <Item extends object, Values extends object | undefined, Response_1 = ListResponse<Item>>(props: QueryListProps<Item, Values, Response_1> & {
|
|
307
308
|
ref?: Ref<QueryListRef<Item, Values, Response_1>> | undefined;
|
|
308
309
|
}) => ReactElement;
|
|
309
310
|
|
|
310
|
-
declare const RequireGame: FC<PropsWithChildren>;
|
|
311
|
-
|
|
312
311
|
declare const UserWidget: FC;
|
|
313
312
|
|
|
314
313
|
interface ModalState {
|
|
@@ -409,4 +408,4 @@ declare function withBaseRoutes(routes: ReactNode, props?: Partial<Omit<ContextS
|
|
|
409
408
|
|
|
410
409
|
declare const mixedStorage: StateStorage;
|
|
411
410
|
|
|
412
|
-
export { ContextProvider, type ContextState, DynamicTags, type DynamicTagsProps, FilterFormWrapper, type FilterFormWrapperProps, type Game, GameSelect, type GameState, Highlight, type HighlightTextsProps, InfiniteList, type InfiniteListProps, Layout, type Locale, NavMenu, type NavMenuItem, NotFound, OperationLogList, Permission, PermissionButton, type PermissionButtonProps, PermissionGuard, type PermissionGuardProps, QueryList, QueryListAction, type QueryListProps, type QueryListRef, RequestError, type RequestOptions, type RequestResponse,
|
|
411
|
+
export { ContextProvider, type ContextState, DynamicTags, type DynamicTagsProps, FilterFormWrapper, type FilterFormWrapperProps, type Game, GameSelect, type GameState, Highlight, type HighlightTextsProps, InfiniteList, type InfiniteListProps, Layout, type Locale, NavMenu, type NavMenuItem, NotFound, OperationLogList, Permission, PermissionButton, type PermissionButtonProps, PermissionGuard, type PermissionGuardProps, QueryList, QueryListAction, type QueryListProps, type QueryListRef, RequestError, type RequestOptions, type RequestResponse, SignIn, type TokenState, type UseFormModalProps, UserWidget, contextStore, mixedStorage, request, useFormModal, useGameStore, useModal, useModalStore, usePermission, usePermissions, useQueryListStore, useTokenStore, useTokenValidation, useToolkitsContext, useTranslation, withBaseRoutes, withLayout };
|