@faasjs/ant-design 0.0.2-beta.396 → 0.0.2-beta.397
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/README.md +16 -16
- package/dist/index.d.ts +4 -7
- package/dist/index.js +422 -273
- package/dist/index.mjs +418 -274
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -478,32 +478,32 @@ ___
|
|
|
478
478
|
|
|
479
479
|
### ConfigProvider
|
|
480
480
|
|
|
481
|
-
▸ **ConfigProvider**(`
|
|
481
|
+
▸ **ConfigProvider**(`__namedParameters`): `Element`
|
|
482
482
|
|
|
483
483
|
Config for @faasjs/ant-design components.
|
|
484
484
|
|
|
485
|
+
```ts
|
|
486
|
+
<ConfigProvider config={{
|
|
487
|
+
common: {
|
|
488
|
+
blank: 'Empty',
|
|
489
|
+
},
|
|
490
|
+
}}>
|
|
491
|
+
<Blank />
|
|
492
|
+
</ConfigProvider>
|
|
493
|
+
```
|
|
494
|
+
|
|
485
495
|
#### Parameters
|
|
486
496
|
|
|
487
|
-
| Name | Type |
|
|
488
|
-
| :------ | :------ |
|
|
489
|
-
| `
|
|
490
|
-
| `
|
|
491
|
-
| `
|
|
497
|
+
| Name | Type |
|
|
498
|
+
| :------ | :------ |
|
|
499
|
+
| `__namedParameters` | `Object` |
|
|
500
|
+
| `__namedParameters.children` | `ReactNode` |
|
|
501
|
+
| `__namedParameters.config` | `Partial`<[`FaasState`](#faasstate)\> |
|
|
492
502
|
|
|
493
503
|
#### Returns
|
|
494
504
|
|
|
495
505
|
`Element`
|
|
496
506
|
|
|
497
|
-
```ts
|
|
498
|
-
<ConfigProvider config={{
|
|
499
|
-
common: {
|
|
500
|
-
blank: '空',
|
|
501
|
-
},
|
|
502
|
-
}}>
|
|
503
|
-
<Blank />
|
|
504
|
-
</ConfigProvider>
|
|
505
|
-
```
|
|
506
|
-
|
|
507
507
|
___
|
|
508
508
|
|
|
509
509
|
### Description
|
package/dist/index.d.ts
CHANGED
|
@@ -61,17 +61,14 @@ declare type FaasState = {
|
|
|
61
61
|
declare const ConfigContext: react.Context<FaasState>;
|
|
62
62
|
/**
|
|
63
63
|
* Config for @faasjs/ant-design components.
|
|
64
|
-
* @param props {object}
|
|
65
|
-
* @param props.config {Partial<FaasState>}
|
|
66
|
-
* @returns {null}
|
|
67
64
|
*
|
|
68
65
|
* ```ts
|
|
69
66
|
* <ConfigProvider config={{
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
67
|
+
* common: {
|
|
68
|
+
* blank: 'Empty',
|
|
69
|
+
* },
|
|
73
70
|
* }}>
|
|
74
|
-
*
|
|
71
|
+
* <Blank />
|
|
75
72
|
* </ConfigProvider>
|
|
76
73
|
* ```
|
|
77
74
|
*/
|