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

bill-setting

v3.0.0

Published

mdf bill setting

Downloads

1

Readme

@mdf/bill-setting


1. 安装ynpm

  1. 需要安装ynpm工具使用内网镜像源进行安装
$ npm install ynpm-tool -g
  1. 内网执行ynpm install安装即可

2. 安装和使用

安装 @mdf/bill-setting  
$ ynpm install @mdf/bill-setting --save

1、组件中引用,并绑定redux中的initData
import BillModal from '@mdf/bill-setting/lib/index';
import { initData } from '@mdf/bill-setting/lib/redux/billmodal';
initData({data,readOnly,type}) data--必选数据,需要包括cBillNo,cBillType,cName等属性以及iTplId属性,readOnly--可选参数,设置readOnly为true时table只允许查看不允许编辑,type--可选参数,当类型为report时需传入
2、reducers.jsx中新增,用来绑定redux数据
import billModal from '@mdf/bill-setting/lib/redux/billmodal'

3、调用
<BillModal /> 

4、调用initData  弹出弹窗
  let data = { cBillType: "Voucher", cBillNo: "aa_merchantfinref", cName: "客商档案",iTplId:77756 }
 this.props.initData({ data });

3. 调试插件

使用babel监听文件改变输出lib到项目脚手架node_modules/@mdf/bill-setting/lib下,具体脚本命令参考debug.js

  1. 修改debug.js调试脚本,修改常量targetPackage的值的相对路径为你的项目真实路径 debug.js本地修改不要提交
  2. 保存后执行npm run debug在控制台会看到输出日志,babel转换过程以及最终的真实绝对路径

启动监听后,修改源码可以实时构建,并且输出到项目内,打开浏览器调试脚本即可是源文件

4. 发布

除了本地开发debug外,需要发布正式内网ynpm包,需要执行下面命令:

$ npm run lib

这样就会产出lib资源 ES5 代码 css

配置好ynpm发包设置,修改版本号,发布即可:

$ ynpm publish

发布后浏览镜像仓库看是否完成:https://ynpm.yonyoucloud.com/#browse/browse:ynpm-private