0.2.18 • Published 8 months ago

avue-plugin-ueditor v0.2.18

Weekly downloads
1,058
License
MIT
Repository
-
Last release
8 months ago

avue 富文本编辑器

Avue官网

https://avuejs.com

介绍

三方编辑器wangEditor

  • 文档
  • 组件配置中customConfig属性为wangEditor编辑器的配置

使用

1.安装
vue2:npm install avue-plugin-ueditor --save
vue3:npm install avue-plugin-ueditor@next --save

2.导入
import AvueUeditor from 'avue-plugin-ueditor'
Vue.use(AvueUeditor);

3.Avue配置中使用
...
column:[
  ...
    {
      label:'test',
      prop:'test',
      component: "avueUeditor",
      //wangEditor编辑的配置
      customConfig: {
        lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
      },
      //是否启用oss(qiniu/ali)
      oss:'',
      headers:{},
      data:{},
      propsHttp: {
        home:'',
        url:'',
        res: ''
      },
      //普通图片上传
      action: "",
      //七牛云oss配置
      qiniu: {
        AK: "",
        SK: "",
        scope: "",
        url: "",
        deadline: 1
      },
      //阿里云oss配置
      ali: {
        region: "",
        endpoint: "",
        accessKeyId: "",
        accessKeySecret: "",
        bucket: ""
      }
    }
  ...
]
4.组件中使用
<avue-ueditor v-model="text" v-bind="options"></avue-ueditor>

options: {
  //wangEditor编辑的配置
  customConfig: {
    lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
  },
  propsHttp: {
    home:'',
    url:'',
    res: ''
  },
  //是否启用oss(qiniu/ali)
  oss:'',
  headers:{},
  data:{},
  //普通图片上传
  action: "",
  //七牛云oss配置
  qiniu: {
    AK: "",
    SK: "",
    scope: "",
    url: "",
    deadline: 1
  },
  //阿里云oss配置
  ali: {
    region: "",
    endpoint: "",
    accessKeyId: "",
    accessKeySecret: "",
    bucket: ""
  }
}
...

upload Attributes

参数说明类型可选值默认值
action图片上传地址String-
headers上传附带请求头数据Object-
data上传附带数据Object-
props相关可配置参数,具体参考props配置Object-
oss是否使用oss不写则为普通上传Stringali/qiniu-
qiniu七牛云oss配置,具体参考qiniu配置Object-
ali阿里云oss配置,具体参考ali配置Object-

propsHttp Attributes

参数说明类型可选值默认值
res返回的数据结构层次String-
url返回结构体图片地址字段String-
home图片的根路径地址String-

qiniu Attributes

参数说明类型可选值默认值
AK七牛云的密钥String-
SK七牛云的密钥String-
scope七牛云存储的空间名String-
url空间的自定义域名String-
deadlinetoken的过期时间String-

ali Attributes

参数说明类型可选值默认值
regionoss所在区域的名称,具体查看阿里云oss文档String-
endpointoss所在区域的域名,具体查看阿里云oss文档String-
accessKeyId阿里云的密钥String-
accessKeySecret阿里云的密钥String-
bucket阿里云存储的空间名String-
1.0.3

9 months ago

0.2.18

8 months ago

0.2.17

11 months ago

1.0.2

11 months ago

0.2.16

11 months ago

0.2.15

11 months ago

0.2.14

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.2.13

1 year ago

0.2.12

1 year ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.7

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

6 years ago