Skip to content

Commit 5c5364b

Browse files
Add new props
1 parent 438d881 commit 5c5364b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

src/playground/configs/templates/PlaygroundPage.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<template>
2+
<v-col cols="12">
3+
<v-btn @click="componentOptions.disabled = !componentOptions.disabled">Toggle Disabled: {{ componentOptions.disabled
4+
}}</v-btn>
5+
</v-col>
26
<v-col cols="12">
37
<v-card elevation="5">
48
<v-data-table
@@ -22,11 +26,14 @@
2226
:card-offset-x="componentOptions.cardOffsetX"
2327
:card-offset-y="componentOptions.cardOffsetY"
2428
:card-props="componentOptions.cardProps"
29+
:cell="componentOptions.cell"
30+
:cell-underline-full-width="componentOptions.cellUnderlineFullWidth"
2531
:close-siblings="componentOptions.closeSiblings"
2632
:color="componentOptions.color"
2733
:density="componentOptions.density"
2834
:disabled="componentOptions.disabled"
2935
:field-only="componentOptions.fieldOnly"
36+
:hide-cancel-icon="componentOptions.hideCancelIcon"
3037
:icon-false="componentOptions.iconFalse"
3138
:icon-false-title="componentOptions.iconFalseTitle"
3239
:icon-true="componentOptions.iconTrue"
@@ -56,6 +63,8 @@
5663
:card-offset-x="componentOptions.cardOffsetX"
5764
:card-offset-y="componentOptions.cardOffsetY"
5865
:card-props="componentOptions.cardProps"
66+
:cell="componentOptions.cell"
67+
:cell-underline-full-width="componentOptions.cellUnderlineFullWidth"
5968
:clearable="componentOptions.clearable"
6069
:close-siblings="componentOptions.closeSiblings"
6170
:color="componentOptions.color"
@@ -67,6 +76,7 @@
6776
:display-append-inner-icon-color="componentOptions.displayAppendInnerIconColor"
6877
:empty-text="componentOptions.emptyText"
6978
:field-only="componentOptions.fieldOnly"
79+
:hide-cancel-icon="componentOptions.hideCancelIcon"
7080
:hide-details="componentOptions.hideDetails"
7181
:hide-selected="componentOptions.hideSelected"
7282
:item="item"
@@ -105,12 +115,15 @@
105115
:card-offset-x="componentOptions.cardOffsetX"
106116
:card-offset-y="componentOptions.cardOffsetY"
107117
:card-props="componentOptions.cardProps"
118+
:cell="componentOptions.cell"
119+
:cell-underline-full-width="componentOptions.cellUnderlineFullWidth"
108120
:clearable="componentOptions.clearable"
109121
:close-siblings="componentOptions.closeSiblings"
110122
:color="componentOptions.color"
111123
:density="componentOptions.density"
112124
:disabled="componentOptions.disabled"
113125
:field-only="componentOptions.fieldOnly"
126+
:hide-cancel-icon="componentOptions.hideCancelIcon"
114127
:hide-details="componentOptions.hideDetails"
115128
:item="item"
116129
:label="componentOptions.label"
@@ -147,6 +160,8 @@
147160
:card-offset-x="componentOptions.cardOffsetX"
148161
:card-offset-y="componentOptions.cardOffsetY"
149162
:card-props="componentOptions.cardProps"
163+
:cell="componentOptions.cell"
164+
:cell-underline-full-width="componentOptions.cellUnderlineFullWidth"
150165
:close-siblings="componentOptions.closeSiblings"
151166
:color="componentOptions.color"
152167
:density="componentOptions.density"
@@ -156,6 +171,7 @@
156171
:display-append-inner-icon="componentOptions.displayAppendInnerIcon"
157172
:display-append-inner-icon-color="componentOptions.displayAppendInnerIconColor"
158173
:field-only="componentOptions.fieldOnly"
174+
:hide-cancel-icon="componentOptions.hideCancelIcon"
159175
:hide-details="componentOptions.hideDetails"
160176
:item="item"
161177
:label="componentOptions.label"
@@ -186,6 +202,8 @@
186202
:card-offset-x="componentOptions.cardOffsetX"
187203
:card-offset-y="componentOptions.cardOffsetY"
188204
:card-props="componentOptions.cardProps"
205+
:cell="componentOptions.cell"
206+
:cell-underline-full-width="componentOptions.cellUnderlineFullWidth"
189207
:loading="item.loading"
190208
@update="updatedValue(item, 'range')"
191209
>
@@ -211,11 +229,14 @@
211229
:card-offset-x="componentOptions.cardOffsetX"
212230
:card-offset-y="componentOptions.cardOffsetY"
213231
:card-props="componentOptions.cardProps"
232+
:cell="componentOptions.cell"
233+
:cell-underline-full-width="componentOptions.cellUnderlineFullWidth"
214234
:close-siblings="componentOptions.closeSiblings"
215235
:color="componentOptions.color"
216236
:density="componentOptions.density"
217237
:disabled="componentOptions.disabled"
218238
:field-only="componentOptions.fieldOnly"
239+
:hide-cancel-icon="componentOptions.hideCancelIcon"
219240
:icon-false-title="componentOptions.iconFalseTitle"
220241
:icon-true-title="componentOptions.iconTrueTitle"
221242
:item="item"
@@ -299,6 +320,8 @@ const componentOptions = reactive({
299320
cardOffsetX: 0,
300321
cardOffsetY: 0,
301322
cardProps: {},
323+
cell: false,
324+
cellUnderlineFullWidth: true,
302325
clearable: false,
303326
closeSiblings: true,
304327
color: 'primary',
@@ -318,6 +341,7 @@ const componentOptions = reactive({
318341
// displayPrependInnerIconSize: 'x-small',
319342
emptyText: 'empty',
320343
fieldOnly: false,
344+
hideCancelIcon: false,
321345
hideDetails: true,
322346
hideSelected: false,
323347
iconFalse: undefined,

src/stores/props.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ const sharedProps = [
109109
name: 'card-props',
110110
type: 'number',
111111
},
112+
{
113+
default: false,
114+
desc: 'If <code class="ic">true</code>, the table cell will be used as the trigger to display the field',
115+
name: 'cell',
116+
type: 'boolean',
117+
},
118+
{
119+
default: true,
120+
desc: 'If <code class="ic">true</code>, the underline will span the full width of the table cell. (used with the <code class="ic">cell</code> prop)',
121+
name: 'cell-underline-full-width',
122+
type: 'boolean',
123+
},
112124
{
113125
default: false,
114126
desc: 'If <code class="ic">true</code>, the field will close when the user opens another inline form element',

0 commit comments

Comments
 (0)