mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
Some fixes
This commit is contained in:
parent
d8741808e5
commit
a249b6183b
7 changed files with 10 additions and 10 deletions
|
@ -2729,7 +2729,7 @@ None.
|
||||||
|
|
||||||
| Prop name | Kind | Reactive | Type | Default value | Description |
|
| Prop name | Kind | Reactive | Type | Default value | Description |
|
||||||
| :------------ | :--------------- | :------- | :------------------- | ------------------ | --------------------------------------- |
|
| :------------ | :--------------- | :------- | :------------------- | ------------------ | --------------------------------------- |
|
||||||
| selectedValue | <code>let</code> | Yes | <code>string</code> | -- | Specify the selected tile value |
|
| selectedValue | <code>let</code> | Yes | <code>any</code> | -- | Specify the selected tile value |
|
||||||
| disabled | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the tile group |
|
| disabled | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the tile group |
|
||||||
| legend | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the legend text |
|
| legend | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the legend text |
|
||||||
|
|
||||||
|
@ -2961,7 +2961,7 @@ None.
|
||||||
|
|
||||||
| Prop name | Kind | Reactive | Type | Default value | Description |
|
| Prop name | Kind | Reactive | Type | Default value | Description |
|
||||||
| :------------- | :--------------- | :------- | :------------------- | ------------------ | ----------------------------------------- |
|
| :------------- | :--------------- | :------- | :------------------- | ------------------ | ----------------------------------------- |
|
||||||
| selectedValues | <code>let</code> | Yes | <code>string</code> | <code>[]</code> | Specify the selected tile's |
|
| selectedValues | <code>let</code> | Yes | <code>any[]</code> | <code>[]</code> | Specify the selected tile's |
|
||||||
| disabled | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the tile group |
|
| disabled | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the tile group |
|
||||||
| light | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant |
|
| light | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant |
|
||||||
| legend | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the legend text |
|
| legend | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the legend text |
|
||||||
|
|
|
@ -8772,7 +8772,7 @@
|
||||||
"name": "selectedValue",
|
"name": "selectedValue",
|
||||||
"kind": "let",
|
"kind": "let",
|
||||||
"description": "Specify the selected tile value",
|
"description": "Specify the selected tile value",
|
||||||
"type": "string",
|
"type": "any",
|
||||||
"isFunction": false,
|
"isFunction": false,
|
||||||
"constant": false,
|
"constant": false,
|
||||||
"reactive": true
|
"reactive": true
|
||||||
|
@ -8811,7 +8811,7 @@
|
||||||
"name": "selectedValues",
|
"name": "selectedValues",
|
||||||
"kind": "let",
|
"kind": "let",
|
||||||
"description": "Specify the selected tile's",
|
"description": "Specify the selected tile's",
|
||||||
"type": "string",
|
"type": "any[]",
|
||||||
"value": "[]",
|
"value": "[]",
|
||||||
"isFunction": false,
|
"isFunction": false,
|
||||||
"constant": false,
|
"constant": false,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
/**
|
/**
|
||||||
* Specify the selected tile value
|
* Specify the selected tile value
|
||||||
* @type {string}
|
* @type {any}
|
||||||
*/
|
*/
|
||||||
export let selectedValue = undefined;
|
export let selectedValue = undefined;
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
class:bx--tile--light="{light}"
|
class:bx--tile--light="{light}"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
on:click
|
on:click
|
||||||
on:click|preventDefault="{() => update(value, !selected)}"
|
on:click|preventDefault="{() => update({ value, selected: !selected })}"
|
||||||
on:mouseover
|
on:mouseover
|
||||||
on:mouseenter
|
on:mouseenter
|
||||||
on:mouseleave
|
on:mouseleave
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
on:keydown="{(e) => {
|
on:keydown="{(e) => {
|
||||||
if (e.key === ' ' || e.key === 'Enter') {
|
if (e.key === ' ' || e.key === 'Enter') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
update(value, !selected);
|
update({ value, selected: !selected });
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
>
|
>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
/**
|
/**
|
||||||
* Specify the selected tile's
|
* Specify the selected tile's
|
||||||
* @type {string[]}
|
* @type {any[]}
|
||||||
*/
|
*/
|
||||||
export let selectedValues = [];
|
export let selectedValues = [];
|
||||||
|
|
||||||
|
|
2
types/Tile/RadioTileGroup.d.ts
vendored
2
types/Tile/RadioTileGroup.d.ts
vendored
|
@ -4,7 +4,7 @@ export interface RadioTileGroupProps extends svelte.JSX.HTMLAttributes<HTMLEleme
|
||||||
/**
|
/**
|
||||||
* Specify the selected tile value
|
* Specify the selected tile value
|
||||||
*/
|
*/
|
||||||
selectedValue?: string;
|
selectedValue?: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set to `true` to disable the tile group
|
* Set to `true` to disable the tile group
|
||||||
|
|
2
types/Tile/SelectableTileGroup.d.ts
vendored
2
types/Tile/SelectableTileGroup.d.ts
vendored
|
@ -5,7 +5,7 @@ export interface SelectableTileGroupProps extends svelte.JSX.HTMLAttributes<HTML
|
||||||
* Specify the selected tile's
|
* Specify the selected tile's
|
||||||
* @default []
|
* @default []
|
||||||
*/
|
*/
|
||||||
selectedValues?: string;
|
selectedValues?: any[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set to `true` to disable the tile group
|
* Set to `true` to disable the tile group
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue