@tevo-online/media-library
v0.0.7
Published
tevo通用媒体库
Downloads
8
Readme
@tevo-online/media-library
天赋云通用Vue媒体库组件
Precondition
安装composition-api插件
yarn add @vue/composition-api -S
在main.js进行插件注册
import VueCompositionAPI from "@vue/composition-api";
Vue.use(VueCompositionAPI);
Install
yarn add @tevo-online/media-library -S
npm install @tevo-online/media-library --save
Usage
<template>
<div>
<media-library v-model="image" :token="token" />
</div>
</template>
<script>
import MediaLibrary from "@tevo-online/media-library"
export default {
components: {
MediaLibrary
},
data() {
return {
token: "",
image: ""
};
}
}
</script>
Props
| 参数 | 说明 | 类型 | 可选值 | 默认值 | ---- | ---- | ---- | ---- | --- | image / v-model | 绑定值,图片地址 | string | - | - | | token | passport admin登陆token,token形如 "Bearer xxx" | string | - | - |