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

lvxin-custom-template

v1.0.41

Published

履新内部项目定制开发的模板

Downloads

5

Readme

lvxin-custom-template

履信思源定制化可拖拽H5模板

# install dependencies
npm i lvxin-custom-template
import CustomTemplate from  'lvxin-custom-template';

依赖

  • element-ui ^2.15.6
  • js-base64 ^3.7.2
  • vue ^2.5.11
  • vuedraggable ^2.24.3

属性配置

required

  • 是否需要必填项,比如:重量,
  • 类型:Booleam
  • 默认值: false

type

  • 需要显示的模板类型, 1:拖拽模板编辑界面 2:预览页面
  • 类型:Number
  • 默认值: 1

uploadConfig

  • 图片上传的基本配置
  • 类型:Object
  • 默认值:[]
  • action 字符串 图片上传地址
  • headers Obket header配置项,进行token验证 { "blade-auth": "bearer " + getToken() }

templateArr

  • 模板需要显示元素的json数组,编辑、预览时的展示数据
  • 类型:Array
  • 默认值: []

details

  • 模板的基本信息
  • 类型:Object
  • 默认值:{}
    • ruleId 好评返现的ID
    • ruleName 好评返现的名称
    • rule 好评返现的规则,富文本编辑器生成的html代码
    • ruleOn 是否开启好评返现

videoObj

  • 视频展示的基本信息,列表、分页、当前页
  • 类型:Object
  • 默认值:{}
    1. videoName 视频名称
    2. videoData 视频列表
    3. currentPage 当前页码
    4. pageSize 每页条数
    5. total 总条数

handleVideo

  • 操作视频进行切换分页的方法
  • 类型:Function
  • 返回 videoObj对象

save

  • 保存方法
  • 类型:Function
  • 传参:from_data 对象
    1. id:当前模板所属的ID
    2. templateHtml:当前模块的html代码块,使用Base64进行转义
    3. templateJson:需要保存的模板的元素数组