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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mixlinker-tools

v1.1.24

Published

一个基于智物联业务的前端组件包,基于vue3开发,项目需在vue3环境下使用;

Downloads

171

Readme

说明

一个基于智物联业务的前端组件包,基于vue3开发,项目需在vue3环境下使用;

快速安装

npm i mixlinker-tools 或者 yarn add mixlinker-tools

组件引入

因部分插件使用了antdv框架,使用本包需引入antdv,antdv包在安装本包时会自动安装,直接按如下代码在main.js引入即可

import mixlinker from 'mixlinker-tools'
import 'mixlinker-tools/style'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import * as antIcons from '@ant-design/icons-vue'
import emitter from 'mitt';
app.config.globalProperties.emitter = emitter()
Object.keys(antIcons).forEach(key => {
    app.component(key, antIcons[key])
})

app.use(Antd)
app.use(mixlinker)

mix-dashboard

显示板组件

<mix-dashboard :params="params"></mix-dashboard>

| 参数名 | 类型 | 说明 | 默认值 | 是否必传 | | ---------------------------- | ------ | ----------------------------------------------------- | ------ | -------- | | params:{uid:'',object_id:''} | object | uid为显示板id,object_id为当前显示板数据来源的对象uid | 空 | 是 |

注意事项:如果显示需使用地图组件,则需要在项目的index.html中引入百度的相关js文件,如下

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="//api.map.baidu.com/getscript?v=3.0&ak=你的ak"></script>
    <script type="text/javascript" src="//api.map.baidu.com/library/TextIconOverlay/1.2/src/TextIconOverlay_min.js"></script>
    <script type="text/javascript" src="//api.map.baidu.com/library/MarkerClusterer/1.2/src/MarkerClusterer_min.js"></script>
    <title>Mixlinker</title>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>

mix-show

大屏显示板组件

<mix-show :params="params"></mix-show>

| 参数名 | 类型 | 说明 | 默认值 | 是否必传 | | ---------------------------- | ------ | ----------------------------------------------------- | ------ | -------- | | params:{uid:'',object_id:''} | object | uid为显示板id,object_id为当前显示板数据来源的对象uid | 空 | 是 |

mix-agrid

表格组件

<mix-aggrid 
	:columnDefs.sync="columns" 
	:rowData="dataSource" 
    :height='200' 
    :pager="pager"
     @pageChange="pageChange"
>
</mix-agrid>
<script setup>
const columns = ref([
      { 
        field: "make" ,//字段名
        headerName:"列标题名",
        width:"150",
        flex:1,//默认占据剩余宽度
       },
      { field: "model" },
      { field: "price" },
    ])
const dataSource = [
      { make: "Toyota", model: "Celica", price: 35000 },
      { make: "Ford", model: "Mondeo", price: 32000 },
      { make: "Porsche", model: "Boxster", price: 72000 },
    ]
</script>

事件

| 事件 | 说明 | 参数 | | ---------------- | ---------------- | ----------- | | @cellContextMenu | 鼠标右键呼出菜单 | (event)=>{} | | | | |

mix-right-menu

mix-agrid里的右键按钮组件

  <mix-right-menu ref="rightMenu" :localButtons="localButtons" />
      
   const localButtons = [
       {
           type:'item',
           role_checked:true
       }
   ]
  //mix-aggrid的cellContextMenu事件
  const rightMenu = ref(null)
  const onCellContextMenu = (params) => {
    rightMenu.value.showRightMenu(params.event, params.data)
}

菜单类型

| localButtons中item的取值 | 说明 | | ------------------------ | -------- | | item | 详情按钮 | | copy | 复制按钮 | | update | 编辑 | | delete | 删除 |

mix-edit-page

弹窗组件

<mix-edit-page :title='title' :show='show' @ok="handleOk">
  <template #content>
  	弹窗内容区域
  </tempate>
</mix-edit-page>

参数

| 参数 | 类型 | 说明 | 默认值 | 是否允许为空 | | ----- | -------- | -------------- | ------ | ------------ | | title | string | 弹窗标题 | 空 | 是 | | show | boolean | 控制弹窗显示 | false | 否 | | @ok | function | 确定事件的回调 | 无 | 否 |

mix-script-modal

脚本编辑器弹窗

<mix-script-modal :script='script'></mix-script-moadl>

| 参数 | 类型 | 说明 | 默认值 | 是否允许为空 | | ------ | ---- | -------- | ------ | ------------ | | script | josn | 脚本内容 | 空 | 否 |