drive
Description
Optional. An object with the information about file system such as the total storage capacity and the used spaceUsage
drive?: {
used: number,
total: number,
}
Parameters
used
- (required) defines the used space of the file system in bytestotal
- (required) defines the total space of the file system in bytes
The default value for both parameters is undefined.
Example
<script>
import { Filemanager } from "wx-svelte-filemanager";
import { getData } from "./common/data";
const myDrive = {
used: 19200000000,
total: 60000000000,
};
</script>
<Filemanager data={getData()} drive={myDrive} />