Skip to content
基于vue element-ui 图片拖拽放大缩小查看.vue组件
Branch: master
Clone or download
Latest commit 2a3ab0a Apr 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Update README.md Apr 1, 2019
gif.gif add gif Aug 29, 2017
picview.vue Update picview.vue Apr 1, 2019

README.md

element-picview

基于vue element-ui 图片拖拽放大缩小查看组件

适配了最新element-ui版本

用法

组件例子

  <template>
      <div>
          <!-- 这vue组件依靠了element-ui 所以必须安装element-ui才有效  -->
          <picview src="http:chenyeah.cn/dev/1.jpg" width="200px" height="200px"></picview>
      </div>
  </template>
  <script>
  import picview from "./picview.vue";
  export default {
      data() {
          return {};
      },
      components: {
          picview
      }
  };
  </script>

效果

img

声明

业务需求紧 就直接基于element-ui 做了 后期做个不依赖element-ui的vue组件

You can’t perform that action at this time.