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 🙏

© 2026 – Pkg Stats / Ryan Hefner

cmelement

v2.3.35

Published

cmelement vue plugin

Readme

cmelement

试题(PCor Mobile)封装

字体文件

需要将包下的/mathjax/fonts字体文件,copy至项目根目录
加载cmelemet包时,fontURL参数要设置为mathjax/fonts字体文件路径
fontURL: 不传时默认为 all-static-resource.oss-cn-beijing.aliyuncs.com/mathjax/fonts
Vue.use(cmelement, {
    fontURL: '/static/iconfont'
});

图片组件标签形式使用

图片组件传参

{
    urlList: [],
    wheel: true, // 是否允许滚轮缩放大小
    automatic: null, // 是否允许自动切换, 自动切换时间
    preNext: true, // 是否展示上一张和下一张按钮
    operate: true, // 是否展示放大缩小旋转重置按钮
    move: true, // 是否允许拖动
}

视频组件标签形式使用

视频组件传参

{
    /**
     * auto => 指示一旦页面加载,则开始加载音频/视频。
     * metadata => 指示当页面加载后仅加载音频/视频的元数据。
     * node => 指示页面加载后不应加载音频/视频。
     */
    preload: {
        type: String,
        default: 'metadata'
    },
    /**
     * 视频封面网络链接
     */
    poster: {
        type: String,
        default: ''
    },
    /**
     * 自动播放
     * true => 自动播放
     * false => 手动触发播放
     */
    autoplay: {
        type: Boolean,
        default: false
    },
    /**
     * 循环播放 
     * true => 循环播放
     */
    loop: {
        type: Boolean,
        default: false
    },
    /**
     * 静音 
     * true => 静音
     */
    muted: {
        type: Boolean,
        default: false
    },
    /**
     * 视频地址
     */
    src: {
        type: String,
        default: ''
    },
    /**
     * 广告视频地址
     */
    adSrc: {
        type: String,
        default: ''
    },
    /**
     * 视频高度
     */
    height: {
        type: String,
        default: 'auto'
    },
    /**
     * 视频宽度
     */
    width: {
        type: String,
        default: '100%'
    },
    /**
     * 水印
     */
    watermark: {
        type: String,
        default: 'https://downloadfile.e-eduspace.com/waterMarkImg.png'

    },
    /**
     * 倍速值
     */
    speedList: {
        type: Array,
        default: () =>{ return ['0.5', '1.0', '1.25', '1.5', '2.0'] }
    },
    /**
     * 播放下一个按钮
     */
    showPlayNext: {
        type: Boolean,
        default: false
    },
     /**
     * 广告插入时间 小于1 按照百分比, 大于1 按照多少秒播放广告
     */
    adTime: {
        type: Number | String,
        default: 0
    },
    /**
     * 视频控制条显示隐藏
     */
    controls: {
        type: Boolean,
        default: true
    },
    /**  
     * 视频填充类型
     */
    objectFit: {
        type: String,
        default: 'contain'
    },
    /**  
     * 广告视频填充类型
     */
    adObjectFit: {
        type: String,
        default: 'contain'
    },
    /***  
     * 当前视频要播放的时刻
     */
    curTime: { 
        type: String | Number,
        default: 0
    },