1.1.2 • Published 12 months ago

aegleboard v1.1.2

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago
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

1.1.1

12 months ago

1.1.2

12 months ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.2-9.1

2 years ago

1.0.2-9.2

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.30

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago