Skip to content

Commit d665419

Browse files
Adding loader size
1 parent 8df2013 commit d665419

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/plugin/VDrilldownTable.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
:loader-type="loadedDrilldown.loaderType"
9292
:loading="loadedDrilldown.loading || false"
9393
:loading-text="loadingText"
94+
:size="loadedDrilldown.loaderSize"
9495
:skelton-type="loadedDrilldown.skeltonType"
9596
/>
9697
</template>
@@ -198,6 +199,7 @@
198199
:loader-type="item.raw[itemChildrenKey].loaderType"
199200
:loading="item.raw[itemChildrenKey]?.loading"
200201
:loading-text="loadingText"
202+
:size="item.raw[itemChildrenKey].loaderSize"
201203
:skelton-type="item.raw[itemChildrenKey].skeltonType"
202204
/>
203205

src/plugin/components/TableLoader.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ const loaderHeight = computed(() => {
123123
});
124124
125125
const isLinearOnly = computed<boolean>(() => {
126-
const response = useIsOnlyLinearLoader(props.loaderType);
126+
let response = false;
127+
128+
if (props.loaderType !== null && props.loaderType !== false) {
129+
response = useIsOnlyLinearLoader(props.loaderType);
130+
}
127131
128132
return response;
129133
});

src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export interface Props {
150150
level: number; // * Custom Property
151151
levels: number; // * Custom Property
152152
loaderHeight?: VProgressLinear['$props']['height']; // * Custom Property
153+
loaderSize?: VProgressCircular['$props']['size']; // * Custom Property
153154
loaderType?: string | string[] | false | null; // * Custom Property
154155
loading?: VDataTable['$props']['loading'];
155156
loadingText?: VDataTable['$props']['loadingText']; // ! Not working properly //

0 commit comments

Comments
 (0)