<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      vue-draggable-resizable組件

      npm i --save vue-draggable-resizable

       

      import VueDraggableResizable from 'vue-draggable-resizable';
      import 'vue-draggable-resizable/dist/VueDraggableResizable.css';
      Vue.component('vue-draggable-resizable',VueDraggableResizable)

       

       

       

      <template>
      <div id="app" style='width:1300px;height:800px;border:5px solid #000;background-color: aqua; '>
      <vue-draggable-resizable :draggable="draggable" :resizable="resizable" @dragstop="onDragStop" @resizestop="onResizeStop" :drag-cancel="'.drag-cancel'" :w='w' :h='h' @resizing='onResize'
      :parent="true" @dragging='onDrag' :isConflictCheck="true"
      :snap="true"
      :snapTolerance="10" class-name-handle="my-handle-class"
      class-name-dragging="my-dragging-class" class-name-resizing="my-resizing-class" class-name="my-class">
      <div class='outDiv'>
      11<helloworld></helloworld>
      </div>
      </vue-draggable-resizable>
      <vue-draggable-resizable :draggable="draggable" :resizable="resizable" @dragstop="onDragStop" @resizestop="onResizeStop" :drag-cancel="'.drag-cancel'" :w='w' :h='h' @resizing='onResize'
      :parent="true" @dragging='onDrag' :isConflictCheck="true"
      :snap="true"
      :snapTolerance="10" class-name-handle="my-handle-class"
      class-name-dragging="my-dragging-class" class-name-resizing="my-resizing-class" class-name="my-class">
      <div class='outDiv'>
      22<helloworld></helloworld>
      </div>
      </vue-draggable-resizable>
      <p>x:{{x}}</p>
      <p>y:{{y}}</p>
      <p>w:{{w}}</p>
      <p>h:{{h}}</p>
      </div>
      </template>

      <script>
      import helloworld from './components/HelloWorld.vue'
      export default {
      components: {
      helloworld
      },
      name: 'App',
      data() {
      return {
      resizable:true,
      draggable:true,
      x: 0,
      y: 0,
      w: 100,
      h: 100
      }
      },
      methods: {
      onResizeStop() {
      console.log('onResizeStop')
      },
      onDragStop() {
      console.log('onDragStop')
      },
      onResize(x, y, w, h) {
      this.x = x;
      this.y = y;
      this.w = w;
      this.h = h;
      },
      onDrag(x, y) {
      this.x = x;
      this.y = y;
      }
      }
      }
      </script>

      <style>
      .my-handle-class {
      position: absolute;
      background-color: #0099ff;
      border-radius: 50%;
      height: 8px;
      width: 8px;
      box-model: border-box;
      -webkit-transition: all 300ms linear;
      -ms-transition: all 300ms linear;
      transition: all 300ms linear;
      }

      .my-handle-class-tl {
      top: -5px;
      left: -5px;
      cursor: nw-resize;
      }

      .my-handle-class-tm {
      top: -5px;
      left: 50%;
      margin-left: -7px;
      cursor: n-resize;
      }

      .my-handle-class-tr {
      top: -5px;
      right: -5px;
      cursor: ne-resize;
      }

      .my-handle-class-ml {
      top: 50%;
      margin-top: -7px;
      left: -5px;
      cursor: w-resize;
      }

      .my-handle-class-mr {
      top: 50%;
      margin-top: -7px;
      right: -5px;
      cursor: e-resize;
      }

      .my-handle-class-bl {
      bottom: -5px;
      left: -5px;
      cursor: sw-resize;
      }

      .my-handle-class-bm {
      bottom: -5px;
      left: 50%;
      margin-left: -7px;
      cursor: s-resize;
      }

      .my-handle-class-br {
      bottom: -5px;
      right: -5px;
      cursor: se-resize;
      }

      #app {
      font-family: Avenir, Helvetica, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-align: center;
      color: #2c3e50;
      margin-top: 60px;
      }

      * {
      margin: 0;
      padding: 0;
      }


      .my-class {
      position: absolute;
      box-sizing: border-box;
      }


      .my-class>div.outDiv:hover{
      background: rgba(255,255,255,.5);
      }
      .my-class>div.outDiv{
      width:100%;height:100%;overflow: hidden;
      }


      .my-class.active{
      background: rgba(255,255,255,.5);
      }
      .my-resizing-class {
      background: rgba(255,255,255,.5);
      border: 1px solid black;
      color: white;
      }

      .my-dragging-class {
      opacity: .5;
      }
      </style>

      posted @ 2023-09-13 21:18  mrt_yy  閱讀(2127)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 亚洲高清国产拍精品熟女| 免费看的日韩精品黄色片| 国产视色精品亚洲一区二区| 国产精品日韩中文字幕| 亚洲日韩AV秘 无码一区二区| 中文字幕日韩人妻一区| 99精品视频九九精品视频| 亚洲18禁一区二区三区| 欧美裸体xxxx极品| 乱码中文字幕| 18禁免费无码无遮挡网站| 人人妻人人澡人人爽人人精品电影 | 石景山区| 亚洲黄色一级片在线观看| 人妻少妇无码精品专区| 中文字幕亚洲中文字幕无码码 | 国产精品自拍中文字幕| 亚洲成人av免费一区| 亚洲丶国产丶欧美一区二区三区| 欧美成人精品三级网站| 国产精品无遮挡又爽又黄| 免费又黄又爽又猛的毛片| 国产精品入口中文字幕| 成全影视大全在线观看| 国产精品自在拍首页视频| 张家川| 91老熟女老人国产老太| 四虎在线成人免费观看| 麻豆tv入口在线看| 国产精品亚洲五月天高清| 激情国产一区二区三区四| 精品国产AV无码一区二区三区| 风韵丰满熟妇啪啪区老熟熟女| 漂亮的人妻不敢呻吟被中出| 欧美色欧美亚洲高清在线视频 | 真人性囗交视频| 亚洲日韩一区精品射精| 香蕉久久夜色精品国产成人| 国产精品中文字幕观看| 亚洲夜色噜噜av在线观看| 久久久久国色av免费观看性色|