0.0.3 • Published 2 years ago

h5age v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago
npm install h5age

##引入 main.js

import h5Age from "h5age";
import "h5age/dist/style.css";
app.use(h5Age)
参数说明类型默认值
Mtitle大标题string你期望ta的年龄
Stitle小标题string选择范围
color按钮选中颜色string#41d2d0
iconColor图标颜色string#41d2d0
windth按钮宽度string17%
height按钮高度度string40px
icon图标:使用是font-awesome(https://fontawesome.dashgame.com/) 图标库string选择范围fa fa-arrows-h
isReset不限Booleantrue
v-slot:footer是否要底部自定义信息------

Events

事件名说明类型
onSection返回一个数组,数组里面是选中的最小值和最最大值---

默认模板

<zxh-age ></zxh-age>

带参数和事件

<zxh-age Mtitle="你希望他的年龄" Stitle="区间" icon="fa fa-arrows-h" :data="arr" @onSection="alertSome" >
      <template v-slot:footer>
        <div> 为了打造100%真实的交友平台,请如实填写资料,不真实的资料审核将会被拒绝。</div>
      </template>
    </zxh-age> 

const alertSome = (list) => {
  console.log(list);

}
let arr = [1, 2, 3, 4, 5, 7, 7]