0.1.0 • Published 2 years ago

@sanpjs/runtime v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@sanpjs/runtime

@sanpjs/runtime 为 San Pro 提供运行时依赖的插件模块。

  • Component.js:San Pro 提供的基础组件,支持:全局组件;provide/inject 跨组件传递数据
  • mixin.js:提供全局组件方法
  • createApp.js: 工程内组件创建(内置)
  • Store.js:san-store 的封装使用(内置)
  • fetch.js:数据获取
  • Lazy.js:懒加载
  • ClientOnly.js:仅客户端渲染组件

安装

$ npm install --save-dev @sanpjs/runtime

测试

执行命令

#执行 __tests__ 文件夹下所有测试文件
yarn test