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

wp-chart-design

v0.2.11-beta.153

Published

#### 1. 安装 使用 npm 的方式安装,写此文档时版本为 [email protected] ``` npm i wp-chart-design -S ``` #### 2. 引入看板 在 main.js 中写入以下内容,全局注册组件(组件内部使用了vuex,需传递store参数至组件内部注册内部vuex module): ``` import Vue from 'vue' import wpChartDesign from 'wp-chart-design' impor

Downloads

40

Readme

vue-cp

1. 安装

使用 npm 的方式安装,写此文档时版本为 [email protected]

npm i wp-chart-design -S

2. 引入看板

在 main.js 中写入以下内容,全局注册组件(组件内部使用了vuex,需传递store参数至组件内部注册内部vuex module):

import Vue from 'vue'
import wpChartDesign from 'wp-chart-design'
import 'wp-chart-design/lib/wpChartDesign.css'

Vue.use(wpChartDesign, { store })
  1. 使用
<template>
    <wp-chart-design
      app-id="appid" -- 数据源信息接口参数
      business-id="businessId" -- 看板id
      source-id="sourceId" -- 数据源id
      bi-openId="biOpenId" -- 外部分享id
      chart-design-name="name" -- 看板标题
      :data-type-list="dataTypeList" -- 开放出来的可选数据类型,['modelData', 'staticData'] | ['applicationData', 'staticData']
      preview-mode="false" -- 是否是预览模式
      is-show-close="false" -- 是否显示左上角关闭按钮
      need-request="true" -- 是否需要请求看板数据
      immediate-refresh="false" -- 保存完是否立即刷新列表
    -- 以下路径可以根据自己定义的路径替换
      save-url="/bi/kanban/myKanban/saveChart" -- 保存图表
      chart-list-url="/bi/kanban/common/front/myKanban/findByModuleId" -- 获取看板数据接口
      data-source-url="/bi/kanban/myKanban/getModel" -- 获取模型
      dimension-measure-url="/bi/kanban/myKanban/getModelDimensionAndIndex" -- 获取维度、度量
      static-data-url="/quickapp/dashBoard/ydchart/olapResultStatic" -- 根据静态数据获取组件数据接口
      component-data-url="/bi/kanban/myKanban/builderChart" -- 生成图表
      componentBaseListUrl="/bi/portrait/personal/management/chart" -- 获取组件接口地址                         
      componentLibraryListUrl="/bi/portrait/personal/management/findComponentsBySortIdentifier" -- 根据组件类型获取类型下所有组件库图表接口地址
      componentLibraryDetailUrl="/bi/portrait/personal/management/findComponentById" -- 根据组件库图表id获取图表详情数据
      get-default-list-url="/bi/kanban/myKanban/searchChartData" -- 获取默认筛选值列表接口
      filter-field-url="/bi/portrait/personal/management/getEnumList" -- 获取过滤字段可选内容接口
      @close="closeEvent" -- 点击左上角关闭按钮调用的函数
    ></wp-chart-design>
</template>