Giter Site home page Giter Site logo

vc-image's Introduction

用法

vue2 全局图片缓存组件,一次加载图片,全局缓存

安装

npm i @jser6/vc-image

注册

import Vue from 'vue'
import vcImage from '@jser6/vc-image'
Vue.use(vcImage)

使用

<vc-image src="https://www.baidu.com/img/flexible/logo/pc/result.png"/>

说明

1、主要是 oss 有时间戳,使用后就不用多次去请求图片

2、图片会缓存,第一次用网络图片,后面加载都是用本地 blob 缓存

笔记

发布 npm publish --access public

vc-image's People

Contributors

rootjser avatar rootegg avatar

Watchers

 avatar

Forkers

rootegg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.