Skip to content

Commit ff4874c

Browse files
Update playground
1 parent 547d474 commit ff4874c

File tree

5 files changed

+7
-25
lines changed

5 files changed

+7
-25
lines changed

src/playground/configs/playground.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import { createVDrilldownTable } from '../../plugin/index';
1111
makeServer({ environment: 'playground' });
1212

1313
const app = createApp(PlaygroundApp);
14-
app.use(createVDrilldownTable({
15-
16-
}));
14+
app.use(createVDrilldownTable());
1715
app.use(createPinia());
1816
app.component('font-awesome-icon', FontAwesomeIcon);
1917
app.component('FaIcon', FontAwesomeIcon);

src/playground/configs/templates/ClientTable.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
:search="tableSettings.search"
4949
:search-container-cols="tableSettings.searchContainerCols"
5050
:search-debounce="tableSettings.searchDebounce"
51-
:search-events="tableSettings.searchEvents"
5251
:search-max-wait="tableSettings.searchMaxWait"
5352
:search-props="tableSettings.searchProps"
5453
:select-strategy="tableSettings.selectStrategy"

src/playground/configs/templates/PlaygroundPage.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const defaultColorsExample = ref({
7777
});
7878
7979
provide('defaultColors', defaultColors);
80+
provide('selectedColor', selectedColor);
8081
provide('density', density);
8182
8283
function updateColor(val) {

src/playground/configs/templates/ServerTable.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
:elevation="tableSettings.elevation"
1717
:expand-on-click="tableSettings.expandOnClick"
1818
:first-icon="tableSettings.firstIcon"
19+
:fixed-header="tableSettings.fixedHeader"
1920
:footers="footers.users"
2021
:headers="headers.users"
22+
:height="tableSettings.height"
2123
:hover="tableSettings.hover"
2224
:item-children-key="tableSettings.itemChildrenKey"
2325
:item-props="tableSettings.itemProps"
@@ -120,7 +122,7 @@
120122

121123
<!-- <template #[`header.data-table-select`]>
122124
<div class="d-flex justify-center">
123-
<v-icon>mdi mdi-vuetify</v-icon>
125+
<v-icon icon="$vuetify"></v-icon>
124126
</div>
125127
</template> -->
126128

@@ -164,7 +166,7 @@
164166
</template> -->
165167

166168
<!-- <template #[`item.data-table-select`]>
167-
<v-icon>mdi mdi-vuetify</v-icon>
169+
<v-icon icon="$vuetify"></v-icon>
168170
</template> -->
169171

170172
<!-- <template #[`item.data-table-expand`]>
@@ -216,7 +218,6 @@ const props = defineProps({
216218
});
217219
218220
const selected = ref([]);
219-
220221
const classes = inject('classes');
221222
const defaultColors = inject('defaultColors');
222223
const density = inject('density');

src/playground/configs/templates/tableDefaults.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -105,23 +105,6 @@ export default {
105105
xxl: 2,
106106
},
107107
searchDebounce: 0,
108-
searchEvents: {
109-
// 'input': (e: InputEvent) => {
110-
// console.log('input event triggered', e);
111-
// },
112-
// 'click': (e: MouseEvent) => {
113-
// console.log('click event triggered', e);
114-
// },
115-
// 'click:control': (e: MouseEvent) => {
116-
// console.log('click:control event triggered', e);
117-
// },
118-
// 'mousedown:control': (e: MouseEvent) => {
119-
// console.log('mousedown:control event triggered', e);
120-
// },
121-
// 'update:modelValue': (val: string) => {
122-
// console.log('update:modelValue event triggered', val);
123-
// },
124-
},
125108
searchMaxWait: 1000,
126109
searchProps: {
127110
clearable: true,
@@ -136,7 +119,7 @@ export default {
136119
showCurrentPage: false,
137120
showDrilldownWhenLoading: true,
138121
showExpand: false,
139-
showFooterRow: false,
122+
showFooterRow: true,
140123
showSearch: true,
141124
showSelect: true,
142125
sortAscIcon: '$sortAsc',

0 commit comments

Comments
 (0)