1.3.25 • Published 4 years ago

scc-element v1.3.25

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

scc-element

基于vue的自定义组件

组件1 scc-cnavas 用于用户截图当前页面,并具有简单标注功能。

全局引入方式

  import SccElement from 'scc-element'
  import 'scc-element/lib/theme/canvas.css'

Vue.use(SccElement)

#### 组件属性与事件
|名称|类型|是否必需|默认值|描述|
|---|---|---|---|---|
|**contentId**|String|true|-- |需要截图的内容区域DOM的id|
|**fillStyle**|String|false|'rgba(255,106,0,.5)'|矩形工具填充颜色|
|**getImgFile**|Function|false|-- |获取截图后的生成的图片函数|



>示例:
```bash
<template>
    <div>
      <div id="content">我是正文内容</div>
      <scc-canvas contentId="content" @getImgFile="getImgFile"></scc-canvas>
    </div>
</template>

<script>
import {upfile} from '@/api'
export default {
  methods: {
    async getImgFile(file, data) {
      let form = new FormData();
      form.append("file",file);
      let data = await upfile(form) // 将图片上传服务端
    }
  }
}
</script>
1.3.10

4 years ago

1.3.13

4 years ago

1.3.14

4 years ago

1.3.11

4 years ago

1.3.12

4 years ago

1.3.17

4 years ago

1.3.18

4 years ago

1.3.15

4 years ago

1.3.16

4 years ago

1.3.19

4 years ago

1.3.20

4 years ago

1.3.21

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.24

4 years ago

1.3.25

4 years ago

1.3.22

4 years ago

1.3.23

4 years ago

1.2.18

4 years ago

1.2.19

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.1

4 years ago

1.2.20

4 years ago

1.2.24

4 years ago

1.2.21

4 years ago

1.2.22

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.0.9

4 years ago

1.2.6

4 years ago

1.0.8

4 years ago

1.2.5

4 years ago

1.0.7

4 years ago

1.2.4

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.2.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.2.9

4 years ago

1.2.12

4 years ago

1.2.13

4 years ago

1.2.10

4 years ago

1.2.11

4 years ago

1.2.14

4 years ago

1.2.15

4 years ago

1.0.0

4 years ago