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

wk-bz-common

v4.0.5

Published

微前端专用, 删除了element-ui的样式

Downloads

94

Readme

安装

    npm set registry http://172.26.59.72:4873   //npm 设置为 wakedata 镜像
    yarn add wk-bz-common

说明

wk-bz-common 是由原先的 dss-web/dss-common 和 dss-web/business-common 抽取了部分作为公共业务模块。未抽取的部分由各自项目做单独处理。

使用

按需引入 wk-bz-common/src 目录下的模块

// example: js文件中引入页面头部组件
import PageHeader from "wk-bz-common/src/components/page-header";
// example: css文件中引入全局less变量文件:
@import '~wk-bz-common/src/style/wkt-constants.less'

注意项目配置中,模块配置需包含 node_modules/wk-bz-common,(js, vue, 图片, 样式, 字体部分都需配置)

module: {
  rules: [
    {
      test: /\.js$/,
      include: [
        pathSrcDir,
        path.resolve(__dirname, "../node_modules/wk-bz-common"),
      ],
      use: ["babel-loader"],
    },
  ];
}

附录

  • src
    • api
      • base.js (原 dss-common/api/base)
    • business (原 business-common)
      • base-index.js
      • industry-enum.js
      • store_user.js
      • store.js
      • wp-base-api.js
    • mixins
      • base.js (原 dss-common/src/mixins/base)
    • plugins
      • vue-plain.js (原 dss-common/src/vue-plugins/vue-plain)
    • style (原 dss-common/src/style)
      • anim.css
      • base.css
      • base.less
      • custom.css
      • icon2.css
      • wkt-base.less
      • wkt-constants.less (全局 less 变量定义文件)
    • components (公共组件)
      • chartBase (原 dss-common/src/components/Chart.vue, 图表基础组件)
      • chartEmpty (原 dss-common/src/components/ChartEmpty.vue, 图表基础组件)
      • imgMaterial (原 dss-dsp/src/components/materials/image/index.vue, 图片素材对话框)
        • addGroup.vue
        • addImage.vue
        • index.vue
      • Map (原 dss-wechar3rd/src/components/Map, 地图相关参数)
      • page-header (原 dss-common/src/components/page-header/index.vue, 页面头部组件)
      • placeholder (原 dss-common/src/components/placeholder/index.vue, 空数据展示组件)
      • sidebar (原 dss-common/src/components/sidebar/index.vue, 页面侧边栏组件)
      • upload (原 dss-common/src/components/upload/index.vue)
      • wkb-page-nav (页面侧边导航组件)
    • partial (原 dss-common/src/partial)
      • html
        • key-contact.html (原 dss-common/src/partial/key-contact/tpl.html)
        • key-footer.html
      • js
        • key-header.js (原 dss-common/src/partial/key-header/tpl.js)
      • style
        • console.css
        • key-contack.less (原 dss-common/src/partial/key-contack/tpl.less)
        • key-footer.less
        • key-header.less
        • tpl-mobile.less
      • tpl
        • key-bury.tpl (原 dss-common/src/partial/key-bury/tpl.tpl)
        • key-header.tpl
        • key-meta.tpl
        • third-party.tpl

版本更新

v4.0.5

修复wxAuthInfo状态不更新的问题

v4.0.3

v4.x版本专门为微前端app使用 store状态机中加入wxAuthInfo,可以获取到wxMaAppId

v3.0.0-ump-dev26

更改 SHOW_CHILD_MAX 为 20

v3.0.0-ump-dev24

升级wk-common-ui版本为1.0.6

v3.0.0-ump-dev23

增加企业微信菜单标识wecom

v3.0.0-ump-dev21

增加销售中心菜单标识scrm

v3.0.0-ump

v3.x.x-ump版本是为惟客云大会员专用common

v2.0.6

修复SidebarItem组件path.resolve调用参数为null时报错 重写$message,短时间内不重复弹出, $message(options, isSingle) isSingle:true 单例非重复弹出,false 默认重复弹出

v2.0.5

page-header组件增加旅程预警tip 旅程预警tip默认展示,如果不需要展示,可使用showWarnTip prop控制

v2.0.2

修复左侧菜单栏被挡住问题

v1.1.15

对头部、侧边栏样式进行视觉改版。 二级菜单做成下拉样式,头部引入门店选择。

v1.1.11

增加消息中心入口及标识

v1.1.10

增加工单系统菜单order

v1.1.9

增加公共组件 img-material 图片素材选择框, 对应旧版组件 imgMaterial

v1.1.8

wkb-page-nav 对三级动态菜单及其子菜单做重定向处理 page-header 将头部导航菜单作成动态菜单 sidebar 对二级侧边栏菜单的菜单选中事件做抛出处理 新增permission 查找当前路由是否拥有权限、对二、三级菜单做重定向处理

v1.1.7

wkb-page-nav 兼容动态路由字段 page-header 头部导航去掉右侧的门店管理按钮入口 更新 store 地产标识 权限菜单树获取

v2.0.0-dev

page-header 头部导航去掉右侧的门店管理按钮入口 更新 store 地产标识 权限菜单树获取

v1.1.6

更新 store.js services.js

v1.1.3

将头部导航栏与 dss-web 同步

v1.1.2

将设置管理入口隐藏

v1.1.1

修正 babelrc 配置文件错误;导致 babel 编译无法生效

v1.1.0

将右侧的门店新增到页面导航(新增为企业管理)

v1.0.6

增加 pageHeader 组件设置管理页面导航

v1.0.4

更换 cdn:dss-res.meizu.com 改为 cdn.wakedata.com

v1.0.3

公共组件 page-header 添加组件参数 headerToHome(参数说明:点击左侧门店 logo 或门店名称是否跳转主页)

v1.0.2

公共业务模块基础版本