0.0.56 • Published 6 years ago

@beisen/common-mount v0.0.56

Weekly downloads
77
License
ISC
Repository
gitlab
Last release
6 years ago

CommonMount

挂载公共方法

  • 组件构造函数中创建挂载容器

示例:

this.commonMount = new commonMount({
  containerId: 'AutoComplete_ul', // 容器ID
  follow: true, // 是否滚动跟随,默认true
  fixed: true // 定位:fixed,false时为absolute
});
  • 在需要挂载的时候传入挂载参数,RenderDOM

需要预先计算出挂载高度并传入

示例:

this.commonMount.renderDom(
  'auto-complete-wrap', // wrap's classname/id-name
  showAutoUl, // content dom
  this.refs.autoInput, // 滚动跟随节点
  [
    this.tar, //挂载节点
    { // 挂载元素宽高 {width: '', height: ''}
      width: autoResult && autoResult.offsetwidth,
      height: autoResultHeight
    }
  ],
  false,  //isInput,挂载节点为input
  140, //向左水平偏移的距离,为负 -140 则为向右偏移
  true, //弹层靠左靠右模式,默认为false 靠左模式
  1000 //window.onresize执行时间,默认100ms,非必须
  ,30 //inputHeight,非必须
  ,99 //自定义zIndex,非必须
);
  • 关闭的时候可以卸载节点并取消事件监听

示例:

this.commonMount.unmountBox();
@infinitebrahmanuniverse/nolb-_beisen_@everything-registry/sub-chunk-119ux-pagebuilderux-person-cardux-person-evaluation-resultux-person-last-alldeg-scoreux-person-last-alldeg-scoresux-person-last-evaluation-scoreux-platform-pop-componentux-m-last-alldeg-scoreux-m-last-evaluation-scoreux-m-report-alldeg-scoreux-m-report-evaluation-scoreux-honour-cardux-italent-appux-italent-feed-componentux-last-test-resultsux-last-thas-resultux-company-key-wordux-evaluation-reportsux-thunder-calendarux-todo-listux-universal-user-infoux-user-selector2ux-tub-tmpl-task-weekux-tub-tmpl-work-statisticalux-task-drawerux-task-listux-report-last-evaluation-resultux-work-calendarux-app-load-widget@beisen/recruit-dropdown-list@beisen/ux-company-announcement@beisen/ux-computationrule@beisen/ux-reward@beisen/ux-upaas-ethos@beisen/tub-tmpl-work-statisticalitalent-create-taskitalent-portalitalent-share-boxitalent-task-operate-areaitalent-user-selecttita-talentui@beisen-cmps/italent-feedmix-components@beisen-cmps/italent-create-task@beisen-cmps/natureui-area@beisen-cmps/natureui-button@beisen-cmps/natureui-cascader@beisen-cmps/natureui-check@beisen-cmps/natureui-optional@beisen-cmps/natureui-pagination@beisen-cmps/natureui-datalist@beisen-cmps/natureui-form@beisen-cmps/natureui-labelpage@beisen-cmps/natureui-operation@beisen/calendar@beisen/area-selector@beisen/tita-react-components@beisen/tms-reactmetadata-page-builderpc-italent-appstore-managepage-templatesplatform-shared-cmpsperformance-formula-editerpps-form-mutli-tablepps-formula-editpps-popricharearecruit-richarearecruit-adlist@talentui/page-templates@talentui/external-components-bootstrap
0.0.56

6 years ago

0.0.55

6 years ago

0.0.54

6 years ago

0.0.53

7 years ago

0.0.52

7 years ago

0.0.51

7 years ago

0.0.49-1

7 years ago

0.0.50

7 years ago

0.0.49

7 years ago

0.0.48

7 years ago

0.0.47

7 years ago

0.0.46

7 years ago

0.0.45

7 years ago

0.0.44

7 years ago

0.0.43

7 years ago

0.0.42

7 years ago

0.0.41

7 years ago

0.0.40

7 years ago

0.0.39

7 years ago

0.0.38

7 years ago

0.0.37

8 years ago

0.0.36

8 years ago

0.0.35

8 years ago

0.0.34

8 years ago

0.0.33

8 years ago

0.0.32

8 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.1.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago