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

new-btn-component

v1.0.3

Published

一件事部分页面组件化

Readme

框架简介

M8框架是什么

移动跨平台开发框架 - M8,是一套基于组件化开发模式的开发框架

框架采用当下流行的渐进式框架 Vue 作为基础库,Vant UI 作为前端 UI 框架

框架结合了 Epoint 的混合开发方案 EJS,通过使用框架,可以快速的进行各类项目开发

为什么要有M8框架

随着移动设备迭代速度飞快,手机性能也越来越好,用户对APP体验要求也越来越高

之前的 M7 开发框架,在产品中的表现开始略显不足,会出现某些页面的性能指标无法在进行优化提升,目录结构代码过于冗余

譬如说频繁的进行 DOM 操作、对数据遍历、过多的全局变量等这些影响性能的操作,在 M8 中能够完美的进行处理,特别是针对 DOM 的操作。

M8框架能做什么

框架适用于移动跨平台项目的开发,且不仅限于移动端

如下情况都可采用 M8 框架

  • EJS 混合开发项目

  • 新点小程序项目

  • 新点小程序卡片

  • 钉钉 混合开发项目

  • 微信 项目

  • 任何跨平台,跨端的 项目

特点

框架具有如下特点:

  • 内置了一款强化 CSS 的辅助工具 SCSS,开发人员使用无需另外安装编译依赖,直接使用即可

  • 提供 devServer 实时更新、编译、预览代码及效果

  • 提供常用的 UI 组件,使用简单,方便项目使用

  • 提供常用的 核心通用 Util 方法,更加方便开发

  • 内置 EJS,框架内置 EJS 的不同版本,只需要修改一个配置文件,即可切换成对应版本的 EJS 环境

  • 提供常用的 工具类样式,通过更少的代码实现想要的效果

  • 提供常用案例展示,框架组件的使用,常见的UI效果实现,典型的页面,这些都内置在了框架的 showcase 中,方便开发人员参考

  • 组件独立,无任何 cssjs 依赖,一个 .vue 文件,放到任何项目中都能运行使用

  • 内置了 PWAvue-router,可方便快捷的开发 PWA 应用与 SPA 应用