Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aegleboard

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aegleboard

棋盘棋谱

  • 1.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
0
Weekly downloads
 
Created
Source
npm run lib 
上传到npm

使用说明

1.main.js
import CheckerboardView from 'aegleboard'
Vue.use(CheckerboardView)

2.vue页面使用:
   棋谱列表(九宫格)
  <CheckerboardView v-if="parentHeight"
                    :manualHeight="parentHeight"
                    :businessParams="businessParams"
                    @getPieceMsg="getPieceMsg"/>
  parentHeight:容器高度。例:this.parentHeight = this.$parent.$el.offsetHeight
  businessParams:请求棋子接口需要的业务参数。
  如:businessParams:{
        patientBaseId:'',
        visitCardNo:''
      }
      
  getPieceMsg:棋子操作的回调事件,返回的数据为msgCenter.js中sendEventMsg函数的返回值
  
  
  
  添加棋子
  <AddPieceToChess :menu-id="menuId" :manualHeight="parentHeight" />
  parentHeight:容器高度。例:this.parentHeight = this.$parent.$el.offsetHeight
  
                    

棋谱列表

CheckerboardView.vue

根据chess-use/manual/${id}获取棋谱数据,并且获取棋子列表
循环棋子列表:
1.通过数据类型(type)显示组件
2.通过组件名称(componentName)显示组件----自定义组件(注:本项目中必须下载有自定义组件的依赖)

添加棋子到棋谱

AddPieceToChessManual.vue

FAQs

Package last updated on 17 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc