poio

[x]gulp配置(参见iview-weapp)

Usage no npm install needed!

<script type="module">
  import poio from 'https://cdn.skypack.dev/poio';
</script>

README

通用

数据管道

  • [x]常旅
  • [ ]航线
  • [ ]航班

工具类

  • [x]类型判断
  • [ ]日期Date
  • [ ]数组Array
  • [ ]Number
  • [ ]Http
  • [ ]Storage 储存操作

小程序组件

采用iview-weapp基础架构

  • [x]button
  • [x]grid
  • [x]dialog
  • [x]alert
  • [x]栅格化
  • [ ]card

如何使用

dist 目录拷贝到自己的项目中,然后按照如下的方式使用组件,以 Button 为例,其它组件在对应的文档页查看: 1.添加需要的组件。在页面的 json 中配置(路径根据自己项目位置配置):

"usingComponents": {
    "i-button": "../../dist/button/index"
}

2.在 wxml 中使用组件:

<i-button type="primary" bind:click="handleClick">这是一个按钮</i-button>