feat: add link for individual props/events/slots/configs/icons
This commit is contained in:
@@ -11,7 +11,7 @@ The `ui` prop takes a string consists of a list of whitespace-separated tokens,
|
||||
```
|
||||
|
||||
:::tip
|
||||
As we know, most component libraries provide style variants via enum props like `shape`/`size`/`type`/... .
|
||||
As we know, most component libraries provide style variants via enum props like `shape` / `size` / `type`/... .
|
||||
|
||||
While our design goal is that VEUI should not be bound to a specific design language tightly (though it's hard to completely decouple component structure/behavior and design languages). If we use enum props, once we need to create a completely new theme package but some of the new style variants cannot be described with the preserved enum props, we'll have to use something like `class` to attach style hooks to implement these style variants.
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ As we know, in popular component libraries like Ant Design and Element, theme pa
|
||||
| `package` | `string` | - | The name of the injected package. It's generally the name of the theme package, like `'veui-theme-dls'`. |
|
||||
| `path` | `string` | `'components'` | The path of the directory containing the injected module. |
|
||||
| `fileName` | `string` | `'{module}.css'` | The file name template corresponds to the component name. Must include the placeholder `{module}`. |
|
||||
| `transform` | `string|boolean` | `'kebab-case'` | Transformation applied for component names. The `{module}` part within `fileName` will be replaced with the transformed name. Provide `false` to prevent transformation. All possible values are `'kebab-case'`, `'camleCase'` and `'PascalCase'`. |
|
||||
| `transform` | `string | boolean` | `'kebab-case'` | Transformation applied for component names. The `{module}` part within `fileName` will be replaced with the transformed name. Provide `false` to prevent transformation. All possible values are `'kebab-case'`, `'camleCase'` and `'PascalCase'`. |
|
||||
|
||||
* `locale`
|
||||
|
||||
Type: `boolean|string=|Array<string>=`
|
||||
Type: `boolean | string=|Array<string>=`
|
||||
|
||||
The ID of the locale modules to be injected. Array values indicate to inject multiple locale packages. Defaults to `zh-Hans`. Current available values are `zh-Hans` and `en-US`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user