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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@huteming/ui-btn-pay

v4.0.0

Published

支付按钮

Downloads

5

Readme

支付按钮


引入

import { TmBtnPay } from '@huteming/ui'

Vue.use(TmBtnPay)
// Vue.component(TmBtnPay.name, TmBtnPay)

例子

<tm-btn-pay
    :title="79"
    tip="原价:99元"
    tipThrough
    desc="VIP已减20元"
    :desc-style="{ color: 'rgba(217, 166, 47, 1)' }"
    :btn-style="{ background: 'linear-gradient(137deg,rgba(245,226,147,1) 0%,rgba(230,186,90,1) 100%)', color: 'rgba(128, 79, 36, 1)' }"
    btn="支付学费" >
</tm-btn-pay>

API

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |------|-------|---------|-------|--------| | title | 左侧显示文案。如果类型是数字,添加价格过滤器 | String, Number | | | | titlePrefix | 前缀。如果title是数字,默认为 ¥ | String | | | | titleStyle | title自定义样式 | Object | | | | tip | 中间上方文案 | String | | | | tipThrough | 中间上方文案添加删除线 | Boolean | | false | | tipStyle | tip自定义样式 | Object | | | | desc | 中间下方文案 | String | | | | descThrough | 中间下方文案添加删除线 | Boolean | | false | | descStyle | desc的自定义样式 | Object | | | | btn | 按钮文案 | String | | | | btnStyle | btn自定义样式 | Object | | | | btnOnly | 只显示按钮,此时默认没有圆角 | Boolean | | false | | disabled | 禁用状态 | Boolean | | false |

插槽

| name | 描述 | |------|--------| | title | 自定义标题 | | tip | | | desc | | | btn | 自定义按钮内容 |

Events

| 事件名称 | 说明 | 回调参数 | |---------|----------|-------------| | click | 按钮点击触发 | |