npm install --save @types/vue3-json-viewer
This package contains type definitions for vue3-json-viewer (https://github.com/qiuquanwu/vue3-json-viewer).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue3-json-viewer.
import { AllowedComponentProps, App, Component, ComponentCustomProps, VNodeProps } from "vue";
interface JsonViewerProps {
value: object | Array<any> | string | number | boolean; // 对象
expanded: boolean; // 是否自动展开
expandDepth: number; // 展开层级
copyable: boolean | object; // 是否可复制
sort: boolean; // 是否排序
boxed: boolean; // 是否boxed
theme: string; // 主题 jv-dark | jv-light
previewMode: boolean; // 是否可复制
timeformat: (value: any) => string;
}
type JsonViewerType = JsonViewerProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
declare const JsonViewer: Component<JsonViewerType>;
export { JsonViewer };
declare const def: { install: (app: App) => void };
export default def;
- Last updated: Thu, 19 Dec 2024 00:47:09 GMT
- Dependencies: vue
These definitions were written by String10.