Skip to content

Commit f087b50

Browse files
Update props
1 parent 7c3bac6 commit f087b50

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

src/stores/props.ts

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const sharedProps = [
7474
type: "VBtn['$props']['variant']",
7575
},
7676
{
77-
default: undefined,
77+
default: '$close',
7878
desc: 'The icon to use to cancel',
7979
name: 'cancel-icon',
8080
type: 'string | undefined',
@@ -198,6 +198,15 @@ const autofocusProp = [
198198
},
199199
];
200200

201+
const clearIconProp = [
202+
{
203+
default: '$clear',
204+
desc: 'The icon to use to clear the field',
205+
name: 'clear-icon',
206+
type: "string | undefined",
207+
},
208+
];
209+
201210
const saveAndLoadingIconProps = [
202211
{
203212
default: false,
@@ -263,7 +272,7 @@ const trueFalseIconProps = [
263272
type: 'boolean | string',
264273
},
265274
{
266-
default: undefined,
275+
default: '$close',
267276
desc: 'The displayed <code class="ic">false</code> icon when the field is not editable',
268277
name: 'icon-false',
269278
type: 'string | undefined',
@@ -281,7 +290,7 @@ const trueFalseIconProps = [
281290
type: 'string | undefined',
282291
},
283292
{
284-
default: undefined,
293+
default: '$complete',
285294
desc: 'The displayed <code class="ic">true</code> icon when the field is not editable',
286295
name: 'icon-true',
287296
type: 'string | undefined',
@@ -333,13 +342,13 @@ const vInlineCheckboxProps = [
333342
...trueFalseIconProps,
334343
...[
335344
{
336-
default: undefined,
345+
default: '$close',
337346
desc: 'The icon of the checkbox when <code class="ic">false</code>',
338347
name: 'false-icon',
339348
type: "string | undefined",
340349
},
341350
{
342-
default: undefined,
351+
default: '$complete',
343352
desc: 'The icon of the checkbox when <code class="ic">true</code>',
344353
name: 'true-icon',
345354
type: "string | undefined",
@@ -350,14 +359,9 @@ const vInlineCheckboxProps = [
350359
const vInlineSelectProps = [
351360
...sharedProps,
352361
...autofocusProp,
362+
...clearIconProp,
353363
...saveAndLoadingIconProps,
354364
...[
355-
{
356-
default: undefined,
357-
desc: 'The icon to use to clear the field',
358-
name: 'clear-icon',
359-
type: "VSelect['$props']['clearIcon']",
360-
},
361365
{
362366
default: false,
363367
desc: 'Allows for the component to be cleared',
@@ -402,7 +406,7 @@ const vInlineSwitchProps = [
402406
...trueFalseIconProps,
403407
...[
404408
{
405-
default: undefined,
409+
default: '$close',
406410
desc: 'The icon of the field when <code class="ic">false</code>',
407411
name: 'false-icon',
408412
type: "VSwitch['$props']['falseIcon']",
@@ -413,6 +417,7 @@ const vInlineSwitchProps = [
413417
const vInlineTextareaProps = [
414418
...sharedProps,
415419
...autofocusProp,
420+
...clearIconProp,
416421
...saveAndLoadingIconProps,
417422
...truncateProps,
418423
...[
@@ -440,6 +445,7 @@ const vInlineTextareaProps = [
440445
const vInlineTextFieldProps = [
441446
...sharedProps,
442447
...autofocusProp,
448+
...clearIconProp,
443449
...saveAndLoadingIconProps,
444450
...truncateProps,
445451
...[

0 commit comments

Comments
 (0)