npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

avue-plugin-ueditor

v0.2.18

Published

<p align="center"> <img width="600" src="https://gitee.com/smallweigit/avue-plugin-ueditor/raw/master/packages/demo/demo.png"> </p>

Downloads

3,130

Readme

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不写则为普通上传 | String | ali/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 | — | - | | deadline | token的过期时间 | String | — | - |

ali Attributes

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