zoukankan      html  css  js  c++  java
  • zTree setting 配置

    zTree v2.6 - v3.0 setting 配置对比

    • 1、概述

      • zTree v2.6 的 setting 很杂乱,各类属性混在一起不利于查找,也不利于今后的升级
        zTree v3.0 将 setting 进行了结构调整,尽量保证看到属性的定义就知道其功能,同时又扩充了一些配置属性,并且将不属于配置的部分从 setting 中进行了剔除 (treeId / treeObj 除外)
    • 2、详细对比说明

      • 详细对比说明按照 v3.0 的结构顺序进行,由于篇幅和时间有限,还请对照 API 文档查看细节功能差异。
      • setting 仅存的两个非配置属性
        setting.treeId (v3.0) === setting.treeObjId (v2.6)
        setting.treeObj (v3.0 & v2.6)
      • 异步加载系列的属性配置
        setting.async.autoParam (v3.0 增加功能) === setting.asyncParam (v2.6)
        setting.async.dataFilter (v3.0) === setting.asyncDataFilter (v2.6)
        setting.async.dataType (v3.0 new)
        setting.async.enable (v3.0) === setting.async (v2.6)
        setting.async.otherParam (v3.0) === setting.asyncParamOther (v2.6)
        setting.async.type (v3.0 new)
        setting.async.url (v3.0 增加参数 treeId) === setting.asyncUrl (v2.6)
      • 事件回调函数的属性配置
        setting.callback.beforeAsync (v3.0 & v2.6)
        setting.callback.beforeCheck (v3.0) === setting.callback.beforeChange (v2.6)
        setting.callback.beforeClick (v3.0 & v2.6 增加参数 clickFlag)
        setting.callback.beforeCollapse (v3.0 & v2.6)
        setting.callback.beforeDblClick (v3.0) === setting.callback.beforeDblclick (v2.6)
        setting.callback.beforeDrag (v3.0 & v2.6 更改参数 treeNodes / moveType)
        setting.callback.beforeDragOpen (v3.0) === setting.callback.confirmDragOpen (v2.6)
        setting.callback.beforeDrop (v3.0 & v2.6 更改参数 treeNodes / moveType)
        setting.callback.beforeEditName (v3.0) === setting.callback.beforeRename (v2.6)
        setting.callback.beforeExpand (v3.0 & v2.6)
        setting.callback.beforeMouseDown (v3.0 & v2.6)
        setting.callback.beforeMouseUp (v3.0 & v2.6)
        setting.callback.beforeRemove (v3.0 & v2.6)
        setting.callback.beforeRename (v3.0) === setting.callback.confirmRename (v2.6)
        setting.callback.beforeRightClick (v3.0 & v2.6)
        setting.callback.onAsyncError (v3.0) === setting.callback.asyncError (v2.6)
        setting.callback.onAsyncSuccess (v3.0) === setting.callback.asyncSuccess (v2.6)
        setting.callback.onCheck (v3.0) === setting.callback.change (v2.6)
        setting.callback.onClick (v3.0 增加参数 clickFlag) === setting.callback.click (v2.6)
        setting.callback.onCollapse (v3.0) === setting.callback.collapse (v2.6)
        setting.callback.onDblClick (v3.0) === setting.callback.dblclick (v2.6)
        setting.callback.onDrag (v3.0 更改参数 treeNodes / moveType) === setting.callback.drag (v2.6)
        setting.callback.onDrop (v3.0 更改参数 treeNodes / moveType) === setting.callback.drop (v2.6)
        setting.callback.onExpand (v3.0) === setting.callback.expand (v2.6)
        setting.callback.onMouseDown (v3.0) === setting.callback.mouseDown (v2.6)
        setting.callback.onMouseUp (v3.0) === setting.callback.mouseUp (v2.6)
        setting.callback.onNodeCreated (v3.0) === setting.callback.nodeCreated (v2.6)
        setting.callback.onRemove (v3.0) === setting.callback.remove (v2.6)
        setting.callback.onRename (v3.0) === setting.callback.rename (v2.6)
        setting.callback.onRightClick (v3.0) === setting.callback.rightClick (v2.6)
      • checkbox / radio 系列的属性配置
        setting.check.autoCheckTrigger (v3.0 new)
        setting.check.chkboxType (v3.0) === setting.checkType (v2.6)
        setting.check.chkStyle (v3.0) === setting.checkStyle (v2.6)
        setting.check.enable (v3.0) === setting.checkable (v2.6)
        setting.check.nocheckInherit (v3.0 new)
        setting.check.radioType (v3.0) === setting.checkRadioType (v2.6)
      • 节点数据系列的属性配置
        setting.data.keep.leaf (v3.0) === setting.keepLeaf (v2.6)
        setting.data.keep.parent (v3.0) === setting.keepParent (v2.6)
        setting.data.key.checked (v3.0) === setting.checkedCol (v2.6)
        setting.data.key.children (v3.0) === setting.nodesCol (v2.6)
        setting.data.key.name (v3.0) === setting.nameCol (v2.6)
        setting.data.key.title (v3.0 new)
        setting.data.simpleData.enable (v3.0) === setting.isSimpleData (v2.6)
        setting.data.simpleData.idKey (v3.0) === setting.treeNodeKey (v2.6)
        setting.data.simpleData.pIdKey (v3.0) === setting.treeNodeParentKey (v2.6)
        setting.data.simpleData.rootPId (v3.0) === setting.rootPID (v2.6)



  • 相关阅读:
    Python os 模块
    Python sys 模块
    [SAP BASIS]How to kill process in SAP ?
    linux lsof 详解
    [ORACLE] Oracle 索引失效总结
    [SAP BASIS] [TMS] 更改 Backup-Domain-Controler as Domain Controller|将TMS备用域控制器改为主域控制器
    python 生产者消费者模型
    Python 多线程
    python queue 模块
    [Linux]ipcs,ipcm 命令详解
  • 原文地址:https://www.cnblogs.com/zjw2004112/p/12845448.html
Copyright © 2011-2022 走看看