vue-mirror-scope

0.0.7 • Public • Published

vue-mirror-scope

description

中文文档

preview

Vue-mirror-scope is a product picture enlargement for details view components, functions and Taobao's magnifying glass

install

npm install --save vue-mirror-scope

use

    <template>
        <vue-mirror-scope :imgList="imgList"></vue-mirror-scope>
    <template>

    <script>
        import {defineComponent} from Vue
        import VueMirrorScope from "vue-mirror-scope"
        export default defineComponent({
            components:{
                VueMirrorScope
            },
            setup(){
                const imgList = ['./img1.png','img2.png',...]; // and more
            }
        })

    </script>

property document

property value explain
imgList Array[string] image source list
size String Magnifying the size of the main image area/zoom area,It is a A square ,size * size,(only support px)
expandScope Number Magnification of pictures at double speed

Dependents (0)

Package Sidebar

Install

npm i vue-mirror-scope

Weekly Downloads

8

Version

0.0.7

License

MIT

Unpacked Size

18.1 kB

Total Files

6

Last publish

Collaborators

  • hehong_yf