1.1.3 • Published 6 years ago
oss-explorer v1.1.3
阿里云OSS文件管理器
这是一个基于Vue的轻量级文件管理器,包含了大部分web文件操作.
安装
npm install --save oss-explorer使用
<template>
<div id="app">
<explorer
v-model="objects"
:token="token"
:meta="meta"
:stsPath="stsPath"
:multiple="true"
:path="path"
:privatePath="privatePath"
:limit="5"
:maxKeys="1000"
@select="onSelect">
</explorer>
</div>
</template>
<script>
import Explorer from 'oss-explorer'
import 'oss-explorer/dist/oss-explorer.css'
export default {
name: 'app',
components: {
Explorer
},
data () {
return {
clientConfig: null,
token: localStorage.token,
path: '',
privatePath: '',
stsPath: ``,
objects: [],
meta: {}
}
}
}
</script>
<style>
</style>更多用法请参考demo
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your tests
npm run testLints and fixes files
npm run lintRun your unit tests
npm run test:unit