Repository: bobi1234/ok-admin Branch: master Commit: deb751042846 Files: 579 Total size: 2.5 MB Directory structure: gitextract_oqn529dx/ ├── .gitignore ├── LICENSE ├── README.md ├── css/ │ └── okadmin.css ├── data/ │ ├── menu.json │ ├── permission/ │ │ └── tree.json │ ├── permission-table.json │ └── permission-tree.json ├── font/ │ ├── demo.css │ ├── demo_index.html │ ├── iconfont.css │ └── iconfont.js ├── index.html ├── js/ │ └── okadmin.js ├── lib/ │ ├── animate/ │ │ └── animate.css │ ├── layui/ │ │ ├── css/ │ │ │ ├── layui.css │ │ │ ├── layui.mobile.css │ │ │ └── modules/ │ │ │ ├── code.css │ │ │ ├── laydate/ │ │ │ │ └── default/ │ │ │ │ └── laydate.css │ │ │ └── layer/ │ │ │ └── default/ │ │ │ └── layer.css │ │ ├── lay/ │ │ │ ├── modules/ │ │ │ │ ├── carousel.js │ │ │ │ ├── code.js │ │ │ │ ├── colorpicker.js │ │ │ │ ├── element.js │ │ │ │ ├── flow.js │ │ │ │ ├── form.js │ │ │ │ ├── jquery.js │ │ │ │ ├── laydate.js │ │ │ │ ├── layedit.js │ │ │ │ ├── layer.js │ │ │ │ ├── laypage.js │ │ │ │ ├── laytpl.js │ │ │ │ ├── mobile.js │ │ │ │ ├── rate.js │ │ │ │ ├── slider.js │ │ │ │ ├── table.js │ │ │ │ ├── transfer.js │ │ │ │ ├── tree.js │ │ │ │ ├── upload.js │ │ │ │ └── util.js │ │ │ └── okmodules/ │ │ │ ├── okLayer.js │ │ │ ├── okMenu.js │ │ │ ├── okProgress/ │ │ │ │ ├── nprogress.css │ │ │ │ ├── nprogress.js │ │ │ │ └── okProgress.js │ │ │ ├── okTab.js │ │ │ ├── okUtils.js │ │ │ └── treetable/ │ │ │ ├── treetable.css │ │ │ └── treetable.js │ │ ├── layui.all.js │ │ └── layui.js │ └── zTree_v3/ │ ├── .gitignore │ ├── README.md │ ├── api/ │ │ ├── API_cn.html │ │ ├── API_en.html │ │ ├── apiCss/ │ │ │ ├── api.js │ │ │ ├── common.css │ │ │ ├── common_ie6.css │ │ │ ├── jquery.ztree.core.js │ │ │ └── zTreeStyleForApi.css │ │ ├── cn/ │ │ │ ├── fn.zTree._z.html │ │ │ ├── fn.zTree.destroy.html │ │ │ ├── fn.zTree.getZTreeObj.html │ │ │ ├── fn.zTree.init.html │ │ │ ├── setting.async.autoParam.html │ │ │ ├── setting.async.contentType.html │ │ │ ├── setting.async.dataFilter.html │ │ │ ├── setting.async.dataType.html │ │ │ ├── setting.async.enable.html │ │ │ ├── setting.async.headers.html │ │ │ ├── setting.async.otherParam.html │ │ │ ├── setting.async.type.html │ │ │ ├── setting.async.url.html │ │ │ ├── setting.async.xhrFields.html │ │ │ ├── setting.callback.beforeAsync.html │ │ │ ├── setting.callback.beforeCheck.html │ │ │ ├── setting.callback.beforeClick.html │ │ │ ├── setting.callback.beforeCollapse.html │ │ │ ├── setting.callback.beforeDblClick.html │ │ │ ├── setting.callback.beforeDrag.html │ │ │ ├── setting.callback.beforeDragOpen.html │ │ │ ├── setting.callback.beforeDrop.html │ │ │ ├── setting.callback.beforeEditName.html │ │ │ ├── setting.callback.beforeExpand.html │ │ │ ├── setting.callback.beforeMouseDown.html │ │ │ ├── setting.callback.beforeMouseUp.html │ │ │ ├── setting.callback.beforeRemove.html │ │ │ ├── setting.callback.beforeRename.html │ │ │ ├── setting.callback.beforeRightClick.html │ │ │ ├── setting.callback.onAsyncError.html │ │ │ ├── setting.callback.onAsyncSuccess.html │ │ │ ├── setting.callback.onCheck.html │ │ │ ├── setting.callback.onClick.html │ │ │ ├── setting.callback.onCollapse.html │ │ │ ├── setting.callback.onDblClick.html │ │ │ ├── setting.callback.onDrag.html │ │ │ ├── setting.callback.onDragMove.html │ │ │ ├── setting.callback.onDrop.html │ │ │ ├── setting.callback.onExpand.html │ │ │ ├── setting.callback.onMouseDown.html │ │ │ ├── setting.callback.onMouseUp.html │ │ │ ├── setting.callback.onNodeCreated.html │ │ │ ├── setting.callback.onRemove.html │ │ │ ├── setting.callback.onRename.html │ │ │ ├── setting.callback.onRightClick.html │ │ │ ├── setting.check.autoCheckTrigger.html │ │ │ ├── setting.check.chkDisabledInherit.html │ │ │ ├── setting.check.chkStyle.html │ │ │ ├── setting.check.chkboxType.html │ │ │ ├── setting.check.enable.html │ │ │ ├── setting.check.nocheckInherit.html │ │ │ ├── setting.check.radioType.html │ │ │ ├── setting.data.keep.leaf.html │ │ │ ├── setting.data.keep.parent.html │ │ │ ├── setting.data.key.checked.html │ │ │ ├── setting.data.key.children.html │ │ │ ├── setting.data.key.isHidden.html │ │ │ ├── setting.data.key.isParent.html │ │ │ ├── setting.data.key.name.html │ │ │ ├── setting.data.key.title.html │ │ │ ├── setting.data.key.url.html │ │ │ ├── setting.data.simpleData.enable.html │ │ │ ├── setting.data.simpleData.idKey.html │ │ │ ├── setting.data.simpleData.pIdKey.html │ │ │ ├── setting.data.simpleData.rootPId.html │ │ │ ├── setting.edit.drag.autoExpandTrigger.html │ │ │ ├── setting.edit.drag.autoOpenTime.html │ │ │ ├── setting.edit.drag.borderMax.html │ │ │ ├── setting.edit.drag.borderMin.html │ │ │ ├── setting.edit.drag.inner.html │ │ │ ├── setting.edit.drag.isCopy.html │ │ │ ├── setting.edit.drag.isMove.html │ │ │ ├── setting.edit.drag.maxShowNodeNum.html │ │ │ ├── setting.edit.drag.minMoveSize.html │ │ │ ├── setting.edit.drag.next.html │ │ │ ├── setting.edit.drag.prev.html │ │ │ ├── setting.edit.editNameSelectAll.html │ │ │ ├── setting.edit.enable.html │ │ │ ├── setting.edit.removeTitle.html │ │ │ ├── setting.edit.renameTitle.html │ │ │ ├── setting.edit.showRemoveBtn.html │ │ │ ├── setting.edit.showRenameBtn.html │ │ │ ├── setting.treeId.html │ │ │ ├── setting.treeObj.html │ │ │ ├── setting.view.addDiyDom.html │ │ │ ├── setting.view.addHoverDom.html │ │ │ ├── setting.view.autoCancelSelected.html │ │ │ ├── setting.view.dblClickExpand.html │ │ │ ├── setting.view.expandSpeed.html │ │ │ ├── setting.view.fontCss.html │ │ │ ├── setting.view.nameIsHTML.html │ │ │ ├── setting.view.removeHoverDom.html │ │ │ ├── setting.view.selectedMulti.html │ │ │ ├── setting.view.showIcon.html │ │ │ ├── setting.view.showLine.html │ │ │ ├── setting.view.showTitle.html │ │ │ ├── setting.view.txtSelectedEnable.html │ │ │ ├── treeNode.check_Child_State.html │ │ │ ├── treeNode.check_Focus.html │ │ │ ├── treeNode.checked.html │ │ │ ├── treeNode.checkedOld.html │ │ │ ├── treeNode.children.html │ │ │ ├── treeNode.chkDisabled.html │ │ │ ├── treeNode.click.html │ │ │ ├── treeNode.diy.html │ │ │ ├── treeNode.editNameFlag.html │ │ │ ├── treeNode.getCheckStatus.html │ │ │ ├── treeNode.getIndex.html │ │ │ ├── treeNode.getNextNode.html │ │ │ ├── treeNode.getParentNode.html │ │ │ ├── treeNode.getPath.html │ │ │ ├── treeNode.getPreNode.html │ │ │ ├── treeNode.halfCheck.html │ │ │ ├── treeNode.icon.html │ │ │ ├── treeNode.iconClose.html │ │ │ ├── treeNode.iconOpen.html │ │ │ ├── treeNode.iconSkin.html │ │ │ ├── treeNode.isAjaxing.html │ │ │ ├── treeNode.isFirstNode.html │ │ │ ├── treeNode.isHidden.html │ │ │ ├── treeNode.isHover.html │ │ │ ├── treeNode.isLastNode.html │ │ │ ├── treeNode.isParent.html │ │ │ ├── treeNode.level.html │ │ │ ├── treeNode.name.html │ │ │ ├── treeNode.nocheck.html │ │ │ ├── treeNode.open.html │ │ │ ├── treeNode.parentTId.html │ │ │ ├── treeNode.tId.html │ │ │ ├── treeNode.target.html │ │ │ ├── treeNode.url.html │ │ │ ├── treeNode.zAsync.html │ │ │ ├── zTreeObj.addNodes.html │ │ │ ├── zTreeObj.cancelEditName.html │ │ │ ├── zTreeObj.cancelSelectedNode.html │ │ │ ├── zTreeObj.checkAllNodes.html │ │ │ ├── zTreeObj.checkNode.html │ │ │ ├── zTreeObj.copyNode.html │ │ │ ├── zTreeObj.destroy.html │ │ │ ├── zTreeObj.editName.html │ │ │ ├── zTreeObj.expandAll.html │ │ │ ├── zTreeObj.expandNode.html │ │ │ ├── zTreeObj.getChangeCheckedNodes.html │ │ │ ├── zTreeObj.getCheckedNodes.html │ │ │ ├── zTreeObj.getNodeByParam.html │ │ │ ├── zTreeObj.getNodeByTId.html │ │ │ ├── zTreeObj.getNodeIndex.html │ │ │ ├── zTreeObj.getNodes.html │ │ │ ├── zTreeObj.getNodesByFilter.html │ │ │ ├── zTreeObj.getNodesByParam.html │ │ │ ├── zTreeObj.getNodesByParamFuzzy.html │ │ │ ├── zTreeObj.getSelectedNodes.html │ │ │ ├── zTreeObj.hideNode.html │ │ │ ├── zTreeObj.hideNodes.html │ │ │ ├── zTreeObj.moveNode.html │ │ │ ├── zTreeObj.reAsyncChildNodes.html │ │ │ ├── zTreeObj.reAsyncChildNodesPromise.html │ │ │ ├── zTreeObj.refresh.html │ │ │ ├── zTreeObj.removeChildNodes.html │ │ │ ├── zTreeObj.removeNode.html │ │ │ ├── zTreeObj.selectNode.html │ │ │ ├── zTreeObj.setChkDisabled.html │ │ │ ├── zTreeObj.setEditable.html │ │ │ ├── zTreeObj.setting.html │ │ │ ├── zTreeObj.showNode.html │ │ │ ├── zTreeObj.showNodes.html │ │ │ ├── zTreeObj.transformToArray.html │ │ │ ├── zTreeObj.transformTozTreeNodes.html │ │ │ └── zTreeObj.updateNode.html │ │ └── en/ │ │ ├── fn.zTree._z.html │ │ ├── fn.zTree.destroy.html │ │ ├── fn.zTree.getZTreeObj.html │ │ ├── fn.zTree.init.html │ │ ├── setting.async.autoParam.html │ │ ├── setting.async.contentType.html │ │ ├── setting.async.dataFilter.html │ │ ├── setting.async.dataType.html │ │ ├── setting.async.enable.html │ │ ├── setting.async.headers.html │ │ ├── setting.async.otherParam.html │ │ ├── setting.async.type.html │ │ ├── setting.async.url.html │ │ ├── setting.async.xhrFields.html │ │ ├── setting.callback.beforeAsync.html │ │ ├── setting.callback.beforeCheck.html │ │ ├── setting.callback.beforeClick.html │ │ ├── setting.callback.beforeCollapse.html │ │ ├── setting.callback.beforeDblClick.html │ │ ├── setting.callback.beforeDrag.html │ │ ├── setting.callback.beforeDragOpen.html │ │ ├── setting.callback.beforeDrop.html │ │ ├── setting.callback.beforeEditName.html │ │ ├── setting.callback.beforeExpand.html │ │ ├── setting.callback.beforeMouseDown.html │ │ ├── setting.callback.beforeMouseUp.html │ │ ├── setting.callback.beforeRemove.html │ │ ├── setting.callback.beforeRename.html │ │ ├── setting.callback.beforeRightClick.html │ │ ├── setting.callback.onAsyncError.html │ │ ├── setting.callback.onAsyncSuccess.html │ │ ├── setting.callback.onCheck.html │ │ ├── setting.callback.onClick.html │ │ ├── setting.callback.onCollapse.html │ │ ├── setting.callback.onDblClick.html │ │ ├── setting.callback.onDrag.html │ │ ├── setting.callback.onDragMove.html │ │ ├── setting.callback.onDrop.html │ │ ├── setting.callback.onExpand.html │ │ ├── setting.callback.onMouseDown.html │ │ ├── setting.callback.onMouseUp.html │ │ ├── setting.callback.onNodeCreated.html │ │ ├── setting.callback.onRemove.html │ │ ├── setting.callback.onRename.html │ │ ├── setting.callback.onRightClick.html │ │ ├── setting.check.autoCheckTrigger.html │ │ ├── setting.check.chkDisabledInherit.html │ │ ├── setting.check.chkStyle.html │ │ ├── setting.check.chkboxType.html │ │ ├── setting.check.enable.html │ │ ├── setting.check.nocheckInherit.html │ │ ├── setting.check.radioType.html │ │ ├── setting.data.keep.leaf.html │ │ ├── setting.data.keep.parent.html │ │ ├── setting.data.key.checked.html │ │ ├── setting.data.key.children.html │ │ ├── setting.data.key.isHidden.html │ │ ├── setting.data.key.isParent.html │ │ ├── setting.data.key.name.html │ │ ├── setting.data.key.title.html │ │ ├── setting.data.key.url.html │ │ ├── setting.data.simpleData.enable.html │ │ ├── setting.data.simpleData.idKey.html │ │ ├── setting.data.simpleData.pIdKey.html │ │ ├── setting.data.simpleData.rootPId.html │ │ ├── setting.edit.drag.autoExpandTrigger.html │ │ ├── setting.edit.drag.autoOpenTime.html │ │ ├── setting.edit.drag.borderMax.html │ │ ├── setting.edit.drag.borderMin.html │ │ ├── setting.edit.drag.inner.html │ │ ├── setting.edit.drag.isCopy.html │ │ ├── setting.edit.drag.isMove.html │ │ ├── setting.edit.drag.maxShowNodeNum.html │ │ ├── setting.edit.drag.minMoveSize.html │ │ ├── setting.edit.drag.next.html │ │ ├── setting.edit.drag.prev.html │ │ ├── setting.edit.editNameSelectAll.html │ │ ├── setting.edit.enable.html │ │ ├── setting.edit.removeTitle.html │ │ ├── setting.edit.renameTitle.html │ │ ├── setting.edit.showRemoveBtn.html │ │ ├── setting.edit.showRenameBtn.html │ │ ├── setting.treeId.html │ │ ├── setting.treeObj.html │ │ ├── setting.view.addDiyDom.html │ │ ├── setting.view.addHoverDom.html │ │ ├── setting.view.autoCancelSelected.html │ │ ├── setting.view.dblClickExpand.html │ │ ├── setting.view.expandSpeed.html │ │ ├── setting.view.fontCss.html │ │ ├── setting.view.nameIsHTML.html │ │ ├── setting.view.removeHoverDom.html │ │ ├── setting.view.selectedMulti.html │ │ ├── setting.view.showIcon.html │ │ ├── setting.view.showLine.html │ │ ├── setting.view.showTitle.html │ │ ├── setting.view.txtSelectedEnable.html │ │ ├── treeNode.check_Child_State.html │ │ ├── treeNode.check_Focus.html │ │ ├── treeNode.checked.html │ │ ├── treeNode.checkedOld.html │ │ ├── treeNode.children.html │ │ ├── treeNode.chkDisabled.html │ │ ├── treeNode.click.html │ │ ├── treeNode.diy.html │ │ ├── treeNode.editNameFlag.html │ │ ├── treeNode.getCheckStatus.html │ │ ├── treeNode.getIndex.html │ │ ├── treeNode.getNextNode.html │ │ ├── treeNode.getParentNode.html │ │ ├── treeNode.getPath.html │ │ ├── treeNode.getPreNode.html │ │ ├── treeNode.halfCheck.html │ │ ├── treeNode.icon.html │ │ ├── treeNode.iconClose.html │ │ ├── treeNode.iconOpen.html │ │ ├── treeNode.iconSkin.html │ │ ├── treeNode.isAjaxing.html │ │ ├── treeNode.isFirstNode.html │ │ ├── treeNode.isHidden.html │ │ ├── treeNode.isHover.html │ │ ├── treeNode.isLastNode.html │ │ ├── treeNode.isParent.html │ │ ├── treeNode.level.html │ │ ├── treeNode.name.html │ │ ├── treeNode.nocheck.html │ │ ├── treeNode.open.html │ │ ├── treeNode.parentTId.html │ │ ├── treeNode.tId.html │ │ ├── treeNode.target.html │ │ ├── treeNode.url.html │ │ ├── treeNode.zAsync.html │ │ ├── zTreeObj.addNodes.html │ │ ├── zTreeObj.cancelEditName.html │ │ ├── zTreeObj.cancelSelectedNode.html │ │ ├── zTreeObj.checkAllNodes.html │ │ ├── zTreeObj.checkNode.html │ │ ├── zTreeObj.copyNode.html │ │ ├── zTreeObj.destroy.html │ │ ├── zTreeObj.editName.html │ │ ├── zTreeObj.expandAll.html │ │ ├── zTreeObj.expandNode.html │ │ ├── zTreeObj.getChangeCheckedNodes.html │ │ ├── zTreeObj.getCheckedNodes.html │ │ ├── zTreeObj.getNodeByParam.html │ │ ├── zTreeObj.getNodeByTId.html │ │ ├── zTreeObj.getNodeIndex.html │ │ ├── zTreeObj.getNodes.html │ │ ├── zTreeObj.getNodesByFilter.html │ │ ├── zTreeObj.getNodesByParam.html │ │ ├── zTreeObj.getNodesByParamFuzzy.html │ │ ├── zTreeObj.getSelectedNodes.html │ │ ├── zTreeObj.hideNode.html │ │ ├── zTreeObj.hideNodes.html │ │ ├── zTreeObj.moveNode.html │ │ ├── zTreeObj.reAsyncChildNodes.html │ │ ├── zTreeObj.reAsyncChildNodesPromise.html │ │ ├── zTreeObj.refresh.html │ │ ├── zTreeObj.removeChildNodes.html │ │ ├── zTreeObj.removeNode.html │ │ ├── zTreeObj.selectNode.html │ │ ├── zTreeObj.setChkDisabled.html │ │ ├── zTreeObj.setEditable.html │ │ ├── zTreeObj.setting.html │ │ ├── zTreeObj.showNode.html │ │ ├── zTreeObj.showNodes.html │ │ ├── zTreeObj.transformToArray.html │ │ ├── zTreeObj.transformTozTreeNodes.html │ │ └── zTreeObj.updateNode.html │ ├── css/ │ │ ├── awesomeStyle/ │ │ │ ├── awesome.css │ │ │ ├── awesome.less │ │ │ └── fa.less │ │ ├── demo.css │ │ ├── metroStyle/ │ │ │ └── metroStyle.css │ │ └── zTreeStyle/ │ │ └── zTreeStyle.css │ ├── demo/ │ │ ├── cn/ │ │ │ ├── asyncData/ │ │ │ │ ├── getNodes.php │ │ │ │ └── getNodesForBigData.php │ │ │ ├── bigdata/ │ │ │ │ ├── common.html │ │ │ │ ├── diy_async.html │ │ │ │ └── page.html │ │ │ ├── core/ │ │ │ │ ├── async.html │ │ │ │ ├── async_fun.html │ │ │ │ ├── click.html │ │ │ │ ├── custom_font.html │ │ │ │ ├── custom_icon.html │ │ │ │ ├── custom_iconSkin.html │ │ │ │ ├── expand.html │ │ │ │ ├── noicon.html │ │ │ │ ├── noline.html │ │ │ │ ├── otherMouse.html │ │ │ │ ├── searchNodes.html │ │ │ │ ├── simpleData.html │ │ │ │ ├── standardData.html │ │ │ │ ├── update_fun.html │ │ │ │ └── url.html │ │ │ ├── excheck/ │ │ │ │ ├── checkbox.html │ │ │ │ ├── checkbox_chkDisabled.html │ │ │ │ ├── checkbox_count.html │ │ │ │ ├── checkbox_fun.html │ │ │ │ ├── checkbox_halfCheck.html │ │ │ │ ├── checkbox_nocheck.html │ │ │ │ ├── radio.html │ │ │ │ ├── radio_chkDisabled.html │ │ │ │ ├── radio_fun.html │ │ │ │ ├── radio_halfCheck.html │ │ │ │ └── radio_nocheck.html │ │ │ ├── exedit/ │ │ │ │ ├── async_edit.html │ │ │ │ ├── drag.html │ │ │ │ ├── drag_fun.html │ │ │ │ ├── drag_super.html │ │ │ │ ├── edit.html │ │ │ │ ├── edit_fun.html │ │ │ │ ├── edit_super.html │ │ │ │ └── multiTree.html │ │ │ ├── exhide/ │ │ │ │ ├── checkbox.html │ │ │ │ ├── common.html │ │ │ │ └── radio.html │ │ │ ├── index.html │ │ │ └── super/ │ │ │ ├── asyncForAll.html │ │ │ ├── awesome.html │ │ │ ├── checkbox_radio.html │ │ │ ├── diydom.html │ │ │ ├── dragWithOther.html │ │ │ ├── fuzzySearch.html │ │ │ ├── left_menu.html │ │ │ ├── left_menuForOutLook.html │ │ │ ├── metro.html │ │ │ ├── oneclick.html │ │ │ ├── oneroot.html │ │ │ ├── rightClickMenu.html │ │ │ ├── select_menu.html │ │ │ ├── select_menu_checkbox.html │ │ │ ├── select_menu_radio.html │ │ │ └── singlepath.html │ │ ├── en/ │ │ │ ├── asyncData/ │ │ │ │ ├── getNodes.php │ │ │ │ └── getNodesForBigData.php │ │ │ ├── bigdata/ │ │ │ │ ├── common.html │ │ │ │ ├── diy_async.html │ │ │ │ └── page.html │ │ │ ├── core/ │ │ │ │ ├── async.html │ │ │ │ ├── async_fun.html │ │ │ │ ├── click.html │ │ │ │ ├── custom_font.html │ │ │ │ ├── custom_icon.html │ │ │ │ ├── custom_iconSkin.html │ │ │ │ ├── expand.html │ │ │ │ ├── noicon.html │ │ │ │ ├── noline.html │ │ │ │ ├── otherMouse.html │ │ │ │ ├── searchNodes.html │ │ │ │ ├── simpleData.html │ │ │ │ ├── standardData.html │ │ │ │ ├── update_fun.html │ │ │ │ └── url.html │ │ │ ├── excheck/ │ │ │ │ ├── checkbox.html │ │ │ │ ├── checkbox_chkDisabled.html │ │ │ │ ├── checkbox_count.html │ │ │ │ ├── checkbox_fun.html │ │ │ │ ├── checkbox_halfCheck.html │ │ │ │ ├── checkbox_nocheck.html │ │ │ │ ├── radio.html │ │ │ │ ├── radio_chkDisabled.html │ │ │ │ ├── radio_fun.html │ │ │ │ ├── radio_halfCheck.html │ │ │ │ └── radio_nocheck.html │ │ │ ├── exedit/ │ │ │ │ ├── async_edit.html │ │ │ │ ├── drag.html │ │ │ │ ├── drag_fun.html │ │ │ │ ├── drag_super.html │ │ │ │ ├── edit.html │ │ │ │ ├── edit_fun.html │ │ │ │ ├── edit_super.html │ │ │ │ └── multiTree.html │ │ │ ├── exhide/ │ │ │ │ ├── checkbox.html │ │ │ │ ├── common.html │ │ │ │ └── radio.html │ │ │ ├── index.html │ │ │ └── super/ │ │ │ ├── asyncForAll.html │ │ │ ├── awesome.html │ │ │ ├── checkbox_radio.html │ │ │ ├── diydom.html │ │ │ ├── dragWithOther.html │ │ │ ├── fuzzySearch.html │ │ │ ├── left_menu.html │ │ │ ├── left_menuForOutLook.html │ │ │ ├── metro.html │ │ │ ├── oneclick.html │ │ │ ├── oneroot.html │ │ │ ├── rightClickMenu.html │ │ │ ├── select_menu.html │ │ │ ├── select_menu_checkbox.html │ │ │ ├── select_menu_radio.html │ │ │ ├── singlepath.html │ │ │ └── ztree.html │ │ └── js/ │ │ └── fuzzysearch.js │ ├── js/ │ │ ├── jquery.ztree.all.js │ │ ├── jquery.ztree.core.js │ │ ├── jquery.ztree.excheck.js │ │ ├── jquery.ztree.exedit.js │ │ └── jquery.ztree.exhide.js │ └── log v3.x.txt └── pages/ ├── map/ │ ├── map1.html │ ├── map2.html │ ├── map3.html │ ├── map4.html │ ├── map5.html │ └── map6.html ├── member/ │ ├── permission-add.html │ ├── permission-edit.html │ ├── permission.html │ ├── role-add.html │ ├── role-edit.html │ ├── role.html │ ├── user-add.html │ ├── user-center.html │ ├── user-edit.html │ ├── user-info.html │ ├── user-notify.html │ ├── user-pwd.html │ └── user.html ├── often/ │ ├── article-add.html │ ├── article-edit.html │ ├── article.html │ ├── download.html │ ├── image.html │ ├── link.html │ ├── message.html │ ├── process.html │ └── product.html ├── other/ │ ├── 403.html │ ├── 404.html │ ├── 500.html │ ├── donate.html │ └── login.html ├── system/ │ ├── alertSkin.html │ ├── system-log-detail.html │ ├── system-log.html │ ├── system-setting.html │ └── system-shield.html ├── test/ │ ├── okLayer.html │ ├── okProgress.html │ └── okutils.html ├── use/ │ ├── demo.html │ ├── use-okLayer.html │ ├── use-okMenu.html │ ├── use-okTab-sub.html │ ├── use-okTab.html │ ├── use-okUtils.html │ └── use-tab.html └── welcome.html ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ # 忽略.idea目录及其子目录、子文件 .idea/ ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2018 Mr. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # ok-admin v1.0 一个很赞的,扁平化风格的,响应式布局的通用后台模版解决方案,旨为后端程序员减压! ![输入图片说明](https://images.gitee.com/uploads/images/2019/0525/161436_23cd5fd8_1152471.png "屏幕截图.png") ### QQ交流群 ~~964222534~~ 🈵️ 、 ~~833539807~~ 🈵️ 、 797113469 🔥 # 技术栈

# 访问地址 - http://ok-admin-v1.xlbweb.cn - http://ok-admin.xlbweb.cn # 效果预览
# 开源协议 [MIT](https://github.com/bobi1234/ok-admin/blob/master/LICENSE) ================================================ FILE: css/okadmin.css ================================================ @import "../lib/layui/css/layui.css"; @import "../font/iconfont.css"; @import "../lib/animate/animate.css"; /*所有页面的CSS代码都写在这里*/ html,body{width: 100%;height: 100%;} /*登陆页面*/ .login-body{background:url(../imgs/bg.png) no-repeat center center fixed;background-size:cover} .login-body .login-box{width:300px;height:300px;border:1px solid #1a312c;position:absolute;left:50%;top:50%;margin-left:-150px;margin-top:-150px;border-radius:5px} .login-body .login-box .head{width:100px;height:100px;border-radius:50%;position:absolute;top:-96px;left:50%;margin-left:-50px;background:url(../imgs/ok.png);background-size:cover} .login-body .login-box .input-box{margin:10px 10px 10px 10px} .login-body .login-box .input-box input{margin-top:20px;border-radius:5px} .login-body .login-box .input-box input[type=submit]{background-color:#189F92;width:100%;border:none;outline:0;cursor:pointer;color:#fff;padding-top:8px;padding-bottom:8px;font-size:18px} .login-body .login-box .input-box .remember-me{margin-top:20px} .login-body .login-box .input-box .remember-me .layui-form-switch{margin-top:0} .login-body .login-box .input-box .oauth{margin-top:20px} .login-body .login-box .input-box .oauth i{cursor:pointer;font-size:28px} .login-body .login-box .copyright{margin:10px 10px 10px 10px;font-size:12px} /*index及其它页面*/ .layui-layout-admin .layui-logo{color:#fff;font-size:20px} .layui-nav{padding:0} .layui-layout-left{left:235px} .layui-tab-title li:first-child .layui-tab-close{display:none} .layui-tab-title li{background-color:#f2f2f2} .layui-tab-brief>.layui-tab-title .layui-this{color:#fff;background-color:#1AA094;} .menu-switch{width:30px;height:30px;position:relative;left:200px;top:16px;color:#fff;background-color:#1AA094;text-align:center;line-height:30px;cursor:pointer} .weather{margin: 15px 0 0 20px;} .textMarquee{float:left;width:450px;margin-top: 20px;} .layui-nav-tree .layui-nav-child a{padding-left:36px} .content-body{position:absolute;top:60px;right:0;bottom:42px;left:200px;z-index:1;overflow:hidden;} .content-body .layui-tab{margin:0;} .content-body .layui-tab-content{position:absolute;top:40px;bottom:0;width:100%;padding:0;z-index:-999;overflow:hidden} .content-body .layui-tab-content .layui-tab-item{height:100%} .content-body .layui-tab-content .layui-tab-item iframe{height:100%} @media screen and (max-width:992px){ .textMarquee{display:none} } @media screen and (max-width:768px){ .layui-layout-admin .layui-bg-black{left:-200px} .layui-layout-admin .content-body{left:0} .layui-layout-admin .layui-footer{left:0} .layui-layout-left{display:none} } @media screen and (max-width:480px){ .layui-layout-admin .layui-logo{left:-32px} .menu-switch{left:140px} } @media screen and (max-width:330px){ .layui-layout-admin .layui-logo{left:-51px;font-size:14px} .menu-switch{left:100px} } .yy{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.5;z-index:10;background-color:#000;display:none} /*sub-page页面*/ .ok-body{padding:10px} .layui-row-margin{margin:10px 5px 5px 5px} .md2-sub1{width:40%;text-align:center;line-height:80px;float:left;border-top-left-radius:5px;border-bottom-left-radius:5px} .md2-sub1 i{font-size:40px;display:block;cursor:pointer;transition:All .4s ease-in-out;-webkit-transition:All .4s ease-in-out;-moz-transition:All .4s ease-in-out;-o-transition:All .4s ease-in-out} .md2-sub1 i:hover{transform:rotate(360deg);-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg)} .md2-sub2{width:60%;display:inline-block;background-color:#f2f2f2;line-height:46px;text-align:center;border-top-right-radius:5px;border-bottom-right-radius:5px} .md2-sub2 span{font-size:25px;display:block;height:34px} .md2-sub2 cite{font-style:normal} .ok-body-breadcrumb{position:relative;line-height:39px;height:32px;border-bottom:1px solid #e5e5e5} .ok-body-breadcrumb .layui-btn{line-height:2.4em;margin-top:3px;float:right} .ok-body-breadcrumb .layui-btn .layui-icon{line-height:32px} .ok-search{margin-top:15px} .ok-search .layui-input{width:190px;padding-left:10px;margin-left:10px;float:left} .ok-search .layui-input:first-child{margin-left:0} .ok-search .layui-btn{margin-left:10px} @media screen and (max-width:768px){ .ok-search .layui-input{width:100%;margin-left:0;margin-top:10px} .ok-search .layui-btn{margin-left:0;margin-top:10px} } okToolbar{display:block;margin-top:10px;margin-bottom:10px;padding:5px;line-height:22px;border-radius:0 2px 2px 0;background-color:#f2f2f2} okToolbar span{float:right;line-height:30px} .ok-form{margin-top:10px} /*滚动条代码*/ ::-webkit-scrollbar{width:10px;height:10px} ::-webkit-scrollbar-button:vertical{display:none} ::-webkit-scrollbar-track:vertical{background-color:#000} ::-webkit-scrollbar-track-piece{background-color:#F5F5F5} ::-webkit-scrollbar-thumb{margin-right:10px;background-color:#A6A6A6} ::-webkit-scrollbar-thumb:hover{background-color:#aaa} ::-webkit-scrollbar-corner:vertical{background-color:#535353} ::-webkit-scrollbar-resizer:vertical{background-color:#FF6E00} /* 公共样式 */ .tal{text-align:left;} .tac{text-align:center;} .tar{text-align:right;} /*三级菜单、四级菜单、五级菜单、六级菜单、七级菜单、八级菜单、九级菜单、十级菜单*/ .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child a{padding-left: 54px;} .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child .layui-nav-child a{padding-left: 74px;} .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child a{padding-left: 94px;} .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child a{padding-left: 114px;} .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child a{padding-left: 134px;} .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child a{padding-left: 154px;} .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child a{padding-left: 174px;} .layui-nav-tree .layui-nav-item .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child .layui-nav-child a{padding-left: 194px;} ================================================ FILE: data/menu.json ================================================ { "code": 0, "msg": "操作成功", "data": [ { "title": "会员管理", "path": "", "font": "layui-icon", "icon": "", "spread": true, "children": [ { "title": "用户列表", "path": "pages/member/user.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "角色列表", "path": "pages/member/role.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "权限列表", "path": "pages/member/permission.html", "font": "iconfont", "icon": "", "spread": false } ] }, { "title": "常用页面", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "文章列表", "path": "pages/often/article.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "留言列表", "path": "pages/often/message.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "产品列表", "path": "pages/often/product.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "下载列表", "path": "pages/often/download.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "链接列表", "path": "pages/often/link.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "任务列表", "path": "pages/often/issue.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "图片列表", "path": "pages/often/link.html", "font": "layui-icon", "icon": "", "spread": false } ] }, { "title": "其他页面", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "登陆", "path": "pages/other/login.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "注册", "path": "pages/other/reg.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "忘记密码", "path": "pages/other/forget.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "403页面", "path": "pages/other/403.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "404页面", "path": "pages/other/404.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "500页面", "path": "pages/other/500.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "捐赠列表", "path": "pages/other/donate.html", "font": "iconfont", "icon": "", "spread": false } ] }, { "title": "图表页面", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "柱状图", "path": "pages/map/map1.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "折线图", "path": "pages/map/map2.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "折线堆叠图", "path": "pages/map/map3.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "饼图", "path": "pages/map/map4.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "环形图", "path": "pages/map/map5.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "散布图", "path": "pages/map/map6.html", "font": "iconfont", "icon": "", "spread": false } ] }, { "title": "系统管理", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "网站配置", "path": "pages/system/system-setting.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "系统日志", "path": "pages/system/system-log.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "屏蔽词", "path": "pages/system/system-shield.html", "font": "iconfont", "icon": "", "spread": false } ] }, { "title": "框架使用", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "okMenu使用", "path": "pages/use/use-okMenu.html", "font": "layui-icon", "icon": "", "spread": false }, { "title": "okTab使用", "path": "pages/use/use-okTab.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "okLayer使用", "path": "pages/use/use-okLayer.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "okUtils使用", "path": "pages/use/use-okUtils.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "Layui图标", "path": "https://www.layui.com/doc/element/icon.html", "font": "iconfont", "icon": "", "spread": false }, { "title": "Iconfont图标", "path": "font/demo_index.html", "font": "iconfont", "icon": "", "spread": false } ] }, { "title": "多级菜单", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "购物网站", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "苏宁", "path": "https://www.suning.com", "font": "layui-icon", "icon": "", "spread": false }, { "title": "京东", "path": "https://www.jd.com", "font": "layui-icon", "icon": "", "spread": false }, { "title": "阿里", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "淘宝", "path": "https://www.taobao.com", "font": "layui-icon", "icon": "", "spread": false }, { "title": "天猫", "path": "https://www.tmall.com", "font": "layui-icon", "icon": "", "spread": false }, { "title": "聚划算", "path": "https://ju.taobao.com", "font": "layui-icon", "icon": "", "spread": false } ] } ] }, { "title": "新浪微博", "path": "https://www.sina.com.cn", "font": "layui-icon", "icon": "", "spread": false }, { "title": "搜索引擎", "path": "", "font": "layui-icon", "icon": "", "spread": false, "children": [ { "title": "百度", "path": "https://www.baidu.com", "font": "layui-icon", "icon": "", "spread": false }, { "title": "谷歌", "path": "https://www.google.com", "font": "layui-icon", "icon": "", "spread": false }, { "title": "360搜索360搜索360搜索360搜索360搜索360搜索", "path": "https://www.so.com", "font": "layui-icon", "icon": "", "spread": false } ] }, { "title": "搜狐", "path": "http://www.sohu.com", "font": "layui-icon", "icon": "", "spread": false }, { "title": "网易", "path": "https://www.163.com", "font": "layui-icon", "icon": "", "spread": false } ] } ] } ================================================ FILE: data/permission/tree.json ================================================ [ { "title": "根目录", "spread": true, "children": [ { "title": "会员管理", "spread": true, "children": [ { "title": "用户管理", "spread": true, "children": [ { "title": "添加用户" }, { "title": "编辑用户" }, { "title": "删除用户" } ] }, { "title": "角色管理", "spread": true, "children": [ { "title": "添加角色" }, { "title": "编辑角色" }, { "title": "删除角色" } ] }, { "title": "权限管理", "spread": true, "children": [ { "title": "添加权限" }, { "title": "编辑权限" }, { "title": "删除权限" } ] } ] } ] } ] ================================================ FILE: data/permission-table.json ================================================ { "code": 0, "msg": "", "count": 19, "data": [ { "authorityId": 1, "authorityName": "系统管理", "orderNumber": 1, "menuUrl": null, "menuIcon": "layui-icon-set", "createTime": "2018/06/29 11:05:41", "authority": null, "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 0, "parentId": -1 }, { "authorityId": 2, "authorityName": "用户管理", "orderNumber": 2, "menuUrl": "system/user", "menuIcon": null, "createTime": "2018/06/29 11:05:41", "authority": null, "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 0, "parentId": 1 }, { "authorityId": 3, "authorityName": "查询用户", "orderNumber": 3, "menuUrl": "", "menuIcon": "", "createTime": "2018/07/21 13:54:16", "authority": "user:view", "checked": 0, "updateTime": "2018/07/21 13:54:16", "isMenu": 1, "parentId": 2 }, { "authorityId": 4, "authorityName": "添加用户", "orderNumber": 4, "menuUrl": null, "menuIcon": null, "createTime": "2018/06/29 11:05:41", "authority": "user:add", "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 1, "parentId": 2 }, { "authorityId": 5, "authorityName": "修改用户", "orderNumber": 5, "menuUrl": null, "menuIcon": null, "createTime": "2018/06/29 11:05:41", "authority": "user:edit", "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 1, "parentId": 2 }, { "authorityId": 6, "authorityName": "删除用户", "orderNumber": 6, "menuUrl": null, "menuIcon": null, "createTime": "2018/06/29 11:05:41", "authority": "user:delete", "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 1, "parentId": 2 }, { "authorityId": 7, "authorityName": "角色管理", "orderNumber": 7, "menuUrl": "system/role", "menuIcon": null, "createTime": "2018/06/29 11:05:41", "authority": null, "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 0, "parentId": 1 }, { "authorityId": 8, "authorityName": "查询角色", "orderNumber": 8, "menuUrl": "", "menuIcon": "", "createTime": "2018/07/21 13:54:59", "authority": "role:view", "checked": 0, "updateTime": "2018/07/21 13:54:58", "isMenu": 1, "parentId": 7 }, { "authorityId": 9, "authorityName": "添加角色", "orderNumber": 9, "menuUrl": "", "menuIcon": "", "createTime": "2018/06/29 11:05:41", "authority": "role:add", "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 1, "parentId": 7 }, { "authorityId": 10, "authorityName": "修改角色", "orderNumber": 10, "menuUrl": "", "menuIcon": "", "createTime": "2018/06/29 11:05:41", "authority": "role:edit", "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 1, "parentId": 7 }, { "authorityId": 11, "authorityName": "删除角色", "orderNumber": 11, "menuUrl": "", "menuIcon": "", "createTime": "2018/06/29 11:05:41", "authority": "role:delete", "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 1, "parentId": 7 }, { "authorityId": 12, "authorityName": "角色权限管理", "orderNumber": 12, "menuUrl": "", "menuIcon": "", "createTime": "2018/06/29 11:05:41", "authority": "role:auth", "checked": 0, "updateTime": "2018/07/13 15:27:18", "isMenu": 1, "parentId": 7 }, { "authorityId": 13, "authorityName": "权限管理", "orderNumber": 13, "menuUrl": "system/authorities", "menuIcon": null, "createTime": "2018/06/29 11:05:41", "authority": null, "checked": 0, "updateTime": "2018/07/13 15:45:13", "isMenu": 0, "parentId": 1 }, { "authorityId": 14, "authorityName": "查询权限", "orderNumber": 14, "menuUrl": "", "menuIcon": "", "createTime": "2018/07/21 13:55:57", "authority": "authorities:view", "checked": 0, "updateTime": "2018/07/21 13:55:56", "isMenu": 1, "parentId": 13 }, { "authorityId": 15, "authorityName": "添加权限", "orderNumber": 15, "menuUrl": "", "menuIcon": "", "createTime": "2018/06/29 11:05:41", "authority": "authorities:add", "checked": 0, "updateTime": "2018/06/29 11:05:41", "isMenu": 1, "parentId": 13 }, { "authorityId": 16, "authorityName": "修改权限", "orderNumber": 16, "menuUrl": "", "menuIcon": "", "createTime": "2018/07/13 09:13:42", "authority": "authorities:edit", "checked": 0, "updateTime": "2018/07/13 09:13:42", "isMenu": 1, "parentId": 13 }, { "authorityId": 17, "authorityName": "删除权限", "orderNumber": 17, "menuUrl": "", "menuIcon": "", "createTime": "2018/06/29 11:05:41", "authority": "authorities:delete", "checked": 0, "updateTime": "2018/06/29 11:05:41", "isMenu": 1, "parentId": 13 }, { "authorityId": 18, "authorityName": "登录日志", "orderNumber": 18, "menuUrl": "system/loginRecord", "menuIcon": null, "createTime": "2018/06/29 11:05:41", "authority": null, "checked": 0, "updateTime": "2018/06/29 11:05:41", "isMenu": 0, "parentId": 1 }, { "authorityId": 19, "authorityName": "查询登录日志", "orderNumber": 19, "menuUrl": "", "menuIcon": "", "createTime": "2018/07/21 13:56:43", "authority": "loginRecord:view", "checked": 0, "updateTime": "2018/07/21 13:56:43", "isMenu": 1, "parentId": 18 } ] } ================================================ FILE: data/permission-tree.json ================================================ { "status": 1000, "msg": "查询成功", "data": [ { "id": "1", "name": "根目录", "isParent": true }, { "id": "2", "name": "会员管理", "isParent": true, "parentId": "1" }, { "id": "3", "name": "用户管理", "isParent": true, "parentId": "2" }, { "id": "4", "name": "增加", "isParent": false, "parentId": "3" }, { "id": "5", "name": "修改", "isParent": false, "parentId": "3" }, { "id": "6", "name": "删除", "isParent": false, "parentId": "3" }, { "id": "7", "name": "角色管理", "isParent": true, "parentId": "2" }, { "id": "8", "name": "增加", "isParent": false, "parentId": "7" }, { "id": "9", "name": "修改", "isParent": false, "parentId": "7" }, { "id": "10", "name": "删除", "isParent": false, "parentId": "7" }, { "id": "11", "name": "权限管理", "isParent": true, "parentId": "2" }, { "id": "12", "name": "增加", "isParent": false, "parentId": "11" }, { "id": "13", "name": "修改", "isParent": false, "parentId": "11" }, { "id": "14", "name": "删除", "isParent": false, "parentId": "11" } ] } ================================================ FILE: font/demo.css ================================================ /* Logo 字体 */ @font-face { font-family: "iconfont logo"; src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834'); src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg'); } .logo { font-family: "iconfont logo"; font-size: 160px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* tabs */ .nav-tabs { position: relative; } .nav-tabs .nav-more { position: absolute; right: 0; bottom: 0; height: 42px; line-height: 42px; color: #666; } #tabs { border-bottom: 1px solid #eee; } #tabs li { cursor: pointer; width: 100px; height: 40px; line-height: 40px; text-align: center; font-size: 16px; border-bottom: 2px solid transparent; position: relative; z-index: 1; margin-bottom: -1px; color: #666; } #tabs .active { border-bottom-color: #f00; color: #222; } .tab-container .content { display: none; } /* 页面布局 */ .main { padding: 30px 100px; width: 960px; margin: 0 auto; } .main .logo { color: #333; text-align: left; margin-bottom: 30px; line-height: 1; height: 110px; margin-top: -50px; overflow: hidden; *zoom: 1; } .main .logo a { font-size: 160px; color: #333; } .helps { margin-top: 40px; } .helps pre { padding: 20px; margin: 10px 0; border: solid 1px #e7e1cd; background-color: #fffdef; overflow: auto; } .icon_lists { width: 100% !important; overflow: hidden; *zoom: 1; } .icon_lists li { width: 100px; margin-bottom: 10px; margin-right: 20px; text-align: center; list-style: none !important; cursor: default; } .icon_lists li .code-name { line-height: 1.2; } .icon_lists .icon { display: block; height: 100px; line-height: 100px; font-size: 42px; margin: 10px auto; color: #333; -webkit-transition: font-size 0.25s linear, width 0.25s linear; -moz-transition: font-size 0.25s linear, width 0.25s linear; transition: font-size 0.25s linear, width 0.25s linear; } .icon_lists .icon:hover { font-size: 100px; } .icon_lists .svg-icon { /* 通过设置 font-size 来改变图标大小 */ width: 1em; /* 图标和文字相邻时,垂直对齐 */ vertical-align: -0.15em; /* 通过设置 color 来改变 SVG 的颜色/fill */ fill: currentColor; /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示 normalize.css 中也包含这行 */ overflow: hidden; } .icon_lists li .name, .icon_lists li .code-name { color: #666; } /* markdown 样式 */ .markdown { color: #666; font-size: 14px; line-height: 1.8; } .highlight { line-height: 1.5; } .markdown img { vertical-align: middle; max-width: 100%; } .markdown h1 { color: #404040; font-weight: 500; line-height: 40px; margin-bottom: 24px; } .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { color: #404040; margin: 1.6em 0 0.6em 0; font-weight: 500; clear: both; } .markdown h1 { font-size: 28px; } .markdown h2 { font-size: 22px; } .markdown h3 { font-size: 16px; } .markdown h4 { font-size: 14px; } .markdown h5 { font-size: 12px; } .markdown h6 { font-size: 12px; } .markdown hr { height: 1px; border: 0; background: #e9e9e9; margin: 16px 0; clear: both; } .markdown p { margin: 1em 0; } .markdown>p, .markdown>blockquote, .markdown>.highlight, .markdown>ol, .markdown>ul { width: 80%; } .markdown ul>li { list-style: circle; } .markdown>ul li, .markdown blockquote ul>li { margin-left: 20px; padding-left: 4px; } .markdown>ul li p, .markdown>ol li p { margin: 0.6em 0; } .markdown ol>li { list-style: decimal; } .markdown>ol li, .markdown blockquote ol>li { margin-left: 20px; padding-left: 4px; } .markdown code { margin: 0 3px; padding: 0 5px; background: #eee; border-radius: 3px; } .markdown strong, .markdown b { font-weight: 600; } .markdown>table { border-collapse: collapse; border-spacing: 0px; empty-cells: show; border: 1px solid #e9e9e9; width: 95%; margin-bottom: 24px; } .markdown>table th { white-space: nowrap; color: #333; font-weight: 600; } .markdown>table th, .markdown>table td { border: 1px solid #e9e9e9; padding: 8px 16px; text-align: left; } .markdown>table th { background: #F7F7F7; } .markdown blockquote { font-size: 90%; color: #999; border-left: 4px solid #e9e9e9; padding-left: 0.8em; margin: 1em 0; } .markdown blockquote p { margin: 0; } .markdown .anchor { opacity: 0; transition: opacity 0.3s ease; margin-left: 8px; } .markdown .waiting { color: #ccc; } .markdown h1:hover .anchor, .markdown h2:hover .anchor, .markdown h3:hover .anchor, .markdown h4:hover .anchor, .markdown h5:hover .anchor, .markdown h6:hover .anchor { opacity: 1; display: inline-block; } .markdown>br, .markdown>p>br { clear: both; } .hljs { display: block; background: white; padding: 0.5em; color: #333333; overflow-x: auto; } .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; } /* 代码高亮 */ /* PrismJS 1.15.0 https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ /** * prism.js default theme for JavaScript, CSS and HTML * Based on dabblet (http://dabblet.com) * @author Lea Verou */ code[class*="language-"], pre[class*="language-"] { color: black; background: none; text-shadow: 0 1px white; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { text-shadow: none; background: #b3d4fc; } pre[class*="language-"]::selection, pre[class*="language-"] ::selection, code[class*="language-"]::selection, code[class*="language-"] ::selection { text-shadow: none; background: #b3d4fc; } @media print { code[class*="language-"], pre[class*="language-"] { text-shadow: none; } } /* Code blocks */ pre[class*="language-"] { padding: 1em; margin: .5em 0; overflow: auto; } :not(pre)>code[class*="language-"], pre[class*="language-"] { background: #f5f2f0; } /* Inline code */ :not(pre)>code[class*="language-"] { padding: .1em; border-radius: .3em; white-space: normal; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: slategray; } .token.punctuation { color: #999; } .namespace { opacity: .7; } .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #905; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #690; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #9a6e3a; background: hsla(0, 0%, 100%, .5); } .token.atrule, .token.attr-value, .token.keyword { color: #07a; } .token.function, .token.class-name { color: #DD4A68; } .token.regex, .token.important, .token.variable { color: #e90; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; } ================================================ FILE: font/demo_index.html ================================================ IconFont Demo

  • 404错误
    
  • 捐赠
    
  • 其他
    
  • 会员
    
  • github
    
  • 微博
    
  • 留言
    
  • 菜单
    
  • 产品
    
  • 支付宝
    
  • 上升
    
  • 图表 折线图
    
  • qq
    
  • 新闻
    
  • 使用帮助1
    
  • 添加
    
  • home
    
  • other
    
  • 商品
    
  • 友情链接
    
  • 403
    
  • 微信
    
  • 微信
    
  • 下载
    
  • 图表-柱状图
    
  • 字体
    
  • 文章
    
  • 下降
    
  • 页面
    
  • 500
    
  • 403
    
  • 404
    
  • 500
    
  • tab
    
  • 评论
    
  • 登录
    
  • 流程
    
  • 角色
    
  • 符号-login
    
  • 设置
    
  • 屏蔽
    
  • 日志
    
  • 电力用户总数。
    
  • 人工智能
    
  • 角色授权
    
  • gitee
    
  • layer
    
  • 监控控制管理监管
    
  • 图片
    
  • 角色管理
    
  • 配置
    
  • 饼图
    
  • 工具
    
  • 环形图
    

Unicode 引用


Unicode 是字体在网页端最原始的应用方式,特点是:

  • 兼容性最好,支持 IE6+,及所有现代浏览器。
  • 支持按字体的方式去动态调整图标大小,颜色等等。
  • 但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。

注意:新版 iconfont 支持多色图标,这些多色图标在 Unicode 模式下将不能使用,如果有需求建议使用symbol 的引用方式

Unicode 使用步骤如下:

第一步:拷贝项目下面生成的 @font-face

@font-face {
  font-family: 'iconfont';
  src: url('iconfont.eot');
  src: url('iconfont.eot?#iefix') format('embedded-opentype'),
      url('iconfont.woff2') format('woff2'),
      url('iconfont.woff') format('woff'),
      url('iconfont.ttf') format('truetype'),
      url('iconfont.svg#iconfont') format('svg');
}

第二步:定义使用 iconfont 的样式

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

第三步:挑选相应图标并获取字体编码,应用于页面

<span class="iconfont">&#x33;</span>

"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

  • 404错误
    .icon-404cuowu
  • 捐赠
    .icon-juanzeng
  • 其他
    .icon-map-setting
  • 会员
    .icon-huiyuan
  • github
    .icon-github
  • 微博
    .icon-logo-weibo
  • 留言
    .icon-liuyan
  • 菜单
    .icon-caidan
  • 产品
    .icon-weibiaoti35
  • 支付宝
    .icon-zhifubao
  • 上升
    .icon-shangsheng
  • 图表 折线图
    .icon-tubiaozhexiantu
  • qq
    .icon-qq
  • 新闻
    .icon-ai-new
  • 使用帮助1
    .icon-shiyongbangzhu1
  • 添加
    .icon-tianjia
  • home
    .icon-home
  • other
    .icon-other
  • 商品
    .icon-goods
  • 友情链接
    .icon-youqinglianjie
  • 403
    .icon-icon-test
  • 微信
    .icon-wechat
  • 微信
    .icon-weixin
  • 下载
    .icon-xiazai
  • 图表-柱状图
    .icon-zhuzhuangtu
  • 字体
    .icon-font
  • 文章
    .icon-wenzhang2
  • 下降
    .icon-web-icon-
  • 页面
    .icon-webpage
  • 500
    .icon-icon-test1
  • 403
    .icon-icon-test2
  • 404
    .icon-icon-test3
  • 500
    .icon-icon-test4
  • tab
    .icon-tab
  • 评论
    .icon-pinglun
  • 登录
    .icon-denglu
  • 流程
    .icon-liucheng
  • 角色
    .icon-jiaose
  • 符号-login
    .icon-login
  • 设置
    .icon-settings
  • 屏蔽
    .icon-blacklist
  • 日志
    .icon-rizhi
  • 电力用户总数。
    .icon-dianliyonghuzongshu
  • 人工智能
    .icon-rengongzhineng
  • 角色授权
    .icon-jiaoseshouquan
  • gitee
    .icon-WechatIMG
  • layer
    .icon-layer
  • 监控控制管理监管
    .icon-jiankongkongzhiguanlijianguan
  • 图片
    .icon-tupian
  • 角色管理
    .icon-jiaoseguanli
  • 配置
    .icon-peizhi-
  • 饼图
    .icon-bingtu
  • 工具
    .icon-gongju
  • 环形图
    .icon-huanxingtu

font-class 引用


font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

与 Unicode 使用方式相比,具有如下特点:

  • 兼容性良好,支持 IE8+,及所有现代浏览器。
  • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
  • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
  • 不过因为本质上还是使用的字体,所以多色图标还是不支持的。

使用步骤如下:

第一步:引入项目下面生成的 fontclass 代码:

<link rel="stylesheet" href="./iconfont.css">

第二步:挑选相应图标并获取类名,应用于页面:

<span class="iconfont icon-xxx"></span>

" iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

  • 404错误
    #icon-404cuowu
  • 捐赠
    #icon-juanzeng
  • 其他
    #icon-map-setting
  • 会员
    #icon-huiyuan
  • github
    #icon-github
  • 微博
    #icon-logo-weibo
  • 留言
    #icon-liuyan
  • 菜单
    #icon-caidan
  • 产品
    #icon-weibiaoti35
  • 支付宝
    #icon-zhifubao
  • 上升
    #icon-shangsheng
  • 图表 折线图
    #icon-tubiaozhexiantu
  • qq
    #icon-qq
  • 新闻
    #icon-ai-new
  • 使用帮助1
    #icon-shiyongbangzhu1
  • 添加
    #icon-tianjia
  • home
    #icon-home
  • other
    #icon-other
  • 商品
    #icon-goods
  • 友情链接
    #icon-youqinglianjie
  • 403
    #icon-icon-test
  • 微信
    #icon-wechat
  • 微信
    #icon-weixin
  • 下载
    #icon-xiazai
  • 图表-柱状图
    #icon-zhuzhuangtu
  • 字体
    #icon-font
  • 文章
    #icon-wenzhang2
  • 下降
    #icon-web-icon-
  • 页面
    #icon-webpage
  • 500
    #icon-icon-test1
  • 403
    #icon-icon-test2
  • 404
    #icon-icon-test3
  • 500
    #icon-icon-test4
  • tab
    #icon-tab
  • 评论
    #icon-pinglun
  • 登录
    #icon-denglu
  • 流程
    #icon-liucheng
  • 角色
    #icon-jiaose
  • 符号-login
    #icon-login
  • 设置
    #icon-settings
  • 屏蔽
    #icon-blacklist
  • 日志
    #icon-rizhi
  • 电力用户总数。
    #icon-dianliyonghuzongshu
  • 人工智能
    #icon-rengongzhineng
  • 角色授权
    #icon-jiaoseshouquan
  • gitee
    #icon-WechatIMG
  • layer
    #icon-layer
  • 监控控制管理监管
    #icon-jiankongkongzhiguanlijianguan
  • 图片
    #icon-tupian
  • 角色管理
    #icon-jiaoseguanli
  • 配置
    #icon-peizhi-
  • 饼图
    #icon-bingtu
  • 工具
    #icon-gongju
  • 环形图
    #icon-huanxingtu

Symbol 引用


这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

  • 支持多色图标了,不再受单色限制。
  • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
  • 兼容性较差,支持 IE9+,及现代浏览器。
  • 浏览器渲染 SVG 的性能一般,还不如 png。

使用步骤如下:

第一步:引入项目下面生成的 symbol 代码:

<script src="./iconfont.js"></script>

第二步:加入通用 CSS 代码(引入一次就行):

<style>
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>

第三步:挑选相应图标并获取类名,应用于页面:

<svg class="icon" aria-hidden="true">
  <use xlink:href="#icon-xxx"></use>
</svg>
================================================ FILE: font/iconfont.css ================================================ @font-face {font-family: "iconfont"; src: url('iconfont.eot?t=1557734072589'); /* IE9 */ src: url('iconfont.eot?t=1557734072589#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAC40AAsAAAAAUcAAAC3kAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCLHgqBh3TqfgE2AiQDgVwLcAAEIAWEbQeFGhsQQhXjmFXAxgGIDfFeR1SKWtn/XxI4GUOy8V/rEVG12mRh1Kq1VkRAzbFlSzeeD8WhD3Ow2Vf213nR3Y3SHhOBKbH5uBG22H4n6/AThCan2uV2maq48JqhlDz8/9r/9p2Z9/ybeESskkgiErpZpDRCg5BoVIhnWFACBHmii/akTqPhed3svf9+1vgJhAQCZLBGWGFLQsIIO2EEESFscQRQQMQVkCFOBKXiAosbW0Gsk1pcrXeCE90otFurxXlXtSXNz9Xne6fWjN0czNhJ+96AYZcNhQVul+lQtkoHSQrH3QPMj/Q7+rwB2Qp0s5ax5UDbUAkOCrL0ebepml3V/2lz7jgs3+qa3mZIgkjIFCCToNsw7pn//b3/1a8EeDAvRjWj7qU6gAm82FmDTFrLA0pudvkBsEgW2KGsshVWfw4Q1Fm6KZuMtFbj1g2Jsm9EHwg8/P/VgOb4TJvIFR6Vhn6vnYbacNIo93Ys45UlUe9KNW3BD1mBknMlWpOrVDQvdXaponPT3R7ofyxAvnig0pGfoAwqMSiQ1CvHSlb17uQuhQqAEiA6AI78dyKd6erpmKoUao+72m3pcefOZeu+MZSTaJmWwgsIu0lSOTnBQzaNQyYKCzSIpWgKQXX6f5+Epknr0um3SRmgriAfSkgPqawA1B1zRUCe1EdVws2imj6rqGdvslF8wt9P/+ymIFPJyQ+dvx1TDI4H+Pshd/47LuYd3tKrcXeLHOsoyKvETUZuNOtyzZfnKNJPXHBcxWCAIOnUz56EnBsFpVDhIqnFiKOXKUeJeeart8LVX0d/ffTrx9KUtrRKm5e59nTNrvx2/Xfwx+kP/3fQzIUcey58M1Xp6b8mL5ILSn7V9d5td7P7ZT7+Qx49+ixYVTVn2b49hUPdOgzpNSHZ1G9Np4YNK3YNWzdl2ozMrG2DRszLDRh3YFJNy5Iti+p2tI1pGtWlQqqC3TZkX4TtIQEQeggS+gg2FggrrBJCVAkR5ghbLBN22CfE2CPsURCO/exDAugm5OggXDBEuKKXcEtohS8gEQpsEkr0E6FYI8LRSUSiQaiwQaixQsRgl4jDMKHHOpGelCcyIIHIBMwQOciIEswS8xK2Yz5gkKjHCLEC88RV5MQoBohHGCc+4oBSjElKLWqUaWhRlmKJch62KM1YpGxHnbILO5Q70Ka8hDHK62jyB0yN4nCCWpc5uoI9FXAEVx6Thhn8xthLcjt9NuhaLZpc0sCVNSpFvKYKPFMHnqm88poCqIFJU3o8/qoGFkq8VxaZBmFb0DO5+p1SpSdUIsvqjImKOzjQ3fbZOzV++euJNQ98sMZ9Q5SchacUAnz6fK9O9ZxoB3HgxyanV1ZOL7zmzedHy36t4ZMakWEuGTVDfF5zKIGlRdGkWI5NXTiT/D8YI5rt06ew1mZP5PnBuIyhpqyRinAbYlO2FkURO5S9bno4jIvXiM8Qflz3Fem7hcjDePx5L9pgyexsARhdLt3VdSJkBqglGcgBt+50wtfqj1IvODSUE2UDiywD8qxsJtLPRUubBzkMHIWxASCIkAAkQkJD6Gr8RFxunrWveE3HUxZ0kSBv+GEfIGXPcHMkViXrZz67gMQbq86Xa9h7+7/Qtc4h8dq6+/YK9srnn24Ap06pB5lrPAVAYO4ZSpVDiIQXeykZcwUgUmuXc5exiBkPh26Ec8Xz0IL01BzJKjcYJzC0dwzmtEZxrJ09+zuUJNHg4RB+HQFJyGok3SfIQnS3npenPw05JNp4yKzsMB2eJI75GOQbRJYkaVW0ZgVEEsoX64Q062RJ80pxo36XFZqgLo9DR1ElpfOyB6jjmXAEGnW1onmHKscpSQ0hNxQgBDaiMaDcPsYhZBIUCnhB1riCa6EZg5ob26jHXm0+1ss81Y9BVLYeF4gIRBQOqdYbuH0kYxSz3Cs8fvGWH3r3ohv5xnSXCZbLM180XPcrfu7YMNw4j71nB4mleWb7ys7kh72hJIpc0m+EBXbCbjwdEeA8Dxv500PoWp0IcdyUiEyosmqPSKOfU6dzRN7WtEpYnSqh9hnWrlB508P0Wd4s6NsGGNzRBkV9psg7t9SdqjlbxeFpGpbNHTVtnCKNvLmlB/5NVf0qsX09zL/BnfNxwd83L63DG6DXok4oiiQzPb4lHBTdGAmRNteZzuohFrAlj8qQOS1m005L0sauxPblG7dnieC+d/YFfdNVui4+0P3Yder5i8AZnty6ie8+JFviQqF5gTEhlaJUHc/PL3l+0eMcOJLFseAmXBzS6ZSXoP2ibNwk80Hi7z0kDV9JVq61ouFa/mgE9gX9EmyNNN5Z7M3kGsaB11woZVtzFMyvX29cs6bhcHn4TE3WbIt5JOaZIU64xZqOEpbOnL1DN3J13ar5J9gJmmyn9sOAwXHB6todeLRmd18+gCMNmzoqumCT03MOoed0EVq6bxmZe5A4tnjPvGn6bhyy5N52PzpcOXxNX/6zMTOIrzu9v49KTcVjveVgy4pPWfKWnNvm/reknD9lRB+m3QHOej2Qcrp7neEaDiNSWY7IyNW9uU0EQuL64Qnonly5cXOzU361PDg5F/AMxBChGV3TwRg0UHMg9HN+FFKVTMXO+hauVyGc+Hqo9e54Ozteb1d0nBDf1UP417oWxOoefxmnGmtl3NkopvHyyS2b03boVWs+mLknPrC6hcPG7QtyoC1KdQNn7y/dNTnUSnstuiQlaUr18JayyocqBUXldNX1/ilWYKkWmMIgl2XoCgL4EfARpGy3Y0UBof8VVCIoRN0ZlBx0ASRTO24lRHPkQwMUUPkagHk65BBzgHlG88i3LQYQUXYSooDEIchlJGGHeWyhyigmnFP+EPOd1BhjH2vYawwxj1osat04T+WTML01lbQpuHlTjRbYsvzAOrJ/dGTsN2NgjDdREHk5lE1lDmc942qWkdJRvx0VmorHPNCFOq2C+4QkqaNR3uj12DHyTVIYnqFMw+ImCcekkqRdPWEMa56s3vm093DDJ6VWqdsFECzIpaLYMxzqCZtqh1cNH5ydP1GJrYXIrFRNdhu9Zvvy4/EvSv7w8AdG31PD9Ar1AiHwdREU/QJE6g3BAONpoNfLA6xBv1tj6smn35At0Wa6CV1ePGw6XkgP5hVwfD/90IGUUrEWuYORBhRjJTTeQeQqa9DVaceHIrIpNIEhkKzw8GQdzt+Hw+X6uLwYnPtvIl5cA7uRCIIpblOY9C3nYhxkyHDSs36dlEdrNiwRoAuFM6J1G66Oz9U6gcLqeKWGPSymRhfumjbN3Isfa7Qrzt6vIyCKQMwQY+1CMPC7SwTUDedM512CemXDHvCn+v9hxPfz7kVCw5eGGHITNNsEnosjmvPfnKxOdm7cHOSPR0m7FoXX/fWVK5y1AUlaM+erYGUYPh6lWefijBNJ6utmdonsiiI4pHhykHAWuBxPj2UzamMLQzuFIMo+xb8Y10owE8Oc0BC6waCDsRdSC7paSACgbcfvthBqEwtmA0d5BkJ7iQQKtr3TwImkogJDb+BeQLY32k33/dWjWTyOMyy37PCa2+NNmCSDeaEl5r75v51a8rzlaq3+X95BZDyU5mND/mNnZtSIWM/0zpsV0XLCfT1rYJ9YqlgvXoiF5YdpJFo7eTn++GclieLY8Y3fUvv0xZ5YtMfPH09NPYIyWIDxMtetNWOlW0qy/N3aw4JLW/BRfAyB+XjF3DKtdTdmm3B/Ijsts19nUtkfoTQ+nPkWrugI/sUWsPlIdiTzQ5xC+3AN70W78b4E42Gthsa/vidbvhPED2PoxgULke/pzh3v4umHogiD7rl1VZ1NZg3lr/ODSrMFj+7OzBI1WRgKFGrwm/rrpSUGm+uV0dYq+JazhsdqarmY/M9q5v/mSDQqNPy2a/CYp0Bt/0h4Ta3I4T37gmYFpd31NharIIVa/tT6dteFZQR/pPsVgGf7dVcz7haSUKp8acsM033dllIMuFHagAasuaH9OEGUaNghpU0AsTfZqnY49xrgOaR1LicbstvSmjH1Okb5gshuX7PtgRvGNOSe1kYTIglxwEqpaSk1JaeH+dsnLITK0W0bpTOiW6oH7ZXHOgM4cmDj8moMn3itjcSuVefN89h7fQO6VheJ7RfcHQPslcN8AzgfbGCDd7aTxSDQ7PYZ3jy5cSeRDyXuXFu6N2dt3XStPiyPv0xZzhRxieE3EGabqPKROdkcHijcZQyATKBiQ1nwBDzOKLAMKCJ2qUEAoG5xL8uZFm8yjUmfNjKQuRrtWeu9hp2Hs8o892ZPneKdvkCXQe5hsUUAQSATa0UNasIWJ0gbyF/W1B2p4d6fXsI/PzOoGEu3gdyDGtEF6IiAeFC8StwMtUXDdOzyI7VK7EdjTUUTOUPVMHUliTgRd0IE7a3L8xa0bG/bceeprri8+OzgTSGJ78woz/DAndW1j5epNCTIo+FgevuD1M29EgxWsLetB5xd4XHg3F1a3ze6CUM0MgZaqruG2jl2583Y1leCfoD1oQ72LkmcrceQWJ9Ma28z2YnueY5kltYfSc9t7MyeCQumplf/0uqClNPDWW9QTK+ycq0RmhnMUPQriOCWwRN6BD2EbFyrWzb2wrDh+CQsupXfIhIhG2CPTw4rmUaWVQ6Nxu1gvYTa64WRYANv8dbym/xVlGlFLksSwfTU5vlN2SSZK2Id3da7EbQ7iSw7D6aMzMd9nY2JYUNr1VkbNx5horkuVnONNW/jjyuJdZrkM8NkTXaKGRyP1ERIhu00iCCeuXS/frDussNITCOYgTtPOnEJSM2BnWgf6MDqIKsw670WgFj5G0VBJXUdrirwHHyw5lhNG5BJb3X7+jpjdjRKI60oDglCcnEXIEsbeZqfKIILYCx920vX6ESbYM0CyyTM5wbj5cTLNw5x7esS4JeC6Q3xsGRJsO/pJucGuusItQsF7fJiUMXeBhwWpgG3DQ6p6tHOgBI9GGgNQmSJrDAO83nlkJxfmoufqKOo8okl6942RennTBfmriTy4uG4rGjpsiXg/DMiSVds14x9QlV++mIcyUmH5uniJbNPyKfc8AG2Z3doeTSsYJMlGU27qaV2n2km6J7Pp1QBZxUhmYuX1ijjcA2M6aUN+qXqQIYr1bBHFfX4901AnmbBRhV3igyYvEPIwkVTg9JPUirQF1slIZ9xU5y9nMCKq/HlK9Z8CZ9rtOftuHnep0SSmUvxtHwFiLV0f/GBeG/hLmp1nWGmV+DC3YXzRu/ifXDI6i4dTp2lOo9r6alsXQeDzivkPV30m9yegFsTBiFTOHaE1L/lr5ZGS6vA5TgE1/WyTMmu/wUHs4WzvVRCu6LmBTTFfg6tktoLpd2fztN34LHO5nS8zEYe/kz+CBerDgHPvzgdFd2pMlyuXsFcQQHgyc73zlu1Wt3p6RnKH+hZai10c0Bq9peWFgh+5HdudrZfEXRnMBfMMv2Yubi8PCgas9FbDJe5f4g13ZjplRk5wCERkYUhld2trrvOGNcSSu0c3HCgF6sLxtJJC3d36xEnEo49CUOzv1wkvSIq+3PC0Yi6Xb2PMvtY3W3ud/zqw2Y1agEeByQZV0wGhDVgZc6sNVluZYTlp1mTeVjcPj1TnD2/m5gap1Zv1nf/n7K+K3u4pf8Wv3+L2o/uu3pYpUvuD1Pojag+H5dcEeC/k8qvIpTYU++WzHsbOO/eJLbJWgZMmLFxywmgFsFMxX6WdQVSzmopI6RNaqlsuub1KJBtfQcGzWDUtvbvqgdALxjsDjZ7kDduOoHbbKNOtsvTIXtDHLI/7iG2DacGTfQ/9Rql85wSjXRU3VWGDbQKqs6h8Z8p4hc2CvGiEUJYYMFz8rYLF+m9+F9+mbCFTvW7ZAr4OSkn+kTzT8CgmEZieSdW5a/StK88b6fzyq5bnHtFoNZ03m/g5EMvnA6euDxHrsbSVr+Y1Oc3Pkzg8lwh6KMoltLJWQBOr5pM6eO6o3ToQeXxw8ZlByYmxw+Y56n/fMI6qI4IlPl0R8NYmYu5JkgUNEu7ATedoabllQI0JCmJWL+KkJZ2WX5+manIXyRIyYMpg+knDz+XTJMvdklJFZA+Wdiupzlxp2NleKc62GFgsFLeRWlS0R7NKMb+sr1NWgqN6URa1iB+aSHikliZJYNGSbaYtt7khvVZOp/lCgd7ZlI49Gic63S41kjUmwnoTjFm+NTEIKzSLS/zNnJl85uBt+asinX396PQrhmPmPKGW34hMd0wm9rIqmF7IgJ+r8yQorb3Wwp2PXYm9oFEj0i7JVfOC7N6s2ibKg5prTFxRBDH5OWnf54an0zv/vlEenL85ysHJIhNR2T8PjGa3jv+x0PJBxzC30wkeOX1g5PDt7ZOxO94Ci1ocmaBC6GvoeJ0i5nkcn+3SxgLMGu4iAXcPkY+ZJkgAxQxYY+CcGsBExILOpvsdCJh0E7Uxn/OYACCKaHv3q+VvbEL5qfSGb5gHyWITO9lK1gXqIFUMZujp2npInopPZcYI2ySKn4Jj7ub0nVKuKNwLdOaSVuW9IZGvmMrYdZQxOO7ks2TRB+YUEuby524Jjf/fW1Ru/J3PrPfWEXzd4364nNv1NVZoZd7ktwTmhIVgSlDyyq9g6QTjUEvHEOvLyjkQoyKS6lcjInBNYgLeAhXVwFg5KFqCT8WYjCWL6lGPCMAVWrcBdUsBhCj4QRVEjqAA4Dxa7i+4ukBBEq5pNjPrfL7F4hUz3hJd2VMMAD9KcOV/opu/TvVtjK5BOqEjvHO3M//u5csOt5OzwDlybjad0FqIdmihjHRjnhjLs3SECes+9LO6cw4xD7NLXv9awgviFSpQxXhnOC50a2NMgnFl77/xzXUNat8UshyPz0lUL24CQgQEcAlkZPFH7eYWoKpJEWAYIsMkrat2YswooS8BOEYQsqtKkssDxBl8ADVBpcSkAIrOxDGw5gUlzQZzkMyAMlEbwGGySDEmfR2GoUK5Ri2b7oBhzwpiULBESHBkOHeKmg6yKq/+YX9Oty03b5t5CBrGVDe3n+mxCmJpqFnSea69aaviXfTesbR7xWYt2z6PeoKR+uo5RRfC129Ijmbvt9mc7nHTcm+Koi26rdJwnLjp+nXnPbI/jKv2HBU9OuZRJgd/f+Htv7vdGzdQmVbcvavs1ntB+3VTpyuX7ZW/XLm6K6fTZLxs5SuQI88IEHhu9DNm9iu+E2guu9Zz92WTGf3jNurPFNN2K5/DXb1N6HBAawJax5sksCSmiGMxAByWZ//iffnPjl/kdiMcPdOln+xXW0iwV+Qcua7kmVDmXuzAljKgIHSvnk1A2e8BdvDS70M/iyDn31J4kHnT/230tb1lZmWhLBkLhdOn7EkJdFo1WXBRYOwkSqj5VsvkLPpWAuZ2s85R1lCqu9KAcenjaCPk/JF3iLBRSt54zGQ43n+zrIatPsoakCNE6lBTtpzFGvEGjCoCSvBWrqwKqwyoiWYNbYSqxrJILzKsvngL2s8Xz9h1IU8QBHmuQKdX8yIpufdyYXJKYtTmm+rhPhmzUiMn0CXvCgSFcWe+MY5/t4WweBeZpNrmb//5crc3JLQVpcLF/SMP6fWeB78uX1pzX/+U/MqyYUqTVJ9i3/+jLf07QHY2focuO+Z3ZaEtM4eKaUZJa7NgY9Et8BeNTh1y0ab1trEJjcXLMZuSNVfyUDBqVnLq/hhXxXpba78nCsolwLg9htplRts27cgar/lgWJTA8iKt17ITuzbk7OoMCCWFEPJivWea1TMPl8xHW3nYVv7+JGGuHwj17Fv6WXN7NorGVvtG7cItqwBYMaRtT0/v81WZrtWp4vXbWdNsgk2QNzCkuJHl7JMbMKOxzZZMqmAmmmxcN/4TmbW9uEexVm3c279bkf6AY9HgHybngVNWR8mAxwDOB84GleknXhtdgg8N9AhgP23f0EQIYufmrrmeG1yathxeGrSeNBzEn2Piigl0Om4z1w3tym1moD6nUztn/s6bckIxOjyGzd6JOLRZ6urwl7FV3622fluLU44NsQMOQ6FkL/HmH7xpx1Px3QAkLhnnSxmKOCr6Fpr5wxQiH/76dP5ZiIDqnQeQimqwfmyyNmjm4ILPUE+X5kqnpQakvKaWO6U/XEOzTqUgwMlT5exo59cX1DhTDNMVdMDei29AXR1CmEGe03c06eFnkKLpdGaWqLPpFovjojYIdaKD0dGkl3JjY0VVtRMfQnVanVr68KaTiZY35BJs1g33cImxMTGKBHt0KI3M8ZHD4RU/iM2u9iYTiX+sX4IYnigCCfwLGdn6yAdcLRxXehmoxyJiw12HWuJljdF7C//8tKXFz88t3jI0LE1dmtPbczptrqy+WUr/XXxLiYlRemdzPfTxdDiXMoIT2lxd7G2rHfe8dC4QmpohXs47s6zmsH+Tgs6C6PHygPwLAQRRmAwVOjqEtKptVp2rlYBMchldpL0MqmKKHTmKnE+ncfmWWME71zomso1l+nRKgulYPDHe3pDqEbbYFdYO156P2QgSzr+/X1+OYRKGs8Kl/EmzkRjsDvaWVfWm5Ya7EJgW8tdAmV8CYHJaMBPixQuVnxaKF3AB8rjLSsXHKPLehMrtRT+Wb9XVa+OraiKqqqN/Bj1cRafNBw1XBsSqpcKyBseMF7ZvOx9MDBh8zRpnpr5VPCUqWa8Eryi71IP2CIdPZNFH6fodJXqyh5rI7NRq8J9sxnhybCsDCbLktzuZKh2jLhxxiv7I3tv0MU3Yn+tGPAjvj67mWY3mM0EIhxitGNbSPTnIoTzNHn0v5OqAwzKBU9XJnpm2m/yTom0/bzy6nSJ5e8odwgEM6nXSXweft1kyEOWwnsl244lrziIP3iKHcIOPnh4EC327KHq4dCzp/anaCpdJ+q3Btb9qLODiwD8Fe/owD3NeMdzwAHqB7/kA5UKJGdqKVYUbfxiOimk4fZtIDetIYREr+x+sj9+1MvrAO0v+pKz/LVWv1qtdZ3cM2extZKDG0h8IUPSS39FA34ySOvVB4I+wXJVcjh/uVVysnq5EV3Dc5ejc/wnKD5Ai5kaXlHzKX9aTJWjbrGa5UHJEbwoztLwZHw5ynjFmvQYqzI1vKTdDXQ3qVEpUteraBljsydmY8ulEclBywOvhZH79ar8GJgJY/Jtoi5/3Wz8CWaUqNAUMAq8Yf6WCVE+1KbHoHw3nEDwT3kf20tpH2ml7R8ttdi4djWbi/HMe9ebYQUciTguuXOpaLvrdjc2F3Fzm6vmwlzYUsXpJOk/bt0SIE+Kbj4VBL95XvF3EjuB/Z56/H0P2yhj2vWNkmgZNJyc//uB7+F/5nAejrc3nEnBvk4WCXeOP+HmnF9+KvH/J36YTwo70jgJYz9BCUEXSGnwbC7zjyfcot5/T1wv4jIes3OOLfzklv9pQbRC2O2t9VN3izQ+6PQHVxUziZtQMbHRHihVf7vogQkNvng+gA/iz5/vjwpl6xnj6ovufrPXF+YkrnUw79llFhdtEH28LV0WlylsrnJJ+RyUT1zgjWU+4el4Tw6nVluT17LqyOrcFqdfnInrmX8SCcSTI9qg7AZvSitrKSUnfdm6OXk8TdrZkNY7g7LAeFWY+IeiwfZme4Q6irSu/dKzdP+zDLCHw5kSFAzUL4XN2FAXtkQdPf+MY55ZeSV+hDPVI8Pmd21QZvMynDOcLjuf+G8K/8REnLU2/+IfzLSzcRFcArsasW13hbsalkCbv2uyfG1SUERu0VymTCQd4OpFht0snogY4apF0SDMQj3HPVvZ+5z7IrmAOcGkWJhMIYufM4ymYWl4EUCFKZmjYWRxrrvVVxkldEqe76H1gIlL8o0wCSxOZqk6aInQlAu1ggyLU+xP5g8/cXWwIN3BsTzqYBwsTnfElrcrmV5Cb5uXwj9Dt9Jul2/pfcR9DP46Vjm3umFXXkhLE9N0qc0D/9oxMuoXZkGTIc/F7P4daNal0sRpaRdCuTDCmhpoBIk5Zh1XUNS9ch7cZJNtr+PmmEEiNNbUDGSvXr3ddnvnjHW4XdPp0llJ/gOx0nW67SKZbWpSVg4gyhFMghmLybI6HwCdSJppSfXHvxqYXE5awN/3kO82zeEXmv0vVAaeTZpNBkpyyy3QtafOwzp9uNf2ozmBk9qItOmBePHetrzayQt38VrGQtUTl7IvfgsKYyOdV8rbv4Saga7jOwdm+MzAzl7NpJbry5jJzTAimVx8N3e3TQSH//X42xE5jdde1y6zjdl/eCqMoRHX/iISUmsSeC+Y6Th5KbkQLQ0gt5Kw3db1Od0/DHyjFdgB4PKPwG7fHKysjRYBS62QJ4yurTwIQhffyySAJG3mLx271fHpc/Qx3d/gPjJfrMD2Q4onOTu9XoXChXkSJbYoy8rKnKifUxPbmbaf7RdIpG2LtlGJD3LJ/AeR0aV+sgx3Mufbp0uGSF9hblKYwqWRiMUTblUDid9N8mZzt2yhlS/Q3x+1ir0hD4DuLghCnXj32CqdDCMhiVri1HnTVhbtKmwp0kwbYXU1NDp/l5VRTJBsjmXOes5byj9UNtwZ7lLetj1v8rEGCzSZWSyqBA/HTJhVJuBRLEj/1kHBil5R7avwEl8Ol4SUXnF2P2U3948D7qL6l/+0hF4nqkQSFGPWCf+s6vTr71zODk9vbHUSbnp7gphWg7RwUrEhIolkknKHQ1AJi1I5tTh1wI6f+y9IV8P0/zkxNBZwOa0xywd4xvvPK/YRk8T3m7b4f29Y4OGKy7lqUoCkEOPgCEoJRFLSfqhUydLJJOTlY6X3w6sDGnBCi99GOMSwwCIFJRBCXsxIE4WHCC4k3SIXQIyAdJKVikBkKiQw/FalHkE5i0KlkkkYRI2DBRhGEIiBrCABseh9BZDUQitrb6aXpatq6cb2FnrZs59dos87+LGjlzc5Krw8r4RxQkovO7v9UAHCSYP5//55QuQVZ9BDRSgoUwGkQdABWWFI4bWNgUiDeE4ABPKwdETEYKdXIGfInU3ZbrI11bHrxobSPR5L3r+fLOIfIpO3/RjT+C5QDyBGQVyEh07DQCe0b4Ur0gCIwbC0VAilGTBeDOCmKfD/mXznpzxcPFBOPiHjBF7cDivu0kvmvG6DX6YXgQ/bZX1gSemjRXySpyCOWV9BAgdOKRd5LznseUTqLVX6FeZGzPn3sOuc9u3tOSmftm/JmU97HqXJa3zBexEVnbfm+aId1jyNY5ybkkO/M1sVzWXPFKTEb3EREhvnMrlIXlw8KJT7Jfzd/fjD7x/6HuZ3zVOkvmp8SmmOKCgGRc6p3kPndzP6s7NU4zA7IJsQ8JtF61oVphUUnmzSTere4eP8m+R3mgO+93BN7N3em0BuoT9qecwf1Pko3JF6Ee/zH+4obISj3NMWihFt0MBRB0x1zrrRuoR/Pk24s5mYjRUe86VXJlnoMXRLUiUd394d7NjhqOyecvs74Q+3uFOuJLNII9SsM+sEBsaXorsncAGXdSpyyiKPcur2FApU7UeIHRaVnZXOT2atqurn1b8TAW8yPSF51WSphaA6UQlRoAg7yyfjrXtutHQNkAKM7p3dAbem5ojcvt3f0jDOU2mxJh0Ek3+s3ajl2XMv6NPs5eKY6R7r9bpZ6978uNgXmunf6BwORR1yADswK7dRoWNDdVaWGqrgeWugmq3QNUZbGxaBeNowf5gK4kymOBgP800wjjbKG6WBeMOi6b3sp5OTr9jsl1NTEws/nh/Phr5FZ0kHxk/6fvTLz+go6v/ll/6L+59/wfvxoz//DEL98Kxmvjbl5lJmH2vpzWdnLKuPmdBrBc2pVocXeC0z4W0CjHXoc6ib3CoptJfeR+99pmn8Wb00CSdty2m9zi8NUXAPAkp6X9GNcM3GG/V+Z6vuKIpCsbJ1bfMwE8qIlVEVRZc+PRptdZHMnpzayB+6im2K3CZv7N2Aa7r0cOFCmAb1CxfooYUL1LFpCxe+qYpSrLUFKwnxLbh4L7LOb8MYaDDSRmk/BO7tgF+osc3fjG7mT74eJV1U8R0+X/QtCMFKWltKB9NhhRmGZFgEURhngOmeqgXcI1mX7YdKdwCK4c0XpQmuAuo6Y4YpZsscpA6y2Qrs9VejCNwSSrvUToUUsKP2+Ai8B49wKQaVLOwkub3UXt4UgVV5i0q+JN0oOtHSKvXkh0E0HqjgUblUPh50BwdhfC9ZzKkvFcdblkojUBjALwUq5BSCKlMEXsJBOKJLl7YMCf93LQZgA1o6TeAamt7yRk1mryV+lxL/J9bezHiCvFkT6p4q1orRdKwkp4o0orOY5moTomn5UU/itEGaVPqRqy5y4dtmTQiKJDO0AxiIkTk4OmymVFr1YiDUZrO2tbbPt7N5qXaVayjAep1MrlSC6mKyGsQ4Ya7HtEubt/hsqanN2OQaxsH2OplcAgo63gw1BaT4p8hS5C7rVEfclYDCVQUSvOmg0zrTqPeY94T3kzTgmK9iE2wJCo9gG5XhyOE2qszSPTW11m5tw9Yjk9r21dGMqN5NDI6cjH2mMMDKCCHUexkeiLjwvIBf3Bmcfjx8eoIzFG4IDo3lF8SKhUYbse4QaggOH+JMTL9+PDi9szhcxiDZSBksjn5Tw9At7UzZJrurhoINRVCM5MGmPtQ0OM3dozSMGpR/wJlitoJXkJ3DUGQzOPAPg3JUadjDnR5oRgV8YwEPNQ/ORJt+zBD8O8ZhNBv509vNYP+G4LHmmUEDnvE7emRZaGT5UrLLwiLzsFUrYZ6LXbUqb++ASeVjFlRlZlYJKnyi8pnQYDYb1GnxcWRSNen1TSRyetDTqpi0mCp1BjCz+gFJIiFJD0/SA/whSeJI9ZQlndnSfiaZDkD9yqtmpTngha0pMTn5B5/mL3Pimn2WJyUnmmxfBJqDFl1dCUIaO3Z3a8Tv243UYaqxvc5SRo1kHwktYU4z6wTfcLFXQD2je6Aspowj45S2tcCjp7Mn/e0DONkcub2MPXbdBtj7T2ZPyuzlYCbcPmiZM1Mg00S7Jefw5RoXcWC58rDHQCLQOwjZs+aZwy3hqyPLOa5eO+2D6p0iLdG4JRGSwZZx9sryQLGLT5ECplN9kIVcMaucI3QoFZZTNkQXRvnPojrVkahdUe8iS4VMV86s8oqab6Sht6iz/FM0RRtAd7tUQ7QdaSPutn+NlDDbGEvFR6TzlBx5OpLFnLCvHeAKMrPEmomnE60lHDlrjCW3106eZNtylSrtTX92DNu/lGRFAr5OEMbJ7P0LFpbeXHHf7v5KtmrUc9QFjHDNrDS2eHuUqbUcmYOMo00NKrnpz1nLiQ9aXNYFHJCcel2DAL+oBfEHt6r4cYrQXTbptunNRVnACDZ5SiVID9kVp9jpf/YT1sci7KRsUFN96UbFT5SiWQe2XdNAw6JFBqiHIJQI5ddD11hxmX2MlK/jsaRiKYsXwGPJ7KQjPBWbJ+axwsUejPhEXSIz3sPLcRVbJlZGPh2OAFVVM6HnWZ39d2aLeMKQ/el81LKYiJZyj9yeDt1Onwp4hx2y/uOu0/72sAyvzN54NHsOFuc4iy2sbGiYqrG2HhOr4BvWA9eI1GX9vGm/chCUJiOBOSCX1m3pBFEiRRdVGCJOhb1An4yVFGEpQN9nEBVVpgMg7ZOdFp9e7fHZ/XN3GCnd1qFvQ9/x1TTD3jfba4M0n9QfY4IWiQ+By05kvL5STrFjMFIrA6m2lBjTa8dhN8r/2XcOVEtoX4lexy6iffpItm3Lju5qn4xabpJTuFw8HU/5+ucvU1ZIJtdSNbQ+Sga1jupP3TA8fVritzHcTxkIMc/Ob1g53/kHxvcNIG71nRK2uLMzkEyNyz5RfrsZuvCwnwIrcRZZA9SgeO6h7gASj7Y6fID/ss3GVq3saEdg68HMnPRro3KS18piXuf4umx5gtKIvSMUX6Uz7exY5LrLYyzbEVIrY+mDYXa7GC0jM7XFElyFBKhuxGgNgi/2ycQ7xKV2n2qseKfdUD/Z7c4p07zSvNRMaHTLE9KamqLV4+NHj4Lv59uXhpXwE0svUrrZE+Ibm1RVoJbG8PXHaO9v/H2d08gfpzOkmdyP3J+8/TKGfE9czlzha1TC7Jqa7KAnRIKhcXG16lJGZ4/iiKLnnmSxmMn7P1UmJFAopVVadAk/82clAAlyM985lKD2RzX6fG05D6Jvvp6bCH5oNnda750YAyc0No+X5uGUbWtMDZpDJaRRQNPj0LFv7ny3DauTE51LUlb8OuhZbIhjZJmfv/mnz9oEhjn3UOsO5t720qIQtrIZhGGregs/IcXCFcGOnccibqpuEqw8NrGowOKUqDzAEUX4+DZlR4gO2NWl1GXP+UA43ITIeio3AJjpqcf27sXqYXnDznn8ZlvHANs5/NKdlvKpWXNAL9p25co21AvEZAZ0nBEdeDvej3ZPF0b942/bItMKYc8wtiZa9hpsuEe4AqyekflffwbAzDUXsQ2Ae0XRCPYWmPkKLUbhAMxsxjFUBcDME6dQMAAz36ELSA3AzDN7EYzq78F6AyfQDVSx5oLvkIrkp2AXAyMuIjDxZ21I7P8doYAFh6gDB5w+S6AHB8h04492I8H1aBLlB06ifUi7ZhBtRClJ/Rewl4FLzqOoNTeNIEUW4ZEs/fXYqTVd6CEqFPws7GasEY3yGQDgBmyQFO/AzuL6HfXt8TjsXBmVEdqB2x5h/5zTiZ6jkixE1hWLs3YPzoCMkVrR1XV39SNPmrUTyhaW4hO660J/oAK5gb4MN6ItgJM0w5L/w70QeJJLnM/nRLynMv5dd9CDmfdPYzZTGz3eAcD/V4XAS/B/bHfAzQDMPM943yFj8NuhAIUxfDhI2h00o9+PJjXoGJjJRP5IZjjWzCQd/NGQSe3UYkknBsOHJfXqGZrKSfz/bV+v3/URHohMNaw7gnfxTO1/XClMytXN+4r69UkVLfuTquqOTWpac+7RW/o8l0tFA6tecJOSbl8nZTp9x5xU/wMLqP81qWLQ/fovfYtRCU1C6umFS6ySyqtXAUGxM83GUCvc5yKt9M1/ok0eAt8hXuovhkjC5uL0/H39O2QMNBzi0l6q9qYPMpq3nA16L2YKMmCrp4510+PZWf8whNNWxp3K+wIEFOoYjY02O2kJ1p9dVZ6v/ydkJR4IAbt9mf0vFER0940Lp84j+N4pHGm3rORGS9Yl5XnPoG0DMTLe8hx5ZY0wJvL5BqilTrkE+uTRGX+4Pqpymn14HI6KzrdHufBRwmRF1XRh/NeMp2U7rofAw2fF2u9xPyKERGzZEbPnwJGElIycE2cuXLlx58GTF28+fCn48RcgUBClYCGp2P/XbZJVKoYEvEW29QjTSURVYpu7RBuS18ySutRUXqycrJAayTyljZTeAnXAtdclgShd3RT1jvrUgFTRAdsWMPZE07UhbR2uCVjT3mKRAZ0wrp5ERxth24QjaOkir75/bgPBgZMRD0UdhkMr0sXjjaQFsfWiimWvtDpRjJqtsHVw0WlNnKWubYFqOvAIKcY0HXTDRLlC3rKCl0a0OUmIOWyYwGJF56CL53aX7a7Sr/erocknFhKJsw4xFtUgtyVk2XDHIx7WUA9xUX0OsWw8tHNPUQ8D1UvGi46AfYGBPdD06NJxiAsmXEM2QsepsOiKC+xHy3+lM/nw5d2hhw2Gl9cYz8OG5uFVm1KjPtTQMk2TFJolD5Jj+YS3XXqSFVJtyFk2sSFVlaOsPerODgA=') format('woff2'), url('iconfont.woff?t=1557734072589') format('woff'), url('iconfont.ttf?t=1557734072589') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ url('iconfont.svg?t=1557734072589#iconfont') format('svg'); /* iOS 4.1- */ } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-404cuowu:before { content: "\e62f"; } .icon-juanzeng:before { content: "\e65a"; } .icon-map-setting:before { content: "\e6c8"; } .icon-huiyuan:before { content: "\e61d"; } .icon-github:before { content: "\eaf6"; } .icon-logo-weibo:before { content: "\e618"; } .icon-liuyan:before { content: "\e744"; } .icon-caidan:before { content: "\e790"; } .icon-weibiaoti35:before { content: "\e63d"; } .icon-zhifubao:before { content: "\e7ce"; } .icon-shangsheng:before { content: "\e750"; } .icon-tubiaozhexiantu:before { content: "\e79a"; } .icon-qq:before { content: "\e623"; } .icon-ai-new:before { content: "\e63b"; } .icon-shiyongbangzhu1:before { content: "\e824"; } .icon-tianjia:before { content: "\e620"; } .icon-home:before { content: "\e600"; } .icon-other:before { content: "\e627"; } .icon-goods:before { content: "\e605"; } .icon-youqinglianjie:before { content: "\e636"; } .icon-icon-test:before { content: "\e6cc"; } .icon-wechat:before { content: "\e66a"; } .icon-weixin:before { content: "\e626"; } .icon-xiazai:before { content: "\e647"; } .icon-zhuzhuangtu:before { content: "\e67a"; } .icon-font:before { content: "\e800"; } .icon-wenzhang2:before { content: "\e7c3"; } .icon-web-icon-:before { content: "\e6da"; } .icon-webpage:before { content: "\e628"; } .icon-icon-test1:before { content: "\e71c"; } .icon-icon-test2:before { content: "\e653"; } .icon-icon-test3:before { content: "\e654"; } .icon-icon-test4:before { content: "\e655"; } .icon-tab:before { content: "\e665"; } .icon-pinglun:before { content: "\e619"; } .icon-denglu:before { content: "\e67c"; } .icon-liucheng:before { content: "\e60e"; } .icon-jiaose:before { content: "\e76e"; } .icon-login:before { content: "\e766"; } .icon-settings:before { content: "\e61a"; } .icon-blacklist:before { content: "\e641"; } .icon-rizhi:before { content: "\e614"; } .icon-dianliyonghuzongshu:before { content: "\e639"; } .icon-rengongzhineng:before { content: "\e651"; } .icon-jiaoseshouquan:before { content: "\e640"; } .icon-WechatIMG:before { content: "\e630"; } .icon-layer:before { content: "\e768"; } .icon-jiankongkongzhiguanlijianguan:before { content: "\e668"; } .icon-tupian:before { content: "\e796"; } .icon-jiaoseguanli:before { content: "\e645"; } .icon-peizhi-:before { content: "\e61c"; } .icon-bingtu:before { content: "\e61b"; } .icon-gongju:before { content: "\e6fa"; } .icon-huanxingtu:before { content: "\e61f"; } ================================================ FILE: font/iconfont.js ================================================ !function(z){var c,a='',l=(c=document.getElementsByTagName("script"))[c.length-1].getAttribute("data-injectcss");if(l&&!z.__iconfont__svg__cssinject__){z.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}!function(c){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(c,0);else{var l=function(){document.removeEventListener("DOMContentLoaded",l,!1),c()};document.addEventListener("DOMContentLoaded",l,!1)}else document.attachEvent&&(a=c,h=z.document,t=!1,o=function(){t||(t=!0,a())},(i=function(){try{h.documentElement.doScroll("left")}catch(c){return void setTimeout(i,50)}o()})(),h.onreadystatechange=function(){"complete"==h.readyState&&(h.onreadystatechange=null,o())});var a,h,t,o,i}(function(){var c,l;(c=document.createElement("div")).innerHTML=a,a=null,(l=c.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",function(c,l){l.firstChild?function(c,l){l.parentNode.insertBefore(c,l)}(c,l.firstChild):l.appendChild(c)}(l,document.body))})}(window); ================================================ FILE: index.html ================================================ ok-admin v1.0 | 很赞的后台模版
  • 控制台
================================================ FILE: js/okadmin.js ================================================ layui.use(["element", "layer", "okTab", "okMenu", "okUtils", "okLayer"], function () { var element = layui.element; var layer = layui.layer; var okTab = layui.okTab; var okMenu = layui.okMenu; var $ = layui.jquery; var okUtils = layui.okUtils; var okLayer = layui.okLayer; /** * localhost运行提示 */ var href = location.href; if (href.substring(0, 4) != "http") { layer.msg("请先部署到localhost环境下再访问!", {icon: 7, time: 3000, anim: 1}); } /** * 左边菜单显示/隐藏功能 * @type {boolean} */ $(".menu-switch").click(function () { if ($(".layui-layout-admin .layui-side").css("left") == '0px') { $(".layui-layout-admin .layui-side").animate({left: "-200px"}); $(".layui-layout-admin .content-body").animate({left: "0px"}); $(".layui-layout-admin .layui-footer").animate({left: "0px"}); } else { $(".layui-layout-admin .layui-side").animate({left: "0px"}); $(".layui-layout-admin .content-body").animate({left: "200px"}); $(".layui-layout-admin .layui-footer").animate({left: "200px"}); } }); /** * 生成左侧菜单树 */ okMenu.generatorMenu("data/menu.json", "get"); /** * 监听导航菜单的点击 */ element.on("nav(navFilter)", function (elem) { var path = elem.context.attributes.path; if (path && path.textContent != "") { // var title = elem.context.innerHTML; var title = elem.context.innerText; title = title.substring(title.indexOf(" "), title.length); var path = path.textContent; okTab.add(title, path) } }); /** * 修改copyright结束时间 */ var data = new Date(); var year = data.getFullYear(); $("#endYear").text(year); /** * 捐赠作者 */ $(".layui-footer button.donate").click(function () { layer.tab({ area: ["330px", "350px"], tab: [{ title: "支付宝", content: "" }, { title: "微信", content: "" }] }); }); /** * QQ群交流 */ $(".layui-footer button.communication").click(function () { layer.tab({ area: ["330px", "350px"], tab: [{ title: "QQ群", content: "" }] }); }); /** * 退出操作 */ $("#logout").click(function () { okLayer.confirm("确定要退出吗?", function (index) { window.location = "pages/other/login.html"; }); }); /** * 弹窗皮肤 */ $("#alertSkin").click(function () { okLayer.open("皮肤动画", "pages/system/alertSkin.html", "50%", "45%", function (layero) {}, function () {}); }); /** * 锁定账户 */ $("#lock").click(function () { okLayer.confirm("确定要锁定账户吗?", function (index) { layer.close(index); $(".yy").show(); layer.prompt({btn: ['确定'], title: '输入密码解锁(123456)', closeBtn: 0, formType: 1}, function (value, index, elem) { if (value == "123456") { layer.close(index); $(".yy").hide(); } else { layer.msg('密码错误', {anim: 6, time: 1000}); } }); }); }); console.log(" __ .___ .__ \n" + " ____ | | __ _____ __| _/_____ |__| ____ \n" + " / _ \\| |/ / ______ \\__ \\ / __ |/ \\| |/ \\ \n" + "( <_> ) < /_____/ / __ \\_/ /_/ | Y Y \\ | | \\\n" + " \\____/|__|_ \\ (____ /\\____ |__|_| /__|___| /\n" + " \\/ \\/ \\/ \\/ \\/ \n" + "版本:v1.0\n" + "作者:bobi\n" + "邮箱:bobi1234@foxmail.com\n" + "描述:一个很赞的,扁平化风格的,响应式布局的后台管理模版,旨为后端程序员减压!") }); ================================================ FILE: lib/animate/animate.css ================================================ @charset "UTF-8"; /*! * animate.css -http://daneden.me/animate * Version - 3.7.0 * Licensed under the MIT license - http://opensource.org/licenses/MIT * * Copyright (c) 2018 Daniel Eden */ @-webkit-keyframes bounce { from, 20%, 53%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 40%, 43% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -30px, 0); transform: translate3d(0, -30px, 0); } 70% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 90% { -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); } } @keyframes bounce { from, 20%, 53%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 40%, 43% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -30px, 0); transform: translate3d(0, -30px, 0); } 70% { -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); -webkit-transform: translate3d(0, -15px, 0); transform: translate3d(0, -15px, 0); } 90% { -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); } } .bounce { -webkit-animation-name: bounce; animation-name: bounce; -webkit-transform-origin: center bottom; transform-origin: center bottom; } @-webkit-keyframes flash { from, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } } @keyframes flash { from, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } } .flash { -webkit-animation-name: flash; animation-name: flash; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes pulse { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .pulse { -webkit-animation-name: pulse; animation-name: pulse; } @-webkit-keyframes rubberBand { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 30% { -webkit-transform: scale3d(1.25, 0.75, 1); transform: scale3d(1.25, 0.75, 1); } 40% { -webkit-transform: scale3d(0.75, 1.25, 1); transform: scale3d(0.75, 1.25, 1); } 50% { -webkit-transform: scale3d(1.15, 0.85, 1); transform: scale3d(1.15, 0.85, 1); } 65% { -webkit-transform: scale3d(0.95, 1.05, 1); transform: scale3d(0.95, 1.05, 1); } 75% { -webkit-transform: scale3d(1.05, 0.95, 1); transform: scale3d(1.05, 0.95, 1); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes rubberBand { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 30% { -webkit-transform: scale3d(1.25, 0.75, 1); transform: scale3d(1.25, 0.75, 1); } 40% { -webkit-transform: scale3d(0.75, 1.25, 1); transform: scale3d(0.75, 1.25, 1); } 50% { -webkit-transform: scale3d(1.15, 0.85, 1); transform: scale3d(1.15, 0.85, 1); } 65% { -webkit-transform: scale3d(0.95, 1.05, 1); transform: scale3d(0.95, 1.05, 1); } 75% { -webkit-transform: scale3d(1.05, 0.95, 1); transform: scale3d(1.05, 0.95, 1); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .rubberBand { -webkit-animation-name: rubberBand; animation-name: rubberBand; } @-webkit-keyframes shake { from, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } @keyframes shake { from, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } .shake { -webkit-animation-name: shake; animation-name: shake; } @-webkit-keyframes headShake { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 6.5% { -webkit-transform: translateX(-6px) rotateY(-9deg); transform: translateX(-6px) rotateY(-9deg); } 18.5% { -webkit-transform: translateX(5px) rotateY(7deg); transform: translateX(5px) rotateY(7deg); } 31.5% { -webkit-transform: translateX(-3px) rotateY(-5deg); transform: translateX(-3px) rotateY(-5deg); } 43.5% { -webkit-transform: translateX(2px) rotateY(3deg); transform: translateX(2px) rotateY(3deg); } 50% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes headShake { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 6.5% { -webkit-transform: translateX(-6px) rotateY(-9deg); transform: translateX(-6px) rotateY(-9deg); } 18.5% { -webkit-transform: translateX(5px) rotateY(7deg); transform: translateX(5px) rotateY(7deg); } 31.5% { -webkit-transform: translateX(-3px) rotateY(-5deg); transform: translateX(-3px) rotateY(-5deg); } 43.5% { -webkit-transform: translateX(2px) rotateY(3deg); transform: translateX(2px) rotateY(3deg); } 50% { -webkit-transform: translateX(0); transform: translateX(0); } } .headShake { -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; -webkit-animation-name: headShake; animation-name: headShake; } @-webkit-keyframes swing { 20% { -webkit-transform: rotate3d(0, 0, 1, 15deg); transform: rotate3d(0, 0, 1, 15deg); } 40% { -webkit-transform: rotate3d(0, 0, 1, -10deg); transform: rotate3d(0, 0, 1, -10deg); } 60% { -webkit-transform: rotate3d(0, 0, 1, 5deg); transform: rotate3d(0, 0, 1, 5deg); } 80% { -webkit-transform: rotate3d(0, 0, 1, -5deg); transform: rotate3d(0, 0, 1, -5deg); } to { -webkit-transform: rotate3d(0, 0, 1, 0deg); transform: rotate3d(0, 0, 1, 0deg); } } @keyframes swing { 20% { -webkit-transform: rotate3d(0, 0, 1, 15deg); transform: rotate3d(0, 0, 1, 15deg); } 40% { -webkit-transform: rotate3d(0, 0, 1, -10deg); transform: rotate3d(0, 0, 1, -10deg); } 60% { -webkit-transform: rotate3d(0, 0, 1, 5deg); transform: rotate3d(0, 0, 1, 5deg); } 80% { -webkit-transform: rotate3d(0, 0, 1, -5deg); transform: rotate3d(0, 0, 1, -5deg); } to { -webkit-transform: rotate3d(0, 0, 1, 0deg); transform: rotate3d(0, 0, 1, 0deg); } } .swing { -webkit-transform-origin: top center; transform-origin: top center; -webkit-animation-name: swing; animation-name: swing; } @-webkit-keyframes tada { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 10%, 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes tada { from { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 10%, 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .tada { -webkit-animation-name: tada; animation-name: tada; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes wobble { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 15% { -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); } 30% { -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); } 45% { -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); } 60% { -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); } 75% { -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes wobble { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 15% { -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); } 30% { -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); } 45% { -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); } 60% { -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); } 75% { -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .wobble { -webkit-animation-name: wobble; animation-name: wobble; } @-webkit-keyframes jello { from, 11.1%, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 22.2% { -webkit-transform: skewX(-12.5deg) skewY(-12.5deg); transform: skewX(-12.5deg) skewY(-12.5deg); } 33.3% { -webkit-transform: skewX(6.25deg) skewY(6.25deg); transform: skewX(6.25deg) skewY(6.25deg); } 44.4% { -webkit-transform: skewX(-3.125deg) skewY(-3.125deg); transform: skewX(-3.125deg) skewY(-3.125deg); } 55.5% { -webkit-transform: skewX(1.5625deg) skewY(1.5625deg); transform: skewX(1.5625deg) skewY(1.5625deg); } 66.6% { -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg); transform: skewX(-0.78125deg) skewY(-0.78125deg); } 77.7% { -webkit-transform: skewX(0.390625deg) skewY(0.390625deg); transform: skewX(0.390625deg) skewY(0.390625deg); } 88.8% { -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg); transform: skewX(-0.1953125deg) skewY(-0.1953125deg); } } @keyframes jello { from, 11.1%, to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 22.2% { -webkit-transform: skewX(-12.5deg) skewY(-12.5deg); transform: skewX(-12.5deg) skewY(-12.5deg); } 33.3% { -webkit-transform: skewX(6.25deg) skewY(6.25deg); transform: skewX(6.25deg) skewY(6.25deg); } 44.4% { -webkit-transform: skewX(-3.125deg) skewY(-3.125deg); transform: skewX(-3.125deg) skewY(-3.125deg); } 55.5% { -webkit-transform: skewX(1.5625deg) skewY(1.5625deg); transform: skewX(1.5625deg) skewY(1.5625deg); } 66.6% { -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg); transform: skewX(-0.78125deg) skewY(-0.78125deg); } 77.7% { -webkit-transform: skewX(0.390625deg) skewY(0.390625deg); transform: skewX(0.390625deg) skewY(0.390625deg); } 88.8% { -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg); transform: skewX(-0.1953125deg) skewY(-0.1953125deg); } } .jello { -webkit-animation-name: jello; animation-name: jello; -webkit-transform-origin: center; transform-origin: center; } @-webkit-keyframes heartBeat { 0% { -webkit-transform: scale(1); transform: scale(1); } 14% { -webkit-transform: scale(1.3); transform: scale(1.3); } 28% { -webkit-transform: scale(1); transform: scale(1); } 42% { -webkit-transform: scale(1.3); transform: scale(1.3); } 70% { -webkit-transform: scale(1); transform: scale(1); } } @keyframes heartBeat { 0% { -webkit-transform: scale(1); transform: scale(1); } 14% { -webkit-transform: scale(1.3); transform: scale(1.3); } 28% { -webkit-transform: scale(1); transform: scale(1); } 42% { -webkit-transform: scale(1.3); transform: scale(1.3); } 70% { -webkit-transform: scale(1); transform: scale(1); } } .heartBeat { -webkit-animation-name: heartBeat; animation-name: heartBeat; -webkit-animation-duration: 1.3s; animation-duration: 1.3s; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } @-webkit-keyframes bounceIn { from, 20%, 40%, 60%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } 40% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); } 80% { -webkit-transform: scale3d(0.97, 0.97, 0.97); transform: scale3d(0.97, 0.97, 0.97); } to { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes bounceIn { from, 20%, 40%, 60%, 80%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 20% { -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } 40% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; -webkit-transform: scale3d(1.03, 1.03, 1.03); transform: scale3d(1.03, 1.03, 1.03); } 80% { -webkit-transform: scale3d(0.97, 0.97, 0.97); transform: scale3d(0.97, 0.97, 0.97); } to { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .bounceIn { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-animation-name: bounceIn; animation-name: bounceIn; } @-webkit-keyframes bounceInDown { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(0, -3000px, 0); transform: translate3d(0, -3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, 25px, 0); transform: translate3d(0, 25px, 0); } 75% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 90% { -webkit-transform: translate3d(0, 5px, 0); transform: translate3d(0, 5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInDown { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(0, -3000px, 0); transform: translate3d(0, -3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, 25px, 0); transform: translate3d(0, 25px, 0); } 75% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 90% { -webkit-transform: translate3d(0, 5px, 0); transform: translate3d(0, 5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInDown { -webkit-animation-name: bounceInDown; animation-name: bounceInDown; } @-webkit-keyframes bounceInLeft { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(-3000px, 0, 0); transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(25px, 0, 0); transform: translate3d(25px, 0, 0); } 75% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 90% { -webkit-transform: translate3d(5px, 0, 0); transform: translate3d(5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInLeft { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; -webkit-transform: translate3d(-3000px, 0, 0); transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(25px, 0, 0); transform: translate3d(25px, 0, 0); } 75% { -webkit-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 90% { -webkit-transform: translate3d(5px, 0, 0); transform: translate3d(5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInLeft { -webkit-animation-name: bounceInLeft; animation-name: bounceInLeft; } @-webkit-keyframes bounceInRight { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(3000px, 0, 0); transform: translate3d(3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(-25px, 0, 0); transform: translate3d(-25px, 0, 0); } 75% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } 90% { -webkit-transform: translate3d(-5px, 0, 0); transform: translate3d(-5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInRight { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(3000px, 0, 0); transform: translate3d(3000px, 0, 0); } 60% { opacity: 1; -webkit-transform: translate3d(-25px, 0, 0); transform: translate3d(-25px, 0, 0); } 75% { -webkit-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } 90% { -webkit-transform: translate3d(-5px, 0, 0); transform: translate3d(-5px, 0, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInRight { -webkit-animation-name: bounceInRight; animation-name: bounceInRight; } @-webkit-keyframes bounceInUp { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(0, 3000px, 0); transform: translate3d(0, 3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } 75% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 90% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes bounceInUp { from, 60%, 75%, 90%, to { -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; -webkit-transform: translate3d(0, 3000px, 0); transform: translate3d(0, 3000px, 0); } 60% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } 75% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 90% { -webkit-transform: translate3d(0, -5px, 0); transform: translate3d(0, -5px, 0); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .bounceInUp { -webkit-animation-name: bounceInUp; animation-name: bounceInUp; } @-webkit-keyframes bounceOut { 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 50%, 55% { opacity: 1; -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } to { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } } @keyframes bounceOut { 20% { -webkit-transform: scale3d(0.9, 0.9, 0.9); transform: scale3d(0.9, 0.9, 0.9); } 50%, 55% { opacity: 1; -webkit-transform: scale3d(1.1, 1.1, 1.1); transform: scale3d(1.1, 1.1, 1.1); } to { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } } .bounceOut { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-animation-name: bounceOut; animation-name: bounceOut; } @-webkit-keyframes bounceOutDown { 20% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } @keyframes bounceOutDown { 20% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, -20px, 0); transform: translate3d(0, -20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } .bounceOutDown { -webkit-animation-name: bounceOutDown; animation-name: bounceOutDown; } @-webkit-keyframes bounceOutLeft { 20% { opacity: 1; -webkit-transform: translate3d(20px, 0, 0); transform: translate3d(20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } @keyframes bounceOutLeft { 20% { opacity: 1; -webkit-transform: translate3d(20px, 0, 0); transform: translate3d(20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } .bounceOutLeft { -webkit-animation-name: bounceOutLeft; animation-name: bounceOutLeft; } @-webkit-keyframes bounceOutRight { 20% { opacity: 1; -webkit-transform: translate3d(-20px, 0, 0); transform: translate3d(-20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } @keyframes bounceOutRight { 20% { opacity: 1; -webkit-transform: translate3d(-20px, 0, 0); transform: translate3d(-20px, 0, 0); } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } .bounceOutRight { -webkit-animation-name: bounceOutRight; animation-name: bounceOutRight; } @-webkit-keyframes bounceOutUp { 20% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, 20px, 0); transform: translate3d(0, 20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } @keyframes bounceOutUp { 20% { -webkit-transform: translate3d(0, -10px, 0); transform: translate3d(0, -10px, 0); } 40%, 45% { opacity: 1; -webkit-transform: translate3d(0, 20px, 0); transform: translate3d(0, 20px, 0); } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } .bounceOutUp { -webkit-animation-name: bounceOutUp; animation-name: bounceOutUp; } @-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fadeIn { -webkit-animation-name: fadeIn; animation-name: fadeIn; } @-webkit-keyframes fadeInDown { from { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInDown { from { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInDown { -webkit-animation-name: fadeInDown; animation-name: fadeInDown; } @-webkit-keyframes fadeInDownBig { from { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInDownBig { from { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInDownBig { -webkit-animation-name: fadeInDownBig; animation-name: fadeInDownBig; } @-webkit-keyframes fadeInLeft { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInLeft { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInLeft { -webkit-animation-name: fadeInLeft; animation-name: fadeInLeft; } @-webkit-keyframes fadeInLeftBig { from { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInLeftBig { from { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInLeftBig { -webkit-animation-name: fadeInLeftBig; animation-name: fadeInLeftBig; } @-webkit-keyframes fadeInRight { from { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInRight { from { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInRight { -webkit-animation-name: fadeInRight; animation-name: fadeInRight; } @-webkit-keyframes fadeInRightBig { from { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInRightBig { from { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInRightBig { -webkit-animation-name: fadeInRightBig; animation-name: fadeInRightBig; } @-webkit-keyframes fadeInUp { from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInUp { from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInUp { -webkit-animation-name: fadeInUp; animation-name: fadeInUp; } @-webkit-keyframes fadeInUpBig { from { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes fadeInUpBig { from { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .fadeInUpBig { -webkit-animation-name: fadeInUpBig; animation-name: fadeInUpBig; } @-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .fadeOut { -webkit-animation-name: fadeOut; animation-name: fadeOut; } @-webkit-keyframes fadeOutDown { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } @keyframes fadeOutDown { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } .fadeOutDown { -webkit-animation-name: fadeOutDown; animation-name: fadeOutDown; } @-webkit-keyframes fadeOutDownBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } @keyframes fadeOutDownBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, 2000px, 0); transform: translate3d(0, 2000px, 0); } } .fadeOutDownBig { -webkit-animation-name: fadeOutDownBig; animation-name: fadeOutDownBig; } @-webkit-keyframes fadeOutLeft { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } @keyframes fadeOutLeft { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } .fadeOutLeft { -webkit-animation-name: fadeOutLeft; animation-name: fadeOutLeft; } @-webkit-keyframes fadeOutLeftBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } @keyframes fadeOutLeftBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(-2000px, 0, 0); transform: translate3d(-2000px, 0, 0); } } .fadeOutLeftBig { -webkit-animation-name: fadeOutLeftBig; animation-name: fadeOutLeftBig; } @-webkit-keyframes fadeOutRight { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } @keyframes fadeOutRight { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } .fadeOutRight { -webkit-animation-name: fadeOutRight; animation-name: fadeOutRight; } @-webkit-keyframes fadeOutRightBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } @keyframes fadeOutRightBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(2000px, 0, 0); transform: translate3d(2000px, 0, 0); } } .fadeOutRightBig { -webkit-animation-name: fadeOutRightBig; animation-name: fadeOutRightBig; } @-webkit-keyframes fadeOutUp { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } @keyframes fadeOutUp { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } .fadeOutUp { -webkit-animation-name: fadeOutUp; animation-name: fadeOutUp; } @-webkit-keyframes fadeOutUpBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } @keyframes fadeOutUpBig { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0); } } .fadeOutUpBig { -webkit-animation-name: fadeOutUpBig; animation-name: fadeOutUpBig; } @-webkit-keyframes flip { from { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 40% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 50% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 80% { -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } to { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } } @keyframes flip { from { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 40% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 50% { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 80% { -webkit-transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } to { -webkit-transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } } .animated.flip { -webkit-backface-visibility: visible; backface-visibility: visible; -webkit-animation-name: flip; animation-name: flip; } @-webkit-keyframes flipInX { from { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg); transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg); transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } @keyframes flipInX { from { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg); transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg); transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } .flipInX { -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipInX; animation-name: flipInX; } @-webkit-keyframes flipInY { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg); transform: perspective(400px) rotate3d(0, 1, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg); transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg); transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } @keyframes flipInY { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg); transform: perspective(400px) rotate3d(0, 1, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg); transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg); transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } .flipInY { -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipInY; animation-name: flipInY; } @-webkit-keyframes flipOutX { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } } @keyframes flipOutX { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg); transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg); transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } } .flipOutX { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-animation-name: flipOutX; animation-name: flipOutX; -webkit-backface-visibility: visible !important; backface-visibility: visible !important; } @-webkit-keyframes flipOutY { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg); transform: perspective(400px) rotate3d(0, 1, 0, -15deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; } } @keyframes flipOutY { from { -webkit-transform: perspective(400px); transform: perspective(400px); } 30% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -15deg); transform: perspective(400px) rotate3d(0, 1, 0, -15deg); opacity: 1; } to { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; } } .flipOutY { -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-backface-visibility: visible !important; backface-visibility: visible !important; -webkit-animation-name: flipOutY; animation-name: flipOutY; } @-webkit-keyframes lightSpeedIn { from { -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg); transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; } 60% { -webkit-transform: skewX(20deg); transform: skewX(20deg); opacity: 1; } 80% { -webkit-transform: skewX(-5deg); transform: skewX(-5deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes lightSpeedIn { from { -webkit-transform: translate3d(100%, 0, 0) skewX(-30deg); transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; } 60% { -webkit-transform: skewX(20deg); transform: skewX(20deg); opacity: 1; } 80% { -webkit-transform: skewX(-5deg); transform: skewX(-5deg); } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .lightSpeedIn { -webkit-animation-name: lightSpeedIn; animation-name: lightSpeedIn; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } @-webkit-keyframes lightSpeedOut { from { opacity: 1; } to { -webkit-transform: translate3d(100%, 0, 0) skewX(30deg); transform: translate3d(100%, 0, 0) skewX(30deg); opacity: 0; } } @keyframes lightSpeedOut { from { opacity: 1; } to { -webkit-transform: translate3d(100%, 0, 0) skewX(30deg); transform: translate3d(100%, 0, 0) skewX(30deg); opacity: 0; } } .lightSpeedOut { -webkit-animation-name: lightSpeedOut; animation-name: lightSpeedOut; -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } @-webkit-keyframes rotateIn { from { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, -200deg); transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateIn { from { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, -200deg); transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateIn { -webkit-animation-name: rotateIn; animation-name: rotateIn; } @-webkit-keyframes rotateInDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInDownLeft { -webkit-animation-name: rotateInDownLeft; animation-name: rotateInDownLeft; } @-webkit-keyframes rotateInDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInDownRight { -webkit-animation-name: rotateInDownRight; animation-name: rotateInDownRight; } @-webkit-keyframes rotateInUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInUpLeft { -webkit-animation-name: rotateInUpLeft; animation-name: rotateInUpLeft; } @-webkit-keyframes rotateInUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -90deg); transform: rotate3d(0, 0, 1, -90deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes rotateInUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -90deg); transform: rotate3d(0, 0, 1, -90deg); opacity: 0; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; } } .rotateInUpRight { -webkit-animation-name: rotateInUpRight; animation-name: rotateInUpRight; } @-webkit-keyframes rotateOut { from { -webkit-transform-origin: center; transform-origin: center; opacity: 1; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, 200deg); transform: rotate3d(0, 0, 1, 200deg); opacity: 0; } } @keyframes rotateOut { from { -webkit-transform-origin: center; transform-origin: center; opacity: 1; } to { -webkit-transform-origin: center; transform-origin: center; -webkit-transform: rotate3d(0, 0, 1, 200deg); transform: rotate3d(0, 0, 1, 200deg); opacity: 0; } } .rotateOut { -webkit-animation-name: rotateOut; animation-name: rotateOut; } @-webkit-keyframes rotateOutDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } } @keyframes rotateOutDownLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, 45deg); transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } } .rotateOutDownLeft { -webkit-animation-name: rotateOutDownLeft; animation-name: rotateOutDownLeft; } @-webkit-keyframes rotateOutDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } @keyframes rotateOutDownRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } .rotateOutDownRight { -webkit-animation-name: rotateOutDownRight; animation-name: rotateOutDownRight; } @-webkit-keyframes rotateOutUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } @keyframes rotateOutUpLeft { from { -webkit-transform-origin: left bottom; transform-origin: left bottom; opacity: 1; } to { -webkit-transform-origin: left bottom; transform-origin: left bottom; -webkit-transform: rotate3d(0, 0, 1, -45deg); transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } } .rotateOutUpLeft { -webkit-animation-name: rotateOutUpLeft; animation-name: rotateOutUpLeft; } @-webkit-keyframes rotateOutUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 90deg); transform: rotate3d(0, 0, 1, 90deg); opacity: 0; } } @keyframes rotateOutUpRight { from { -webkit-transform-origin: right bottom; transform-origin: right bottom; opacity: 1; } to { -webkit-transform-origin: right bottom; transform-origin: right bottom; -webkit-transform: rotate3d(0, 0, 1, 90deg); transform: rotate3d(0, 0, 1, 90deg); opacity: 0; } } .rotateOutUpRight { -webkit-animation-name: rotateOutUpRight; animation-name: rotateOutUpRight; } @-webkit-keyframes hinge { 0% { -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 20%, 60% { -webkit-transform: rotate3d(0, 0, 1, 80deg); transform: rotate3d(0, 0, 1, 80deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 40%, 80% { -webkit-transform: rotate3d(0, 0, 1, 60deg); transform: rotate3d(0, 0, 1, 60deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; opacity: 1; } to { -webkit-transform: translate3d(0, 700px, 0); transform: translate3d(0, 700px, 0); opacity: 0; } } @keyframes hinge { 0% { -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 20%, 60% { -webkit-transform: rotate3d(0, 0, 1, 80deg); transform: rotate3d(0, 0, 1, 80deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 40%, 80% { -webkit-transform: rotate3d(0, 0, 1, 60deg); transform: rotate3d(0, 0, 1, 60deg); -webkit-transform-origin: top left; transform-origin: top left; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; opacity: 1; } to { -webkit-transform: translate3d(0, 700px, 0); transform: translate3d(0, 700px, 0); opacity: 0; } } .hinge { -webkit-animation-duration: 2s; animation-duration: 2s; -webkit-animation-name: hinge; animation-name: hinge; } @-webkit-keyframes jackInTheBox { from { opacity: 0; -webkit-transform: scale(0.1) rotate(30deg); transform: scale(0.1) rotate(30deg); -webkit-transform-origin: center bottom; transform-origin: center bottom; } 50% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 70% { -webkit-transform: rotate(3deg); transform: rotate(3deg); } to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } } @keyframes jackInTheBox { from { opacity: 0; -webkit-transform: scale(0.1) rotate(30deg); transform: scale(0.1) rotate(30deg); -webkit-transform-origin: center bottom; transform-origin: center bottom; } 50% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 70% { -webkit-transform: rotate(3deg); transform: rotate(3deg); } to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } } .jackInTheBox { -webkit-animation-name: jackInTheBox; animation-name: jackInTheBox; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes rollIn { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes rollIn { from { opacity: 0; -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .rollIn { -webkit-animation-name: rollIn; animation-name: rollIn; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes rollOut { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } } @keyframes rollOut { from { opacity: 1; } to { opacity: 0; -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); } } .rollOut { -webkit-animation-name: rollOut; animation-name: rollOut; } @-webkit-keyframes zoomIn { from { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } @keyframes zoomIn { from { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } .zoomIn { -webkit-animation-name: zoomIn; animation-name: zoomIn; } @-webkit-keyframes zoomInDown { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInDown { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInDown { -webkit-animation-name: zoomInDown; animation-name: zoomInDown; } @-webkit-keyframes zoomInLeft { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInLeft { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInLeft { -webkit-animation-name: zoomInLeft; animation-name: zoomInLeft; } @-webkit-keyframes zoomInRight { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInRight { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInRight { -webkit-animation-name: zoomInRight; animation-name: zoomInRight; } @-webkit-keyframes zoomInUp { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomInUp { from { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 60% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomInUp { -webkit-animation-name: zoomInUp; animation-name: zoomInUp; } @-webkit-keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } @keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; -webkit-transform: scale3d(0.3, 0.3, 0.3); transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } .zoomOut { -webkit-animation-name: zoomOut; animation-name: zoomOut; } @-webkit-keyframes zoomOutDown { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomOutDown { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomOutDown { -webkit-animation-name: zoomOutDown; animation-name: zoomOutDown; } @-webkit-keyframes zoomOutLeft { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0); transform: scale(0.1) translate3d(-2000px, 0, 0); -webkit-transform-origin: left center; transform-origin: left center; } } @keyframes zoomOutLeft { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(-2000px, 0, 0); transform: scale(0.1) translate3d(-2000px, 0, 0); -webkit-transform-origin: left center; transform-origin: left center; } } .zoomOutLeft { -webkit-animation-name: zoomOutLeft; animation-name: zoomOutLeft; } @-webkit-keyframes zoomOutRight { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(2000px, 0, 0); transform: scale(0.1) translate3d(2000px, 0, 0); -webkit-transform-origin: right center; transform-origin: right center; } } @keyframes zoomOutRight { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0); } to { opacity: 0; -webkit-transform: scale(0.1) translate3d(2000px, 0, 0); transform: scale(0.1) translate3d(2000px, 0, 0); -webkit-transform-origin: right center; transform-origin: right center; } } .zoomOutRight { -webkit-animation-name: zoomOutRight; animation-name: zoomOutRight; } @-webkit-keyframes zoomOutUp { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } @keyframes zoomOutUp { 40% { opacity: 1; -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } to { opacity: 0; -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0); -webkit-transform-origin: center bottom; transform-origin: center bottom; -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); } } .zoomOutUp { -webkit-animation-name: zoomOutUp; animation-name: zoomOutUp; } @-webkit-keyframes slideInDown { from { -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInDown { from { -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInDown { -webkit-animation-name: slideInDown; animation-name: slideInDown; } @-webkit-keyframes slideInLeft { from { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInLeft { from { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInLeft { -webkit-animation-name: slideInLeft; animation-name: slideInLeft; } @-webkit-keyframes slideInRight { from { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInRight { from { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInRight { -webkit-animation-name: slideInRight; animation-name: slideInRight; } @-webkit-keyframes slideInUp { from { -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } @keyframes slideInUp { from { -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); visibility: visible; } to { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } } .slideInUp { -webkit-animation-name: slideInUp; animation-name: slideInUp; } @-webkit-keyframes slideOutDown { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } @keyframes slideOutDown { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } } .slideOutDown { -webkit-animation-name: slideOutDown; animation-name: slideOutDown; } @-webkit-keyframes slideOutLeft { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } @keyframes slideOutLeft { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } } .slideOutLeft { -webkit-animation-name: slideOutLeft; animation-name: slideOutLeft; } @-webkit-keyframes slideOutRight { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } @keyframes slideOutRight { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } } .slideOutRight { -webkit-animation-name: slideOutRight; animation-name: slideOutRight; } @-webkit-keyframes slideOutUp { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } @keyframes slideOutUp { from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } to { visibility: hidden; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } } .slideOutUp { -webkit-animation-name: slideOutUp; animation-name: slideOutUp; } .animated { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .animated.infinite { -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; } .animated.delay-1s { -webkit-animation-delay: 1s; animation-delay: 1s; } .animated.delay-2s { -webkit-animation-delay: 2s; animation-delay: 2s; } .animated.delay-3s { -webkit-animation-delay: 3s; animation-delay: 3s; } .animated.delay-4s { -webkit-animation-delay: 4s; animation-delay: 4s; } .animated.delay-5s { -webkit-animation-delay: 5s; animation-delay: 5s; } .animated.fast { -webkit-animation-duration: 800ms; animation-duration: 800ms; } .animated.faster { -webkit-animation-duration: 500ms; animation-duration: 500ms; } .animated.slow { -webkit-animation-duration: 2s; animation-duration: 2s; } .animated.slower { -webkit-animation-duration: 3s; animation-duration: 3s; } @media (print), (prefers-reduced-motion) { .animated { -webkit-animation: unset !important; animation: unset !important; -webkit-transition: none !important; transition: none !important; } } ================================================ FILE: lib/layui/css/layui.css ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ .layui-inline,img{display:inline-block;vertical-align:middle}h1,h2,h3,h4,h5,h6{font-weight:400}.layui-edge,.layui-header,.layui-inline,.layui-main{position:relative}.layui-body,.layui-edge,.layui-elip{overflow:hidden}.layui-btn,.layui-edge,.layui-inline,img{vertical-align:middle}.layui-btn,.layui-disabled,.layui-icon,.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-elip,.layui-form-checkbox span,.layui-form-pane .layui-form-label{text-overflow:ellipsis;white-space:nowrap}.layui-breadcrumb,.layui-tree-btnGroup{visibility:hidden}blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}a:active,a:hover{outline:0}img{border:none}li{list-style:none}table{border-collapse:collapse;border-spacing:0}h4,h5,h6{font-size:100%}button,input,optgroup,option,select,textarea{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;outline:0}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}body{line-height:24px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif}hr{height:1px;margin:10px 0;border:0;clear:both}a{color:#333;text-decoration:none}a:hover{color:#777}a cite{font-style:normal;*cursor:pointer}.layui-border-box,.layui-border-box *{box-sizing:border-box}.layui-box,.layui-box *{box-sizing:content-box}.layui-clear{clear:both;*zoom:1}.layui-clear:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-inline{*display:inline;*zoom:1}.layui-edge{display:inline-block;width:0;height:0;border-width:6px;border-style:dashed;border-color:transparent}.layui-edge-top{top:-4px;border-bottom-color:#999;border-bottom-style:solid}.layui-edge-right{border-left-color:#999;border-left-style:solid}.layui-edge-bottom{top:2px;border-top-color:#999;border-top-style:solid}.layui-edge-left{border-right-color:#999;border-right-style:solid}.layui-disabled,.layui-disabled:hover{color:#d2d2d2!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=250);src:url(../font/iconfont.eot?v=250#iefix) format('embedded-opentype'),url(../font/iconfont.woff2?v=250) format('woff2'),url(../font/iconfont.woff?v=250) format('woff'),url(../font/iconfont.ttf?v=250) format('truetype'),url(../font/iconfont.svg?v=250#layui-icon) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-icon-reply-fill:before{content:"\e611"}.layui-icon-set-fill:before{content:"\e614"}.layui-icon-menu-fill:before{content:"\e60f"}.layui-icon-search:before{content:"\e615"}.layui-icon-share:before{content:"\e641"}.layui-icon-set-sm:before{content:"\e620"}.layui-icon-engine:before{content:"\e628"}.layui-icon-close:before{content:"\1006"}.layui-icon-close-fill:before{content:"\1007"}.layui-icon-chart-screen:before{content:"\e629"}.layui-icon-star:before{content:"\e600"}.layui-icon-circle-dot:before{content:"\e617"}.layui-icon-chat:before{content:"\e606"}.layui-icon-release:before{content:"\e609"}.layui-icon-list:before{content:"\e60a"}.layui-icon-chart:before{content:"\e62c"}.layui-icon-ok-circle:before{content:"\1005"}.layui-icon-layim-theme:before{content:"\e61b"}.layui-icon-table:before{content:"\e62d"}.layui-icon-right:before{content:"\e602"}.layui-icon-left:before{content:"\e603"}.layui-icon-cart-simple:before{content:"\e698"}.layui-icon-face-cry:before{content:"\e69c"}.layui-icon-face-smile:before{content:"\e6af"}.layui-icon-survey:before{content:"\e6b2"}.layui-icon-tree:before{content:"\e62e"}.layui-icon-upload-circle:before{content:"\e62f"}.layui-icon-add-circle:before{content:"\e61f"}.layui-icon-download-circle:before{content:"\e601"}.layui-icon-templeate-1:before{content:"\e630"}.layui-icon-util:before{content:"\e631"}.layui-icon-face-surprised:before{content:"\e664"}.layui-icon-edit:before{content:"\e642"}.layui-icon-speaker:before{content:"\e645"}.layui-icon-down:before{content:"\e61a"}.layui-icon-file:before{content:"\e621"}.layui-icon-layouts:before{content:"\e632"}.layui-icon-rate-half:before{content:"\e6c9"}.layui-icon-add-circle-fine:before{content:"\e608"}.layui-icon-prev-circle:before{content:"\e633"}.layui-icon-read:before{content:"\e705"}.layui-icon-404:before{content:"\e61c"}.layui-icon-carousel:before{content:"\e634"}.layui-icon-help:before{content:"\e607"}.layui-icon-code-circle:before{content:"\e635"}.layui-icon-water:before{content:"\e636"}.layui-icon-username:before{content:"\e66f"}.layui-icon-find-fill:before{content:"\e670"}.layui-icon-about:before{content:"\e60b"}.layui-icon-location:before{content:"\e715"}.layui-icon-up:before{content:"\e619"}.layui-icon-pause:before{content:"\e651"}.layui-icon-date:before{content:"\e637"}.layui-icon-layim-uploadfile:before{content:"\e61d"}.layui-icon-delete:before{content:"\e640"}.layui-icon-play:before{content:"\e652"}.layui-icon-top:before{content:"\e604"}.layui-icon-friends:before{content:"\e612"}.layui-icon-refresh-3:before{content:"\e9aa"}.layui-icon-ok:before{content:"\e605"}.layui-icon-layer:before{content:"\e638"}.layui-icon-face-smile-fine:before{content:"\e60c"}.layui-icon-dollar:before{content:"\e659"}.layui-icon-group:before{content:"\e613"}.layui-icon-layim-download:before{content:"\e61e"}.layui-icon-picture-fine:before{content:"\e60d"}.layui-icon-link:before{content:"\e64c"}.layui-icon-diamond:before{content:"\e735"}.layui-icon-log:before{content:"\e60e"}.layui-icon-rate-solid:before{content:"\e67a"}.layui-icon-fonts-del:before{content:"\e64f"}.layui-icon-unlink:before{content:"\e64d"}.layui-icon-fonts-clear:before{content:"\e639"}.layui-icon-triangle-r:before{content:"\e623"}.layui-icon-circle:before{content:"\e63f"}.layui-icon-radio:before{content:"\e643"}.layui-icon-align-center:before{content:"\e647"}.layui-icon-align-right:before{content:"\e648"}.layui-icon-align-left:before{content:"\e649"}.layui-icon-loading-1:before{content:"\e63e"}.layui-icon-return:before{content:"\e65c"}.layui-icon-fonts-strong:before{content:"\e62b"}.layui-icon-upload:before{content:"\e67c"}.layui-icon-dialogue:before{content:"\e63a"}.layui-icon-video:before{content:"\e6ed"}.layui-icon-headset:before{content:"\e6fc"}.layui-icon-cellphone-fine:before{content:"\e63b"}.layui-icon-add-1:before{content:"\e654"}.layui-icon-face-smile-b:before{content:"\e650"}.layui-icon-fonts-html:before{content:"\e64b"}.layui-icon-form:before{content:"\e63c"}.layui-icon-cart:before{content:"\e657"}.layui-icon-camera-fill:before{content:"\e65d"}.layui-icon-tabs:before{content:"\e62a"}.layui-icon-fonts-code:before{content:"\e64e"}.layui-icon-fire:before{content:"\e756"}.layui-icon-set:before{content:"\e716"}.layui-icon-fonts-u:before{content:"\e646"}.layui-icon-triangle-d:before{content:"\e625"}.layui-icon-tips:before{content:"\e702"}.layui-icon-picture:before{content:"\e64a"}.layui-icon-more-vertical:before{content:"\e671"}.layui-icon-flag:before{content:"\e66c"}.layui-icon-loading:before{content:"\e63d"}.layui-icon-fonts-i:before{content:"\e644"}.layui-icon-refresh-1:before{content:"\e666"}.layui-icon-rmb:before{content:"\e65e"}.layui-icon-home:before{content:"\e68e"}.layui-icon-user:before{content:"\e770"}.layui-icon-notice:before{content:"\e667"}.layui-icon-login-weibo:before{content:"\e675"}.layui-icon-voice:before{content:"\e688"}.layui-icon-upload-drag:before{content:"\e681"}.layui-icon-login-qq:before{content:"\e676"}.layui-icon-snowflake:before{content:"\e6b1"}.layui-icon-file-b:before{content:"\e655"}.layui-icon-template:before{content:"\e663"}.layui-icon-auz:before{content:"\e672"}.layui-icon-console:before{content:"\e665"}.layui-icon-app:before{content:"\e653"}.layui-icon-prev:before{content:"\e65a"}.layui-icon-website:before{content:"\e7ae"}.layui-icon-next:before{content:"\e65b"}.layui-icon-component:before{content:"\e857"}.layui-icon-more:before{content:"\e65f"}.layui-icon-login-wechat:before{content:"\e677"}.layui-icon-shrink-right:before{content:"\e668"}.layui-icon-spread-left:before{content:"\e66b"}.layui-icon-camera:before{content:"\e660"}.layui-icon-note:before{content:"\e66e"}.layui-icon-refresh:before{content:"\e669"}.layui-icon-female:before{content:"\e661"}.layui-icon-male:before{content:"\e662"}.layui-icon-password:before{content:"\e673"}.layui-icon-senior:before{content:"\e674"}.layui-icon-theme:before{content:"\e66a"}.layui-icon-tread:before{content:"\e6c5"}.layui-icon-praise:before{content:"\e6c6"}.layui-icon-star-fill:before{content:"\e658"}.layui-icon-rate:before{content:"\e67b"}.layui-icon-template-1:before{content:"\e656"}.layui-icon-vercode:before{content:"\e679"}.layui-icon-cellphone:before{content:"\e678"}.layui-icon-screen-full:before{content:"\e622"}.layui-icon-screen-restore:before{content:"\e758"}.layui-icon-cols:before{content:"\e610"}.layui-icon-export:before{content:"\e67d"}.layui-icon-print:before{content:"\e66d"}.layui-icon-slider:before{content:"\e714"}.layui-icon-addition:before{content:"\e624"}.layui-icon-subtraction:before{content:"\e67e"}.layui-icon-service:before{content:"\e626"}.layui-icon-transfer:before{content:"\e691"}.layui-main{width:1140px;margin:0 auto}.layui-header{z-index:1000;height:60px}.layui-header a:hover{transition:all .5s;-webkit-transition:all .5s}.layui-side{position:fixed;left:0;top:0;bottom:0;z-index:999;width:200px;overflow-x:hidden}.layui-side-scroll{position:relative;width:220px;height:100%;overflow-x:hidden}.layui-body{position:absolute;left:200px;right:0;top:0;bottom:0;z-index:998;width:auto;overflow-y:auto;box-sizing:border-box}.layui-layout-body{overflow:hidden}.layui-layout-admin .layui-header{background-color:#23262E}.layui-layout-admin .layui-side{top:60px;width:200px;overflow-x:hidden}.layui-layout-admin .layui-body{position:fixed;top:60px;bottom:44px}.layui-layout-admin .layui-main{width:auto;margin:0 15px}.layui-layout-admin .layui-footer{position:fixed;left:200px;right:0;bottom:0;height:44px;line-height:44px;padding:0 15px;background-color:#eee}.layui-layout-admin .layui-logo{position:absolute;left:0;top:0;width:200px;height:100%;line-height:60px;text-align:center;color:#009688;font-size:16px}.layui-layout-admin .layui-header .layui-nav{background:0 0}.layui-layout-left{position:absolute!important;left:200px;top:0}.layui-layout-right{position:absolute!important;right:0;top:0}.layui-container{position:relative;margin:0 auto;padding:0 15px;box-sizing:border-box}.layui-fluid{position:relative;margin:0 auto;padding:0 15px}.layui-row:after,.layui-row:before{content:'';display:block;clear:both}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9,.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9,.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9,.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{position:relative;display:block;box-sizing:border-box}.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{float:left}.layui-col-xs1{width:8.33333333%}.layui-col-xs2{width:16.66666667%}.layui-col-xs3{width:25%}.layui-col-xs4{width:33.33333333%}.layui-col-xs5{width:41.66666667%}.layui-col-xs6{width:50%}.layui-col-xs7{width:58.33333333%}.layui-col-xs8{width:66.66666667%}.layui-col-xs9{width:75%}.layui-col-xs10{width:83.33333333%}.layui-col-xs11{width:91.66666667%}.layui-col-xs12{width:100%}.layui-col-xs-offset1{margin-left:8.33333333%}.layui-col-xs-offset2{margin-left:16.66666667%}.layui-col-xs-offset3{margin-left:25%}.layui-col-xs-offset4{margin-left:33.33333333%}.layui-col-xs-offset5{margin-left:41.66666667%}.layui-col-xs-offset6{margin-left:50%}.layui-col-xs-offset7{margin-left:58.33333333%}.layui-col-xs-offset8{margin-left:66.66666667%}.layui-col-xs-offset9{margin-left:75%}.layui-col-xs-offset10{margin-left:83.33333333%}.layui-col-xs-offset11{margin-left:91.66666667%}.layui-col-xs-offset12{margin-left:100%}@media screen and (max-width:768px){.layui-hide-xs{display:none!important}.layui-show-xs-block{display:block!important}.layui-show-xs-inline{display:inline!important}.layui-show-xs-inline-block{display:inline-block!important}}@media screen and (min-width:768px){.layui-container{width:750px}.layui-hide-sm{display:none!important}.layui-show-sm-block{display:block!important}.layui-show-sm-inline{display:inline!important}.layui-show-sm-inline-block{display:inline-block!important}.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9{float:left}.layui-col-sm1{width:8.33333333%}.layui-col-sm2{width:16.66666667%}.layui-col-sm3{width:25%}.layui-col-sm4{width:33.33333333%}.layui-col-sm5{width:41.66666667%}.layui-col-sm6{width:50%}.layui-col-sm7{width:58.33333333%}.layui-col-sm8{width:66.66666667%}.layui-col-sm9{width:75%}.layui-col-sm10{width:83.33333333%}.layui-col-sm11{width:91.66666667%}.layui-col-sm12{width:100%}.layui-col-sm-offset1{margin-left:8.33333333%}.layui-col-sm-offset2{margin-left:16.66666667%}.layui-col-sm-offset3{margin-left:25%}.layui-col-sm-offset4{margin-left:33.33333333%}.layui-col-sm-offset5{margin-left:41.66666667%}.layui-col-sm-offset6{margin-left:50%}.layui-col-sm-offset7{margin-left:58.33333333%}.layui-col-sm-offset8{margin-left:66.66666667%}.layui-col-sm-offset9{margin-left:75%}.layui-col-sm-offset10{margin-left:83.33333333%}.layui-col-sm-offset11{margin-left:91.66666667%}.layui-col-sm-offset12{margin-left:100%}}@media screen and (min-width:992px){.layui-container{width:970px}.layui-hide-md{display:none!important}.layui-show-md-block{display:block!important}.layui-show-md-inline{display:inline!important}.layui-show-md-inline-block{display:inline-block!important}.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9{float:left}.layui-col-md1{width:8.33333333%}.layui-col-md2{width:16.66666667%}.layui-col-md3{width:25%}.layui-col-md4{width:33.33333333%}.layui-col-md5{width:41.66666667%}.layui-col-md6{width:50%}.layui-col-md7{width:58.33333333%}.layui-col-md8{width:66.66666667%}.layui-col-md9{width:75%}.layui-col-md10{width:83.33333333%}.layui-col-md11{width:91.66666667%}.layui-col-md12{width:100%}.layui-col-md-offset1{margin-left:8.33333333%}.layui-col-md-offset2{margin-left:16.66666667%}.layui-col-md-offset3{margin-left:25%}.layui-col-md-offset4{margin-left:33.33333333%}.layui-col-md-offset5{margin-left:41.66666667%}.layui-col-md-offset6{margin-left:50%}.layui-col-md-offset7{margin-left:58.33333333%}.layui-col-md-offset8{margin-left:66.66666667%}.layui-col-md-offset9{margin-left:75%}.layui-col-md-offset10{margin-left:83.33333333%}.layui-col-md-offset11{margin-left:91.66666667%}.layui-col-md-offset12{margin-left:100%}}@media screen and (min-width:1200px){.layui-container{width:1170px}.layui-hide-lg{display:none!important}.layui-show-lg-block{display:block!important}.layui-show-lg-inline{display:inline!important}.layui-show-lg-inline-block{display:inline-block!important}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9{float:left}.layui-col-lg1{width:8.33333333%}.layui-col-lg2{width:16.66666667%}.layui-col-lg3{width:25%}.layui-col-lg4{width:33.33333333%}.layui-col-lg5{width:41.66666667%}.layui-col-lg6{width:50%}.layui-col-lg7{width:58.33333333%}.layui-col-lg8{width:66.66666667%}.layui-col-lg9{width:75%}.layui-col-lg10{width:83.33333333%}.layui-col-lg11{width:91.66666667%}.layui-col-lg12{width:100%}.layui-col-lg-offset1{margin-left:8.33333333%}.layui-col-lg-offset2{margin-left:16.66666667%}.layui-col-lg-offset3{margin-left:25%}.layui-col-lg-offset4{margin-left:33.33333333%}.layui-col-lg-offset5{margin-left:41.66666667%}.layui-col-lg-offset6{margin-left:50%}.layui-col-lg-offset7{margin-left:58.33333333%}.layui-col-lg-offset8{margin-left:66.66666667%}.layui-col-lg-offset9{margin-left:75%}.layui-col-lg-offset10{margin-left:83.33333333%}.layui-col-lg-offset11{margin-left:91.66666667%}.layui-col-lg-offset12{margin-left:100%}}.layui-col-space1{margin:-.5px}.layui-col-space1>*{padding:.5px}.layui-col-space3{margin:-1.5px}.layui-col-space3>*{padding:1.5px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space8{margin:-3.5px}.layui-col-space8>*{padding:3.5px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:22px;border-left:5px solid #009688;border-radius:0 2px 2px 0;background-color:#f2f2f2}.layui-quote-nm{border-style:solid;border-width:1px 1px 1px 5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:1px 0 0}.layui-field-box{padding:10px 15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#e2e2e2}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5FB878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#666}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#f2f2f2;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:22px;color:#666}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-card:last-child{margin-bottom:0}.layui-card-header{position:relative;height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-bg-black,.layui-bg-blue,.layui-bg-cyan,.layui-bg-green,.layui-bg-orange,.layui-bg-red{color:#fff!important}.layui-card-body{position:relative;padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #E6E6E6;background-color:#fff}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-form-label,.layui-form-mid,.layui-form-select,.layui-input-block,.layui-input-inline,.layui-textarea{position:relative}.layui-bg-red{background-color:#FF5722!important}.layui-bg-orange{background-color:#FFB800!important}.layui-bg-green{background-color:#009688!important}.layui-bg-cyan{background-color:#2F4056!important}.layui-bg-blue{background-color:#1E9FFF!important}.layui-bg-black{background-color:#393D49!important}.layui-bg-gray{background-color:#eee!important;color:#666!important}.layui-badge-rim,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#e6e6e6}.layui-timeline-item:before,hr{background-color:#e6e6e6}.layui-text{line-height:22px;font-size:14px;color:#666}.layui-text h1,.layui-text h2,.layui-text h3{font-weight:500;color:#333}.layui-text h1{font-size:30px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text a:not(.layui-btn){color:#01AAED}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text em,.layui-word-aux{color:#999!important;padding:0 5px!important}.layui-btn{display:inline-block;height:38px;line-height:38px;padding:0 18px;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border:none;border-radius:2px;cursor:pointer}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{margin-right:3px;font-size:18px;vertical-align:bottom;vertical-align:middle\9}.layui-btn-primary{border:1px solid #C9C9C9;background-color:#fff;color:#555}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1E9FFF}.layui-btn-warm{background-color:#FFB800}.layui-btn-danger{background-color:#FF5722}.layui-btn-checked{background-color:#5FB878}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border:1px solid #e6e6e6;background-color:#FBFBFB;color:#C9C9C9;cursor:not-allowed;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-sm i{font-size:16px!important}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:14px!important}.layui-btn-group{display:inline-block;vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#C9C9C9;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #c9c9c9}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#D2D2D2!important}.layui-input:focus,.layui-textarea:focus{border-color:#C9C9C9!important}.layui-textarea{min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#FF5722!important}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #d2d2d2;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12);box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#f2f2f2;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5FB878;color:#fff}.layui-form-checkbox,.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-checkbox,.layui-form-checkbox *,.layui-form-switch{display:inline-block;vertical-align:middle}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg);margin-top:-3px\9}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;height:30px;line-height:30px;margin-right:10px;padding-right:30px;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5FB878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5FB878}.layui-form-checked i,.layui-form-checked:hover i{color:#5FB878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#666}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5FB878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5FB878!important;background-color:#5FB878;color:#fff}.layui-checkbox-disbaled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2}.layui-checkbox-disbaled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5FB878;background-color:#5FB878}.layui-checkbox-disbaled,.layui-checkbox-disbaled i{border-color:#e2e2e2!important}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disbaled span{background-color:#e2e2e2!important}.layui-checkbox-disbaled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio,.layui-form-radio *{display:inline-block;vertical-align:middle}.layui-form-radio{line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio>i:hover,.layui-form-radioed>i{color:#5FB878}.layui-radio-disbaled>i{color:#e2e2e2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#FBFBFB;overflow:hidden;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0 1px 0 0}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #e2e2e2}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393D49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#e2e2e2;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #e2e2e2}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-flow-more a *,.layui-laypage input,.layui-table-view select[lay-ignore]{display:inline-block}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-table,.layui-table-view{margin:10px 0}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;background-color:#fff;color:#666}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr,.layui-table[lay-even] tr:nth-child(even){background-color:#f2f2f2}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#e6e6e6}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0 0 1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0 1px 0 0}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding:15px 30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:40px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{font-size:12px;padding:5px 10px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:20px;line-height:20px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view .layui-table{position:relative;width:auto;margin:0}.layui-table-view .layui-table[lay-skin=line]{border-width:0 1px 0 0}.layui-table-view .layui-table[lay-skin=row]{border-width:0 0 1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:5px 0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-table td[data-edit=text]{cursor:text}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:110}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0 0 1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;overflow-y:auto;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-cell,.layui-table-tool-panel li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-table-tool-panel li{padding:0 10px;line-height:30px;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%;padding-left:28px}.layui-table-tool-panel li:hover{background-color:#f2f2f2}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0 0 0 1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#666}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#666}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:28px;line-height:28px;padding:0 15px;position:relative;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01AAED}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{padding:0;text-align:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:0 -1px 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0 0 0 1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0 0 1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-page,.layui-table-total{border-width:1px 0 0;margin-bottom:-1px;overflow:hidden}.layui-table-page{position:relative;width:100%;padding:7px 7px 0;height:41px;font-size:12px;white-space:nowrap}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-7px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 14px 1px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15)}.layui-table-edit:focus{border-color:#5FB878!important}select.layui-table-edit{padding:0 0 0 10px;border-color:#C9C9C9}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0 0 0 1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-44px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#666}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#666;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-drag,.layui-upload-form,.layui-upload-wrap{display:inline-block}.layui-upload-list{margin:10px 0}.layui-upload-choose{padding:0 10px;color:#999}.layui-upload-drag{position:relative;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-transfer-active,.layui-transfer-box{display:inline-block;vertical-align:middle}.layui-transfer-box,.layui-transfer-header,.layui-transfer-search{border-width:0;border-style:solid;border-color:#e6e6e6}.layui-transfer-box{position:relative;border-width:1px;width:200px;height:360px;border-radius:2px;background-color:#fff}.layui-transfer-box .layui-form-checkbox{width:100%;margin:0!important}.layui-transfer-header{height:38px;line-height:38px;padding:0 10px;border-bottom-width:1px}.layui-transfer-search{position:relative;padding:10px;border-bottom-width:1px}.layui-transfer-search .layui-input{height:32px;padding-left:30px;font-size:12px}.layui-transfer-search .layui-icon-search{position:absolute;left:20px;top:50%;margin-top:-8px;color:#666}.layui-transfer-active{margin:0 15px}.layui-transfer-active .layui-btn{display:block;margin:0;padding:0 15px;background-color:#5FB878;border-color:#5FB878;color:#fff}.layui-transfer-active .layui-btn-disabled{background-color:#FBFBFB;border-color:#e6e6e6;color:#C9C9C9}.layui-transfer-active .layui-btn:first-child{margin-bottom:15px}.layui-transfer-active .layui-btn .layui-icon{margin:0;font-size:14px!important}.layui-transfer-data{padding:5px 0;overflow:auto}.layui-transfer-data li{height:32px;line-height:32px;padding:0 10px}.layui-transfer-data li:hover{background-color:#f2f2f2;transition:.5s all}.layui-transfer-data .layui-none{padding:15px 10px;text-align:center;color:#999}.layui-nav{position:relative;padding:0 20px;background-color:#393D49;color:#fff;border-radius:2px;font-size:0;box-sizing:border-box}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar,.layui-nav-tree .layui-nav-itemed:after{position:absolute;left:0;top:0;width:0;height:5px;background-color:#5FB878;transition:all .2s;-webkit-transition:all .2s}.layui-nav-bar{z-index:1000}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{content:'';top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{content:'';width:0;height:0;border-style:solid dashed dashed;border-color:#fff transparent transparent;overflow:hidden;cursor:pointer;transition:all .2s;-webkit-transition:all .2s;position:absolute;top:50%;right:3px;margin-top:-3px;border-width:6px;border-top-color:rgba(255,255,255,.7)}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{margin-top:-9px;border-style:dashed dashed solid;border-color:transparent transparent #fff}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #d2d2d2;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#333}.layui-nav .layui-nav-child a:hover{background-color:#f2f2f2;color:#000}.layui-nav-child dd{position:relative}.layui-nav .layui-nav-child dd.layui-this a,.layui-nav-child dd.layui-this{background-color:#5FB878;color:#fff}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:45px}.layui-nav-tree .layui-nav-item a{position:relative;height:45px;line-height:45px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item a:hover{background-color:#4E5465}.layui-nav-tree .layui-nav-bar{width:5px;height:0;background-color:#009688}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#009688;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff!important}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child a{height:40px;line-height:40px;color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-tree .layui-nav-more{right:10px}.layui-nav-itemed>.layui-nav-child{display:block;padding:0;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-bg-blue .layui-nav-bar,.layui-bg-blue .layui-nav-itemed:after,.layui-bg-blue .layui-this:after{background-color:#93D1FF}.layui-bg-blue .layui-nav-child dd.layui-this{background-color:#1E9FFF}.layui-bg-blue .layui-nav-itemed>a,.layui-nav-tree.layui-bg-blue .layui-nav-title a,.layui-nav-tree.layui-bg-blue .layui-nav-title a:hover{background-color:#007DDB!important}.layui-breadcrumb{font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5FB878!important}.layui-breadcrumb a cite{color:#666;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s;position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:'';width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#e2e2e2;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\9;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:10px}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#FF5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5FB878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#f2f2f2}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5FB878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5FB878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#FF5722}.layui-timeline-item:before{content:'';position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:last-child:before{display:none}.layui-timeline-item:first-child:before{display:block}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#FF5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#666}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-8px 6px 0}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\9;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add],.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\9;opacity:1;left:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#e2e2e2;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown]>[carousel-item]>*,.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9F9F9F;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#666;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #D9D9D9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #ddd;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New;font-size:12px}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#FFB800;margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #e6e6e6;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#FFF;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;z-index:66666666;width:280px;padding:7px;background:#FFF;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#FFF,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #FFF;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#FF0,#0F0,#0FF,#00F,#F0F,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;box-sizing:border-box;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;box-sizing:border-box;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#666}.layui-slider{height:4px;background:#e2e2e2;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#FFF;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#FFF;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:66666666;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#FFF;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:'';position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #e6e6e6;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-15px}.layui-slider-input-btn{display:none;position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #d2d2d2}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #d2d2d2}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:34px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-tree{line-height:22px}.layui-tree .layui-form-checkbox{margin:0!important}.layui-tree-set{width:100%;position:relative}.layui-tree-pack{display:none;padding-left:20px;position:relative}.layui-tree-iconClick,.layui-tree-main{display:inline-block;vertical-align:middle}.layui-tree-line .layui-tree-pack{padding-left:27px}.layui-tree-line .layui-tree-set .layui-tree-set:after{content:'';position:absolute;top:14px;left:-9px;width:17px;height:0;border-top:1px dotted #c0c4cc}.layui-tree-entry{position:relative;padding:3px 0;height:20px;white-space:nowrap}.layui-tree-entry:hover{background-color:#eee}.layui-tree-line .layui-tree-entry:hover{background-color:rgba(0,0,0,0)}.layui-tree-line .layui-tree-entry:hover .layui-tree-txt{color:#999;text-decoration:underline;transition:.3s}.layui-tree-main{cursor:pointer;padding-right:10px}.layui-tree-line .layui-tree-set:before{content:'';position:absolute;top:0;left:-9px;width:0;height:100%;border-left:1px dotted #c0c4cc}.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before{height:13px}.layui-tree-line .layui-tree-set.layui-tree-setHide:before{height:0}.layui-tree-iconClick{position:relative;height:20px;line-height:20px;margin:0 10px;color:#c0c4cc}.layui-tree-icon{height:12px;line-height:12px;width:12px;text-align:center;border:1px solid #c0c4cc}.layui-tree-iconClick .layui-icon{font-size:18px}.layui-tree-icon .layui-icon{font-size:12px;color:#666}.layui-tree-iconArrow{padding:0 5px}.layui-tree-iconArrow:after{content:'';position:absolute;left:4px;top:3px;z-index:100;width:0;height:0;border-width:5px;border-style:solid;border-color:transparent transparent transparent #c0c4cc;transition:.5s}.layui-tree-btnGroup,.layui-tree-editInput{position:relative;vertical-align:middle;display:inline-block}.layui-tree-spread>.layui-tree-entry>.layui-tree-iconClick>.layui-tree-iconArrow:after{transform:rotate(90deg) translate(3px,4px)}.layui-tree-txt{display:inline-block;vertical-align:middle;color:#555}.layui-tree-search{margin-bottom:15px;color:#666}.layui-tree-btnGroup .layui-icon{display:inline-block;vertical-align:middle;padding:0 2px;cursor:pointer}.layui-tree-btnGroup .layui-icon:hover{color:#999;transition:.3s}.layui-tree-entry:hover .layui-tree-btnGroup{visibility:visible}.layui-tree-editInput{height:20px;line-height:20px;padding:0 3px;border:none;background-color:rgba(0,0,0,.05)}.layui-tree-emptyText{text-align:center;color:#999}.layui-anim{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .3s;-webkit-transition:all .3s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,30px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,30px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout} ================================================ FILE: lib/layui/css/layui.mobile.css ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1}.layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0}.layui-edge{border-style:dashed;border-color:transparent;overflow:hidden}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-upload-iframe{border:0;visibility:hidden}.layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)}@-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale}@-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up}@-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left}@-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right}@-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout}@-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout}.layui-m-layer{position:relative;z-index:19891014}.layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%}.layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto}.layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none}.layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center}.layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px}.layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0}.layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff}.layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center}.layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center}.layui-m-layer1 .layui-m-layercont{padding:0;text-align:left}.layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0}.layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px}.layui-m-layer2 .layui-m-layercont p{margin-top:20px}@-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s}.layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s}.layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px} ================================================ FILE: lib/layui/css/modules/code.css ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} ================================================ FILE: lib/layui/css/modules/laydate/default/laydate.css ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} ================================================ FILE: lib/layui/css/modules/layer/default/layer.css ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ .layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}} ================================================ FILE: lib/layui/lay/modules/carousel.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); ================================================ FILE: lib/layui/lay/modules/colorpicker.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['
',"",'3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">','',"","","
"].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['
','
','
','
','
','
',"
",'
','
',"
","
",'
','
','
',"
","
",function(){if(o.predefine){var e=['
'];return layui.each(o.colors,function(i,o){e.push(['
','
',"
"].join(""))}),e.push("
"),e.join("")}return""}(),'
','
','',"
",'
','','',"","
"].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:fa()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['
t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)}); ================================================ FILE: lib/layui/lay/modules/element.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='
  • "+(i.title||"unnaming")+"
  • ";return s[0]?s.before(r):n.append(r),o.append('
    '+(i.content||"")+"
    "),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(''),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(''),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+""),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)}); ================================================ FILE: lib/layui/lay/modules/flow.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); ================================================ FILE: lib/layui/lay/modules/form.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=t(r+'[lay-filter="'+e+'"]');a.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e)},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),x=i.find("dl"),g=x.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=x.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),g.removeClass(o),y=null,g.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=x.children("dd."+s);if(e[0]){var t=e.position().top,i=x.height(),a=e.height();t>i&&x.scrollTop(t+x.scrollTop()-i+a-5),t<0&&x.scrollTop(t+x.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),x.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=x.children("dd."+s);if(x.children("dd."+o)[0]&&"next"===t){var i=x.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n无匹配项

    '):x.find("."+r).remove()},"keyup"),""===t&&x.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),g.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['
    ','
    ','','
    ','
    ',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("
    "+a.label+"
    "):t.push('
    '+a.innerHTML+"
    "):t.push('
    '+(a.innerHTML||i)+"
    ")}),0===t.length&&t.push('
    没有选项
    '),t.join("")}(r.find("*"))+"
    ","
    "].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['
    ",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+"":"",''].join(""),_switch:""+((n.checked?s[0]:s[1])||"")+""};return t[r]||t.checkbox}(),"
    "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['
    ',''+i[l.checked?0:1]+"","
    "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
    ","
    "].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=t(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),v=e.parents("form")[0],h=u.find("input,select,textarea"),y=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=t(this),c=r.attr("lay-verify").split("|"),u=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(c,function(e,t){var c,f="",v="function"==typeof a[t];if(a[t]){var c=v?f=a[t](d,l):!a[t][0].test(d);if(f=f||a[t][1],"required"===t&&(f=r.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){l.focus()},7),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(h,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];p[i]=0|p[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+p[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(c[t.name]=t.value)}}),layui.event.call(this,l,"submit("+y+")",{elem:this,form:v,field:c})},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)}); ================================================ FILE: lib/layui/lay/modules/jquery.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(pe.isFunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return pe.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function a(){re.addEventListener?(re.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(re.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(re.addEventListener||"load"===e.event.type||"complete"===re.readyState)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(_e,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parseJSON(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(He(e)){var i,o,a=pe.expando,s=e.nodeType,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelCase(t)])):i=o,i}}function f(e,t,n){if(He(e)){var r,i,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in r?t=[t]:(t=pe.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleanData([e],!0):fe.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==l&&+u)&&Me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||pe.nodeName(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globalEval",!t||pe._data(t[r],"globalEval"))}function m(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x"!==f[1]||Ve.test(a)?0:u:u.firstChild,o=a&&a.childNodes.length;o--;)pe.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pe.merge(v,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=y.lastChild}else v.push(t.createTextNode(a));for(u&&y.removeChild(u),fe.appendChecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inArray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerDocument,a),u=h(y.appendChild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)Ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeElement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function T(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function E(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function N(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r1&&"string"==typeof p&&!fe.checkClone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),S(o,t,n,r)});if(f&&(l=y(t,e[0].ownerDocument,!1,e,r),i=l.firstChild,1===l.childNodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),C),a=s.length;c")).appendTo(t.documentElement),t=(ut[0].contentWindow||ut[0].contentDocument).document,t.write(),t.close(),n=D(e,t),ut.detach()),lt[e]=n),n}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function H(e){if(e in Et)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Ct.length;n--;)if(e=Ct[n]+t,e in Et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!fe.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;iT.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=A,x=r||o&&T.find.TAG("*",l),b=W+=null==v?1:Math.random()||.1,w=x.length;for(l&&(A=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!_);d=e[f++];)if(d(c,a||H,s)){u.push(c);break}l&&(W=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=G.call(u));y=m(y)}Q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=b,A=v),g};return i?r(a):a}var b,w,T,C,E,N,k,S,A,D,j,L,H,q,_,F,M,O,R,P="sizzle"+1*new Date,B=e.document,W=0,I=0,$=n(),z=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,Y={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Q=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),de=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){L()};try{Q.apply(J=Z.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(Ce){Q={apply:J.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=H.documentElement,_=!E(H),(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(H.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!H.getElementsByName||!H.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},M=[],F=[],(w.qsa=me.test(H.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||F.push(".#.+[+~]")}),i(function(e){var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(w.matchesSelector=me.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),M.push("!=",oe)}),F=F.length&&new RegExp(F.join("|")),M=M.length&&new RegExp(M.join("|")),t=me.test(q.compareDocumentPosition),R=t||me.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===B&&R(B,e)?-1:t===H||t.ownerDocument===B&&R(B,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:D?ee(D,e)-ee(D,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===B?-1:u[r]===B?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&_&&!X[n+" "]&&(!M||!M.test(n))&&(!F||!F.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=N(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(d=m,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}), l=c[e]||[],p=l[0]===W&&l[1],x=p&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){c[e]=[W,p,x];break}}else if(v&&(d=t,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===W&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++x||(v&&(f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[W,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[P]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=ve.uniqueSort,pe.text=ve.getText,pe.isXMLDoc=ve.isXML,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=pe.expr.match.needsContext,Te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var Ee,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ee,"string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Te.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getElementById(r[2]),i&&i.parentNode){if(i.id!==r[2])return Ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};ke.prototype=pe.fn,Ee=pe(re);var Se=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xe(e,"parentNode")},parentsUntil:function(e,t,n){return xe(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return xe(e,"nextSibling")},prevAll:function(e){return xe(e,"previousSibling")},nextUntil:function(e,t,n){return xe(e,"nextSibling",n)},prevUntil:function(e,t,n){return xe(e,"previousSibling",n)},siblings:function(e){return be((e.parentNode||{}).firstChild,e)},children:function(e){return be(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Ae[e]||(i=pe.uniqueSort(i)),Se.test(e)&&(i=i.reverse())),this.pushStack(i)}});var De=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(n){pe.each(t,function(t,o){var a=pe.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isFunction(e.promise)?a:0,u=1===s?e:pe.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i0||(je.resolveWith(re,[pe]),pe.fn.triggerHandler&&(pe(re).triggerHandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.Deferred(),"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll)e.setTimeout(pe.ready);else if(re.addEventListener)re.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{re.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&re.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!pe.isReady){try{n.doScroll("left")}catch(t){return e.setTimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var Le;for(Le in pe(fe))break;fe.ownFirst="0"===Le,fe.inlineBlockNeedsLayout=!1,pe(function(){var e,t,n,r;n=re.getElementsByTagName("body")[0],n&&n.style&&(t=re.createElement("div"),r=re.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=re.createElement("div");fe.deleteExpando=!0;try{delete e.test}catch(t){fe.deleteExpando=!1}e=null}();var He=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)},qe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_e=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodeType&&!pe._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=pe.camelCase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isArray(n)?r=pe._data(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
    a",fe.leadingWhitespace=3===e.firstChild.nodeType,fe.tbody=!e.getElementsByTagName("tbody").length,fe.htmlSerialize=!!e.getElementsByTagName("link").length,fe.html5Clone="<:nav>"!==re.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),fe.appendChecked=n.checked,e.innerHTML="",fe.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=re.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),fe.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,fe.attributes=!e.getAttribute(pe.expando)}();var Xe={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:fe.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ue=/<|&#?\w+;/,Ve=/-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!pe.isWindow(r)){for(u=l.delegateType||p,Ke.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||re)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&He(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&He(r)&&a&&r[p]&&!pe.isWindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/\s*$/g,at=p(re),st=at.appendChild(re.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1>")},clone:function(e,t,n){var r,i,o,a,s,u=pe.contains(e.ownerDocument,e);if(fe.html5Clone||pe.isXMLDoc(e)||!et.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(o=st.firstChild)),!(fe.noCloneEvent&&fe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(r=h(o),s=h(e),a=0;null!=(i=s[a]);++a)r[a]&&k(i,r[a]);if(t)if(n)for(s=s||h(e),r=r||h(o),a=0;null!=(i=s[a]);a++)N(i,r[a]);else N(e,o);return r=h(o,"script"),r.length>0&&g(r,!u&&h(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=pe.expando,u=pe.cache,l=fe.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||He(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeAttribute?n[s]=void 0:n.removeAttribute(s),ne.push(i))}}}),pe.fn.extend({domManip:S,detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Pe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||re).createTextNode(e))},null,e,arguments.length)},append:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.appendChild(e)}})},prepend:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(h(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ze,""):void 0;if("string"==typeof e&&!nt.test(e)&&(fe.htmlSerialize||!et.test(e))&&(fe.leadingWhitespace||!$e.test(e))&&!Xe[(We.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;nt",t=l.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetHeight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetHeight)),f.removeChild(u)}var n,r,i,o,a,s,u=re.createElement("div"),l=re.createElement("div");l.style&&(l.style.cssText="float:left;opacity:.5",fe.opacity="0.5"===l.style.opacity,fe.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",fe.clearCloneStyle="content-box"===l.style.backgroundClip,u=re.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",u.appendChild(l),fe.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,pe.extend(fe,{reliableHiddenOffsets:function(){return null==n&&t(),o},boxSizingReliable:function(){return null==n&&t(),i},pixelMarginRight:function(){return null==n&&t(),r},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),a},reliableMarginLeft:function(){return null==n&&t(),s}}))}();var ht,gt,mt=/^(top|right|bottom|left)$/;e.getComputedStyle?(ht=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerDocument,e)||(a=pe.style(e,t)),n&&!fe.pixelMarginRight()&&ft.test(a)&&ct.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0===a?a:a+""}):pt.currentStyle&&(ht=function(e){return e.currentStyle},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),ft.test(a)&&!mt.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var yt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,bt=new RegExp("^("+Fe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"},Ct=["Webkit","O","Moz","ms"],Et=re.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=gt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":fe.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=pe.camelCase(t),u=e.style;if(t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=Me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssNumber[s]?"":"px")),fe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=pe.camelCase(t);return t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=gt(e,t,r)),"normal"===o&&t in Tt&&(o=Tt[t]),""===n||n?(i=parseFloat(o),n===!0||isFinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,n,r){if(n)return xt.test(pe.css(e,"display"))&&0===e.offsetWidth?dt(e,wt,function(){return M(e,t,r)}):M(e,t,r)},set:function(e,n,r){var i=r&&ht(e);return _(e,n,r?F(e,t,r,fe.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,i),i):0)}}}),fe.opacity||(pe.cssHooks.opacity={get:function(e,t){return vt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(yt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=yt.test(o)?o.replace(yt,i):o+" "+i)}}),pe.cssHooks.marginRight=L(fe.reliableMarginRight,function(e,t){if(t)return dt(e,{display:"inline-block"},gt,[e,"marginRight"])}),pe.cssHooks.marginLeft=L(fe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(gt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-dt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Oe[r]+t]=o[r]||o[r-2]||o[0];return i}},ct.test(e)||(pe.cssHooks[e+t].set=_)}),pe.fn.extend({css:function(e,t){return Pe(this,function(e,t,n){var r,i,o={},a=0;if(pe.isArray(t)){for(r=ht(e),i=t.length;a1)},show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Re(this)?pe(this).show():pe(this).hide()})}}),pe.Tween=O,O.prototype={constructor:O,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return e&&e.get?e.get(this):O.propHooks._default.get(this)},run:function(e){var t,n=O.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=O.prototype.init,pe.fx.step={};var Nt,kt,St=/^(?:toggle|show|hide)$/,At=/queueHooks$/;pe.Animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(De);for(var n,r=0,i=e.length;r
    a",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",fe.getSetAttribute="t"!==n.className,fe.style=/top/.test(e.getAttribute("style")),fe.hrefNormalized="/a"===e.getAttribute("href"),fe.checkOn=!!t.value,fe.optSelected=i.selected,fe.enctype=!!re.createElement("form").enctype,r.disabled=!0,fe.optDisabled=!i.disabled,t=re.createElement("input"),t.setAttribute("value",""),fe.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),fe.radioValue="t"===t.value}();var Dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isArray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valHooks[i.type]||pe.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Dt,""):null==n?"":n)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u-1)try{r.selected=n=!0}catch(s){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},fe.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Lt,Ht,qt=pe.expr.attrHandle,_t=/^(?:checked|selected)$/i,Ft=fe.getSetAttribute,Mt=fe.input;pe.fn.extend({attr:function(e,t){return Pe(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(t=t.toLowerCase(),i=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?Ht:Lt)),void 0!==n?null===n?void pe.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!fe.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(De);if(o&&1===e.nodeType)for(;n=o[i++];)r=pe.propFix[n]||n,pe.expr.match.bool.test(n)?Mt&&Ft||!_t.test(n)?e[r]=!1:e[pe.camelCase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeAttribute(Ft?n:r)}}),Ht={set:function(e,t,n){return t===!1?pe.removeAttr(e,n):Mt&&Ft||!_t.test(n)?e.setAttribute(!Ft&&pe.propFix[n]||n,n):e[pe.camelCase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||pe.find.attr;Mt&&Ft||!_t.test(t)?qt[t]=function(e,t,r){var i,o;return r||(o=qt[t],qt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,qt[t]=o),i}:qt[t]=function(e,t,n){if(!n)return e[pe.camelCase("default-"+t)]?t.toLowerCase():null}}),Mt&&Ft||(pe.attrHooks.value={set:function(e,t,n){return pe.nodeName(e,"input")?void(e.defaultValue=t):Lt&&Lt.set(e,t,n)}}),Ft||(Lt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},pe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Lt.set},pe.attrHooks.contenteditable={set:function(e,t,n){Lt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),fe.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ot=/^(?:input|select|textarea|button|object)$/i,Rt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Pe(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pe.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,i=pe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Rt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),fe.hrefNormalized||pe.each(["href","src"],function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),fe.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),fe.enctype||(pe.propFix.enctype="encoding");var Pt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(n){pe(this).toggleClass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(De)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&pe._data(this,"__className__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(Pt," ").indexOf(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Bt=e.location,Wt=pe.now(),It=/\?/,$t=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=pe.trim(t+"");return i&&!pe.trim(i.replace($t,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():pe.error("Invalid JSON: "+t)},pe.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new e.DOMParser,n=r.parseFromString(t,"text/xml")):(n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var zt=/#.*$/,Xt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Kt={},Qt={},Zt="*/".concat("*"),en=Bt.href,tn=Gt.exec(en.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:en,type:"GET",isLocal:Vt.test(tn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,pe.ajaxSettings),t):V(pe.ajaxSettings,e)},ajaxPrefilter:X(Kt),ajaxTransport:X(Qt),ajax:function(t,n){function r(t,n,r,i){var o,f,v,x,w,C=n;2!==b&&(b=2,u&&e.clearTimeout(u),c=void 0,s=i||"",T.readyState=t>0?4:0,o=t>=200&&t<300||304===t,r&&(x=Y(d,T,r)),x=J(d,x,T,o),o?(d.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(pe.lastModified[a]=w),w=T.getResponseHeader("etag"),w&&(pe.etag[a]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=x.state,f=x.data,v=x.error,o=!v)):(v=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",o?g.resolveWith(p,[f,C,T]):g.rejectWith(p,[T,C,v]),T.statusCode(y),y=void 0,l&&h.trigger(o?"ajaxSuccess":"ajaxError",[T,d,o?f:v]),m.fireWith(p,[T,C]),l&&(h.trigger("ajaxComplete",[T,d]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,d=pe.ajaxSetup({},n),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?pe(p):pe.event,g=pe.Deferred(),m=pe.Callbacks("once memory"),y=d.statusCode||{},v={},x={},b=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!f)for(f={};t=Ut.exec(s);)f[t[1].toLowerCase()]=t[2];t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(g.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,d.url=((t||d.url||en)+"").replace(zt,"").replace(Jt,tn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=pe.trim(d.dataType||"*").toLowerCase().match(De)||[""],null==d.crossDomain&&(i=Gt.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===tn[1]&&i[2]===tn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),U(Kt,d,n,T),2===b)return T;l=pe.event&&d.global,l&&0===pe.active++&&pe.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Yt.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(It.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Xt.test(a)?a.replace(Xt,"$1_="+Wt++):a+(It.test(a)?"&":"?")+"_="+Wt++)),d.ifModified&&(pe.lastModified[a]&&T.setRequestHeader("If-Modified-Since",pe.lastModified[a]),pe.etag[a]&&T.setRequestHeader("If-None-Match",pe.etag[a])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Zt+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)T.setRequestHeader(o,d.headers[o]);if(d.beforeSend&&(d.beforeSend.call(p,T,d)===!1||2===b))return T.abort();w="abort";for(o in{success:1,error:1,complete:1})T[o](d[o]);if(c=U(Qt,d,n,T)){if(T.readyState=1,l&&h.trigger("ajaxSend",[T,d]),2===b)return T;d.async&&d.timeout>0&&(u=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{b=1,c.send(v,r)}catch(C){if(!(b<2))throw C;r(-1,C)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isFunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:i,data:n,success:r},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapAll:function(e){if(pe.isFunction(e))return this.each(function(t){pe(this).wrapAll(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(n){pe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return fe.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:K(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)Q(n,e[n],t,i);return r.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodeName)&&!an.test(e)&&(this.checked||!Be.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():re.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||ee()}:Z;var un=0,ln={},cn=pe.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),fe.cors=!!cn&&"withCredentials"in cn,cn=fe.ajax=!!cn,cn&&pe.ajaxTransport(function(t){if(!t.crossDomain||fe.cors){var n;return{send:function(r,i){var o,a=t.xhr(),s=++un;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&a.setRequestHeader(o,r[o]+"");a.send(t.hasContent&&t.data||null),n=function(e,r){var o,u,l;if(n&&(r||4===a.readyState))if(delete ln[s],n=void 0,a.onreadystatechange=pe.noop,r)4!==a.readyState&&a.abort();else{l={},o=a.status,"string"==typeof a.responseText&&(l.text=a.responseText);try{u=a.statusText}catch(c){u=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=ln[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=re.head||pe("head")[0]||re.documentElement;return{send:function(r,i){t=re.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var fn=[],dn=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=fn.pop()||pe.expando+"_"+Wt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(It.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,fn.push(i)),a&&pe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),pe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||re;var r=Te.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=y([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childNodes))};var pn=pe.fn.load;return pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&pe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("
    ").append(pe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&pe.inArray("auto",[o,u])>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,pe.contains(t,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=te(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"borderTopWidth",!0),n.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pe.css(r,"marginTop",!0),left:t.left-n.left-pe.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){ for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||pt})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);pe.fn[e]=function(r){return Pe(this,function(e,r,i){var o=te(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?pe(o).scrollLeft():i,n?i:pe(o).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=L(fe.pixelPosition,function(e,n){if(n)return n=gt(e,t),ft.test(n)?pe(e).position()[t]+"px":n})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return Pe(this,function(t,n,r){var i;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?pe.css(t,n,a):pe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,layui.define(function(e){layui.$=pe,e("jquery",pe)}),pe}); ================================================ FILE: lib/layui/lay/modules/laydate.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;!function(){"use strict";var e=window.layui&&layui.define,t={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readyState){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),getStyle:function(e,t){var n=e.currentStyle?e.currentStyle:window.getComputedStyle(e,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,a,i){if(n.path){var r=document.getElementsByTagName("head")[0],o=document.createElement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getElementById(l)||r.appendChild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: Invalid"):void(1989===parseInt(t.getStyle(document.getElementById(l),"width"))?a():setTimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getPath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期
    建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",D=".laydate-btns-time",T=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new C(e)},C=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.querySelectorAll(e||null));t0)return n[0].getAttribute(e)}():n.each(function(n,a){a.setAttribute(e,t)})},C.prototype.removeAttr=function(e){return this.each(function(t,n){n.removeAttribute(e)})},C.prototype.html=function(e){return this.each(function(t,n){n.innerHTML=e})},C.prototype.val=function(e){return this.each(function(t,n){n.value=e})},C.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendChild(e):n.innerHTML=n.innerHTML+e})},C.prototype.remove=function(e){return this.each(function(t,n){e?n.removeChild(e):n.parentNode.removeChild(n)})},C.prototype.on=function(e,t){return this.each(function(n,a){a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1)})},C.prototype.off=function(e,t){return this.each(function(n,a){a.detachEvent?a.detachEvent("on"+e,t):a.removeEventListener(e,t,!1)})},T.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},T.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},T.prototype.lang=function(){var e=this,t=e.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return n[t.lang]||n.cn},T.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};t.elem=w(t.elem),t.eventElem=w(t.eventElem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new RegExp(n+"|.","g"))||[],e.EXP_IF="",e.EXP_SPLIT="",w.each(e.format,function(t,a){var i=new RegExp(n).test(a)?"\\d{"+function(){return new RegExp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.EXP_IF=e.EXP_IF+i,e.EXP_SPLIT=e.EXP_SPLIT+"("+i+")"}),e.EXP_IF=new RegExp("^"+(t.range?e.EXP_IF+"\\s\\"+t.range+"\\s"+e.EXP_IF:e.EXP_IF)+"$"),e.EXP_SPLIT=new RegExp("^"+e.EXP_SPLIT+"$",""),e.isInput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventElem.attr("lay-key",e.index)),t.mark=w.extend({},t.calendar&&"cn"===t.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new Date).getTime(),s=864e5,l=new Date(r?r0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerHTML="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendChild(t),e.appendChild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerHTML="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendChild(t)}),m.appendChild(u),w.each(new Array(6),function(e){var t=c.insertRow(0);w.each(new Array(7),function(a){if(0===e){var i=w.elem("th");i.innerHTML=n.weeks[a],u.appendChild(i)}t.insertCell(a)})}),c.insertBefore(m,c.children[0]),d.appendChild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendChild(a),r[e].appendChild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push(''+n.timeTips+""),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"Reset"),i.push(''+o+""))}),e.push('"),e.join("")}()),w.each(r,function(e,t){i.appendChild(t)}),t.showBottom&&i.appendChild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemID).replace(/{{theme}}/g,t.theme);"styleSheet"in m?(m.setAttribute("type","text/css"),m.styleSheet.cssText=u):m.innerHTML=u,w(i).addClass("laydate-theme-molv"),i.appendChild(m)}e.remove(T.thisElemDate),a?t.elem.append(i):(document.body.appendChild(i),e.position()),e.checkDate().calendar(),e.changeEvent(),T.thisElemDate=e.elemID,"function"==typeof t.ready&&t.ready(w.extend({},t.dateTime,{month:t.dateTime.month+1}))},T.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemID)));return n.hasClass(c)||t.checkDate(function(){n.remove()}),t},T.prototype.position=function(){var e=this,t=e.config,n=e.bindElem||t.elem[0],a=n.getBoundingClientRect(),i=e.elem.offsetWidth,r=e.elem.offsetHeight,o=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},s=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},T.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));t.elem&&(n.innerHTML=e||"",w(t.elem).find("."+h).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){w(t.elem).find("."+h).remove()},3e3))},T.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},T.prototype.systemDate=function(e){var t=e||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:e?e.getHours():0,minutes:e?e.getMinutes():0,seconds:e?e.getSeconds():0}},T.prototype.checkDate=function(e){var t,a,i=this,r=(new Date,i.config),o=r.dateTime=r.dateTime||i.systemDate(),s=i.bindElem||r.elem[0],l=(i.isInput(s)?"val":"html",i.isInput(s)?s.value:"static"===r.position?"":s.innerHTML),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getEndDate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["startTime","endTime"];t=(t.match(i.EXP_SPLIT)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parseFloat(t[s]);t[s].length必须遵循下述格式:
    "+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"
    已为你重置"),a=!0):l&&l.constructor===Date?r.dateTime=i.systemDate(l):(r.dateTime=i.systemDate(),delete i.startState,delete i.endState,delete i.startDate,delete i.endDate,delete i.startTime,delete i.endTime),c(o),a&&l&&i.setValue(r.range?i.endDate?i.parse():"":i.parse()),e&&e(),i)},T.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html(''+n+""),a},T.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"endDate":"dateTime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newDate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).getTime()}),i=l.nowl.max,e&&e[i?"addClass":"removeClass"](s),i},T.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.dateTime,c=new Date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemHeader[h][2]).find("span");if(l.yeard[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstDate||(r.firstDate=w.extend({},l)),c.setFullYear(l.year,l.month,1),t=c.getDay(),a=n.getEndDate(l.month||12,l.year),i=n.getEndDate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeAttr("class"),e=t&&e=n.firstDate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),M++}),w(u[f?0:1]).attr("lay-ym",M-8+"-"+T[1]).html(b+p+" - "+(M-1+p))}else if("month"===e)w.each(new Array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:T[0],month:e};e+1==T[1]&&w(i).addClass(o),i.innerHTML=r.month[e]+(f?"月":""),d.appendChild(i),T[0]=n.firstDate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",T[0]+"-"+T[1]).html(T[0]+p);else if("time"===e){var E=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["

    "+r.time[e]+"

      "];w.each(new Array(t),function(t){i.push(""+w.digit(t,2)+"")}),a.innerHTML=i.join("")+"
    ",d.appendChild(a)}),E()}if(y&&h.removeChild(y),h.appendChild(d),"year"===e||"month"===e)w(n.elemMain[t]).addClass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasClass(s)){if(0===t)i[e]=r,l&&(n.startDate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.endDate[e]=r;else{var c="year"===e?n.getAsYM(r,T[1]-1,"sub"):n.getAsYM(T[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeClass(o),w(this).addClass(o),"month"===a.type&&"year"===e&&(n.listYM[t][0]=r,l&&(n[["startDate","endDate"][t]].year=r),n.list("month",t))):(n.checkDate("limit").calendar(),n.closeList()),n.setBtnStatus(),a.range||n.done(null,"change"),w(n.footer).find(D).removeClass(s)}});else{var S=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrollTop=30*(n[x][C[e]]-2),t.scrollTop<=0&&a.each(function(e,n){if(!w(this).hasClass(s))return t.scrollTop=30*(e-2),!0})})},H=w(c[2]).find("."+v);k(),S.innerHTML=a.range?[r.startTime,r.endTime][t]:r.timeTips,w(n.elemMain[t]).addClass("laydate-time-show"),H[0]&&H.remove(),c[2].appendChild(S),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerHTML;w(this).hasClass(s)||(a.range?n[x][C[e]]=r:i[C[e]]=r,w(t).find("."+o).removeClass(o),w(this).addClass(o),E(),k(),(n.endDate||"time"===a.type)&&n.done(null,"change"),n.setBtnStatus())})})}return n},T.prototype.listYM=[],T.prototype.closeList=function(){var e=this;e.config;w.each(e.elemCont,function(t,n){w(this).find("."+m).remove(),w(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},T.prototype.setBtnStatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startDate,n=n||i.endDate,a=i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit(null,t)||i.limit(null,n)?o.addClass(s):o[a?"addClass":"removeClass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},T.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.endDate,n.endTime):a.range?w.extend({},n.startDate,n.startTime):a.dateTime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/MM|M/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/HH|H/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},T.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},T.prototype.setValue=function(e){var t=this,n=t.config,a=t.bindElem||n.elem[0],i=t.isInput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},T.prototype.stampRange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.endDate&&w(n.footer).find(g).addClass(s),n.endDate)return e=n.newDate({year:n.startDate.year,month:n.startDate.month,date:n.startDate.date}).getTime(),t=n.newDate({year:n.endDate.year,month:n.endDate.month,date:n.endDate.date}).getTime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newDate({year:r[0],month:r[1]-1,date:r[2]}).getTime();w(i).removeClass(u+" "+o),s!==e&&s!==t||w(i).addClass(w(i).hasClass(y)||w(i).hasClass(f)?u:o),s>e&&s','
    '+f+"
    ",'
    ','',"
    ","
    "].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e([""].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"

    ")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"

    "),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"

    "),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['

      ','
    • ','','
      ','',"
      ","
    • ",'
    • ','','
      ','",'","
      ","
    • ",'
    • ','','',"
    • ","
    "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
  • '+e+'
  • ')}),'
      '+t.join("")+"
    "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['
      ','
    • ','','
      ','","
      ","
    • ",'
    • ','','
      ','',"
      ","
    • ",'
    • ','','',"
    • ","
    "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new c;t(n,w)}); ================================================ FILE: lib/layui/lay/modules/layer.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(o.getStyle(document.getElementById(f),"width"))?i():setTimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
    '+(f?r.title[0]:r.title)+"
    ":"";return r.zIndex=s,t([r.shade?'
    ':"",'
    '+(e&&2!=r.type?"":u)+'
    '+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
    '+function(){var e=c?'':"";return r.closeBtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
    '+e+"
    "}():"")+(r.resize?'':"")+"
    "],u,i('
    ')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
      '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
    • '+(t[0].content||"no content")+"
    • ";i'+(t[i].content||"no content")+"";return a}()+"
    ",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||
    '+(u.length>1?'':"")+'
    '+(u[d].alt||"")+""+s.imgIndex+"/"+u.length+"
    ",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
    是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window); ================================================ FILE: lib/layui/lay/modules/laypage.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
    ',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
    "].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); ================================================ FILE: lib/layui/lay/modules/laytpl.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); ================================================ FILE: lib/layui/lay/modules/mobile.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(function(i){i("layui.mobile",layui.v)});layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});layui.define(function(e){"use strict";var t=(window,document),i="querySelectorAll",n="getElementsByClassName",a=function(e){return t[i](e)},s={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:"scale"},l={extend:function(e){var t=JSON.parse(JSON.stringify(s));for(var i in e)t[i]=e[i];return t},timer:{},end:{}};l.touch=function(e,t){e.addEventListener("click",function(e){t.call(this,e)},!1)};var o=0,r=["layui-m-layer"],d=function(e){var t=this;t.config=l.extend(e),t.view()};d.prototype.view=function(){var e=this,i=e.config,s=t.createElement("div");e.id=s.id=r[0]+o,s.setAttribute("class",r[0]+" "+r[0]+(i.type||0)),s.setAttribute("index",o);var l=function(){var e="object"==typeof i.title;return i.title?'

    '+(e?i.title[0]:i.title)+"

    ":""}(),d=function(){"string"==typeof i.btn&&(i.btn=[i.btn]);var e,t=(i.btn||[]).length;return 0!==t&&i.btn?(e=''+i.btn[0]+"",2===t&&(e=''+i.btn[1]+""+e),'
    '+e+"
    "):""}();if(i.fixed||(i.top=i.hasOwnProperty("top")?i.top:100,i.style=i.style||"",i.style+=" top:"+(t.body.scrollTop+i.top)+"px"),2===i.type&&(i.content='

    '+(i.content||"")+"

    "),i.skin&&(i.anim="up"),"msg"===i.skin&&(i.shade=!1),s.innerHTML=(i.shade?"
    ':"")+'
    "+l+'
    '+i.content+"
    "+d+"
    ",!i.type||2===i.type){var y=t[n](r[0]+i.type),u=y.length;u>=1&&c.close(y[0].getAttribute("index"))}document.body.appendChild(s);var m=e.elem=a("#"+e.id)[0];i.success&&i.success(m),e.index=o++,e.action(i,m)},d.prototype.action=function(e,t){var i=this;e.time&&(l.timer[i.index]=setTimeout(function(){c.close(i.index)},1e3*e.time));var a=function(){var t=this.getAttribute("type");0==t?(e.no&&e.no(),c.close(i.index)):e.yes?e.yes(i.index):c.close(i.index)};if(e.btn)for(var s=t[n]("layui-m-layerbtn")[0].children,o=s.length,r=0;r0&&e-1 in t)}function s(t){return A.call(t,function(t){return null!=t})}function u(t){return t.length>0?T.fn.concat.apply([],t):t}function c(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in F?F[t]:F[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function f(t,e){return"number"!=typeof e||k[c(t)]?e:e+"px"}function h(t){var e,n;return $[t]||(e=L.createElement(t),L.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),$[t]=n),$[t]}function p(t){return"children"in t?D.call(t.children):T.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function d(t,e){var n,r=t?t.length:0;for(n=0;n]*>/,R=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Z=/^(?:body|html)$/i,q=/([A-Z])/g,H=["val","css","html","text","data","width","height","offset"],I=["after","prepend","before","append"],V=L.createElement("table"),_=L.createElement("tr"),B={tr:L.createElement("tbody"),tbody:V,thead:V,tfoot:V,td:_,th:_,"*":L.createElement("div")},U=/complete|loaded|interactive/,X=/^[\w-]*$/,J={},W=J.toString,Y={},G=L.createElement("div"),K={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(t){return t instanceof Array};return Y.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=G).appendChild(t),r=~Y.qsa(i,e).indexOf(t),o&&G.removeChild(t),r},C=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},N=function(t){return A.call(t,function(e,n){return t.indexOf(e)==n})},Y.fragment=function(t,e,n){var r,i,a;return R.test(t)&&(r=T(L.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(z,"<$1>")),e===E&&(e=M.test(t)&&RegExp.$1),e in B||(e="*"),a=B[e],a.innerHTML=""+t,r=T.each(D.call(a.childNodes),function(){a.removeChild(this)})),o(n)&&(i=T(r),T.each(n,function(t,e){H.indexOf(t)>-1?i[t](e):i.attr(t,e)})),r},Y.Z=function(t,e){return new d(t,e)},Y.isZ=function(t){return t instanceof Y.Z},Y.init=function(t,n){var r;if(!t)return Y.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&M.test(t))r=Y.fragment(t,RegExp.$1,n),t=null;else{if(n!==E)return T(n).find(t);r=Y.qsa(L,t)}else{if(e(t))return T(L).ready(t);if(Y.isZ(t))return t;if(Q(t))r=s(t);else if(i(t))r=[t],t=null;else if(M.test(t))r=Y.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==E)return T(n).find(t);r=Y.qsa(L,t)}}return Y.Z(r,t)},T=function(t,e){return Y.init(t,e)},T.extend=function(t){var e,n=D.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){m(t,n,e)}),t},Y.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,a=X.test(o);return t.getElementById&&a&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:D.call(a&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},T.contains=L.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},T.type=t,T.isFunction=e,T.isWindow=n,T.isArray=Q,T.isPlainObject=o,T.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},T.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},T.inArray=function(t,e,n){return O.indexOf.call(e,t,n)},T.camelCase=C,T.trim=function(t){return null==t?"":String.prototype.trim.call(t)},T.uuid=0,T.support={},T.expr={},T.noop=function(){},T.map=function(t,e){var n,r,i,o=[];if(a(t))for(r=0;r=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return O.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return e(t)?this.not(this.not(t)):T(A.call(this,function(e){return Y.matches(e,t)}))},add:function(t,e){return T(N(this.concat(T(t,e))))},is:function(t){return this.length>0&&Y.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||n.push(this)});else{var r="string"==typeof t?this.filter(t):a(t)&&e(t.item)?D.call(t):T(t);this.forEach(function(t){r.indexOf(t)<0&&n.push(t)})}return T(n)},has:function(t){return this.filter(function(){return i(t)?T.contains(this,t):T(this).find(t).size()})},eq:function(t){return t===-1?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!i(t)?t:T(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:T(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?T(t).filter(function(){var t=this;return O.some.call(n,function(e){return T.contains(e,t)})}):1==this.length?T(Y.qsa(this[0],t)):this.map(function(){return Y.qsa(this,t)}):T()},closest:function(t,e){var n=[],i="object"==typeof t&&T(t);return this.each(function(o,a){for(;a&&!(i?i.indexOf(a)>=0:Y.matches(a,t));)a=a!==e&&!r(a)&&a.parentNode;a&&n.indexOf(a)<0&&n.push(a)}),T(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=T.map(n,function(t){if((t=t.parentNode)&&!r(t)&&e.indexOf(t)<0)return e.push(t),t});return v(e,t)},parent:function(t){return v(N(this.pluck("parentNode")),t)},children:function(t){return v(this.map(function(){return p(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||D.call(this.childNodes)})},siblings:function(t){return v(this.map(function(t,e){return A.call(p(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return T.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=e(t);if(this[0]&&!n)var r=T(t).get(0),i=r.parentNode||this.length>1;return this.each(function(e){T(this).wrapAll(n?t.call(this,e):i?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){T(this[0]).before(t=T(t));for(var e;(e=t.children()).length;)t=e.first();T(t).append(this)}return this},wrapInner:function(t){var n=e(t);return this.each(function(e){var r=T(this),i=r.contents(),o=n?t.call(this,e):t;i.length?i.wrapAll(o):r.append(o)})},unwrap:function(){return this.parent().each(function(){T(this).replaceWith(T(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=T(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return T(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return T(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;T(this).empty().append(g(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=g(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(i(t))for(j in t)y(this,j,t[j]);else y(this,t,g(this,e,n,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(t))?n:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){y(this,t)},this)})},prop:function(t,e){return t=K[t]||t,1 in arguments?this.each(function(n){this[t]=g(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=K[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var n="data-"+t.replace(q,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?b(r):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=g(this,t,e,this.value)})):this[0]&&(this[0].multiple?T(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var n=T(this),r=g(this,t,e,n.offset()),i=n.offsetParent().offset(),o={top:r.top-i.top,left:r.left-i.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(L.documentElement!==this[0]&&!T.contains(L.documentElement,this[0]))return{top:0,left:0};var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,n){if(arguments.length<2){var r=this[0];if("string"==typeof e){if(!r)return;return r.style[C(e)]||getComputedStyle(r,"").getPropertyValue(e)}if(Q(e)){if(!r)return;var i={},o=getComputedStyle(r,"");return T.each(e,function(t,e){i[e]=r.style[C(e)]||o.getPropertyValue(e)}),i}}var a="";if("string"==t(e))n||0===n?a=c(e)+":"+f(e,n):this.each(function(){this.style.removeProperty(c(e))});else for(j in e)e[j]||0===e[j]?a+=c(j)+":"+f(j,e[j])+";":this.each(function(){this.style.removeProperty(c(j))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(T(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&O.some.call(this,function(t){return this.test(x(t))},l(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){S=[];var n=x(this),r=g(this,t,e,n);r.split(/\s+/g).forEach(function(t){T(this).hasClass(t)||S.push(t)},this),S.length&&x(this,n+(n?" ":"")+S.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return x(this,"");S=x(this),g(this,t,e,S).split(/\s+/g).forEach(function(t){S=S.replace(l(t)," ")}),x(this,S.trim())}})},toggleClass:function(t,e){return t?this.each(function(n){var r=T(this),i=g(this,t,n,x(this));i.split(/\s+/g).forEach(function(t){(e===E?!r.hasClass(t):e)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=Z.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(T(t).css("margin-top"))||0,n.left-=parseFloat(T(t).css("margin-left"))||0,r.top+=parseFloat(T(e[0]).css("border-top-width"))||0,r.left+=parseFloat(T(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||L.body;t&&!Z.test(t.nodeName)&&"static"==T(t).css("position");)t=t.offsetParent;return t})}},T.fn.detach=T.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});T.fn[t]=function(i){var o,a=this[0];return i===E?n(a)?a["inner"+e]:r(a)?a.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){a=T(this),a.css(t,g(this,i,e,a[t]()))})}}),I.forEach(function(e,n){var r=n%2;T.fn[e]=function(){var e,i,o=T.map(arguments,function(n){var r=[];return e=t(n),"array"==e?(n.forEach(function(t){return t.nodeType!==E?r.push(t):T.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(Y.fragment(t)))}),r):"object"==e||null==n?n:Y.fragment(n)}),a=this.length>1;return o.length<1?this:this.each(function(t,e){i=r?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var s=T.contains(L.documentElement,i);o.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!i)return T(t).remove();i.insertBefore(t,e),s&&w(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}})})})},T.fn[r?e+"To":"insert"+(n?"Before":"After")]=function(t){return T(t)[e](this),this}}),Y.Z.prototype=d.prototype=T.fn,Y.uniq=N,Y.deserializeValue=b,T.zepto=Y,T}();!function(t){function e(t){return t._zid||(t._zid=h++)}function n(t,n,o,a){if(n=r(n),n.ns)var s=i(n.ns);return(v[e(t)]||[]).filter(function(t){return t&&(!n.e||t.e==n.e)&&(!n.ns||s.test(t.ns))&&(!o||e(t.fn)===e(o))&&(!a||t.sel==a)})}function r(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function i(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&!y&&t.e in x||!!e}function a(t){return b[t]||y&&x[t]||t}function s(n,i,s,u,l,h,p){var d=e(n),m=v[d]||(v[d]=[]);i.split(/\s/).forEach(function(e){if("ready"==e)return t(document).ready(s);var i=r(e);i.fn=s,i.sel=l,i.e in b&&(s=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return i.fn.apply(this,arguments)}),i.del=h;var d=h||s;i.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=u;var e=d.apply(n,t._args==f?[t]:[t].concat(t._args));return e===!1&&(t.preventDefault(),t.stopPropagation()),e}},i.i=m.length,m.push(i),"addEventListener"in n&&n.addEventListener(a(i.e),i.proxy,o(i,p))})}function u(t,r,i,s,u){var c=e(t);(r||"").split(/\s/).forEach(function(e){n(t,e,i,s).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(a(e.e),e.proxy,o(e,u))})})}function c(e,n){return!n&&e.isDefaultPrevented||(n||(n=e),t.each(T,function(t,r){var i=n[t];e[t]=function(){return this[r]=w,i&&i.apply(n,arguments)},e[r]=E}),e.timeStamp||(e.timeStamp=Date.now()),(n.defaultPrevented!==f?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=w)),e}function l(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===f||(n[e]=t[e]);return c(n,t)}var f,h=1,p=Array.prototype.slice,d=t.isFunction,m=function(t){return"string"==typeof t},v={},g={},y="onfocusin"in window,x={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};g.click=g.mousedown=g.mouseup=g.mousemove="MouseEvents",t.event={add:s,remove:u},t.proxy=function(n,r){var i=2 in arguments&&p.call(arguments,2);if(d(n)){var o=function(){return n.apply(r,i?i.concat(p.call(arguments)):arguments)};return o._zid=e(n),o}if(m(r))return i?(i.unshift(n[r],n),t.proxy.apply(null,i)):t.proxy(n[r],n);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var w=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,T={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,r,i,o){var a,c,h=this;return e&&!m(e)?(t.each(e,function(t,e){h.on(t,n,r,e,o)}),h):(m(n)||d(i)||i===!1||(i=r,r=n,n=f),i!==f&&r!==!1||(i=r,r=f),i===!1&&(i=E),h.each(function(f,h){o&&(a=function(t){return u(h,t.type,i),i.apply(this,arguments)}),n&&(c=function(e){var r,o=t(e.target).closest(n,h).get(0);if(o&&o!==h)return r=t.extend(l(e),{currentTarget:o,liveFired:h}),(a||i).apply(o,[r].concat(p.call(arguments,1)))}),s(h,e,i,r,n,c||a)}))},t.fn.off=function(e,n,r){var i=this;return e&&!m(e)?(t.each(e,function(t,e){i.off(t,n,e)}),i):(m(n)||d(r)||r===!1||(r=n,n=f),r===!1&&(r=E),i.each(function(){u(this,e,r,n)}))},t.fn.trigger=function(e,n){return e=m(e)||t.isPlainObject(e)?t.Event(e):c(e),e._args=n,this.each(function(){e.type in x&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,r){var i,o;return this.each(function(a,s){i=l(m(e)?t.Event(e):e),i._args=r,i.target=s,t.each(n(s,e.type||e),function(t,e){if(o=e.proxy(i),i.isImmediatePropagationStopped())return!1})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),t.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(g[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),c(n)}}(e),function(t){function e(e,n,r){var i=t.Event(n);return t(e).trigger(i,r),!i.isDefaultPrevented()}function n(t,n,r,i){if(t.global)return e(n||x,r,i)}function r(e){e.global&&0===t.active++&&n(e,null,"ajaxStart")}function i(e){e.global&&!--t.active&&n(e,null,"ajaxStop")}function o(t,e){var r=e.context;return e.beforeSend.call(r,t,e)!==!1&&n(e,r,"ajaxBeforeSend",[t,e])!==!1&&void n(e,r,"ajaxSend",[t,e])}function a(t,e,r,i){var o=r.context,a="success";r.success.call(o,t,a,e),i&&i.resolveWith(o,[t,a,e]),n(r,o,"ajaxSuccess",[e,r,t]),u(a,e,r)}function s(t,e,r,i,o){var a=i.context;i.error.call(a,r,e,t),o&&o.rejectWith(a,[r,e,t]),n(i,a,"ajaxError",[r,i,t||e]),u(e,r,i)}function u(t,e,r){var o=r.context;r.complete.call(o,e,t),n(r,o,"ajaxComplete",[e,r]),i(r)}function c(t,e,n){if(n.dataFilter==l)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function l(){}function f(t){return t&&(t=t.split(";",2)[0]),t&&(t==T?"html":t==j?"json":w.test(t)?"script":E.test(t)&&"xml")||"text"}function h(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function p(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()&&"jsonp"!=e.dataType||(e.url=h(e.url,e.data),e.data=void 0)}function d(e,n,r,i){return t.isFunction(n)&&(i=r,r=n,n=void 0),t.isFunction(r)||(i=r,r=void 0),{url:e,data:n,success:r,dataType:i}}function m(e,n,r,i){var o,a=t.isArray(n),s=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u),i&&(n=r?i:i+"["+(s||"object"==o||"array"==o?n:"")+"]"),!i&&a?e.add(u.name,u.value):"array"==o||!r&&"object"==o?m(e,u,r,n):e.add(n,u)})}var v,g,y=+new Date,x=window.document,b=/)<[^<]*)*<\/script>/gi,w=/^(?:text|application)\/javascript/i,E=/^(?:text|application)\/xml/i,j="application/json",T="text/html",S=/^\s*$/,C=x.createElement("a");C.href=window.location.href,t.active=0,t.ajaxJSONP=function(e,n){if(!("type"in e))return t.ajax(e);var r,i,u=e.jsonpCallback,c=(t.isFunction(u)?u():u)||"Zepto"+y++,l=x.createElement("script"),f=window[c],h=function(e){t(l).triggerHandler("error",e||"abort")},p={abort:h};return n&&n.promise(p),t(l).on("load error",function(o,u){clearTimeout(i),t(l).off().remove(),"error"!=o.type&&r?a(r[0],p,e,n):s(null,u||"error",p,e,n),window[c]=f,r&&t.isFunction(f)&&f(r[0]),f=r=void 0}),o(p,e)===!1?(h("abort"),p):(window[c]=function(){r=arguments},l.src=e.url.replace(/\?(.+)=\?/,"?$1="+c),x.head.appendChild(l),e.timeout>0&&(i=setTimeout(function(){h("timeout")},e.timeout)),p)},t.ajaxSettings={type:"GET",beforeSend:l,success:l,error:l,complete:l,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:j,xml:"application/xml, text/xml",html:T,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:l},t.ajax=function(e){var n,i,u=t.extend({},e||{}),d=t.Deferred&&t.Deferred();for(v in t.ajaxSettings)void 0===u[v]&&(u[v]=t.ajaxSettings[v]);r(u),u.crossDomain||(n=x.createElement("a"),n.href=u.url,n.href=n.href,u.crossDomain=C.protocol+"//"+C.host!=n.protocol+"//"+n.host),u.url||(u.url=window.location.toString()),(i=u.url.indexOf("#"))>-1&&(u.url=u.url.slice(0,i)),p(u);var m=u.dataType,y=/\?.+=\?/.test(u.url);if(y&&(m="jsonp"),u.cache!==!1&&(e&&e.cache===!0||"script"!=m&&"jsonp"!=m)||(u.url=h(u.url,"_="+Date.now())),"jsonp"==m)return y||(u.url=h(u.url,u.jsonp?u.jsonp+"=?":u.jsonp===!1?"":"callback=?")),t.ajaxJSONP(u,d);var b,w=u.accepts[m],E={},j=function(t,e){E[t.toLowerCase()]=[t,e]},T=/^([\w-]+:)\/\//.test(u.url)?RegExp.$1:window.location.protocol,N=u.xhr(),O=N.setRequestHeader;if(d&&d.promise(N),u.crossDomain||j("X-Requested-With","XMLHttpRequest"),j("Accept",w||"*/*"),(w=u.mimeType||w)&&(w.indexOf(",")>-1&&(w=w.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(w)),(u.contentType||u.contentType!==!1&&u.data&&"GET"!=u.type.toUpperCase())&&j("Content-Type",u.contentType||"application/x-www-form-urlencoded"),u.headers)for(g in u.headers)j(g,u.headers[g]);if(N.setRequestHeader=j,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=l,clearTimeout(b);var e,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==T){if(m=m||f(u.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)e=N.response;else{e=N.responseText;try{e=c(e,m,u),"script"==m?(0,eval)(e):"xml"==m?e=N.responseXML:"json"==m&&(e=S.test(e)?null:t.parseJSON(e))}catch(r){n=r}if(n)return s(n,"parsererror",N,u,d)}a(e,N,u,d)}else s(N.statusText||null,N.status?"error":"abort",N,u,d)}},o(N,u)===!1)return N.abort(),s(null,"abort",N,u,d),N;var P=!("async"in u)||u.async;if(N.open(u.type,u.url,P,u.username,u.password),u.xhrFields)for(g in u.xhrFields)N[g]=u.xhrFields[g];for(g in E)O.apply(N,E[g]);return u.timeout>0&&(b=setTimeout(function(){N.onreadystatechange=l,N.abort(),s(null,"timeout",N,u,d)},u.timeout)),N.send(u.data?u.data:null),N},t.get=function(){return t.ajax(d.apply(null,arguments))},t.post=function(){var e=d.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=d.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,r){if(!this.length)return this;var i,o=this,a=e.split(/\s/),s=d(e,n,r),u=s.success;return a.length>1&&(s.url=a[0],i=a[1]),s.success=function(e){o.html(i?t("
    ").html(e.replace(b,"")).find(i):e),u&&u.apply(o,arguments)},t.ajax(s),this};var N=encodeURIComponent;t.param=function(e,n){var r=[];return r.add=function(e,n){t.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(e)+"="+N(n))},m(r,e,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],i=function(t){return t.forEach?t.forEach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(t){var e=getComputedStyle;window.getComputedStyle=function(t,n){try{return e(t,n)}catch(r){return null}}}}(),t("zepto",e)});layui.define(["layer-mobile","zepto"],function(e){"use strict";var t=layui.zepto,a=layui["layer-mobile"],i=(layui.device(),"layui-upload-enter"),n="layui-upload-iframe",r={icon:2,shift:6},o={file:"文件",video:"视频",audio:"音频"};a.msg=function(e){return a.open({content:e||"",skin:"msg",time:2})};var s=function(e){this.options=e};s.prototype.init=function(){var e=this,a=e.options,r=t("body"),s=t(a.elem||".layui-upload-file"),u=t('');return t("#"+n)[0]||r.append(u),s.each(function(r,s){s=t(s);var u='
    ',l=s.attr("lay-type")||a.type;a.unwrap||(u='
    '+u+''+(s.attr("lay-title")||a.title||"上传"+(o[l]||"图片"))+"
    "),u=t(u),a.unwrap||u.on("dragover",function(e){e.preventDefault(),t(this).addClass(i)}).on("dragleave",function(){t(this).removeClass(i)}).on("drop",function(){t(this).removeClass(i)}),s.parent("form").attr("target")===n&&(a.unwrap?s.unwrap():(s.parent().next().remove(),s.unwrap().unwrap())),s.wrap(u),s.off("change").on("change",function(){e.action(this,l)})})},s.prototype.action=function(e,i){var o=this,s=o.options,u=e.value,l=t(e),p=l.attr("lay-ext")||s.ext||"";if(u){switch(i){case"file":if(p&&!RegExp("\\w\\.("+p+")$","i").test(escape(u)))return a.msg("不支持该文件格式",r),e.value="";break;case"video":if(!RegExp("\\w\\.("+(p||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(u)))return a.msg("不支持该视频格式",r),e.value="";break;case"audio":if(!RegExp("\\w\\.("+(p||"mp3|wav|mid")+")$","i").test(escape(u)))return a.msg("不支持该音频格式",r),e.value="";break;default:if(!RegExp("\\w\\.("+(p||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(u)))return a.msg("不支持该图片格式",r),e.value=""}s.before&&s.before(e),l.parent().submit();var c=t("#"+n),f=setInterval(function(){var t;try{t=c.contents().find("body").text()}catch(i){a.msg("上传接口存在跨域",r),clearInterval(f)}if(t){clearInterval(f),c.contents().find("body").html("");try{t=JSON.parse(t)}catch(i){return t={},a.msg("请对上传接口返回JSON字符",r)}"function"==typeof s.success&&s.success(t,e)}},30);e.value=""}},e("upload-mobile",function(e){var t=new s(e=e||{});t.init()})});layui.define(function(i){i("layim-mobile",layui.v)});layui["layui.mobile"]||layui.config({base:layui.cache.dir+"lay/modules/mobile/"}).extend({"layer-mobile":"layer-mobile",zepto:"zepto","upload-mobile":"upload-mobile","layim-mobile":"layim-mobile"}),layui.define(["layer-mobile","zepto","layim-mobile"],function(l){l("mobile",{layer:layui["layer-mobile"],layim:layui["layim-mobile"]})}); ================================================ FILE: lib/layui/lay/modules/rate.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='
      ",u=1;u<=i.length;u++){var r='
    • ";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'
    • ":n+=r}n+="
    "+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); ================================================ FILE: lib/layui/lay/modules/slider.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setValue:function(i,t){return e.slide("set",i,t||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",m="layui-slider-input-btn",p="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.maxt.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),m=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=Math.min.apply(null,t.value)),t.valuet.max&&(t.value=t.max);var m=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var p=t.disabled?"#c2c2c2":t.theme,f='
    '+(t.tips?'
    ':"")+'
    '+(t.range?'
    ':"")+"
    ",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(f),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x
    ')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('
    ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.setTips?l.setTips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['
    f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(p),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(p),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.hover(function(){var e=i(this);e.children("."+m).fadeIn("fast")},function(){var e=i(this);e.children("."+m).fadeOut("fast")}),y.children("."+m).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-l.stepl.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)}); ================================================ FILE: lib/layui/lay/modules/table.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,y,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.that[i]=e,c.config[i]=t),{config:t,reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},resize:function(){e.resize.call(e)}}},s=function(e){var t=c.config[e];return t||o.error("The ID option was not found in the table instance"),t||null},u=function(e,a,l,n){var o=e.templet?function(){return"function"==typeof e.templet?e.templet(l):i(t(e.templet).html()||String(a)).render(l)}():a;return n?t("
    "+o+"
    ").text():o},y="table",h=".layui-table",f="layui-hide",p="layui-none",v="layui-table-view",m=".layui-table-tool",g=".layui-table-box",b=".layui-table-init",x=".layui-table-header",k=".layui-table-body",C=".layui-table-main",w=".layui-table-fixed",T=".layui-table-fixed-l",A=".layui-table-fixed-r",L=".layui-table-total",N=".layui-table-page",S=".layui-table-sort",W="layui-table-edit",_="layui-table-hover",E=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colGroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
    ','
    ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
    ","
    "].join("")},z=['',"","
    "].join(""),H=['
    ',"{{# if(d.data.toolbar){ }}",'
    ','
    ','
    ',"
    ","{{# } }}",'
    ',"{{# if(d.data.loading){ }}",'
    ','',"
    ","{{# } }}","{{# var left, right; }}",'
    ',E(),"
    ",'
    ',z,"
    ","{{# if(left){ }}",'
    ','
    ',E({fixed:!0}),"
    ",'
    ',z,"
    ","
    ","{{# }; }}","{{# if(right){ }}",'
    ','
    ',E({fixed:"right"}),'
    ',"
    ",'
    ',z,"
    ","
    ","{{# }; }}","
    ","{{# if(d.data.totalRow){ }}",'
    ','','',"
    ","
    ","{{# } }}","{{# if(d.data.page){ }}",'
    ','
    ',"
    ","{{# } }}","","
    "].join(""),R=t(window),F=t(document),I=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};I.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"无数据"}},I.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||e.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=R.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+v),o=e.elem=t(i(H).render({VIEW_CLASS:v,data:a,index:e.index}));if(a.index=e.index,e.key=a.id||a.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(m),e.layBox=o.find(g),e.layHeader=o.find(x),e.layMain=o.find(C),e.layBody=o.find(k),e.layFixed=o.find(w),e.layFixLeft=o.find(T),e.layFixRight=o.find(A),e.layTotal=o.find(L),e.layPage=o.find(N),e.renderToolbar(),e.fullSize(),a.cols.length>1){var r=e.layFixed.find(x).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},I.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},I.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colGroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.HAS_PARENT||o>1&&o==n.colspan||(i.HAS_PARENT=!0,i.parentKey=e+"-"+l,o+=parseInt(i.colspan>1?i.colspan:1))}),n.colGroup=!0}t.initOpts(n)})})},I.prototype.renderToolbar=function(){var e=this,a=e.config,l=['
    ','
    ','
    '].join(""),n=e.layTool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if("string"==typeof a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},d=[];"object"==typeof a.defaultToolbar&&layui.each(a.defaultToolbar,function(e,t){var i=r[t];i&&d.push('
    ')}),e.layTool.find(".layui-table-tool-self").html(d.join(""))},I.prototype.setParentCol=function(e,t){var i=this,a=i.config,l=i.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseInt(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addClass":"removeClass"](f),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setParentCol(e,d)}},I.prototype.setColsPatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setParentCol(i.hide,i.parentKey)})})},I.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minWidth||t.cellMinWidth;return d?void(d.colGroup||d.hide||(e?l&&ln&&a&&(l=(o-n)/a)};r(),r(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth;a.colGroup||a.hide||(0===a.width?e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var d=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+d+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},I.prototype.resize=function(){var e=this;e.fullSize(),e.setColsWidth(),e.scrollPatch()},I.prototype.reload=function(e){var i=this;e=e||{},delete i.haveInit,e.data&&e.data.constructor===Array&&delete i.config.data,i.config=t.extend(!0,{},i.config,e),i.render()},I.prototype.errorView=function(e){var i=this,a=i.layMain.find("."+p),l=t('
    '+(e||"Error")+"
    ");a[0]&&(i.layNone.remove(),a.remove()),i.layFixed.addClass(f),i.layMain.find("tbody").html(""),i.layMain.append(i.layNone=l),d.cache[i.key]=[]},I.prototype.page=1,I.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var r={};r[l.pageName]=e,r[l.limitName]=a.limit;var d=t.extend(r,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(d=JSON.stringify(d)),i.loading(),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:d,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.errorView(t[n.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+n.statusName+'": '+n.statusCode)):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.errorView("数据接口请求异常:"+t),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var c={},s=e*a.limit-a.limit;c[n.dataName]=a.data.concat().splice(s,a.limit),c[n.countName]=a.data.length,i.renderData(c,e,c[n.countName]),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(c,e,c[n.countName])}},I.prototype.eachCols=function(e){var t=this;return d.eachCols(null,e,t.config.cols),t},I.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,y=e[s.response.dataName]||[],h=[],v=[],m=[],g=function(){var e;return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(y,function(a,l){var o=[],y=[],p=[],g=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexName]=a),c.eachCols(function(n,r){var c=r.field||n,h=s.index+"-"+r.key,v=l[c];if(void 0!==v&&null!==v||(v=""),!r.colGroup){var m=['','
    '+function(){var n=t.extend(!0,{LAY_INDEX:g},l),o=d.config.checkName;switch(r.type){case"checkbox":return'";case"radio":return n[o]&&(e=a),'';case"numbers":return g}return r.toolbar?i(t(r.toolbar).html()||"").render(n):u(r,v,n)}(),"
    "].join("");o.push(m),r.fixed&&"right"!==r.fixed&&y.push(m),"right"===r.fixed&&p.push(m)}}),h.push(''+o.join("")+""),v.push(''+y.join("")+""),m.push(''+p.join("")+""))}),c.layBody.scrollTop(0),c.layMain.find("."+p).remove(),c.layMain.find("tbody").html(h.join("")),c.layFixLeft.find("tbody").html(v.join("")),c.layFixRight.find("tbody").html(m.join("")),c.renderForm(),"number"==typeof e&&c.setThisRowChecked(e),c.syncCheckAll(),c.haveInit?c.scrollPatch():setTimeout(function(){c.scrollPatch()},50),c.haveInit=!0,l.close(c.tipsIndex),s.HAS_SET_COLS_PATCH||c.setColsPatch(),void(s.HAS_SET_COLS_PATCH=!0))};return d.cache[c.key]=y,c.layPage[0==o||0===y.length&&1==n?"addClass":"removeClass"](f),r?g():0===y.length?(c.renderForm(),c.errorView(s.text.none)):(c.layFixed.removeClass(f),g(),c.renderTotal(y),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},I.prototype.renderTotal=function(e){var t=this,i=t.config,a={};if(i.totalRow){layui.each(e,function(e,i){0!==i.length&&t.eachCols(function(e,t){var l=t.field||e,n=i[l];t.totalRow&&(a[l]=(a[l]||0)+(parseFloat(n)||0))})});var l=[];t.eachCols(function(e,t){var n=t.field||e,o=['','
    '+function(){var e=t.totalRowText||"";return t.totalRow?parseFloat(a[n]).toFixed(2)||e:e}(),"
    "].join("");l.push(o)}),t.layTotal.find("tbody").html(""+l.join("")+"")}},I.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},I.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},I.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},I.prototype.sort=function(e,i,a,l){var n,r,c=this,s={},u=c.config,h=u.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var v=c.layHeader.find("th .laytable-cell-"+p).find(S);c.layHeader.find("th").find(S).removeAttr("lay-sort"),v.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},u.autoSort&&("asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexName),delete c.sortKey)),s[u.response.dataName]=r||f,c.renderData(s,c.page,c.count,!0),l&&layui.event.call(e,y,"sort("+h+")",{field:n,type:i})},I.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(b).remove()):(i.layInit=t(['
    ','',"
    "].join("")),i.layBox.append(i.layInit)))},I.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},I.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},I.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(i,a){if(a.selectorText===".laytable-cell-"+e)return t(a),!0})},I.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=R.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e-=t.layPage.outerHeight()||41),t.layMain.css("height",e-2))},I.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},I.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('
    ');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var r=e.layMain.height(),d=r-l;e.layFixed.find(k).css("height",i.height()>=d?d:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](f),e.layFixRight.css("right",a-1)},I.prototype.events=function(){var e,a=this,o=a.config,c=t("body"),s={},u=a.layHeader.find("th"),h=".layui-table-cell",p=o.elem.attr("lay-filter");a.layTool.on("click","*[lay-event]",function(e){var i=t(this),c=i.attr("lay-event"),s=function(e){var l=t(e.list),n=t('
      ');n.html(l),o.height&&n.css("max-height",o.height-(a.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(n),a.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),F.trigger("table.tool.panel.remove"),l.close(a.tipsIndex),c){case"LAYTABLE_COLS":s({list:function(){var e=[];return a.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('
    • ')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var i=t(e.elem),l=this.checked,n=i.data("key"),r=i.data("parentkey");layui.each(o.cols,function(e,t){layui.each(t,function(t,i){if(e+"-"+t===n){var d=i.hide;i.hide=!l,a.elem.find('*[data-key="'+o.index+"-"+n+'"]')[l?"removeClass":"addClass"](f),d!=i.hide&&a.setParentCol(!l,r),a.resize()}})})})}});break;case"LAYTABLE_EXPORT":r.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):s({list:function(){return['
    • 导出到 Csv 文件
    • ','
    • 导出到 Excel 文件
    • '].join("")}(),done:function(e,i){i.on("click",function(){var e=t(this).data("type");d.exportFile(o.id,null,e)})}});break;case"LAYTABLE_PRINT":var u=window.open("打印窗口","_blank"),h=[""].join(""),v=t(a.layHeader.html());v.append(a.layMain.find("table").html()),v.append(a.layTotal.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),u.document.write(h+v.prop("outerHTML")),u.document.close(),u.print(),u.close()}layui.event.call(this,y,"toolbar("+p+")",t.extend({event:c,config:o},{}))}),u.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.data("unresize")||s.resizeStart||(s.allowResize=i.width()-l<=10,c.css("cursor",s.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);s.resizeStart||c.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(s.allowResize){var l=i.data("key");e.preventDefault(),s.resizeStart=!0,s.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();s.rule=e,s.ruleWidth=parseFloat(t),s.minWidth=i.data("minwidth")||o.cellMinWidth})}}),F.on("mousemove",function(t){if(s.resizeStart){if(t.preventDefault(),s.rule){var i=s.ruleWidth+t.clientX-s.offset[0];i');return n[0].value=i.data("content")||l.text(),i.find("."+W)[0]||i.append(n),n.focus(),void layui.stope(e)}}).on("mouseenter","td",function(){b.call(this)}).on("mouseleave","td",function(){b.call(this,"hide")});var g="layui-table-grid-down",b=function(e){var i=t(this),a=i.children(h);if(!i.data("off"))if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('
      ')}};a.layBody.on("click","."+g,function(e){var i=t(this),n=i.parent(),d=n.children(h);a.tipsIndex=l.tips(['
      ',d.html(),"
      ",''].join(""),d[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:a.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}),layui.stope(e)}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),i=e.parents("tr").eq(0).data("index");layui.event.call(this,y,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),a.setThisRowChecked(i)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layTotal.scrollLeft(i),a.layFixed.find(k).scrollTop(n),l.close(a.tipsIndex)}),F.on("click",function(){F.trigger("table.remove.tool.panel")}),F.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()}),R.on("resize",function(){a.resize()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':h+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.that={},c.config={},d.eachCols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colGroup){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL_INDEX||l>1&&l==i.colspan||(t.PARENT_COL_INDEX=o,i.CHILD_COLS.push(t),l+=parseInt(t.colspan>1?t.colspan:1))})}i.PARENT_COL_INDEX||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?r(t.CHILD_COLS):void("function"==typeof i&&i(e,t))})};r()},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},d.exportFile=function(e,t,i){t=t||d.clearCacheKey(d.cache[e]),i=i||"csv";var a=c.config[e]||{},l={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],n=document.createElement("a");return r.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(n.href="data:"+l+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],a=[];return layui.each(t,function(t,l){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearCacheKey(l),function(e,t){n.push('"'+(t||"")+'"')})):d.eachCols(e,function(e,a){a.field&&"normal"==a.type&&!a.hide&&(0==t&&i.push(a.title||""),n.push('"'+u(a,l[a.field],l,"text")+'"'))}),a.push(n.join(","))}),i.join(",")+"\r\n"+a.join("\r\n")}()),n.download=(a.title||"table_"+(a.index||""))+"."+i,document.body.appendChild(n),n.click(),void document.body.removeChild(n))},d.resize=function(e){if(e){var t=s(e);if(!t)return;c.that[e].resize()}else layui.each(c.that,function(){this.resize()})},d.reload=function(e,t){var i=s(e);if(i){var a=c.that[e];return a.reload(t),c.call(a)}},d.render=function(e){var t=new I(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(y,d)}); ================================================ FILE: lib/layui/lay/modules/transfer.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
      ','
      ','","
      ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
        ',"
        "].join("")},v=['
        ',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'
        ','",'","
        ",p({index:1,checkAllName:"layTransferRightCheckAll"}),"
        "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["
      • ",'',"
      • "].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('

        '+(t||"")+"

        ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)}); ================================================ FILE: lib/layui/lay/modules/tree.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n="tree",r={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,n,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getChecked:function(){return e.getChecked.call(e)},setChecked:function(i){return e.setChecked.call(e,i)}}},t="layui-hide",d="layui-disabled",s="layui-tree-set",c="layui-tree-iconClick",o="layui-icon-addition",h="layui-icon-subtraction",u="layui-tree-entry",f="layui-tree-main",p="layui-tree-txt",y="layui-tree-pack",v="layui-tree-spread",C="layui-tree-setLineShort",m="layui-tree-showLine",k="layui-tree-lineExtend",g=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};g.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},g.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){i.constructor===Array&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},g.prototype.render=function(){var e=this,a=e.config,n=i('
        ');e.tree(n);var r=a.elem=i(a.elem);if(r[0]){if(a.showSearch&&n.prepend(''),e.key=a.id||e.index,e.elem=n,e.elemNone=i('
        '+a.text.none+"
        "),r.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);a.drag&&e.drag(),a.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(C),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(C)}),e.events()}},g.prototype.renderForm=function(e){a.render(e,"LAY-tree-"+this.index)},g.prototype.tree=function(e,a){var n=this,r=n.config,l=a||r.data;layui.each(l,function(a,l){var c=l.children&&l.children.length>0,o=i('
        '),h=i(['
        ',"
        ','
        ',function(){return r.showLine?c?'':'':''}(),function(){return r.showCheckbox?'':""}(),function(){return r.isJump&&l.href?''+(l.title||l.label||r.text.defaultNodeName)+"":''+(l.title||l.label||r.text.defaultNodeName)+""}(),"
        ",function(){if(!r.edit)return"";var e={add:'',update:'',del:''},i=['
        '];return r.edit===!0&&(r.edit=["update","del"]),"object"==typeof r.edit?(layui.each(r.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"
        "):void 0}(),"
        "].join(""));c&&(h.append(o),n.tree(o,l.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),c||h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),n.spread(h,l),r.showCheckbox&&n.checkClick(h,l),r.edit&&n.operate(h,l)})},g.prototype.spread=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f),C=l.find("."+c),m=l.find("."+p),k=r.onlyIconControl?C:t,g="";k.on("click",function(i){var a=e.children("."+y),n=k.children(".layui-icon")[0]?k.children(".layui-icon"):k.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasClass(v))e.removeClass(v),a.slideUp(200),n.removeClass(h).addClass(o);else if(e.addClass(v),a.slideDown(200),n.addClass(h).removeClass(o),r.accordion){var l=e.siblings("."+s);l.removeClass(v),l.children("."+y).slideUp(200),l.find(".layui-tree-icon").children(".layui-icon").removeClass(h).addClass(o)}}else g="normal"}),m.on("click",function(){var n=i(this);n.hasClass(d)||(g=e.hasClass(v)?r.onlyIconControl?"open":"close":r.onlyIconControl?"close":"open",r.click&&r.click({elem:e,state:g,data:a}))})},g.prototype.setCheckbox=function(e,i,a){var n=this,r=(n.config,a.prop("checked"));if("object"==typeof i.children||e.find("."+y)[0]){var l=e.find("."+y).find('input[name="layuiTreeCheck"]');l.each(function(){this.disabled||(this.checked=r)})}var t=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+y),n=a.parent(),l=a.prev().find('input[name="layuiTreeCheck"]');r?l.prop("checked",r):(a.find('input[name="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||l.prop("checked",!1)),t(n)}};t(e),n.renderForm("checkbox")},g.prototype.checkClick=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f);t.on("click",'input[name="layuiTreeCheck"]+',function(l){layui.stope(l);var t=i(this).prev(),d=t.prop("checked");t.prop("disabled")||(n.setCheckbox(e,a,t),r.oncheck&&r.oncheck({elem:e,checked:d,data:a}))})},g.prototype.operate=function(e,a){var n=this,r=n.config,l=e.children("."+u),d=l.children("."+f);l.children(".layui-tree-btnGroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),g=e.children("."+y),x={data:a,type:f,elem:e};if("add"==f){g[0]||(r.showLine?(d.find("."+c).addClass("layui-tree-icon"),d.find("."+c).children(".layui-icon").addClass(o).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(t),e.append('
        '));var b=r.operate&&r.operate(x),w={};if(w.title=r.text.defaultNodeName,w.id=b,n.tree(e.children("."+y),[w]),r.showLine)if(g[0])g.hasClass(k)||g.addClass(k),e.find("."+y).each(function(){i(this).children("."+s).last().addClass(C)}),g.children("."+s).last().prev().hasClass(C)?g.children("."+s).last().prev().removeClass(C):g.children("."+s).last().removeClass(C),!e.parent("."+y)[0]&&e.next()[0]&&g.children("."+s).last().removeClass(C);else{var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C),e.children("."+y).addClass(m),N.removeClass(k),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C)):e.children("."+y).children("."+s).addClass(C)}if(!r.showCheckbox)return;if(d.find('input[name="layuiTreeCheck"]')[0].checked){var A=e.children("."+y).children("."+s).last();A.find('input[name="layuiTreeCheck"]')[0].checked=!0}n.renderForm("checkbox")}else if("update"==f){var q=d.children("."+p).html();d.children("."+p).html(""),d.append(''),d.children(".layui-tree-editInput").val(q).focus();var F=function(e){var i=e.val().trim();i=i?i:r.text.defaultNodeName,e.remove(),d.children("."+p).html(i),x.data.title=i,r.operate&&r.operate(x)};d.children(".layui-tree-editInput").blur(function(){F(i(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),F(i(this)))})}else{if(r.operate&&r.operate(x),x.status="remove",!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+y)[0])return e.remove(),void n.elem.append(n.elemNone);if(e.siblings("."+s).children("."+u)[0]){if(r.showCheckbox){var I=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+u),r=e.parent("."+y).prev(),l=r.find('input[name="layuiTreeCheck"]')[0],t=1,d=0;0==l.checked&&(a.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(t=0),n.disabled||(d=1)}),1==t&&1==d&&(l.checked=!0,n.renderForm("checkbox"),I(r.parent("."+s))))}};I(e)}if(r.showLine){var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(g[0]||(N.removeClass(k),T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C)),e.next()[0]?N.children("."+s).last().children("."+y).children("."+s).last().addClass(C):e.prev().children("."+y).children("."+s).last().addClass(C),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addClass(C)):!e.next()[0]&&e.hasClass(C)&&e.prev().addClass(C)}}else{var H=e.parent("."+y).prev();if(r.showLine){H.find("."+c).removeClass("layui-tree-icon"),H.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file");var S=H.parents("."+y).eq(0);S.addClass(k),S.children("."+s).each(function(){i(this).children("."+y).children("."+s).last().addClass(C)})}else H.find(".layui-tree-iconArrow").addClass(t);e.parents("."+s).eq(0).removeClass(v),e.parent("."+y).remove()}e.remove()}})},g.prototype.drag=function(){var e=this,a=e.config;e.elem.on("dragstart","."+u,function(){var e=i(this).parent("."+s),n=e.parents("."+s)[0]?e.parents("."+s).eq(0):"未找到父节点";a.dragstart&&a.dragstart(e,n)}),e.elem.on("dragend","."+u,function(n){var n=n||event,r=n.clientY,l=i(this),d=l.parent("."+s),f=d.height(),p=d.offset().top,g=e.elem.find("."+s),x=e.elem.height(),b=e.elem.offset().top,w=x+b-13,T=d.parents("."+s)[0],L=d.next()[0];if(T)var N=d.parent("."+y),A=d.parents("."+s).eq(0),q=A.parent("."+y),F=A.offset().top,I=d.siblings(),H=A.children("."+y).children("."+s).length;var S=function(n){if(T||L||e.elem.children("."+s).last().children("."+y).children("."+s).last().addClass(C),!T)return void d.removeClass("layui-tree-setHide");if(1==H)a.showLine?(n.find("."+c).removeClass("layui-tree-icon"),n.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file"),q.addClass(k),q.children("."+s).children("."+y).each(function(){i(this).children("."+s).last().addClass(C)})):n.find(".layui-tree-iconArrow").addClass(t),n.children("."+y).remove(),n.removeClass(v);else{if(a.showLine){var r=1;layui.each(I,function(e,a){i(a).children("."+y)[0]||(r=0)}),1==r?(d.children("."+y)[0]||(N.removeClass(k),I.children("."+y).addClass(m),I.children("."+y).children("."+s).removeClass(C)),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C),L||n.parents("."+s)[0]||n.next()[0]||N.children("."+s).last().addClass(C)):!L&&d.hasClass(C)&&N.children("."+s).last().addClass(C)}if(a.showCheckbox){var l=function(a){if(a){if(!a.parents("."+s)[0])return}else if(!n[0])return;var r=a?a.siblings().children("."+u):I.children("."+u),t=a?a.parent("."+y).prev():N.prev(),d=t.find('input[name="layuiTreeCheck"]')[0],c=1,o=0;0==d.checked&&(r.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(o=1)}),1==c&&1==o&&(d.checked=!0,e.renderForm("checkbox"),l(t.parent("."+s)||n)))};l()}}};g.each(function(){if(0!=i(this).height()){if(r>p&&rF&&rn&&r
        ')),i(this).children("."+y).append(d),S(A),a.showLine){var l=i(this).children("."+y).children("."+s);if(d.children("."+y).children("."+s).last().addClass(C),1==l.length){var h=i(this).siblings("."+s),v=1,g=i(this).parent("."+y);layui.each(h,function(e,a){i(a).children("."+y)[0]||(v=0)}),1==v?(h.children("."+y).addClass(m),h.children("."+y).children("."+s).removeClass(C),i(this).children("."+y).addClass(m),g.removeClass(k),g.children("."+s).last().children("."+y).children("."+s).last().addClass(C).removeClass("layui-tree-setHide")):i(this).children("."+y).children("."+s).addClass(C).removeClass("layui-tree-setHide")}else d.prev("."+s).hasClass(C)?(d.prev("."+s).removeClass(C),d.addClass(C)):(d.removeClass("layui-tree-setLineShort layui-tree-setHide"),d.children("."+y)[0]?d.prev("."+s).children("."+y).children("."+s).last().removeClass(C):d.siblings("."+s).find("."+y).each(function(){i(this).children("."+s).last().addClass(C)})),i(this).next()[0]||d.addClass(C)}if(a.showCheckbox&&i(this).children("."+u).find('input[name="layuiTreeCheck"]')[0].checked){var x=d.children("."+u);x.find('input[name="layuiTreeCheck"]+').click()}return a.dragend&&a.dragend("drag success",d,i(this)),!1}if(rw)return e.elem.children("."+s).last().children("."+y).addClass(m),e.elem.append(d),S(A),d.prev().children("."+y).children("."+s).last().removeClass(C),d.addClass("layui-tree-setHide"),d.children("."+y).children("."+s).last().addClass(C),a.dragend&&a.dragend("拖拽成功,插入最外层节点",d,e.elem),!1}})})},g.prototype.events=function(){var e=this,a=e.config,n=e.elem.find(".layui-tree-checkedFirst");layui.each(n,function(e,a){i(a).children("."+u).find('input[name="layuiTreeCheck"]+').trigger("click")}),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),r=n.val(),l=n.nextAll(),d=[];l.find("."+p).each(function(){var e=i(this).parents("."+u);if(i(this).html().indexOf(r)!=-1){d.push(i(this).parent());var a=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+y)[0]&&a(e.parent("."+y).parent("."+s))};a(e.parent("."+s))}}),l.find("."+u).each(function(){var e=i(this).parent("."+s);e.hasClass("layui-tree-searchShow")||e.addClass(t)}),0==l.find(".layui-tree-searchShow").length&&e.elem.append(e.elemNone),a.onsearch&&a.onsearch({elem:d})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextAll().find("."+u).each(function(){var e=i(this).parent("."+s);e.removeClass("layui-tree-searchShow "+t)}),i(".layui-tree-emptyText")[0]&&i(".layui-tree-emptyText").remove()})},g.prototype.getChecked=function(){var e=this,a=e.config,n=[],r=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var l=function(e,a){layui.each(e,function(e,r){layui.each(n,function(e,n){if(r.id==n){var t=i.extend({},r);return delete t.children,a.push(t),r.children&&(t.children=[],l(r.children,t.children)),!0}})})};return l(i.extend({},a.data),r),r},g.prototype.setChecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var r=i(this).data("id"),l=i(n).children("."+u).find('input[name="layuiTreeCheck"]'),t=l.next();if("number"==typeof e){if(r==e)return l[0].checked||t.click(),!1}else i.inArray(r,e)!=-1&&(l[0].checked||t.click())})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getChecked=function(e){var i=l.that[e];return i.getChecked()},r.setChecked=function(e,i){var a=l.that[e];return a.setChecked(i)},r.render=function(e){var i=new g(e);return l.call(i)},e(n,r)}); ================================================ FILE: lib/layui/lay/modules/upload.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,o.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['"].join("")),o=i.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&i.elem.wrap('
        '),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t(''),a=t(['
        ',"
        "].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(c)||(e.elemFile.wrap(a),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var i=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&i+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:i,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)}),t.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=t("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||o.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){o.preview(e)},upload:function(e,t){var i={};i[e]=t,o.upload(i)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,t){o.files[e]=t}),o.files},resetFile:function(e,t,i){var n=new File([t],i);o.files=o.files||{},o.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),a.ie?a.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var t=0,i=e||o.files||o.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.toFixed(2)+"MB":l.size+"KB",r.value="",F=i}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindAction;var i=this,e=i.config=t.extend({},i.config,o.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,o=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var a=e.elemFile,o=t.length>1?t.length+"个文件":(t[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||a.after(''+o+"")};i.elem.off("upload.start").on("upload.start",function(){var a=t(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=t.extend({},i,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=t(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];o(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},o.render=function(e){var t=new p(e);return l.call(t)},e(r,o)}); ================================================ FILE: lib/layui/lay/modules/util.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['
          ',t.bar1?'
        • '+c[0]+"
        • ":"",t.bar2?'
        • '+c[1]+"
        • ":"",'
        • '+c[2]+"
        • ","
        "].join("")),s=g.find("."+o),u=function(){var e=r.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+a)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),n=i.attr("lay-type");"top"===n&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var n=this,a="function"==typeof e,o=new Date(t).getTime(),r=new Date(!e||a?(new Date).getTime():e).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=e);var g=setTimeout(function(){n.countdown(t,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(t).getTime();return a>6912e5?(a=new Date(t),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),e||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var n=t.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(t,n,a){n=i.event[t]=e.extend(!0,i.event[t],n)||{},e("body").on(a||"click","*["+t+"]",function(){var i=e(this),a=i.attr(t);n[a]&&n[a].call(this,i)})}};!function(t,e,i){"$:nomunge";function n(){a=e[l](function(){o.each(function(){var e=t(this),i=e.width(),n=e.height(),a=t.data(this,g);(i!==a.w||n!==a.h)&&e.trigger(c,[a.w=i,a.h=n])}),n()},r[s])}var a,o=t([]),r=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";r[s]=250,r[u]=!0,t.event.special[c]={setup:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===o.length&&n()},teardown:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.not(e),e.removeData(g),o.length||clearTimeout(a)},add:function(e){function n(e,n,o){var r=t(this),l=t.data(this,g)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[u]&&this[l])return!1;var a;return t.isFunction(e)?(a=e,n):(a=e.handler,void(e.handler=n))}}}(e,window),t("util",i)}); ================================================ FILE: lib/layui/lay/okmodules/okLayer.js ================================================ "use strict"; layui.define(["layer"], function (exports) { var okLayer = { /** * confirm()函数二次封装 * @param content * @param yesFunction */ confirm: function (content, yesFunction) { var options = {skin: okLayer.skinChoose(), icon: 3, title: "提示", anim: okLayer.animChoose()}; layer.confirm(content, options, yesFunction); }, /** * open()函数二次封装,支持在table页面和普通页面打开 * @param title * @param content * @param width * @param height * @param successFunction * @param endFunction */ open: function (title, content, width, height, successFunction, endFunction) { layer.open({ title: title, type: 2, maxmin: true, shade: 0.5, anim: okLayer.animChoose(), area: [width, height], content: content, zIndex: layer.zIndex, skin: okLayer.skinChoose(), success: successFunction, end: endFunction }); }, /** * msg()函数二次封装 */ msg: { // msg弹窗默认消失时间 time: 1000, // 绿色勾 greenTick: function (content, callbackFunction) { var options = {icon: 1, time: okLayer.msg.time, anim: okLayer.animChoose()}; layer.msg(content, options, callbackFunction); }, // 红色叉 redCross: function (content, callbackFunction) { var options = {icon: 2, time: okLayer.msg.time, anim: okLayer.animChoose()}; layer.msg(content, options, callbackFunction); }, // 黄色问号 yellowQuestion: function (content, callbackFunction) { var options = {icon: 3, time: okLayer.msg.time, anim: okLayer.animChoose()}; layer.msg(content, options, callbackFunction); }, // 灰色锁 grayLock: function (content, callbackFunction) { var options = {icon: 4, time: okLayer.msg.time, anim: okLayer.animChoose()}; layer.msg(content, options, callbackFunction); }, // 红色哭脸 redCry: function (content, callbackFunction) { var options = {icon: 5, time: okLayer.msg.time, anim: okLayer.animChoose()}; layer.msg(content, options, callbackFunction); }, // 绿色笑脸 greenLaugh: function (content, callbackFunction) { var options = {icon: 6, time: okLayer.msg.time, anim: okLayer.animChoose()}; layer.msg(content, options, callbackFunction); }, // 黄色感叹号 yellowSigh: function (content, callbackFunction) { var options = {icon: 7, time: okLayer.msg.time, anim: okLayer.animChoose()}; layer.msg(content, options, callbackFunction); } }, /** * 皮肤选择 * @returns {string} */ skinChoose: function () { var storage = window.localStorage; var skin = storage.getItem("skin"); if (skin == 1) { // 灰白色 return ""; } else if (skin == 2) { // 墨绿色 return "layui-layer-molv"; } else if (skin == 3) { // 蓝色 return "layui-layer-lan"; } else if (!skin || skin == 4) { // 随机颜色 var skinArray = ["", "layui-layer-molv", "layui-layer-lan"]; return skinArray[Math.floor(Math.random() * skinArray.length)]; } }, /** * 动画选择 * @returns {number} */ animChoose: function () { var storage = window.localStorage; var anim = storage.getItem("anim"); var animArray = ["0", "1", "2", "3", "4", "5", "6"]; if (animArray.indexOf(anim) > -1) { // 用户选择的动画 return anim; } else if (!anim || anim == 7) { // 随机动画 return Math.floor(Math.random() * animArray.length); } } } exports("okLayer", okLayer); }); ================================================ FILE: lib/layui/lay/okmodules/okMenu.js ================================================ "use strict"; layui.define(["element", "okUtils"], function (exports) { var element = layui.element; var okUtils = layui.okUtils; var $ = layui.jquery; var okMenu = { generatorMenu: function (url, method) { okUtils.ajax(url, method).done(function (response) { var html = ""; for (var i = 0; i < response.length; i++) { var d = response[i]; html += okMenu.liHtml(d); html += "" html += okMenu.iconHtml(d) + " " + response[i].title; html += "" var temp = okMenu.createMenu(d.children); html += temp; html += ""; } $(".layui-nav-tree").html(html); element.render("nav"); }).fail(function (error) { console.log(error) }); }, liHtml: function (obj) { var html = ""; if (obj.spread) { html += "
      • "; } else { html += "
      • "; } return html; }, iconHtml: function (obj) { var html = ""; if (obj.icon) { if (obj.font == "iconfont") { html += "" + obj.icon + ""; } else if (obj.font == "layui-icon") { html += " " + obj.icon + ""; } else { html += "" + obj.icon + ""; } } else { console.warn(obj.title, "icon未定义"); } return html; }, createMenu: function (obj) { var html = ""; if (obj != undefined && obj.length > 0) { html += "
        " for (var i = 0; i < obj.length; i++) { html += "
        "; html += "" + okMenu.iconHtml(obj[i]) + " " + obj[i].title + ""; var children = obj[i].children; if (children != undefined && children.length > 0) { html += okMenu.createMenu(children); } html += "
        "; } html += "
        " } return html; } } exports("okMenu", okMenu); }); ================================================ FILE: lib/layui/lay/okmodules/okProgress/nprogress.css ================================================ /* Make clicks pass-through */ #nprogress { pointer-events: none; } #nprogress .bar { background: #29d; position: fixed; z-index: 1031; top: 0; left: 0; width: 100%; height: 2px; } /* Fancy blur effect */ #nprogress .peg { display: block; position: absolute; right: 0px; width: 100px; height: 100%; box-shadow: 0 0 10px #29d, 0 0 5px #29d; opacity: 1.0; -webkit-transform: rotate(3deg) translate(0px, -4px); -ms-transform: rotate(3deg) translate(0px, -4px); transform: rotate(3deg) translate(0px, -4px); } /* Remove these to get rid of the spinner */ #nprogress .spinner { display: block; position: fixed; z-index: 1031; top: 15px; right: 15px; } #nprogress .spinner-icon { width: 18px; height: 18px; box-sizing: border-box; border: solid 2px transparent; border-top-color: #29d; border-left-color: #29d; border-radius: 50%; -webkit-animation: nprogress-spinner 400ms linear infinite; animation: nprogress-spinner 400ms linear infinite; } .nprogress-custom-parent { overflow: hidden; position: relative; } .nprogress-custom-parent #nprogress .spinner, .nprogress-custom-parent #nprogress .bar { position: absolute; } @-webkit-keyframes nprogress-spinner { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes nprogress-spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } ================================================ FILE: lib/layui/lay/okmodules/okProgress/nprogress.js ================================================ layui.define(function (exports) { /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */ var obj = (function (root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.NProgress = factory(); } })(this, function () { var NProgress = {}; NProgress.version = '0.2.0'; var Settings = NProgress.settings = { minimum: 0.08, easing: 'linear', positionUsing: '', speed: 200, trickle: true, trickleSpeed: 200, showSpinner: true, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: 'body', template: '
        ' }; /** * Updates configuration. * * NProgress.configure({ * minimum: 0.1 * }); */ NProgress.configure = function (options) { var key, value; for (key in options) { value = options[key]; if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value; } return this; }; /** * Last number. */ NProgress.status = null; /** * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`. * * NProgress.set(0.4); * NProgress.set(1.0); */ NProgress.set = function (n) { var started = NProgress.isStarted(); n = clamp(n, Settings.minimum, 1); NProgress.status = (n === 1 ? null : n); var progress = NProgress.render(!started), bar = progress.querySelector(Settings.barSelector), speed = Settings.speed, ease = Settings.easing; progress.offsetWidth; /* Repaint */ queue(function (next) { // Set positionUsing if it hasn't already been set if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS(); // Add transition css(bar, barPositionCSS(n, speed, ease)); if (n === 1) { // Fade out css(progress, { transition: 'none', opacity: 1 }); progress.offsetWidth; /* Repaint */ setTimeout(function () { css(progress, { transition: 'all ' + speed + 'ms linear', opacity: 0 }); setTimeout(function () { NProgress.remove(); next(); }, speed); }, speed); } else { setTimeout(next, speed); } }); return this; }; NProgress.isStarted = function () { return typeof NProgress.status === 'number'; }; /** * Shows the progress bar. * This is the same as setting the status to 0%, except that it doesn't go backwards. * * NProgress.start(); * */ NProgress.start = function () { if (!NProgress.status) NProgress.set(0); var work = function () { setTimeout(function () { if (!NProgress.status) return; NProgress.trickle(); work(); }, Settings.trickleSpeed); }; if (Settings.trickle) work(); return this; }; /** * Hides the progress bar. * This is the *sort of* the same as setting the status to 100%, with the * difference being `done()` makes some placebo effect of some realistic motion. * * NProgress.done(); * * If `true` is passed, it will show the progress bar even if its hidden. * * NProgress.done(true); */ NProgress.done = function (force) { if (!force && !NProgress.status) return this; return NProgress.inc(0.3 + 0.5 * Math.random()).set(1); }; /** * Increments by a random amount. */ NProgress.inc = function (amount) { var n = NProgress.status; if (!n) { return NProgress.start(); } else if (n > 1) { return; } else { if (typeof amount !== 'number') { if (n >= 0 && n < 0.2) { amount = 0.1; } else if (n >= 0.2 && n < 0.5) { amount = 0.04; } else if (n >= 0.5 && n < 0.8) { amount = 0.02; } else if (n >= 0.8 && n < 0.99) { amount = 0.005; } else { amount = 0; } } n = clamp(n + amount, 0, 0.994); return NProgress.set(n); } }; NProgress.trickle = function () { return NProgress.inc(); }; /** * Waits for all supplied jQuery promises and * increases the progress as the promises resolve. * * @param $promise jQUery Promise */ (function () { var initial = 0, current = 0; NProgress.promise = function ($promise) { if (!$promise || $promise.state() === "resolved") { return this; } if (current === 0) { NProgress.start(); } initial++; current++; $promise.always(function () { current--; if (current === 0) { initial = 0; NProgress.done(); } else { NProgress.set((initial - current) / initial); } }); return this; }; })(); /** * (Internal) renders the progress bar markup based on the `template` * setting. */ NProgress.render = function (fromStart) { if (NProgress.isRendered()) return document.getElementById('nprogress'); addClass(document.documentElement, 'nprogress-busy'); var progress = document.createElement('div'); progress.id = 'nprogress'; progress.innerHTML = Settings.template; var bar = progress.querySelector(Settings.barSelector), perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0), parent = document.querySelector(Settings.parent), spinner; css(bar, { transition: 'all 0 linear', transform: 'translate3d(' + perc + '%,0,0)' }); if (!Settings.showSpinner) { spinner = progress.querySelector(Settings.spinnerSelector); spinner && removeElement(spinner); } if (parent != document.body) { addClass(parent, 'nprogress-custom-parent'); } parent.appendChild(progress); return progress; }; /** * Removes the element. Opposite of render(). */ NProgress.remove = function () { removeClass(document.documentElement, 'nprogress-busy'); removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent'); var progress = document.getElementById('nprogress'); progress && removeElement(progress); }; /** * Checks if the progress bar is rendered. */ NProgress.isRendered = function () { return !!document.getElementById('nprogress'); }; /** * Determine which positioning CSS rule to use. */ NProgress.getPositioningCSS = function () { // Sniff on document.body.style var bodyStyle = document.body.style; // Sniff prefixes var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' : ('MozTransform' in bodyStyle) ? 'Moz' : ('msTransform' in bodyStyle) ? 'ms' : ('OTransform' in bodyStyle) ? 'O' : ''; if (vendorPrefix + 'Perspective' in bodyStyle) { // Modern browsers with 3D support, e.g. Webkit, IE10 return 'translate3d'; } else if (vendorPrefix + 'Transform' in bodyStyle) { // Browsers without 3D support, e.g. IE9 return 'translate'; } else { // Browsers without translate() support, e.g. IE7-8 return 'margin'; } }; /** * Helpers */ function clamp(n, min, max) { if (n < min) return min; if (n > max) return max; return n; } /** * (Internal) converts a percentage (`0..1`) to a bar translateX * percentage (`-100%..0%`). */ function toBarPerc(n) { return (-1 + n) * 100; } /** * (Internal) returns the correct CSS for changing the bar's * position given an n percentage, and speed and ease from Settings */ function barPositionCSS(n, speed, ease) { var barCSS; if (Settings.positionUsing === 'translate3d') { barCSS = {transform: 'translate3d(' + toBarPerc(n) + '%,0,0)'}; } else if (Settings.positionUsing === 'translate') { barCSS = {transform: 'translate(' + toBarPerc(n) + '%,0)'}; } else { barCSS = {'margin-left': toBarPerc(n) + '%'}; } barCSS.transition = 'all ' + speed + 'ms ' + ease; return barCSS; } /** * (Internal) Queues a function to be executed. */ var queue = (function () { var pending = []; function next() { var fn = pending.shift(); if (fn) { fn(next); } } return function (fn) { pending.push(fn); if (pending.length == 1) next(); }; })(); /** * (Internal) Applies css properties to an element, similar to the jQuery * css method. * * While this helper does assist with vendor prefixed property names, it * does not perform any manipulation of values prior to setting styles. */ var css = (function () { var cssPrefixes = ['Webkit', 'O', 'Moz', 'ms'], cssProps = {}; function camelCase(string) { return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function (match, letter) { return letter.toUpperCase(); }); } function getVendorProp(name) { var style = document.body.style; if (name in style) return name; var i = cssPrefixes.length, capName = name.charAt(0).toUpperCase() + name.slice(1), vendorName; while (i--) { vendorName = cssPrefixes[i] + capName; if (vendorName in style) return vendorName; } return name; } function getStyleProp(name) { name = camelCase(name); return cssProps[name] || (cssProps[name] = getVendorProp(name)); } function applyCss(element, prop, value) { prop = getStyleProp(prop); element.style[prop] = value; } return function (element, properties) { var args = arguments, prop, value; if (args.length == 2) { for (prop in properties) { value = properties[prop]; if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value); } } else { applyCss(element, args[1], args[2]); } } })(); /** * (Internal) Determines if an element or space separated list of class names contains a class name. */ function hasClass(element, name) { var list = typeof element == 'string' ? element : classList(element); return list.indexOf(' ' + name + ' ') >= 0; } /** * (Internal) Adds a class to an element. */ function addClass(element, name) { var oldList = classList(element), newList = oldList + name; if (hasClass(oldList, name)) return; // Trim the opening space. element.className = newList.substring(1); } /** * (Internal) Removes a class from an element. */ function removeClass(element, name) { var oldList = classList(element), newList; if (!hasClass(element, name)) return; // Replace the class name. newList = oldList.replace(' ' + name + ' ', ' '); // Trim the opening and closing spaces. element.className = newList.substring(1, newList.length - 1); } /** * (Internal) Gets a space separated list of the class names on the element. * The list is wrapped with a single space on each end to facilitate finding * matches within the list. */ function classList(element) { return (' ' + (element && element.className || '') + ' ').replace(/\s+/gi, ' '); } /** * (Internal) Removes an element from the DOM. */ function removeElement(element) { element && element.parentNode && element.parentNode.removeChild(element); } return NProgress; }); // layui.link("https://cdn.bootcss.com/nprogress/0.2.0/nprogress.css"); layui.link("../../lib/layui/lay/okmodules/okProgress/nprogress.css"); exports("nprogress", obj); }); ================================================ FILE: lib/layui/lay/okmodules/okProgress/okProgress.js ================================================ layui.config({ base: "../../lib/layui/lay/okmodules/" }).extend({ nprogress: "okProgress/nprogress" }).define(["nprogress"], function (exports) { "use strict"; // 顶部进度条 // NProgress.start(); // window.onload = function () { // NProgress.done(); // } NProgress.start(); if (document.readyState == "complete" || document.readyState == "interactive") { NProgress.done(); } exports("okProgress"); }); ================================================ FILE: lib/layui/lay/okmodules/okTab.js ================================================ "use strict"; layui.define(["element", "okUtils"], function (exports) { var element = window.top.layui.element; var okUtils = layui.okUtils; var $ = layui.jquery; var okTab = { add: function (title, path) { // 参数校验 if (!okTab.parameterCheck(title, path)) { return false; } // 根据path自动生成tabId值 var tabId = okUtils.string.hash(path) // 去重复选项卡 var okFrame = $(".ok-frame", window.top.document); for (var i = 0; i < okFrame.length; i++) { var _tabId = okFrame.eq(i).attr("tab-id"); if (_tabId == tabId) { element.tabChange("ok-tab", tabId); event.stopPropagation(); return; } } // 添加选项卡 element.tabAdd("ok-tab", { title: title, content: "", id: tabId }); // 切换选项卡 element.tabChange("ok-tab", tabId); }, /** * 参数校验 * @param title * @param path * @param tabId * @returns {boolean} */ parameterCheck: function (title, path) { if (title == undefined || title == "") { console.error("title未定义") return false; } if (path == undefined || path == "") { console.error("path未定义") return false; } return true; } } exports("okTab", okTab); }); ================================================ FILE: lib/layui/lay/okmodules/okUtils.js ================================================ "use strict"; layui.define("layer", function (exports) { var $ = layui.jquery; var okUtils = { isFrontendBackendSeparate: false, baseUrl: "http://rap2api.taobao.org/app/mock/233042", /** * ajax()函数二次封装 * @param url * @param type * @param param * @returns {*|*|*} */ ajax: function (uri, type, param) { var deferred = $.Deferred(); var loadIndex; $.ajax({ url: okUtils.isFrontendBackendSeparate ? okUtils.baseUrl + uri : uri, type: type || "get", data: param || {}, dataType: "json", beforeSend: function () { loadIndex = layer.load(0, {shade: false}); }, success: function (data) { if (data.code == 0) { // 业务正常 deferred.resolve(data.data) } else { // 业务异常 layer.msg(data.msg, {icon: 7, time: 2000}); deferred.reject("okUtils.ajax warn: " + data.msg); } }, complete: function () { layer.close(loadIndex); }, error: function () { layer.close(loadIndex); layer.msg("服务器错误", {icon: 2, time: 2000}); deferred.reject("okUtils.ajax error: 服务器错误"); } }); return deferred.promise(); }, table: { /** * 主要用于针对表格批量操作操作之前的检查 * @param table * @returns {string} */ batchCheck: function (table) { var checkStatus = table.checkStatus("tableId"); var rows = checkStatus.data.length; if (rows > 0) { var idsStr = ""; for (var i = 0; i < checkStatus.data.length; i++) { idsStr += checkStatus.data[i].id + ","; } return idsStr; } else { layer.msg("未选择有效数据", {offset: "t", anim: 6}); } }, /** * 在表格页面操作成功后弹窗提示 * @param content */ successMsg: function (content) { layer.msg(content, {icon: 1, time: 1000}, function () { // 刷新当前页table数据 $(".layui-laypage-btn")[0].click(); }); } }, date: { /** * 格式化日期时间 * @param date * @param fmt * @returns {*} */ dateFormat: function (date, fmt) { var o = { "M+": date.getMonth() + 1, "d+": date.getDate(), "h+": date.getHours(), "m+": date.getMinutes(), "s+": date.getSeconds(), "q+": Math.floor((date.getMonth() + 3) / 3), "S": date.getMilliseconds() }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } }, string: { /** * 为字符串生成hash值 * @param value * @returns {number} */ hash: function (value) { var hash = 1315423911, i, ch; for (i = value.length - 1; i >= 0; i--) { ch = value.charCodeAt(i); hash ^= ((hash << 5) + ch + (hash >> 2)); } return (hash & 0x7FFFFFFF); } }, number: { /** * 判断是否为一个正常的数字 * @param num */ isNumber: function (num) { if (num && !isNaN(num)) { return true; } return false; }, /** * 判断一个数字是否包括在某个范围 * @param num * @param begin * @param end */ isNumberWith: function (num, begin, end) { if (this.isNumber(num)) { if (num >= begin && num <= end) { return true; } return false; } }, }, mockApi: { login: "http://rap2api.taobao.org/app/mock/233042/login", menu: { list: "http://rap2api.taobao.org/app/mock/233042/menu/list" }, user: { list: "http://rap2api.taobao.org/app/mock/233042/user/list", update: "http://rap2api.taobao.org/app/mock/233042/user/update", add: "http://rap2api.taobao.org/app/mock/233042/user/add", delete: "http://rap2api.taobao.org/app/mock/233042/user/delete", startOrStop: "http://rap2api.taobao.org/app/mock/233042/user/start-or-stop", }, role: { list: "http://rap2api.taobao.org/app/mock/233042/role/list" }, permission: { list: "http://rap2api.taobao.org/app/mock/233042/permission/list" }, article: { list: "http://rap2api.taobao.org/app/mock/233042/article/list" }, log: { list: "http://rap2api.taobao.org/app/mock/233042/log/list" }, message: { list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/message/list" } } } exports("okUtils", okUtils); }); ================================================ FILE: lib/layui/lay/okmodules/treetable/treetable.css ================================================ .treeTable-empty { width: 20px; display: inline-block; } .treeTable-icon { cursor: pointer; } .treeTable-icon .layui-icon-triangle-d:before { content: "\e623"; } .treeTable-icon.open .layui-icon-triangle-d:before { content: "\e625"; background-color: transparent; } ================================================ FILE: lib/layui/lay/okmodules/treetable/treetable.js ================================================ layui.define(['layer', 'table'], function (exports) { var $ = layui.jquery; var layer = layui.layer; var table = layui.table; var treetable = { // 渲染树形表格 render: function (param) { // 检查参数 if (!treetable.checkParam(param)) { return; } // 获取数据 if (param.data) { treetable.init(param, param.data); } else { $.getJSON(param.url, param.where, function (res) { treetable.init(param, res.data); }); } }, // 渲染表格 init: function (param, data) { var mData = []; var doneCallback = param.done; var tNodes = data; // 补上id和pid字段 for (var i = 0; i < tNodes.length; i++) { var tt = tNodes[i]; if (!tt.id) { if (!param.treeIdName) { layer.msg('参数treeIdName不能为空', {icon: 5}); return; } tt.id = tt[param.treeIdName]; } if (!tt.pid) { if (!param.treePidName) { layer.msg('参数treePidName不能为空', {icon: 5}); return; } tt.pid = tt[param.treePidName]; } } // 对数据进行排序 var sort = function (s_pid, data) { for (var i = 0; i < data.length; i++) { if (data[i].pid == s_pid) { var len = mData.length; if (len > 0 && mData[len - 1].id == s_pid) { mData[len - 1].isParent = true; } mData.push(data[i]); sort(data[i].id, data); } } }; sort(param.treeSpid, tNodes); // 重写参数 param.url = undefined; param.data = mData; param.page = { count: param.data.length, limit: param.data.length }; param.cols[0][param.treeColIndex].templet = function (d) { var mId = d.id; var mPid = d.pid; var isDir = d.isParent; var emptyNum = treetable.getEmptyNum(mPid, mData); var iconHtml = ''; for (var i = 0; i < emptyNum; i++) { iconHtml += ''; } if (isDir) { iconHtml += ' '; } else { iconHtml += ''; } iconHtml += '  '; var ttype = isDir ? 'dir' : 'file'; var vg = ''; return vg + iconHtml + d[param.cols[0][param.treeColIndex].field] + '' }; param.done = function (res, curr, count) { $(param.elem).next().addClass('treeTable'); $('.treeTable .layui-table-page').css('display', 'none'); $(param.elem).next().attr('treeLinkage', param.treeLinkage); // 绑定事件换成对body绑定 /*$('.treeTable .treeTable-icon').click(function () { treetable.toggleRows($(this), param.treeLinkage); });*/ if (param.treeDefaultClose) { treetable.foldAll(param.elem); } if (doneCallback) { doneCallback(res, curr, count); } }; // 渲染表格 table.render(param); }, // 计算缩进的数量 getEmptyNum: function (pid, data) { var num = 0; if (!pid) { return num; } var tPid; for (var i = 0; i < data.length; i++) { if (pid == data[i].id) { num += 1; tPid = data[i].pid; break; } } return num + treetable.getEmptyNum(tPid, data); }, // 展开/折叠行 toggleRows: function ($dom, linkage) { var type = $dom.attr('lay-ttype'); if ('file' == type) { return; } var mId = $dom.attr('lay-tid'); var isOpen = $dom.hasClass('open'); if (isOpen) { $dom.removeClass('open'); } else { $dom.addClass('open'); } $dom.closest('tbody').find('tr').each(function () { var $ti = $(this).find('.treeTable-icon'); var pid = $ti.attr('lay-tpid'); var ttype = $ti.attr('lay-ttype'); var tOpen = $ti.hasClass('open'); if (mId == pid) { if (isOpen) { $(this).hide(); if ('dir' == ttype && tOpen == isOpen) { $ti.trigger('click'); } } else { $(this).show(); if (linkage && 'dir' == ttype && tOpen == isOpen) { $ti.trigger('click'); } } } }); }, // 检查参数 checkParam: function (param) { if (!param.treeSpid && param.treeSpid != 0) { layer.msg('参数treeSpid不能为空', {icon: 5}); return false; } if (!param.treeColIndex && param.treeColIndex != 0) { layer.msg('参数treeColIndex不能为空', {icon: 5}); return false; } return true; }, // 展开所有 expandAll: function (dom) { $(dom).next('.treeTable').find('.layui-table-body tbody tr').each(function () { var $ti = $(this).find('.treeTable-icon'); var ttype = $ti.attr('lay-ttype'); var tOpen = $ti.hasClass('open'); if ('dir' == ttype && !tOpen) { $ti.trigger('click'); } }); }, // 折叠所有 foldAll: function (dom) { $(dom).next('.treeTable').find('.layui-table-body tbody tr').each(function () { var $ti = $(this).find('.treeTable-icon'); var ttype = $ti.attr('lay-ttype'); var tOpen = $ti.hasClass('open'); if ('dir' == ttype && tOpen) { $ti.trigger('click'); } }); } }; layui.link('../../lib/layui/lay/okmodules/treetable/treetable.css'); // 给图标列绑定事件 $('body').on('click', '.treeTable .treeTable-icon', function () { var treeLinkage = $(this).parents('.treeTable').attr('treeLinkage'); if ('true' == treeLinkage) { treetable.toggleRows($(this), true); } else { treetable.toggleRows($(this), false); } }); exports('treetable', treetable); }); ================================================ FILE: lib/layui/layui.all.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.5.4"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;oi?1:r/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
        ',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
        "].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)});!function(){"use strict";var e=window.layui&&layui.define,t={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readyState){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),getStyle:function(e,t){var n=e.currentStyle?e.currentStyle:window.getComputedStyle(e,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,a,i){if(n.path){var r=document.getElementsByTagName("head")[0],o=document.createElement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getElementById(l)||r.appendChild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: Invalid"):void(1989===parseInt(t.getStyle(document.getElementById(l),"width"))?a():setTimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getPath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期
        建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",D=".laydate-btns-time",T=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new C(e)},C=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.querySelectorAll(e||null));t0)return n[0].getAttribute(e)}():n.each(function(n,a){a.setAttribute(e,t)})},C.prototype.removeAttr=function(e){return this.each(function(t,n){n.removeAttribute(e)})},C.prototype.html=function(e){return this.each(function(t,n){n.innerHTML=e})},C.prototype.val=function(e){return this.each(function(t,n){n.value=e})},C.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendChild(e):n.innerHTML=n.innerHTML+e})},C.prototype.remove=function(e){return this.each(function(t,n){e?n.removeChild(e):n.parentNode.removeChild(n)})},C.prototype.on=function(e,t){return this.each(function(n,a){a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1)})},C.prototype.off=function(e,t){return this.each(function(n,a){a.detachEvent?a.detachEvent("on"+e,t):a.removeEventListener(e,t,!1)})},T.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},T.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},T.prototype.lang=function(){var e=this,t=e.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return n[t.lang]||n.cn},T.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};t.elem=w(t.elem),t.eventElem=w(t.eventElem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new RegExp(n+"|.","g"))||[],e.EXP_IF="",e.EXP_SPLIT="",w.each(e.format,function(t,a){var i=new RegExp(n).test(a)?"\\d{"+function(){return new RegExp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.EXP_IF=e.EXP_IF+i,e.EXP_SPLIT=e.EXP_SPLIT+"("+i+")"}),e.EXP_IF=new RegExp("^"+(t.range?e.EXP_IF+"\\s\\"+t.range+"\\s"+e.EXP_IF:e.EXP_IF)+"$"),e.EXP_SPLIT=new RegExp("^"+e.EXP_SPLIT+"$",""),e.isInput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventElem.attr("lay-key",e.index)),t.mark=w.extend({},t.calendar&&"cn"===t.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new Date).getTime(),s=864e5,l=new Date(r?r0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerHTML="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendChild(t),e.appendChild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerHTML="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendChild(t)}),m.appendChild(u),w.each(new Array(6),function(e){var t=c.insertRow(0);w.each(new Array(7),function(a){if(0===e){var i=w.elem("th");i.innerHTML=n.weeks[a],u.appendChild(i)}t.insertCell(a)})}),c.insertBefore(m,c.children[0]),d.appendChild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendChild(a),r[e].appendChild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push(''+n.timeTips+""),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"Reset"),i.push(''+o+""))}),e.push('"),e.join("")}()),w.each(r,function(e,t){i.appendChild(t)}),t.showBottom&&i.appendChild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemID).replace(/{{theme}}/g,t.theme);"styleSheet"in m?(m.setAttribute("type","text/css"),m.styleSheet.cssText=u):m.innerHTML=u,w(i).addClass("laydate-theme-molv"),i.appendChild(m)}e.remove(T.thisElemDate),a?t.elem.append(i):(document.body.appendChild(i),e.position()),e.checkDate().calendar(),e.changeEvent(),T.thisElemDate=e.elemID,"function"==typeof t.ready&&t.ready(w.extend({},t.dateTime,{month:t.dateTime.month+1}))},T.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemID)));return n.hasClass(c)||t.checkDate(function(){n.remove()}),t},T.prototype.position=function(){var e=this,t=e.config,n=e.bindElem||t.elem[0],a=n.getBoundingClientRect(),i=e.elem.offsetWidth,r=e.elem.offsetHeight,o=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},s=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},T.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));t.elem&&(n.innerHTML=e||"",w(t.elem).find("."+h).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){w(t.elem).find("."+h).remove()},3e3))},T.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},T.prototype.systemDate=function(e){var t=e||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:e?e.getHours():0,minutes:e?e.getMinutes():0,seconds:e?e.getSeconds():0}},T.prototype.checkDate=function(e){var t,a,i=this,r=(new Date,i.config),o=r.dateTime=r.dateTime||i.systemDate(),s=i.bindElem||r.elem[0],l=(i.isInput(s)?"val":"html",i.isInput(s)?s.value:"static"===r.position?"":s.innerHTML),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getEndDate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["startTime","endTime"];t=(t.match(i.EXP_SPLIT)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parseFloat(t[s]);t[s].length必须遵循下述格式:
        "+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"
        已为你重置"),a=!0):l&&l.constructor===Date?r.dateTime=i.systemDate(l):(r.dateTime=i.systemDate(),delete i.startState,delete i.endState,delete i.startDate,delete i.endDate,delete i.startTime,delete i.endTime),c(o),a&&l&&i.setValue(r.range?i.endDate?i.parse():"":i.parse()),e&&e(),i)},T.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html(''+n+""),a},T.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"endDate":"dateTime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newDate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).getTime()}),i=l.nowl.max,e&&e[i?"addClass":"removeClass"](s),i},T.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.dateTime,c=new Date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemHeader[h][2]).find("span");if(l.yeard[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstDate||(r.firstDate=w.extend({},l)),c.setFullYear(l.year,l.month,1),t=c.getDay(),a=n.getEndDate(l.month||12,l.year),i=n.getEndDate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeAttr("class"),e=t&&e=n.firstDate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),M++}),w(u[f?0:1]).attr("lay-ym",M-8+"-"+T[1]).html(b+p+" - "+(M-1+p))}else if("month"===e)w.each(new Array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:T[0],month:e};e+1==T[1]&&w(i).addClass(o),i.innerHTML=r.month[e]+(f?"月":""),d.appendChild(i),T[0]=n.firstDate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",T[0]+"-"+T[1]).html(T[0]+p);else if("time"===e){var E=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["

        "+r.time[e]+"

          "];w.each(new Array(t),function(t){i.push(""+w.digit(t,2)+"")}),a.innerHTML=i.join("")+"
        ",d.appendChild(a)}),E()}if(y&&h.removeChild(y),h.appendChild(d),"year"===e||"month"===e)w(n.elemMain[t]).addClass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasClass(s)){if(0===t)i[e]=r,l&&(n.startDate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.endDate[e]=r;else{var c="year"===e?n.getAsYM(r,T[1]-1,"sub"):n.getAsYM(T[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeClass(o),w(this).addClass(o),"month"===a.type&&"year"===e&&(n.listYM[t][0]=r,l&&(n[["startDate","endDate"][t]].year=r),n.list("month",t))):(n.checkDate("limit").calendar(),n.closeList()),n.setBtnStatus(),a.range||n.done(null,"change"),w(n.footer).find(D).removeClass(s)}});else{var S=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrollTop=30*(n[x][C[e]]-2),t.scrollTop<=0&&a.each(function(e,n){if(!w(this).hasClass(s))return t.scrollTop=30*(e-2),!0})})},H=w(c[2]).find("."+v);k(),S.innerHTML=a.range?[r.startTime,r.endTime][t]:r.timeTips,w(n.elemMain[t]).addClass("laydate-time-show"),H[0]&&H.remove(),c[2].appendChild(S),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerHTML;w(this).hasClass(s)||(a.range?n[x][C[e]]=r:i[C[e]]=r,w(t).find("."+o).removeClass(o),w(this).addClass(o),E(),k(),(n.endDate||"time"===a.type)&&n.done(null,"change"),n.setBtnStatus())})})}return n},T.prototype.listYM=[],T.prototype.closeList=function(){var e=this;e.config;w.each(e.elemCont,function(t,n){w(this).find("."+m).remove(),w(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},T.prototype.setBtnStatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startDate,n=n||i.endDate,a=i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit(null,t)||i.limit(null,n)?o.addClass(s):o[a?"addClass":"removeClass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},T.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.endDate,n.endTime):a.range?w.extend({},n.startDate,n.startTime):a.dateTime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/MM|M/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/HH|H/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},T.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},T.prototype.setValue=function(e){var t=this,n=t.config,a=t.bindElem||n.elem[0],i=t.isInput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},T.prototype.stampRange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.endDate&&w(n.footer).find(g).addClass(s),n.endDate)return e=n.newDate({year:n.startDate.year,month:n.startDate.month,date:n.startDate.date}).getTime(),t=n.newDate({year:n.endDate.year,month:n.endDate.month,date:n.endDate.date}).getTime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newDate({year:r[0],month:r[1]-1,date:r[2]}).getTime();w(i).removeClass(u+" "+o),s!==e&&s!==t||w(i).addClass(w(i).hasClass(y)||w(i).hasClass(f)?u:o),s>e&&s0&&t-1 in e)}function r(e,t,n){if(pe.isFunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return pe.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function a(){re.addEventListener?(re.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(re.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(re.addEventListener||"load"===e.event.type||"complete"===re.readyState)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(_e,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parseJSON(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(He(e)){var i,o,a=pe.expando,s=e.nodeType,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelCase(t)])):i=o,i}}function f(e,t,n){if(He(e)){var r,i,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in r?t=[t]:(t=pe.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleanData([e],!0):fe.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==l&&+u)&&Me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||pe.nodeName(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globalEval",!t||pe._data(t[r],"globalEval"))}function m(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x"!==f[1]||Ve.test(a)?0:u:u.firstChild,o=a&&a.childNodes.length;o--;)pe.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pe.merge(v,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=y.lastChild}else v.push(t.createTextNode(a));for(u&&y.removeChild(u),fe.appendChecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inArray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerDocument,a),u=h(y.appendChild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)Ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeElement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function T(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function E(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function N(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r1&&"string"==typeof p&&!fe.checkClone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),S(o,t,n,r)});if(f&&(l=y(t,e[0].ownerDocument,!1,e,r),i=l.firstChild,1===l.childNodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),C),a=s.length;c")).appendTo(t.documentElement),t=(ut[0].contentWindow||ut[0].contentDocument).document,t.write(),t.close(),n=D(e,t),ut.detach()),lt[e]=n),n}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function H(e){if(e in Et)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Ct.length;n--;)if(e=Ct[n]+t,e in Et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!fe.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;iT.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=A,x=r||o&&T.find.TAG("*",l),b=W+=null==v?1:Math.random()||.1,w=x.length;for(l&&(A=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!_);d=e[f++];)if(d(c,a||H,s)){u.push(c);break}l&&(W=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=G.call(u));y=m(y)}Q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=b,A=v),g};return i?r(a):a}var b,w,T,C,E,N,k,S,A,D,j,L,H,q,_,F,M,O,R,P="sizzle"+1*new Date,B=e.document,W=0,I=0,$=n(),z=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,Y={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Q=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),de=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){L()};try{Q.apply(J=Z.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(Ce){Q={apply:J.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=H.documentElement,_=!E(H),(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(H.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!H.getElementsByName||!H.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},M=[],F=[],(w.qsa=me.test(H.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||F.push(".#.+[+~]")}),i(function(e){var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(w.matchesSelector=me.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),M.push("!=",oe)}),F=F.length&&new RegExp(F.join("|")),M=M.length&&new RegExp(M.join("|")),t=me.test(q.compareDocumentPosition),R=t||me.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===B&&R(B,e)?-1:t===H||t.ownerDocument===B&&R(B,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:D?ee(D,e)-ee(D,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===B?-1:u[r]===B?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&_&&!X[n+" "]&&(!M||!M.test(n))&&(!F||!F.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=N(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(d=m,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}), l=c[e]||[],p=l[0]===W&&l[1],x=p&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){c[e]=[W,p,x];break}}else if(v&&(d=t,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===W&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++x||(v&&(f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[W,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[P]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=ve.uniqueSort,pe.text=ve.getText,pe.isXMLDoc=ve.isXML,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=pe.expr.match.needsContext,Te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var Ee,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ee,"string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Te.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getElementById(r[2]),i&&i.parentNode){if(i.id!==r[2])return Ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};ke.prototype=pe.fn,Ee=pe(re);var Se=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xe(e,"parentNode")},parentsUntil:function(e,t,n){return xe(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return xe(e,"nextSibling")},prevAll:function(e){return xe(e,"previousSibling")},nextUntil:function(e,t,n){return xe(e,"nextSibling",n)},prevUntil:function(e,t,n){return xe(e,"previousSibling",n)},siblings:function(e){return be((e.parentNode||{}).firstChild,e)},children:function(e){return be(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Ae[e]||(i=pe.uniqueSort(i)),Se.test(e)&&(i=i.reverse())),this.pushStack(i)}});var De=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(n){pe.each(t,function(t,o){var a=pe.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isFunction(e.promise)?a:0,u=1===s?e:pe.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i0||(je.resolveWith(re,[pe]),pe.fn.triggerHandler&&(pe(re).triggerHandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.Deferred(),"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll)e.setTimeout(pe.ready);else if(re.addEventListener)re.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{re.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&re.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!pe.isReady){try{n.doScroll("left")}catch(t){return e.setTimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var Le;for(Le in pe(fe))break;fe.ownFirst="0"===Le,fe.inlineBlockNeedsLayout=!1,pe(function(){var e,t,n,r;n=re.getElementsByTagName("body")[0],n&&n.style&&(t=re.createElement("div"),r=re.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=re.createElement("div");fe.deleteExpando=!0;try{delete e.test}catch(t){fe.deleteExpando=!1}e=null}();var He=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)},qe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_e=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodeType&&!pe._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=pe.camelCase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isArray(n)?r=pe._data(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
        a",fe.leadingWhitespace=3===e.firstChild.nodeType,fe.tbody=!e.getElementsByTagName("tbody").length,fe.htmlSerialize=!!e.getElementsByTagName("link").length,fe.html5Clone="<:nav>"!==re.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),fe.appendChecked=n.checked,e.innerHTML="",fe.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=re.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),fe.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,fe.attributes=!e.getAttribute(pe.expando)}();var Xe={option:[1,""],legend:[1,"
        ","
        "],area:[1,"",""],param:[1,"",""],thead:[1,"","
        "],tr:[2,"","
        "],col:[2,"","
        "],td:[3,"","
        "],_default:fe.htmlSerialize?[0,"",""]:[1,"X
        ","
        "]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ue=/<|&#?\w+;/,Ve=/-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!pe.isWindow(r)){for(u=l.delegateType||p,Ke.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||re)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&He(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&He(r)&&a&&r[p]&&!pe.isWindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/\s*$/g,at=p(re),st=at.appendChild(re.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1>")},clone:function(e,t,n){var r,i,o,a,s,u=pe.contains(e.ownerDocument,e);if(fe.html5Clone||pe.isXMLDoc(e)||!et.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(o=st.firstChild)),!(fe.noCloneEvent&&fe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(r=h(o),s=h(e),a=0;null!=(i=s[a]);++a)r[a]&&k(i,r[a]);if(t)if(n)for(s=s||h(e),r=r||h(o),a=0;null!=(i=s[a]);a++)N(i,r[a]);else N(e,o);return r=h(o,"script"),r.length>0&&g(r,!u&&h(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=pe.expando,u=pe.cache,l=fe.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||He(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeAttribute?n[s]=void 0:n.removeAttribute(s),ne.push(i))}}}),pe.fn.extend({domManip:S,detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Pe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||re).createTextNode(e))},null,e,arguments.length)},append:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.appendChild(e)}})},prepend:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(h(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ze,""):void 0;if("string"==typeof e&&!nt.test(e)&&(fe.htmlSerialize||!et.test(e))&&(fe.leadingWhitespace||!$e.test(e))&&!Xe[(We.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;nt",t=l.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetHeight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetHeight)),f.removeChild(u)}var n,r,i,o,a,s,u=re.createElement("div"),l=re.createElement("div");l.style&&(l.style.cssText="float:left;opacity:.5",fe.opacity="0.5"===l.style.opacity,fe.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",fe.clearCloneStyle="content-box"===l.style.backgroundClip,u=re.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",u.appendChild(l),fe.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,pe.extend(fe,{reliableHiddenOffsets:function(){return null==n&&t(),o},boxSizingReliable:function(){return null==n&&t(),i},pixelMarginRight:function(){return null==n&&t(),r},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),a},reliableMarginLeft:function(){return null==n&&t(),s}}))}();var ht,gt,mt=/^(top|right|bottom|left)$/;e.getComputedStyle?(ht=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerDocument,e)||(a=pe.style(e,t)),n&&!fe.pixelMarginRight()&&ft.test(a)&&ct.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0===a?a:a+""}):pt.currentStyle&&(ht=function(e){return e.currentStyle},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),ft.test(a)&&!mt.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var yt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,bt=new RegExp("^("+Fe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"},Ct=["Webkit","O","Moz","ms"],Et=re.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=gt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":fe.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=pe.camelCase(t),u=e.style;if(t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=Me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssNumber[s]?"":"px")),fe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=pe.camelCase(t);return t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=gt(e,t,r)),"normal"===o&&t in Tt&&(o=Tt[t]),""===n||n?(i=parseFloat(o),n===!0||isFinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,n,r){if(n)return xt.test(pe.css(e,"display"))&&0===e.offsetWidth?dt(e,wt,function(){return M(e,t,r)}):M(e,t,r)},set:function(e,n,r){var i=r&&ht(e);return _(e,n,r?F(e,t,r,fe.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,i),i):0)}}}),fe.opacity||(pe.cssHooks.opacity={get:function(e,t){return vt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(yt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=yt.test(o)?o.replace(yt,i):o+" "+i)}}),pe.cssHooks.marginRight=L(fe.reliableMarginRight,function(e,t){if(t)return dt(e,{display:"inline-block"},gt,[e,"marginRight"])}),pe.cssHooks.marginLeft=L(fe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(gt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-dt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Oe[r]+t]=o[r]||o[r-2]||o[0];return i}},ct.test(e)||(pe.cssHooks[e+t].set=_)}),pe.fn.extend({css:function(e,t){return Pe(this,function(e,t,n){var r,i,o={},a=0;if(pe.isArray(t)){for(r=ht(e),i=t.length;a1)},show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Re(this)?pe(this).show():pe(this).hide()})}}),pe.Tween=O,O.prototype={constructor:O,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return e&&e.get?e.get(this):O.propHooks._default.get(this)},run:function(e){var t,n=O.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=O.prototype.init,pe.fx.step={};var Nt,kt,St=/^(?:toggle|show|hide)$/,At=/queueHooks$/;pe.Animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(De);for(var n,r=0,i=e.length;r
        a",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",fe.getSetAttribute="t"!==n.className,fe.style=/top/.test(e.getAttribute("style")),fe.hrefNormalized="/a"===e.getAttribute("href"),fe.checkOn=!!t.value,fe.optSelected=i.selected,fe.enctype=!!re.createElement("form").enctype,r.disabled=!0,fe.optDisabled=!i.disabled,t=re.createElement("input"),t.setAttribute("value",""),fe.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),fe.radioValue="t"===t.value}();var Dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isArray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valHooks[i.type]||pe.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Dt,""):null==n?"":n)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u-1)try{r.selected=n=!0}catch(s){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},fe.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Lt,Ht,qt=pe.expr.attrHandle,_t=/^(?:checked|selected)$/i,Ft=fe.getSetAttribute,Mt=fe.input;pe.fn.extend({attr:function(e,t){return Pe(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(t=t.toLowerCase(),i=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?Ht:Lt)),void 0!==n?null===n?void pe.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!fe.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(De);if(o&&1===e.nodeType)for(;n=o[i++];)r=pe.propFix[n]||n,pe.expr.match.bool.test(n)?Mt&&Ft||!_t.test(n)?e[r]=!1:e[pe.camelCase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeAttribute(Ft?n:r)}}),Ht={set:function(e,t,n){return t===!1?pe.removeAttr(e,n):Mt&&Ft||!_t.test(n)?e.setAttribute(!Ft&&pe.propFix[n]||n,n):e[pe.camelCase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||pe.find.attr;Mt&&Ft||!_t.test(t)?qt[t]=function(e,t,r){var i,o;return r||(o=qt[t],qt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,qt[t]=o),i}:qt[t]=function(e,t,n){if(!n)return e[pe.camelCase("default-"+t)]?t.toLowerCase():null}}),Mt&&Ft||(pe.attrHooks.value={set:function(e,t,n){return pe.nodeName(e,"input")?void(e.defaultValue=t):Lt&&Lt.set(e,t,n)}}),Ft||(Lt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},pe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Lt.set},pe.attrHooks.contenteditable={set:function(e,t,n){Lt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),fe.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ot=/^(?:input|select|textarea|button|object)$/i,Rt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Pe(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pe.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,i=pe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Rt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),fe.hrefNormalized||pe.each(["href","src"],function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),fe.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),fe.enctype||(pe.propFix.enctype="encoding");var Pt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(n){pe(this).toggleClass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(De)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&pe._data(this,"__className__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(Pt," ").indexOf(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Bt=e.location,Wt=pe.now(),It=/\?/,$t=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=pe.trim(t+"");return i&&!pe.trim(i.replace($t,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():pe.error("Invalid JSON: "+t)},pe.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new e.DOMParser,n=r.parseFromString(t,"text/xml")):(n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var zt=/#.*$/,Xt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Kt={},Qt={},Zt="*/".concat("*"),en=Bt.href,tn=Gt.exec(en.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:en,type:"GET",isLocal:Vt.test(tn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,pe.ajaxSettings),t):V(pe.ajaxSettings,e)},ajaxPrefilter:X(Kt),ajaxTransport:X(Qt),ajax:function(t,n){function r(t,n,r,i){var o,f,v,x,w,C=n;2!==b&&(b=2,u&&e.clearTimeout(u),c=void 0,s=i||"",T.readyState=t>0?4:0,o=t>=200&&t<300||304===t,r&&(x=Y(d,T,r)),x=J(d,x,T,o),o?(d.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(pe.lastModified[a]=w),w=T.getResponseHeader("etag"),w&&(pe.etag[a]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=x.state,f=x.data,v=x.error,o=!v)):(v=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",o?g.resolveWith(p,[f,C,T]):g.rejectWith(p,[T,C,v]),T.statusCode(y),y=void 0,l&&h.trigger(o?"ajaxSuccess":"ajaxError",[T,d,o?f:v]),m.fireWith(p,[T,C]),l&&(h.trigger("ajaxComplete",[T,d]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,d=pe.ajaxSetup({},n),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?pe(p):pe.event,g=pe.Deferred(),m=pe.Callbacks("once memory"),y=d.statusCode||{},v={},x={},b=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!f)for(f={};t=Ut.exec(s);)f[t[1].toLowerCase()]=t[2];t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(g.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,d.url=((t||d.url||en)+"").replace(zt,"").replace(Jt,tn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=pe.trim(d.dataType||"*").toLowerCase().match(De)||[""],null==d.crossDomain&&(i=Gt.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===tn[1]&&i[2]===tn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),U(Kt,d,n,T),2===b)return T;l=pe.event&&d.global,l&&0===pe.active++&&pe.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Yt.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(It.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Xt.test(a)?a.replace(Xt,"$1_="+Wt++):a+(It.test(a)?"&":"?")+"_="+Wt++)),d.ifModified&&(pe.lastModified[a]&&T.setRequestHeader("If-Modified-Since",pe.lastModified[a]),pe.etag[a]&&T.setRequestHeader("If-None-Match",pe.etag[a])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Zt+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)T.setRequestHeader(o,d.headers[o]);if(d.beforeSend&&(d.beforeSend.call(p,T,d)===!1||2===b))return T.abort();w="abort";for(o in{success:1,error:1,complete:1})T[o](d[o]);if(c=U(Qt,d,n,T)){if(T.readyState=1,l&&h.trigger("ajaxSend",[T,d]),2===b)return T;d.async&&d.timeout>0&&(u=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{b=1,c.send(v,r)}catch(C){if(!(b<2))throw C;r(-1,C)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isFunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:i,data:n,success:r},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapAll:function(e){if(pe.isFunction(e))return this.each(function(t){pe(this).wrapAll(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(n){pe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return fe.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:K(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)Q(n,e[n],t,i);return r.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodeName)&&!an.test(e)&&(this.checked||!Be.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():re.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||ee()}:Z;var un=0,ln={},cn=pe.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),fe.cors=!!cn&&"withCredentials"in cn,cn=fe.ajax=!!cn,cn&&pe.ajaxTransport(function(t){if(!t.crossDomain||fe.cors){var n;return{send:function(r,i){var o,a=t.xhr(),s=++un;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&a.setRequestHeader(o,r[o]+"");a.send(t.hasContent&&t.data||null),n=function(e,r){var o,u,l;if(n&&(r||4===a.readyState))if(delete ln[s],n=void 0,a.onreadystatechange=pe.noop,r)4!==a.readyState&&a.abort();else{l={},o=a.status,"string"==typeof a.responseText&&(l.text=a.responseText);try{u=a.statusText}catch(c){u=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=ln[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=re.head||pe("head")[0]||re.documentElement;return{send:function(r,i){t=re.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var fn=[],dn=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=fn.pop()||pe.expando+"_"+Wt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(It.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,fn.push(i)),a&&pe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),pe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||re;var r=Te.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=y([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childNodes))};var pn=pe.fn.load;return pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&pe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("
        ").append(pe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&pe.inArray("auto",[o,u])>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,pe.contains(t,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=te(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"borderTopWidth",!0),n.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pe.css(r,"marginTop",!0),left:t.left-n.left-pe.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){ for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||pt})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);pe.fn[e]=function(r){return Pe(this,function(e,r,i){var o=te(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?pe(o).scrollLeft():i,n?i:pe(o).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=L(fe.pixelPosition,function(e,n){if(n)return n=gt(e,t),ft.test(n)?pe(e).position()[t]+"px":n})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return Pe(this,function(t,n,r){var i;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?pe.css(t,n,a):pe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,layui.define(function(e){layui.$=pe,e("jquery",pe)}),pe});!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(o.getStyle(document.getElementById(f),"width"))?i():setTimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
        '+(f?r.title[0]:r.title)+"
        ":"";return r.zIndex=s,t([r.shade?'
        ':"",'
        '+(e&&2!=r.type?"":u)+'
        '+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
        '+function(){var e=c?'':"";return r.closeBtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
        '+e+"
        "}():"")+(r.resize?'':"")+"
        "],u,i('
        ')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
          '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
        • '+(t[0].content||"no content")+"
        • ";i'+(t[i].content||"no content")+"";return a}()+"
        ",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||
        '+(u.length>1?'':"")+'
        '+(u[d].alt||"")+""+s.imgIndex+"/"+u.length+"
        ",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
        是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window);layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='
      • "+(i.title||"unnaming")+"
      • ";return s[0]?s.before(r):n.append(r),o.append('
        '+(i.content||"")+"
        "),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(''),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(''),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+""),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,o.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['"].join("")),o=i.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&i.elem.wrap('
        '),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t(''),a=t(['
        ',"
        "].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(c)||(e.elemFile.wrap(a),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var i=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&i+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:i,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)}),t.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=t("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||o.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){o.preview(e)},upload:function(e,t){var i={};i[e]=t,o.upload(i)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,t){o.files[e]=t}),o.files},resetFile:function(e,t,i){var n=new File([t],i);o.files=o.files||{},o.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),a.ie?a.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var t=0,i=e||o.files||o.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.toFixed(2)+"MB":l.size+"KB",r.value="",F=i}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindAction;var i=this,e=i.config=t.extend({},i.config,o.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,o=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var a=e.elemFile,o=t.length>1?t.length+"个文件":(t[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||a.after(''+o+"")};i.elem.off("upload.start").on("upload.start",function(){var a=t(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=t.extend({},i,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=t(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];o(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},o.render=function(e){var t=new p(e);return l.call(t)},e(r,o)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setValue:function(i,t){return e.slide("set",i,t||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",m="layui-slider-input-btn",p="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.maxt.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),m=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=Math.min.apply(null,t.value)),t.valuet.max&&(t.value=t.max);var m=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var p=t.disabled?"#c2c2c2":t.theme,f='
        '+(t.tips?'
        ':"")+'
        '+(t.range?'
        ':"")+"
        ",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(f),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x
        ')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('
        ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.setTips?l.setTips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['
        f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(p),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(p),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.hover(function(){var e=i(this);e.children("."+m).fadeIn("fast")},function(){var e=i(this);e.children("."+m).fadeOut("fast")}),y.children("."+m).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-l.stepl.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['
        ',"",'3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">','',"","","
        "].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['
        ','
        ','
        ','
        ','
        ','
        ',"
        ",'
        ','
        ',"
        ","
        ",'
        ','
        ','
        ',"
        ","
        ",function(){if(o.predefine){var e=['
        '];return layui.each(o.colors,function(i,o){e.push(['
        ','
        ',"
        "].join(""))}),e.push("
        "),e.join("")}return""}(),'
        ','
        ','',"
        ",'
        ','','',"","
        "].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:fa()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['
        t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=t(r+'[lay-filter="'+e+'"]');a.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e)},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),x=i.find("dl"),g=x.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=x.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),g.removeClass(o),y=null,g.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=x.children("dd."+s);if(e[0]){var t=e.position().top,i=x.height(),a=e.height();t>i&&x.scrollTop(t+x.scrollTop()-i+a-5),t<0&&x.scrollTop(t+x.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),x.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=x.children("dd."+s);if(x.children("dd."+o)[0]&&"next"===t){var i=x.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n无匹配项

        '):x.find("."+r).remove()},"keyup"),""===t&&x.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),g.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['
        ','
        ','','
        ','
        ',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("
        "+a.label+"
        "):t.push('
        '+a.innerHTML+"
        "):t.push('
        '+(a.innerHTML||i)+"
        ")}),0===t.length&&t.push('
        没有选项
        '),t.join("")}(r.find("*"))+"
        ","
        "].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['
        ",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+"":"",''].join(""),_switch:""+((n.checked?s[0]:s[1])||"")+""};return t[r]||t.checkbox}(),"
        "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['
        ',''+i[l.checked?0:1]+"","
        "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
        ","
        "].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=t(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),v=e.parents("form")[0],h=u.find("input,select,textarea"),y=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=t(this),c=r.attr("lay-verify").split("|"),u=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(c,function(e,t){var c,f="",v="function"==typeof a[t];if(a[t]){var c=v?f=a[t](d,l):!a[t][0].test(d);if(f=f||a[t][1],"required"===t&&(f=r.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){l.focus()},7),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(h,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];p[i]=0|p[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+p[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(c[t.name]=t.value)}}),layui.event.call(this,l,"submit("+y+")",{elem:this,form:v,field:c})},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n="tree",r={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,n,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getChecked:function(){return e.getChecked.call(e)},setChecked:function(i){return e.setChecked.call(e,i)}}},t="layui-hide",d="layui-disabled",s="layui-tree-set",c="layui-tree-iconClick",o="layui-icon-addition",h="layui-icon-subtraction",u="layui-tree-entry",f="layui-tree-main",p="layui-tree-txt",y="layui-tree-pack",v="layui-tree-spread",C="layui-tree-setLineShort",m="layui-tree-showLine",k="layui-tree-lineExtend",g=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};g.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},g.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){i.constructor===Array&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},g.prototype.render=function(){var e=this,a=e.config,n=i('
        ');e.tree(n);var r=a.elem=i(a.elem);if(r[0]){if(a.showSearch&&n.prepend(''),e.key=a.id||e.index,e.elem=n,e.elemNone=i('
        '+a.text.none+"
        "),r.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);a.drag&&e.drag(),a.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(C),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(C)}),e.events()}},g.prototype.renderForm=function(e){a.render(e,"LAY-tree-"+this.index)},g.prototype.tree=function(e,a){var n=this,r=n.config,l=a||r.data;layui.each(l,function(a,l){var c=l.children&&l.children.length>0,o=i('
        '),h=i(['
        ',"
        ','
        ',function(){return r.showLine?c?'':'':''}(),function(){return r.showCheckbox?'':""}(),function(){return r.isJump&&l.href?''+(l.title||l.label||r.text.defaultNodeName)+"":''+(l.title||l.label||r.text.defaultNodeName)+""}(),"
        ",function(){if(!r.edit)return"";var e={add:'',update:'',del:''},i=['
        '];return r.edit===!0&&(r.edit=["update","del"]),"object"==typeof r.edit?(layui.each(r.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"
        "):void 0}(),"
        "].join(""));c&&(h.append(o),n.tree(o,l.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),c||h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),n.spread(h,l),r.showCheckbox&&n.checkClick(h,l),r.edit&&n.operate(h,l)})},g.prototype.spread=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f),C=l.find("."+c),m=l.find("."+p),k=r.onlyIconControl?C:t,g="";k.on("click",function(i){var a=e.children("."+y),n=k.children(".layui-icon")[0]?k.children(".layui-icon"):k.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasClass(v))e.removeClass(v),a.slideUp(200),n.removeClass(h).addClass(o);else if(e.addClass(v),a.slideDown(200),n.addClass(h).removeClass(o),r.accordion){var l=e.siblings("."+s);l.removeClass(v),l.children("."+y).slideUp(200),l.find(".layui-tree-icon").children(".layui-icon").removeClass(h).addClass(o)}}else g="normal"}),m.on("click",function(){var n=i(this);n.hasClass(d)||(g=e.hasClass(v)?r.onlyIconControl?"open":"close":r.onlyIconControl?"close":"open",r.click&&r.click({elem:e,state:g,data:a}))})},g.prototype.setCheckbox=function(e,i,a){var n=this,r=(n.config,a.prop("checked"));if("object"==typeof i.children||e.find("."+y)[0]){var l=e.find("."+y).find('input[name="layuiTreeCheck"]');l.each(function(){this.disabled||(this.checked=r)})}var t=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+y),n=a.parent(),l=a.prev().find('input[name="layuiTreeCheck"]');r?l.prop("checked",r):(a.find('input[name="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||l.prop("checked",!1)),t(n)}};t(e),n.renderForm("checkbox")},g.prototype.checkClick=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f);t.on("click",'input[name="layuiTreeCheck"]+',function(l){layui.stope(l);var t=i(this).prev(),d=t.prop("checked");t.prop("disabled")||(n.setCheckbox(e,a,t),r.oncheck&&r.oncheck({elem:e,checked:d,data:a}))})},g.prototype.operate=function(e,a){var n=this,r=n.config,l=e.children("."+u),d=l.children("."+f);l.children(".layui-tree-btnGroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),g=e.children("."+y),x={data:a,type:f,elem:e};if("add"==f){g[0]||(r.showLine?(d.find("."+c).addClass("layui-tree-icon"),d.find("."+c).children(".layui-icon").addClass(o).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(t),e.append('
        '));var b=r.operate&&r.operate(x),w={};if(w.title=r.text.defaultNodeName,w.id=b,n.tree(e.children("."+y),[w]),r.showLine)if(g[0])g.hasClass(k)||g.addClass(k),e.find("."+y).each(function(){i(this).children("."+s).last().addClass(C)}),g.children("."+s).last().prev().hasClass(C)?g.children("."+s).last().prev().removeClass(C):g.children("."+s).last().removeClass(C),!e.parent("."+y)[0]&&e.next()[0]&&g.children("."+s).last().removeClass(C);else{var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C),e.children("."+y).addClass(m),N.removeClass(k),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C)):e.children("."+y).children("."+s).addClass(C)}if(!r.showCheckbox)return;if(d.find('input[name="layuiTreeCheck"]')[0].checked){var A=e.children("."+y).children("."+s).last();A.find('input[name="layuiTreeCheck"]')[0].checked=!0}n.renderForm("checkbox")}else if("update"==f){var q=d.children("."+p).html();d.children("."+p).html(""),d.append(''),d.children(".layui-tree-editInput").val(q).focus();var F=function(e){var i=e.val().trim();i=i?i:r.text.defaultNodeName,e.remove(),d.children("."+p).html(i),x.data.title=i,r.operate&&r.operate(x)};d.children(".layui-tree-editInput").blur(function(){F(i(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),F(i(this)))})}else{if(r.operate&&r.operate(x),x.status="remove",!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+y)[0])return e.remove(),void n.elem.append(n.elemNone);if(e.siblings("."+s).children("."+u)[0]){if(r.showCheckbox){var I=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+u),r=e.parent("."+y).prev(),l=r.find('input[name="layuiTreeCheck"]')[0],t=1,d=0;0==l.checked&&(a.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(t=0),n.disabled||(d=1)}),1==t&&1==d&&(l.checked=!0,n.renderForm("checkbox"),I(r.parent("."+s))))}};I(e)}if(r.showLine){var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(g[0]||(N.removeClass(k),T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C)),e.next()[0]?N.children("."+s).last().children("."+y).children("."+s).last().addClass(C):e.prev().children("."+y).children("."+s).last().addClass(C),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addClass(C)):!e.next()[0]&&e.hasClass(C)&&e.prev().addClass(C)}}else{var H=e.parent("."+y).prev();if(r.showLine){H.find("."+c).removeClass("layui-tree-icon"),H.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file");var S=H.parents("."+y).eq(0);S.addClass(k),S.children("."+s).each(function(){i(this).children("."+y).children("."+s).last().addClass(C)})}else H.find(".layui-tree-iconArrow").addClass(t);e.parents("."+s).eq(0).removeClass(v),e.parent("."+y).remove()}e.remove()}})},g.prototype.drag=function(){var e=this,a=e.config;e.elem.on("dragstart","."+u,function(){var e=i(this).parent("."+s),n=e.parents("."+s)[0]?e.parents("."+s).eq(0):"未找到父节点";a.dragstart&&a.dragstart(e,n)}),e.elem.on("dragend","."+u,function(n){var n=n||event,r=n.clientY,l=i(this),d=l.parent("."+s),f=d.height(),p=d.offset().top,g=e.elem.find("."+s),x=e.elem.height(),b=e.elem.offset().top,w=x+b-13,T=d.parents("."+s)[0],L=d.next()[0];if(T)var N=d.parent("."+y),A=d.parents("."+s).eq(0),q=A.parent("."+y),F=A.offset().top,I=d.siblings(),H=A.children("."+y).children("."+s).length;var S=function(n){if(T||L||e.elem.children("."+s).last().children("."+y).children("."+s).last().addClass(C),!T)return void d.removeClass("layui-tree-setHide");if(1==H)a.showLine?(n.find("."+c).removeClass("layui-tree-icon"),n.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file"),q.addClass(k),q.children("."+s).children("."+y).each(function(){i(this).children("."+s).last().addClass(C)})):n.find(".layui-tree-iconArrow").addClass(t),n.children("."+y).remove(),n.removeClass(v);else{if(a.showLine){var r=1;layui.each(I,function(e,a){i(a).children("."+y)[0]||(r=0)}),1==r?(d.children("."+y)[0]||(N.removeClass(k),I.children("."+y).addClass(m),I.children("."+y).children("."+s).removeClass(C)),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C),L||n.parents("."+s)[0]||n.next()[0]||N.children("."+s).last().addClass(C)):!L&&d.hasClass(C)&&N.children("."+s).last().addClass(C)}if(a.showCheckbox){var l=function(a){if(a){if(!a.parents("."+s)[0])return}else if(!n[0])return;var r=a?a.siblings().children("."+u):I.children("."+u),t=a?a.parent("."+y).prev():N.prev(),d=t.find('input[name="layuiTreeCheck"]')[0],c=1,o=0;0==d.checked&&(r.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(o=1)}),1==c&&1==o&&(d.checked=!0,e.renderForm("checkbox"),l(t.parent("."+s)||n)))};l()}}};g.each(function(){if(0!=i(this).height()){if(r>p&&rF&&rn&&r
        ')),i(this).children("."+y).append(d),S(A),a.showLine){var l=i(this).children("."+y).children("."+s);if(d.children("."+y).children("."+s).last().addClass(C),1==l.length){var h=i(this).siblings("."+s),v=1,g=i(this).parent("."+y);layui.each(h,function(e,a){i(a).children("."+y)[0]||(v=0)}),1==v?(h.children("."+y).addClass(m),h.children("."+y).children("."+s).removeClass(C),i(this).children("."+y).addClass(m),g.removeClass(k),g.children("."+s).last().children("."+y).children("."+s).last().addClass(C).removeClass("layui-tree-setHide")):i(this).children("."+y).children("."+s).addClass(C).removeClass("layui-tree-setHide")}else d.prev("."+s).hasClass(C)?(d.prev("."+s).removeClass(C),d.addClass(C)):(d.removeClass("layui-tree-setLineShort layui-tree-setHide"),d.children("."+y)[0]?d.prev("."+s).children("."+y).children("."+s).last().removeClass(C):d.siblings("."+s).find("."+y).each(function(){i(this).children("."+s).last().addClass(C)})),i(this).next()[0]||d.addClass(C)}if(a.showCheckbox&&i(this).children("."+u).find('input[name="layuiTreeCheck"]')[0].checked){var x=d.children("."+u);x.find('input[name="layuiTreeCheck"]+').click()}return a.dragend&&a.dragend("drag success",d,i(this)),!1}if(rw)return e.elem.children("."+s).last().children("."+y).addClass(m),e.elem.append(d),S(A),d.prev().children("."+y).children("."+s).last().removeClass(C),d.addClass("layui-tree-setHide"),d.children("."+y).children("."+s).last().addClass(C),a.dragend&&a.dragend("拖拽成功,插入最外层节点",d,e.elem),!1}})})},g.prototype.events=function(){var e=this,a=e.config,n=e.elem.find(".layui-tree-checkedFirst");layui.each(n,function(e,a){i(a).children("."+u).find('input[name="layuiTreeCheck"]+').trigger("click")}),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),r=n.val(),l=n.nextAll(),d=[];l.find("."+p).each(function(){var e=i(this).parents("."+u);if(i(this).html().indexOf(r)!=-1){d.push(i(this).parent());var a=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+y)[0]&&a(e.parent("."+y).parent("."+s))};a(e.parent("."+s))}}),l.find("."+u).each(function(){var e=i(this).parent("."+s);e.hasClass("layui-tree-searchShow")||e.addClass(t)}),0==l.find(".layui-tree-searchShow").length&&e.elem.append(e.elemNone),a.onsearch&&a.onsearch({elem:d})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextAll().find("."+u).each(function(){var e=i(this).parent("."+s);e.removeClass("layui-tree-searchShow "+t)}),i(".layui-tree-emptyText")[0]&&i(".layui-tree-emptyText").remove()})},g.prototype.getChecked=function(){var e=this,a=e.config,n=[],r=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var l=function(e,a){layui.each(e,function(e,r){layui.each(n,function(e,n){if(r.id==n){var t=i.extend({},r);return delete t.children,a.push(t),r.children&&(t.children=[],l(r.children,t.children)),!0}})})};return l(i.extend({},a.data),r),r},g.prototype.setChecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var r=i(this).data("id"),l=i(n).children("."+u).find('input[name="layuiTreeCheck"]'),t=l.next();if("number"==typeof e){if(r==e)return l[0].checked||t.click(),!1}else i.inArray(r,e)!=-1&&(l[0].checked||t.click())})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getChecked=function(e){var i=l.that[e];return i.getChecked()},r.setChecked=function(e,i){var a=l.that[e];return a.setChecked(i)},r.render=function(e){var i=new g(e);return l.call(i)},e(n,r)});layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
        ','
        ','","
        ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
          ',"
          "].join("")},v=['
          ',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'
          ','",'","
          ",p({index:1,checkAllName:"layTransferRightCheckAll"}),"
          "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["
        • ",'',"
        • "].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('

          '+(t||"")+"

          ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)});layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,y,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.that[i]=e,c.config[i]=t),{config:t,reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},resize:function(){e.resize.call(e)}}},s=function(e){var t=c.config[e];return t||o.error("The ID option was not found in the table instance"),t||null},u=function(e,a,l,n){var o=e.templet?function(){return"function"==typeof e.templet?e.templet(l):i(t(e.templet).html()||String(a)).render(l)}():a;return n?t("
          "+o+"
          ").text():o},y="table",h=".layui-table",f="layui-hide",p="layui-none",v="layui-table-view",m=".layui-table-tool",g=".layui-table-box",b=".layui-table-init",x=".layui-table-header",k=".layui-table-body",C=".layui-table-main",w=".layui-table-fixed",T=".layui-table-fixed-l",A=".layui-table-fixed-r",L=".layui-table-total",N=".layui-table-page",S=".layui-table-sort",W="layui-table-edit",_="layui-table-hover",E=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colGroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
          ','
          ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
          ","
          "].join("")},z=['',"","
          "].join(""),H=['
          ',"{{# if(d.data.toolbar){ }}",'
          ','
          ','
          ',"
          ","{{# } }}",'
          ',"{{# if(d.data.loading){ }}",'
          ','',"
          ","{{# } }}","{{# var left, right; }}",'
          ',E(),"
          ",'
          ',z,"
          ","{{# if(left){ }}",'
          ','
          ',E({fixed:!0}),"
          ",'
          ',z,"
          ","
          ","{{# }; }}","{{# if(right){ }}",'
          ','
          ',E({fixed:"right"}),'
          ',"
          ",'
          ',z,"
          ","
          ","{{# }; }}","
          ","{{# if(d.data.totalRow){ }}",'
          ','','',"
          ","
          ","{{# } }}","{{# if(d.data.page){ }}",'
          ','
          ',"
          ","{{# } }}","","
          "].join(""),R=t(window),F=t(document),I=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};I.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"无数据"}},I.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||e.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=R.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+v),o=e.elem=t(i(H).render({VIEW_CLASS:v,data:a,index:e.index}));if(a.index=e.index,e.key=a.id||a.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(m),e.layBox=o.find(g),e.layHeader=o.find(x),e.layMain=o.find(C),e.layBody=o.find(k),e.layFixed=o.find(w),e.layFixLeft=o.find(T),e.layFixRight=o.find(A),e.layTotal=o.find(L),e.layPage=o.find(N),e.renderToolbar(),e.fullSize(),a.cols.length>1){var r=e.layFixed.find(x).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},I.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},I.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colGroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.HAS_PARENT||o>1&&o==n.colspan||(i.HAS_PARENT=!0,i.parentKey=e+"-"+l,o+=parseInt(i.colspan>1?i.colspan:1))}),n.colGroup=!0}t.initOpts(n)})})},I.prototype.renderToolbar=function(){var e=this,a=e.config,l=['
          ','
          ','
          '].join(""),n=e.layTool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if("string"==typeof a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},d=[];"object"==typeof a.defaultToolbar&&layui.each(a.defaultToolbar,function(e,t){var i=r[t];i&&d.push('
          ')}),e.layTool.find(".layui-table-tool-self").html(d.join(""))},I.prototype.setParentCol=function(e,t){var i=this,a=i.config,l=i.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseInt(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addClass":"removeClass"](f),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setParentCol(e,d)}},I.prototype.setColsPatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setParentCol(i.hide,i.parentKey)})})},I.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minWidth||t.cellMinWidth;return d?void(d.colGroup||d.hide||(e?l&&ln&&a&&(l=(o-n)/a)};r(),r(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth;a.colGroup||a.hide||(0===a.width?e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var d=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+d+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},I.prototype.resize=function(){var e=this;e.fullSize(),e.setColsWidth(),e.scrollPatch()},I.prototype.reload=function(e){var i=this;e=e||{},delete i.haveInit,e.data&&e.data.constructor===Array&&delete i.config.data,i.config=t.extend(!0,{},i.config,e),i.render()},I.prototype.errorView=function(e){var i=this,a=i.layMain.find("."+p),l=t('
          '+(e||"Error")+"
          ");a[0]&&(i.layNone.remove(),a.remove()),i.layFixed.addClass(f),i.layMain.find("tbody").html(""),i.layMain.append(i.layNone=l),d.cache[i.key]=[]},I.prototype.page=1,I.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var r={};r[l.pageName]=e,r[l.limitName]=a.limit;var d=t.extend(r,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(d=JSON.stringify(d)),i.loading(),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:d,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.errorView(t[n.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+n.statusName+'": '+n.statusCode)):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.errorView("数据接口请求异常:"+t),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var c={},s=e*a.limit-a.limit;c[n.dataName]=a.data.concat().splice(s,a.limit),c[n.countName]=a.data.length,i.renderData(c,e,c[n.countName]),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(c,e,c[n.countName])}},I.prototype.eachCols=function(e){var t=this;return d.eachCols(null,e,t.config.cols),t},I.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,y=e[s.response.dataName]||[],h=[],v=[],m=[],g=function(){var e;return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(y,function(a,l){var o=[],y=[],p=[],g=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexName]=a),c.eachCols(function(n,r){var c=r.field||n,h=s.index+"-"+r.key,v=l[c];if(void 0!==v&&null!==v||(v=""),!r.colGroup){var m=['','
          '+function(){var n=t.extend(!0,{LAY_INDEX:g},l),o=d.config.checkName;switch(r.type){case"checkbox":return'";case"radio":return n[o]&&(e=a),'';case"numbers":return g}return r.toolbar?i(t(r.toolbar).html()||"").render(n):u(r,v,n)}(),"
          "].join("");o.push(m),r.fixed&&"right"!==r.fixed&&y.push(m),"right"===r.fixed&&p.push(m)}}),h.push(''+o.join("")+""),v.push(''+y.join("")+""),m.push(''+p.join("")+""))}),c.layBody.scrollTop(0),c.layMain.find("."+p).remove(),c.layMain.find("tbody").html(h.join("")),c.layFixLeft.find("tbody").html(v.join("")),c.layFixRight.find("tbody").html(m.join("")),c.renderForm(),"number"==typeof e&&c.setThisRowChecked(e),c.syncCheckAll(),c.haveInit?c.scrollPatch():setTimeout(function(){c.scrollPatch()},50),c.haveInit=!0,l.close(c.tipsIndex),s.HAS_SET_COLS_PATCH||c.setColsPatch(),void(s.HAS_SET_COLS_PATCH=!0))};return d.cache[c.key]=y,c.layPage[0==o||0===y.length&&1==n?"addClass":"removeClass"](f),r?g():0===y.length?(c.renderForm(),c.errorView(s.text.none)):(c.layFixed.removeClass(f),g(),c.renderTotal(y),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},I.prototype.renderTotal=function(e){var t=this,i=t.config,a={};if(i.totalRow){layui.each(e,function(e,i){0!==i.length&&t.eachCols(function(e,t){var l=t.field||e,n=i[l];t.totalRow&&(a[l]=(a[l]||0)+(parseFloat(n)||0))})});var l=[];t.eachCols(function(e,t){var n=t.field||e,o=['','
          '+function(){var e=t.totalRowText||"";return t.totalRow?parseFloat(a[n]).toFixed(2)||e:e}(),"
          "].join("");l.push(o)}),t.layTotal.find("tbody").html(""+l.join("")+"")}},I.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},I.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},I.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},I.prototype.sort=function(e,i,a,l){var n,r,c=this,s={},u=c.config,h=u.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var v=c.layHeader.find("th .laytable-cell-"+p).find(S);c.layHeader.find("th").find(S).removeAttr("lay-sort"),v.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},u.autoSort&&("asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexName),delete c.sortKey)),s[u.response.dataName]=r||f,c.renderData(s,c.page,c.count,!0),l&&layui.event.call(e,y,"sort("+h+")",{field:n,type:i})},I.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(b).remove()):(i.layInit=t(['
          ','',"
          "].join("")),i.layBox.append(i.layInit)))},I.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},I.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},I.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(i,a){if(a.selectorText===".laytable-cell-"+e)return t(a),!0})},I.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=R.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e-=t.layPage.outerHeight()||41),t.layMain.css("height",e-2))},I.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},I.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('
          ');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var r=e.layMain.height(),d=r-l;e.layFixed.find(k).css("height",i.height()>=d?d:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](f),e.layFixRight.css("right",a-1)},I.prototype.events=function(){var e,a=this,o=a.config,c=t("body"),s={},u=a.layHeader.find("th"),h=".layui-table-cell",p=o.elem.attr("lay-filter");a.layTool.on("click","*[lay-event]",function(e){var i=t(this),c=i.attr("lay-event"),s=function(e){var l=t(e.list),n=t('
            ');n.html(l),o.height&&n.css("max-height",o.height-(a.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(n),a.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),F.trigger("table.tool.panel.remove"),l.close(a.tipsIndex),c){case"LAYTABLE_COLS":s({list:function(){var e=[];return a.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('
          • ')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var i=t(e.elem),l=this.checked,n=i.data("key"),r=i.data("parentkey");layui.each(o.cols,function(e,t){layui.each(t,function(t,i){if(e+"-"+t===n){var d=i.hide;i.hide=!l,a.elem.find('*[data-key="'+o.index+"-"+n+'"]')[l?"removeClass":"addClass"](f),d!=i.hide&&a.setParentCol(!l,r),a.resize()}})})})}});break;case"LAYTABLE_EXPORT":r.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):s({list:function(){return['
          • 导出到 Csv 文件
          • ','
          • 导出到 Excel 文件
          • '].join("")}(),done:function(e,i){i.on("click",function(){var e=t(this).data("type");d.exportFile(o.id,null,e)})}});break;case"LAYTABLE_PRINT":var u=window.open("打印窗口","_blank"),h=[""].join(""),v=t(a.layHeader.html());v.append(a.layMain.find("table").html()),v.append(a.layTotal.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),u.document.write(h+v.prop("outerHTML")),u.document.close(),u.print(),u.close()}layui.event.call(this,y,"toolbar("+p+")",t.extend({event:c,config:o},{}))}),u.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.data("unresize")||s.resizeStart||(s.allowResize=i.width()-l<=10,c.css("cursor",s.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);s.resizeStart||c.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(s.allowResize){var l=i.data("key");e.preventDefault(),s.resizeStart=!0,s.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();s.rule=e,s.ruleWidth=parseFloat(t),s.minWidth=i.data("minwidth")||o.cellMinWidth})}}),F.on("mousemove",function(t){if(s.resizeStart){if(t.preventDefault(),s.rule){var i=s.ruleWidth+t.clientX-s.offset[0];i');return n[0].value=i.data("content")||l.text(),i.find("."+W)[0]||i.append(n),n.focus(),void layui.stope(e)}}).on("mouseenter","td",function(){b.call(this)}).on("mouseleave","td",function(){b.call(this,"hide")});var g="layui-table-grid-down",b=function(e){var i=t(this),a=i.children(h);if(!i.data("off"))if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('
            ')}};a.layBody.on("click","."+g,function(e){var i=t(this),n=i.parent(),d=n.children(h);a.tipsIndex=l.tips(['
            ',d.html(),"
            ",''].join(""),d[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:a.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}),layui.stope(e)}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),i=e.parents("tr").eq(0).data("index");layui.event.call(this,y,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),a.setThisRowChecked(i)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layTotal.scrollLeft(i),a.layFixed.find(k).scrollTop(n),l.close(a.tipsIndex)}),F.on("click",function(){F.trigger("table.remove.tool.panel")}),F.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()}),R.on("resize",function(){a.resize()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':h+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.that={},c.config={},d.eachCols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colGroup){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL_INDEX||l>1&&l==i.colspan||(t.PARENT_COL_INDEX=o,i.CHILD_COLS.push(t),l+=parseInt(t.colspan>1?t.colspan:1))})}i.PARENT_COL_INDEX||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?r(t.CHILD_COLS):void("function"==typeof i&&i(e,t))})};r()},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},d.exportFile=function(e,t,i){t=t||d.clearCacheKey(d.cache[e]),i=i||"csv";var a=c.config[e]||{},l={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],n=document.createElement("a");return r.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(n.href="data:"+l+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],a=[];return layui.each(t,function(t,l){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearCacheKey(l),function(e,t){n.push('"'+(t||"")+'"')})):d.eachCols(e,function(e,a){a.field&&"normal"==a.type&&!a.hide&&(0==t&&i.push(a.title||""),n.push('"'+u(a,l[a.field],l,"text")+'"'))}),a.push(n.join(","))}),i.join(",")+"\r\n"+a.join("\r\n")}()),n.download=(a.title||"table_"+(a.index||""))+"."+i,document.body.appendChild(n),n.click(),void document.body.removeChild(n))},d.resize=function(e){if(e){var t=s(e);if(!t)return;c.that[e].resize()}else layui.each(c.that,function(){this.resize()})},d.reload=function(e,t){var i=s(e);if(i){var a=c.that[e];return a.reload(t),c.call(a)}},d.render=function(e){var t=new I(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(y,d)});layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
              ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
            "].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a",u=1;u<=i.length;u++){var r='
          • ";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'
          • ":n+=r}n+=""+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)});layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['
              ',t.bar1?'
            • '+c[0]+"
            • ":"",t.bar2?'
            • '+c[1]+"
            • ":"",'
            • '+c[2]+"
            • ","
            "].join("")),s=g.find("."+o),u=function(){var e=r.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+a)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),n=i.attr("lay-type");"top"===n&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var n=this,a="function"==typeof e,o=new Date(t).getTime(),r=new Date(!e||a?(new Date).getTime():e).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=e);var g=setTimeout(function(){n.countdown(t,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(t).getTime();return a>6912e5?(a=new Date(t),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),e||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var n=t.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(t,n,a){n=i.event[t]=e.extend(!0,i.event[t],n)||{},e("body").on(a||"click","*["+t+"]",function(){var i=e(this),a=i.attr(t);n[a]&&n[a].call(this,i)})}};!function(t,e,i){"$:nomunge";function n(){a=e[l](function(){o.each(function(){var e=t(this),i=e.width(),n=e.height(),a=t.data(this,g);(i!==a.w||n!==a.h)&&e.trigger(c,[a.w=i,a.h=n])}),n()},r[s])}var a,o=t([]),r=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";r[s]=250,r[u]=!0,t.event.special[c]={setup:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===o.length&&n()},teardown:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.not(e),e.removeData(g),o.length||clearTimeout(a)},add:function(e){function n(e,n,o){var r=t(this),l=t.data(this,g)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[u]&&this[l])return!1;var a;return t.isFunction(e)?(a=e,n):(a=e.handler,void(e.handler=n))}}}(e,window),t("util",i)});layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("string"==typeof t?"#"+t:t),u="LAY_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hideTool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){C[a]&&!e[a]&&t.push(C[a])}),t.join("")}(),m=e(['
            ','
            '+f+"
            ",'
            ','',"
            ","
            "].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e([""].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"

            ")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"

            "),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"

            "),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['

              ','
            • ','','
              ','',"
              ","
            • ",'
            • ','','
              ','",'","
              ","
            • ",'
            • ','','',"
            • ","
            "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
          • '+e+'
          • ')}),'
              '+t.join("")+"
            "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['
              ','
            • ','','
              ','","
              ","
            • ",'
            • ','','
              ','',"
              ","
            • ",'
            • ','','',"
            • ","
            "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new c;t(n,w)});layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
            1. '+o.replace(/[\r\t\n]+/g,"
            2. ")+"
            "),c.find(">.layui-code-h3")[0]||c.prepend('

            '+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

            ");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); ================================================ FILE: lib/layui/layui.js ================================================ /** layui-v2.5.4 MIT License By https://www.layui.com */ ; ! function(e) { "use strict"; var t = document, o = { modules: {}, status: {}, timeout: 10, event: {} }, n = function() { this.v = "2.5.4" }, r = function() { var e = t.currentScript ? t.currentScript.src : function() { for (var e, o = t.scripts, n = o.length - 1, r = n; r > 0; r--) if ("interactive" === o[r].readyState) { e = o[r].src; break } return e || o[n].src }(); return e.substring(0, e.lastIndexOf("/") + 1) }(), i = function(t) { e.console && console.error && console.error("Layui hint: " + t) }, a = "undefined" != typeof opera && "[object Opera]" === opera.toString(), u = { layer: "modules/layer", laydate: "modules/laydate", laypage: "modules/laypage", laytpl: "modules/laytpl", layim: "modules/layim", layedit: "modules/layedit", form: "modules/form", upload: "modules/upload", transfer: "modules/transfer", tree: "modules/tree", table: "modules/table", element: "modules/element", rate: "modules/rate", colorpicker: "modules/colorpicker", slider: "modules/slider", carousel: "modules/carousel", flow: "modules/flow", util: "modules/util", code: "modules/code", jquery: "modules/jquery", mobile: "modules/mobile", "layui.all": "../layui.all", // ok-admin自定义模块 okTab: "okmodules/okTab", okMenu: "okmodules/okMenu", okLayer: "okmodules/okLayer", okUtils: "okmodules/okUtils", okProgress: "okmodules/okProgress/okProgress", treetable: "okmodules/treetable/treetable" }; n.prototype.cache = o, n.prototype.define = function(e, t) { var n = this, r = "function" == typeof e, i = function() { var e = function(e, t) { layui[e] = t, o.status[e] = !0 }; return "function" == typeof t && t(function(n, r) { e(n, r), o.callback[n] = function() { t(e) } }), this }; return r && (t = e, e = []), !layui["layui.all"] && layui["layui.mobile"] ? i.call(n) : (n.use(e, i), n) }, n.prototype.use = function(e, n, l) { function s(e, t) { var n = "PLaySTATION 3" === navigator.platform ? /^complete$/ : /^(complete|loaded)$/; ("load" === e.type || n.test((e.currentTarget || e.srcElement).readyState)) && (o.modules[f] = t, d.removeChild(v), function r() { return ++m > 1e3 * o.timeout / 4 ? i(f + " is not a valid module") : void(o.status[f] ? c() : setTimeout(r, 4)) }()) } function c() { l.push(layui[f]), e.length > 1 ? y.use(e.slice(1), n, l) : "function" == typeof n && n.apply(layui, l) } var y = this, p = o.dir = o.dir ? o.dir : r, d = t.getElementsByTagName("head")[0]; e = "string" == typeof e ? [e] : e, window.jQuery && jQuery.fn.on && (y.each(e, function(t, o) { "jquery" === o && e.splice(t, 1) }), layui.jquery = layui.$ = jQuery); var f = e[0], m = 0; if (l = l || [], o.host = o.host || (p.match(/\/\/([\s\S]+?)\//) || ["//" + location.host + "/"])[0], 0 === e.length || layui["layui.all"] && u[f] || !layui["layui.all"] && layui["layui.mobile"] && u[f]) return c(), y; if (o.modules[f]) ! function g() { return ++m > 1e3 * o.timeout / 4 ? i(f + " is not a valid module") : void("string" == typeof o.modules[f] && o.status[ f] ? c() : setTimeout(g, 4)) }(); else { var v = t.createElement("script"), h = (u[f] ? p + "lay/" : /^\{\/\}/.test(y.modules[f]) ? "" : o.base || "") + (y.modules[f] || f) + ".js"; h = h.replace(/^\{\/\}/, ""), v.async = !0, v.charset = "utf-8", v.src = h + function() { var e = o.version === !0 ? o.v || (new Date).getTime() : o.version || ""; return e ? "?v=" + e : "" }(), d.appendChild(v), !v.attachEvent || v.attachEvent.toString && v.attachEvent.toString().indexOf("[native code") < 0 || a ? v.addEventListener("load", function(e) { s(e, h) }, !1) : v.attachEvent("onreadystatechange", function(e) { s(e, h) }), o.modules[f] = h } return y }, n.prototype.getStyle = function(t, o) { var n = t.currentStyle ? t.currentStyle : e.getComputedStyle(t, null); return n[n.getPropertyValue ? "getPropertyValue" : "getAttribute"](o) }, n.prototype.link = function(e, n, r) { var a = this, u = t.createElement("link"), l = t.getElementsByTagName("head")[0]; "string" == typeof n && (r = n); var s = (r || e).replace(/\.|\//g, ""), c = u.id = "layuicss-" + s, y = 0; return u.rel = "stylesheet", u.href = e + (o.debug ? "?v=" + (new Date).getTime() : ""), u.media = "all", t.getElementById( c) || l.appendChild(u), "function" != typeof n ? a : (function p() { return ++y > 1e3 * o.timeout / 100 ? i(e + " timeout") : void(1989 === parseInt(a.getStyle(t.getElementById(c), "width")) ? function() { n() }() : setTimeout(p, 100)) }(), a) }, o.callback = {}, n.prototype.factory = function(e) { if (layui[e]) return "function" == typeof o.callback[e] ? o.callback[e] : null }, n.prototype.addcss = function(e, t, n) { return layui.link(o.dir + "css/" + e, t, n) }, n.prototype.img = function(e, t, o) { var n = new Image; return n.src = e, n.complete ? t(n) : (n.onload = function() { n.onload = null, "function" == typeof t && t(n) }, void(n.onerror = function(e) { n.onerror = null, "function" == typeof o && o(e) })) }, n.prototype.config = function(e) { e = e || {}; for (var t in e) o[t] = e[t]; return this }, n.prototype.modules = function() { var e = {}; for (var t in u) e[t] = u[t]; return e }(), n.prototype.extend = function(e) { var t = this; e = e || {}; for (var o in e) t[o] || t.modules[o] ? i("模块名 " + o + " 已被占用") : t.modules[o] = e[o]; return t }, n.prototype.router = function(e) { var t = this, e = e || location.hash, o = { path: [], search: {}, hash: (e.match(/[^#](#.*$)/) || [])[1] || "" }; return /^#\//.test(e) ? (e = e.replace(/^#\//, ""), o.href = "/" + e, e = e.replace(/([^#])(#.*$)/, "$1").split("/") || [], t.each(e, function(e, t) { /^\w+=/.test(t) ? function() { t = t.split("="), o.search[t[0]] = t[1] }() : o.path.push(t) }), o) : o }, n.prototype.data = function(t, o, n) { if (t = t || "layui", n = n || localStorage, e.JSON && e.JSON.parse) { if (null === o) return delete n[t]; o = "object" == typeof o ? o : { key: o }; try { var r = JSON.parse(n[t]) } catch (i) { var r = {} } return "value" in o && (r[o.key] = o.value), o.remove && delete r[o.key], n[t] = JSON.stringify(r), o.key ? r[o.key] : r } }, n.prototype.sessionData = function(e, t) { return this.data(e, t, sessionStorage) }, n.prototype.device = function(t) { var o = navigator.userAgent.toLowerCase(), n = function(e) { var t = new RegExp(e + "/([^\\s\\_\\-]+)"); return e = (o.match(t) || [])[1], e || !1 }, r = { os: function() { return /windows/.test(o) ? "windows" : /linux/.test(o) ? "linux" : /iphone|ipod|ipad|ios/.test(o) ? "ios" : /mac/.test(o) ? "mac" : void 0 }(), ie: function() { return !!(e.ActiveXObject || "ActiveXObject" in e) && ((o.match(/msie\s(\d+)/) || [])[1] || "11") }(), weixin: n("micromessenger") }; return t && !r[t] && (r[t] = n(t)), r.android = /android/.test(o), r.ios = "ios" === r.os, r }, n.prototype.hint = function() { return { error: i } }, n.prototype.each = function(e, t) { var o, n = this; if ("function" != typeof t) return n; if (e = e || [], e.constructor === Object) { for (o in e) if (t.call(e[o], o, e[o])) break } else for (o = 0; o < e.length && !t.call(e[o], o, e[o]); o++); return n }, n.prototype.sort = function(e, t, o) { var n = JSON.parse(JSON.stringify(e || [])); return t ? (n.sort(function(e, o) { var n = /^-?\d+$/, r = e[t], i = o[t]; return n.test(r) && (r = parseFloat(r)), n.test(i) && (i = parseFloat(i)), r && !i ? 1 : !r && i ? -1 : r > i ? 1 : r < i ? -1 : 0 }), o && n.reverse(), n) : n }, n.prototype.stope = function(t) { t = t || e.event; try { t.stopPropagation() } catch (o) { t.cancelBubble = !0 } }, n.prototype.onevent = function(e, t, o) { return "string" != typeof e || "function" != typeof o ? this : n.event(e, t, null, o) }, n.prototype.event = n.event = function(e, t, n, r) { var i = this, a = null, u = t.match(/\((.*)\)$/) || [], l = (e + "." + t).replace(u[0], ""), s = u[1] || "", c = function(e, t) { var o = t && t.call(i, n); o === !1 && null === a && (a = !1) }; return r ? (o.event[l] = o.event[l] || {}, o.event[l][s] = [r], this) : (layui.each(o.event[l], function(e, t) { return "{*}" === s ? void layui.each(t, c) : ("" === e && layui.each(t, c), void(s && e === s && layui.each(t, c))) }), a) }, e.layui = new n }(window); ================================================ FILE: lib/zTree_v3/.gitignore ================================================ ################# ## Eclipse ################# *.pydevproject .project .metadata bin/ tmp/ *.tmp *.bak *.swp *~.nib local.properties .classpath .settings/ .loadpath # External tool builders .externalToolBuilders/ # Locally stored "Eclipse launch configurations" *.launch # CDT-specific .cproject # PDT-specific .buildpath ################# ## Visual Studio ################# ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. # User-specific files *.suo *.user *.sln.docstates # Build results [Dd]ebug/ [Rr]elease/ *_i.c *_p.c *.ilk *.meta *.obj *.pch *.pdb *.pgc *.pgd *.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.vspscc .builds *.dotCover ## TODO: If you have NuGet Package Restore enabled, uncomment this #packages/ # Visual C++ cache files ipch/ *.aps *.ncb *.opensdf *.sdf # Visual Studio profiler *.psess *.vsp # ReSharper is a .NET coding add-in _ReSharper* # Installshield output folder [Ee]xpress # DocProject is a documentation generator add-in DocProject/buildhelp/ DocProject/Help/*.HxT DocProject/Help/*.HxC DocProject/Help/*.hhc DocProject/Help/*.hhk DocProject/Help/*.hhp DocProject/Help/Html2 DocProject/Help/html # Click-Once directory publish # Others [Bb]in [Oo]bj sql TestResults *.Cache ClientBin stylecop.* ~$* *.dbmdl Generated_Code #added for RIA/Silverlight projects # Backup & report files from converting an old project file to a newer # Visual Studio version. Backup files are not needed, because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML ############ ## Windows ############ # Windows image file caches Thumbs.db # Folder config file Desktop.ini ############# ## Python ############# *.py[co] # Packages *.egg *.egg-info dist build eggs parts bin var sdist develop-eggs .installed.cfg # Installer logs pip-log.txt # Unit test / coverage reports .coverage .tox #Translations *.mo #Mr Developer .mr.developer.cfg # Mac crap .DS_Store ================================================ FILE: lib/zTree_v3/README.md ================================================ jQuery Tree Plugin ---- zTree ============ last verson : 3.5.40 **Donate to zTree** : http://www.treejs.cn/v3/donate.php zTree API : http://www.treejs.cn/v3/api.php zTree Demo : http://www.treejs.cn/v3/demo.php ### INSTALL ``` npm install @ztree/ztree_v3 ``` Introduction of zTree (简介) ============ * zTree is a multi-functional "tree plug-ins." based on jQuery. The main advantages of zTree includes excellent performance, flexible configuration, and the combination of multiple functions. (zTree 是一个依靠 jQuery 实现的多功能 “树插件”。优异的性能、灵活的配置、多种功能的组合是 zTree 最大优点。) * zTree is a free tree plug-in and uses the MIT license. (zTree 是开源免费的软件, 使用 MIT 许可证) * The code of zTree v3.x has been seperated according to the various functions. You can only load the code you need. (zTree v3.x 将核心代码按照功能进行了分割,不需要的代码可以不用加载) * zTree v3.x uses delay loading technique, which can easily load tens of thousands of nodes in seconds even in IE6 browser. (采用了 延迟加载 技术,上万节点轻松加载,即使在 IE6 下也能基本做到秒杀) * Compatible with IE, FireFox?, Chrome, Opera, Safari and other browsers. (兼容 IE、FireFox?、Chrome、Opera、Safari 等浏览器) * Support for JSON data. (支持 JSON 数据) * Support for static and asynchronous data loading node. (支持静态 和 Ajax 异步加载节点数据) * Replace the skin / custom icon flexibllly. (支持任意更换皮肤 / 自定义图标) * Support extremely flexible checkbox or radio selection function. (支持极其灵活的 checkbox 或 radio 选择功能) * Provide enough incident response callback. (提供多种事件响应回调) * Flexible editing (add / delete / change / search) functions, such as drag and drop nodes,you can even drag and drop multiple nodes. (灵活的编辑(增/删/改/查)功能,可随意拖拽节点,还可以多节点拖拽哟) * Enable to generate multiple instances of zTree in one page. (在一个页面内可同时生成多个 Tree 实例) * Simple parameters to achieve flexible configuration capabilities. (简单的参数配置实现 灵活多变的功能) * To enhance performance, zTree transforms the js & css structure to provide excellent browser compatibility and make the development more easily (zTree v3.x(JQuery Tree 插件),性能全面提升,js & css 架构全面调整,提供更好的兼容性和易开发性) ================================================ FILE: lib/zTree_v3/api/API_cn.html ================================================ API 文档 [zTree -- jQuery 树插件]
            • setting 配置详解
              • zTree 方法详解
                • treeNode 节点数据详解
                  ================================================ FILE: lib/zTree_v3/api/API_en.html ================================================ API Document [zTree -- jQuery tree plug-ins.]
                  • setting details
                    • zTree method details
                      • treeNode data details
                        ================================================ FILE: lib/zTree_v3/api/apiCss/api.js ================================================ var apiContent = { zTree_Setting: null, zTree_Node: null, zTree_Function: null, overlayDiv : null, overlayContent : null, overlayDetailDiv : null, overlayCloseBtn: null, overlayArrow: null, contentBoxDiv : null, settingDiv : null, functionDiv : null, overlaySearch: null, searchKey: null, searchResultInput: null, searchPrevBtn: null, searchNextBtn: null, apiCache: {}, lastValue: "", searchNodes: [], searchNodesCur: 0, _init: function() { this.overlayDiv = $("#overlayDiv"); this.overlayContent = $("#overlayContent"); this.overlayDetailDiv = $("#overlayDetailDiv"); this.overlayCloseBtn = $("#overlayDivCloseBtn"); this.overlayArrow = $("#overlayDivArrow"); this.contentBoxDiv = $("#contentBox"); this.settingDiv = $("#api_setting"); this.functionDiv = $("#api_function"); this.searchKey = $(".searchKey"); this.overlaySearch = $(".overlaySearch"); this.searchResultInput = $(".searchResult"); this.searchPrevBtn = $(".searchPrev"); this.searchNextBtn = $(".searchNext"); var setting = { view: { fontCss: this.getFontCss, showLine: false, showIcon: this.showIcon, showTitle: this.getTitle, selectedMulti: false, dblClickExpand: false }, data: { key: { title: "tt" }, simpleData: { enable:true, idKey: "id", pIdKey: "pId", rootPId: "" } }, callback: { onNodeCreated: this.onNodeCreated, beforeClick: this.beforeClick } }; var setting_nodes =[ {id:1, pId:0, t:"setting", name:"var setting = {", open:true}, {id:11, pId:1, t:"treeId", name:"treeId : \"\",", iconSkin:"core", showAPI:true}, {id:12, pId:1, t:"treeObj", name:"treeObj : null,", iconSkin:"core", showAPI:true}, {id:121, pId:1, name:""}, {id:20, pId:1, t:"async", name:"async : {", open:true}, {id:201, pId:20, t:"autoParam", name:"autoParam : [],", iconSkin:"core", showAPI:true}, {id:208, pId:20, t:"contentType", name:"contentType : \"application...\",", iconSkin:"core", showAPI:true}, {id:202, pId:20, t:"dataFilter", name:"dataFilter : null,", iconSkin:"core", showAPI:true}, {id:203, pId:20, t:"dataType", name:"dataType : \"text\",", iconSkin:"core", showAPI:true}, {id:204, pId:20, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, {id:205, pId:20, t:"otherParam", name:"otherParam : [],", iconSkin:"core", showAPI:true}, {id:206, pId:20, t:"type", name:"type : \"post\",", iconSkin:"core", showAPI:true}, {id:209, pId:20, t:"headers", name:"headers : {},", iconSkin:"core", showAPI:true}, {id:210, pId:20, t:"xhrFields", name:"xhrFields : {},", iconSkin:"core", showAPI:true}, {id:207, pId:20, t:"url", name:"url : \"\"", iconSkin:"core", showAPI:true}, {id:21, pId:1, name:"},"}, {id:22, pId:1, name:""}, {id:30, pId:1, t:"callback", name:"callback : {", open:true}, {id:3001, pId:30, t:"beforeAsync", name:"beforeAsync : null,", iconSkin:"core", showAPI:true}, {id:3002, pId:30, t:"beforeCheck", name:"beforeCheck : null,", iconSkin:"check", showAPI:true}, {id:3003, pId:30, t:"beforeClick", name:"beforeClick : null,", iconSkin:"core", showAPI:true}, {id:3004, pId:30, t:"beforeCollapse", name:"beforeCollapse : null,", iconSkin:"core", showAPI:true}, {id:3004, pId:30, t:"beforeDblClick", name:"beforeDblClick : null,", iconSkin:"core", showAPI:true}, {id:3005, pId:30, t:"beforeDrag", name:"beforeDrag : null,", iconSkin:"edit", showAPI:true}, {id:3006, pId:30, t:"beforeDragOpen", name:"beforeDragOpen : null,", iconSkin:"edit", showAPI:true}, {id:3007, pId:30, t:"beforeDrop", name:"beforeDrop : null,", iconSkin:"edit", showAPI:true}, {id:3029, pId:30, t:"beforeEditName", name:"beforeEditName : null,", iconSkin:"edit", showAPI:true}, {id:3008, pId:30, t:"beforeExpand", name:"beforeExpand : null,", iconSkin:"core", showAPI:true}, {id:3009, pId:30, t:"beforeMouseDown", name:"beforeMouseDown : null,", iconSkin:"core", showAPI:true}, {id:3010, pId:30, t:"beforeMouseUp", name:"beforeMouseUp : null,", iconSkin:"core", showAPI:true}, {id:3011, pId:30, t:"beforeRemove", name:"beforeRemove : null,", iconSkin:"edit", showAPI:true}, {id:3012, pId:30, t:"beforeRename", name:"beforeRename : null,", iconSkin:"edit", showAPI:true}, {id:3013, pId:30, t:"beforeRightClick", name:"beforeRightClick : null,", iconSkin:"core", showAPI:true}, {id:3014, pId:30, name:""}, {id:3015, pId:30, t:"onAsyncError", name:"onAsyncError : null,", iconSkin:"core", showAPI:true}, {id:3016, pId:30, t:"onAsyncSuccess", name:"onAsyncSuccess : null,", iconSkin:"core", showAPI:true}, {id:3017, pId:30, t:"onCheck", name:"onCheck : null,", iconSkin:"check", showAPI:true}, {id:3018, pId:30, t:"onClick", name:"onClick : null,", iconSkin:"core", showAPI:true}, {id:3019, pId:30, t:"onCollapse", name:"onCollapse : null,", iconSkin:"core", showAPI:true}, {id:3029, pId:30, t:"onDblClick", name:"onDblClick : null,", iconSkin:"core", showAPI:true}, {id:3020, pId:30, t:"onDrag", name:"onDrag : null,", iconSkin:"edit", showAPI:true}, {id:3030, pId:30, t:"onDragMove", name:"onDragMove : null,", iconSkin:"edit", showAPI:true}, {id:3021, pId:30, t:"onDrop", name:"onDrop : null,", iconSkin:"edit", showAPI:true}, {id:3022, pId:30, t:"onExpand", name:"onExpand : null,", iconSkin:"core", showAPI:true}, {id:3023, pId:30, t:"onMouseDown", name:"onMouseDown : null,", iconSkin:"core", showAPI:true}, {id:3024, pId:30, t:"onMouseUp", name:"onMouseUp : null,", iconSkin:"core", showAPI:true}, {id:3025, pId:30, t:"onNodeCreated", name:"onNodeCreated : null,", iconSkin:"core", showAPI:true}, {id:3026, pId:30, t:"onRemove", name:"onRemove : null,", iconSkin:"edit", showAPI:true}, {id:3027, pId:30, t:"onRename", name:"onRename : null,", iconSkin:"edit", showAPI:true}, {id:3028, pId:30, t:"onRightClick", name:"onRightClick : null", iconSkin:"core", showAPI:true}, {id:31, pId:1, name:"},"}, {id:32, pId:1, name:""}, {id:40, pId:1, t:"check", name:"check : {", open:true}, {id:405, pId:40, t:"autoCheckTrigger", name:"autoCheckTrigger : false,", iconSkin:"check", showAPI:true}, {id:401, pId:40, t:"chkboxType", name:"chkboxType : {\"Y\": \"ps\", \"N\": \"ps\"},", iconSkin:"check", showAPI:true}, {id:402, pId:40, t:"chkStyle", name:"chkStyle : \"checkbox\",", iconSkin:"check", showAPI:true}, {id:403, pId:40, t:"enable", name:"enable : false,", iconSkin:"check", showAPI:true}, {id:406, pId:40, t:"nocheckInherit", name:"nocheckInherit : false", iconSkin:"check", showAPI:true}, {id:407, pId:40, t:"chkDisabledInherit", name:"chkDisabledInherit : false", iconSkin:"check", showAPI:true}, {id:404, pId:40, t:"radioType", name:"radioType : \"level\"", iconSkin:"check", showAPI:true}, {id:41, pId:1, name:"},"}, {id:42, pId:1, name:""}, {id:50, pId:1, t:"data", name:"data : {", open:true}, {id:500, pId:50, t:"keep", name:"keep : {", open:true}, {id:5001, pId:500, t:"leaf", name:"leaf : false,", iconSkin:"core", showAPI:true}, {id:5002, pId:500, t:"parent", name:"parent : false", iconSkin:"core", showAPI:true}, {id:501, pId:50, name:"},"}, {id:510, pId:50, t:"key", name:"key : {", open:true}, {id:5101, pId:510, t:"checked", name:"checked : \"checked\",", iconSkin:"check", showAPI:true}, {id:5102, pId:510, t:"children", name:"children : \"children\",", iconSkin:"core", showAPI:true}, {id:5106, pId:510, t:"isParent", name:"isParent : \"isParent\",", iconSkin:"core", showAPI:true}, {id:5107, pId:510, t:"isHidden", name:"isHidden : \"isHidden\",", iconSkin:"hide", showAPI:true}, {id:5103, pId:510, t:"name", name:"name : \"name\",", iconSkin:"core", showAPI:true}, {id:5104, pId:510, t:"title", name:"title : \"\"", iconSkin:"core", showAPI:true}, {id:5105, pId:510, t:"url", name:"url : \"url\"", iconSkin:"core", showAPI:true}, {id:511, pId:50, name:"},"}, {id:520, pId:50, t:"simpleData", name:"simpleData : {", open:true}, {id:5201, pId:520, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, {id:5202, pId:520, t:"idKey", name:"idKey : \"id\",", iconSkin:"core", showAPI:true}, {id:5203, pId:520, t:"pIdKey", name:"pIdKey : \"pId\",", iconSkin:"core", showAPI:true}, {id:5204, pId:520, t:"rootPId", name:"rootPId : null", iconSkin:"core", showAPI:true}, {id:521, pId:50, name:"}"}, {id:51, pId:1, name:"},"}, {id:52, pId:1, name:""}, {id:60, pId:1, t:"edit", name:"edit : {", open:true}, {id:601, pId:60, t:"drag", name:"drag : {", open:true}, {id:60111, pId:601, t:"autoExpandTrigger", name:"autoExpandTrigger : true,", iconSkin:"edit", showAPI:true}, {id:60101, pId:601, t:"isCopy", name:"isCopy : true,", iconSkin:"edit", showAPI:true}, {id:60102, pId:601, t:"isMove", name:"isMove : true,", iconSkin:"edit", showAPI:true}, {id:60103, pId:601, t:"prev", name:"prev : true,", iconSkin:"edit", showAPI:true}, {id:60104, pId:601, t:"next", name:"next : true,", iconSkin:"edit", showAPI:true}, {id:60105, pId:601, t:"inner", name:"inner : true,", iconSkin:"edit", showAPI:true}, {id:60107, pId:601, t:"borderMax", name:"borderMax : 10,", iconSkin:"edit", showAPI:true}, {id:60108, pId:601, t:"borderMin", name:"borderMin : -5,", iconSkin:"edit", showAPI:true}, {id:60106, pId:601, t:"minMoveSize", name:"minMoveSize : 5,", iconSkin:"edit", showAPI:true}, {id:60109, pId:601, t:"maxShowNodeNum", name:"maxShowNodeNum : 5,", iconSkin:"edit", showAPI:true}, {id:60110, pId:601, t:"autoOpenTime", name:"autoOpenTime : 500", iconSkin:"edit", showAPI:true}, {id:602, pId:60, name:"},"}, {id:608, pId:60, t:"editNameSelectAll", name:"editNameSelectAll : false,", iconSkin:"edit", showAPI:true}, {id:603, pId:60, t:"enable", name:"enable : false,", iconSkin:"edit", showAPI:true}, {id:604, pId:60, t:"removeTitle", name:"removeTitle : \"remove\",", iconSkin:"edit", showAPI:true}, {id:605, pId:60, t:"renameTitle", name:"renameTitle : \"rename\",", iconSkin:"edit", showAPI:true}, {id:606, pId:60, t:"showRemoveBtn", name:"showRemoveBtn : true,", iconSkin:"edit", showAPI:true}, {id:607, pId:60, t:"showRenameBtn", name:"showRenameBtn : true", iconSkin:"edit", showAPI:true}, {id:61, pId:1, name:"},"}, {id:62, pId:1, name:""}, {id:70, pId:1, t:"view", name:"view : {", open:true}, {id:7001, pId:70, t:"addDiyDom", name:"addDiyDom : null,", iconSkin:"core", showAPI:true}, {id:7002, pId:70, t:"addHoverDom", name:"addHoverDom : null,", iconSkin:"edit", showAPI:true}, {id:7003, pId:70, t:"autoCancelSelected", name:"autoCancelSelected : true,", iconSkin:"core", showAPI:true}, {id:7004, pId:70, t:"dblClickExpand", name:"dblClickExpand : true,", iconSkin:"core", showAPI:true}, {id:7005, pId:70, t:"expandSpeed", name:"expandSpeed : \"fast\",", iconSkin:"core", showAPI:true}, {id:7006, pId:70, t:"fontCss", name:"fontCss : {},", iconSkin:"core", showAPI:true}, {id:7012, pId:70, t:"nameIsHTML", name:"nameIsHTML : false,", iconSkin:"core", showAPI:true}, {id:7007, pId:70, t:"removeHoverDom", name:"removeHoverDom : null,", iconSkin:"edit", showAPI:true}, {id:7008, pId:70, t:"selectedMulti", name:"selectedMulti : true,", iconSkin:"core", showAPI:true}, {id:7009, pId:70, t:"showIcon", name:"showIcon : true,", iconSkin:"core", showAPI:true}, {id:7010, pId:70, t:"showLine", name:"showLine : true,", iconSkin:"core", showAPI:true}, {id:7011, pId:70, t:"showTitle", name:"showTitle : true,", iconSkin:"core", showAPI:true}, {id:7012, pId:70, t:"txtSelectedEnable", name:"txtSelectedEnable : false", iconSkin:"core", showAPI:true}, {id:71, pId:1, name:"}"}, {id:2, pId:0, name:"}"} ]; var treenode_nodes =[ {id:1, pId:0, t:"treeNode", name:"treeNode : {", open:true}, {id:101, pId:1, t:"checked", name:"checked", iconSkin:"check", showAPI:true}, {id:102, pId:1, t:"children", name:"children", iconSkin:"core", showAPI:true}, {id:128, pId:1, t:"chkDisabled", name:"chkDisabled", iconSkin:"check", showAPI:true}, {id:127, pId:1, t:"click", name:"click", iconSkin:"core", showAPI:true}, {id:103, pId:1, t:"getCheckStatus", name:"getCheckStatus ()", iconSkin:"check", showAPI:true}, {id:135, pId:1, t:"getIndex", name:"getIndex ()", iconSkin:"core", showAPI:true}, {id:104, pId:1, t:"getNextNode", name:"getNextNode ()", iconSkin:"core", showAPI:true}, {id:105, pId:1, t:"getParentNode", name:"getParentNode ()", iconSkin:"core", showAPI:true}, {id:136, pId:1, t:"getPath", name:"getPath ()", iconSkin:"core", showAPI:true}, {id:106, pId:1, t:"getPreNode", name:"getPreNode ()", iconSkin:"core", showAPI:true}, {id:129, pId:1, t:"halfCheck", name:"halfCheck", iconSkin:"check", showAPI:true}, {id:107, pId:1, t:"icon", name:"icon", iconSkin:"core", showAPI:true}, {id:108, pId:1, t:"iconClose", name:"iconClose", iconSkin:"core", showAPI:true}, {id:109, pId:1, t:"iconOpen", name:"iconOpen", iconSkin:"core", showAPI:true}, {id:110, pId:1, t:"iconSkin", name:"iconSkin", iconSkin:"core", showAPI:true}, {id:131, pId:1, t:"isHidden", name:"isHidden", iconSkin:"hide", showAPI:true}, {id:111, pId:1, t:"isParent", name:"isParent", iconSkin:"core", showAPI:true}, {id:132, pId:1, t:"name", name:"name", iconSkin:"core", showAPI:true}, {id:112, pId:1, t:"nocheck", name:"nocheck", iconSkin:"check", showAPI:true}, {id:113, pId:1, t:"open", name:"open", iconSkin:"core", showAPI:true}, {id:133, pId:1, t:"target", name:"target", iconSkin:"core", showAPI:true}, {id:134, pId:1, t:"url", name:"url", iconSkin:"core", showAPI:true}, {id:114, pId:1, t:"diy", name:"*DIY*", iconSkin:"core", showAPI:true}, {id:115, pId:1, name:""}, {id:116, pId:1, t:"check_Child_State", name:"[check_Child_State]", iconSkin:"check", showAPI:true}, {id:117, pId:1, t:"check_Focus", name:"[check_Focus]", iconSkin:"check", showAPI:true}, {id:118, pId:1, t:"checkedOld", name:"[checkedOld]", iconSkin:"check", showAPI:true}, {id:119, pId:1, t:"editNameFlag", name:"[editNameFlag]", iconSkin:"edit", showAPI:true}, {id:120, pId:1, t:"isAjaxing", name:"[isAjaxing]", iconSkin:"core", showAPI:true}, {id:121, pId:1, t:"isFirstNode", name:"[isFirstNode]", iconSkin:"core", showAPI:true}, {id:122, pId:1, t:"isHover", name:"[isHover]", iconSkin:"edit", showAPI:true}, {id:123, pId:1, t:"isLastNode", name:"[isLastNode]", iconSkin:"core", showAPI:true}, {id:124, pId:1, t:"level", name:"[level]", iconSkin:"core", showAPI:true}, {id:125, pId:1, t:"parentTId", name:"[parentTId]", iconSkin:"core", showAPI:true}, {id:126, pId:1, t:"tId", name:"[tId]", iconSkin:"core", showAPI:true}, {id:130, pId:1, t:"zAsync", name:"[zAsync]", iconSkin:"core", showAPI:true}, {id:2, pId:0, name:"}"} ]; var function_nodes =[ {id:1, pId:0, t:"$.fn.zTree", name:"$.fn.zTree : {", open:true}, {id:11, pId:1, t:"init", name:"init (obj, zSetting, zNodes)", iconSkin:"core", showAPI:true}, {id:12, pId:1, t:"getZTreeObj", name:"getZTreeObj (treeId)", iconSkin:"core", showAPI:true}, {id:14, pId:1, t:"destroy", name:"destroy (treeId)", iconSkin:"core", showAPI:true}, {id:13, pId:1, t:"_z", name:"_z : {tools, view, event, data}", iconSkin:"core", showAPI:true}, {id:2, pId:0, name:"}"}, {id:3, pId:0, name:""}, {id:4, pId:0, t:"zTreeObj", name:"zTreeObj : {", open:true}, {id:401, pId:4, t:"setting", name:"setting", iconSkin:"core", showAPI:true}, {id:402, pId:4, t:"addNodes", name:"addNodes (parentNode, index, newNodes, isSilent)", iconSkin:"core", showAPI:true}, {id:403, pId:4, t:"cancelEditName", name:"cancelEditName (newName)", iconSkin:"edit", showAPI:true}, {id:404, pId:4, t:"cancelSelectedNode", name:"cancelSelectedNode (node)", iconSkin:"core", showAPI:true}, {id:405, pId:4, t:"checkAllNodes", name:"checkAllNodes (checked)", iconSkin:"check", showAPI:true}, {id:406, pId:4, t:"checkNode", name:"checkNode (node, checked, checkTypeFlag, callbackFlag)", iconSkin:"check", showAPI:true}, {id:407, pId:4, t:"copyNode", name:"copyNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, {id:436, pId:4, t:"destroy", name:"destroy ()", iconSkin:"core", showAPI:true}, {id:408, pId:4, t:"editName", name:"editName (node)", iconSkin:"edit", showAPI:true}, {id:409, pId:4, t:"expandAll", name:"expandAll (expandFlag)", iconSkin:"core", showAPI:true}, {id:410, pId:4, t:"expandNode", name:"expandNode (node, expandFlag, sonSign, focus, callbackFlag)", iconSkin:"core", showAPI:true}, {id:411, pId:4, t:"getChangeCheckedNodes", name:"getChangeCheckedNodes ()", iconSkin:"check", showAPI:true}, {id:412, pId:4, t:"getCheckedNodes", name:"getCheckedNodes (checked)", iconSkin:"check", showAPI:true}, {id:413, pId:4, t:"getNodeByParam", name:"getNodeByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, {id:414, pId:4, t:"getNodeByTId", name:"getNodeByTId (tId)", iconSkin:"core", showAPI:true}, {id:415, pId:4, t:"getNodeIndex", name:"getNodeIndex (node)", iconSkin:"core", showAPI:true}, {id:416, pId:4, t:"getNodes", name:"getNodes ()", iconSkin:"core", showAPI:true}, {id:431, pId:4, t:"getNodesByFilter", name:"getNodesByFilter (filter, isSingle, parentNode, invokeParam)", iconSkin:"core", showAPI:true}, {id:417, pId:4, t:"getNodesByParam", name:"getNodesByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, {id:418, pId:4, t:"getNodesByParamFuzzy", name:"getNodesByParamFuzzy (key, value, parentNode)", iconSkin:"core", showAPI:true}, {id:419, pId:4, t:"getSelectedNodes", name:"getSelectedNodes ()", iconSkin:"core", showAPI:true}, {id:432, pId:4, t:"hideNode", name:"hideNode (node)", iconSkin:"hide", showAPI:true}, {id:433, pId:4, t:"hideNodes", name:"hideNodes (nodes)", iconSkin:"hide", showAPI:true}, {id:420, pId:4, t:"moveNode", name:"moveNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, {id:421, pId:4, t:"reAsyncChildNodes", name:"reAsyncChildNodes (parentNode, reloadType, isSilent, callback)", iconSkin:"core", showAPI:true}, {id:437, pId:4, t:"reAsyncChildNodesPromise", name:"reAsyncChildNodesPromise(parentNode, reloadType, isSilent)", iconSkin:"core", showAPI:true}, {id:422, pId:4, t:"refresh", name:"refresh ()", iconSkin:"core", showAPI:true}, {id:423, pId:4, t:"removeChildNodes", name:"removeChildNodes (parentNode)", iconSkin:"core", showAPI:true}, {id:424, pId:4, t:"removeNode", name:"removeNode (node, callbackFlag)", iconSkin:"core", showAPI:true}, {id:425, pId:4, t:"selectNode", name:"selectNode (node, addFlag, isSilent)", iconSkin:"core", showAPI:true}, {id:430, pId:4, t:"setChkDisabled", name:"setChkDisabled (node, disabled, inheritParent, inheritChildren)", iconSkin:"check", showAPI:true}, {id:426, pId:4, t:"setEditable", name:"setEditable (editable)", iconSkin:"edit", showAPI:true}, {id:434, pId:4, t:"showNode", name:"showNode (node)", iconSkin:"hide", showAPI:true}, {id:435, pId:4, t:"showNodes", name:"showNodes (nodes)", iconSkin:"hide", showAPI:true}, {id:427, pId:4, t:"transformToArray", name:"transformToArray (nodes)", iconSkin:"core", showAPI:true}, {id:428, pId:4, t:"transformTozTreeNodes", name:"transformTozTreeNodes (simpleNodes)", iconSkin:"core", showAPI:true}, {id:429, pId:4, t:"updateNode", name:"updateNode (node, checkTypeFlag)", iconSkin:"core", showAPI:true}, {id:5, pId:0, name:"}"} ]; apiContent.zTree_Setting = $.fn.zTree.init($("#settingTree"), $.fn.zTree._z.tools.clone(setting), setting_nodes); apiContent.zTree_Node = $.fn.zTree.init($("#treenodeTree"), $.fn.zTree._z.tools.clone(setting), treenode_nodes); apiContent.zTree_Function = $.fn.zTree.init($("#functionTree"), $.fn.zTree._z.tools.clone(setting), function_nodes); this.bindEvent(); }, bindEvent: function() { $(document).bind("keydown", this.listenKeyDown) this.overlayCloseBtn.bind("click", apiContent.overlayClose); this.searchResultInput.bind("click", function(e) { $(this).prev().get(0).focus(); this.blur(); }).bind("focus", function(e) { this.blur(); }); this.searchKey.bind("focus", this.focusKey) .bind("blur", this.blurKey) .bind("propertychange", this.searchNode) .bind("input", this.searchNode); this.searchPrevBtn.bind("click", this.searchPrev); this.searchNextBtn.bind("click", this.searchNext); }, setSameKey: function(value) { apiContent.searchKey.attr("value", value); }, focusKey: function(e) { if (apiContent.searchKey.hasClass("empty")) { apiContent.searchKey.removeClass("empty"); } }, blurKey: function(e) { apiContent.setSameKey(e.target.value); if (e.target.value === "") { apiContent.searchKey.addClass("empty"); } }, listenKeyDown: function(e) { if (e.keyCode=="13" && apiContent.overlayDiv.is(":hidden")) { apiContent.openAPI(); } else if (e.keyCode=="37") { apiContent.searchPrev(); } else if (e.keyCode=="13" || e.keyCode=="39") { apiContent.searchNext(); } }, openAPI: function() { if (apiContent.searchNodes.length > 0) { var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), function_zTree = $.fn.zTree.getZTreeObj("functionTree"); if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { apiContent.searchNodesCur = 0; } var node = apiContent.searchNodes[apiContent.searchNodesCur]; if (node.tId.indexOf("setting") > -1) { setting_zTree.selectNode(node); } else if (node.tId.indexOf("treenode") > -1) { treenode_zTree.selectNode(node); } else { function_zTree.selectNode(node); } apiContent.beforeClick(node.tId.substring(0, node.tId.indexOf("_")), node, true); apiContent.searchCur(); } }, searchNode: function(e) { var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), function_zTree = $.fn.zTree.getZTreeObj("functionTree"); if (apiContent.curKey == e.target.value) return; apiContent.curKey = e.target.value; var value = $.trim(apiContent.curKey); apiContent.setSameKey(apiContent.curKey); if (apiContent.searchKey.hasClass("empty")) { value = ""; apiContent.searchResultInput.removeClass("noResult").attr("value",""); } if (apiContent.lastValue === value) return; apiContent.updateNodes(false); apiContent.lastValue = value; if (value === "" || value.length < 2) { apiContent.searchNodes = []; apiContent.searchNodesCur = -1; apiContent.searchCur(true); return; } var settingNodeList = setting_zTree.getNodesByFilter(apiContent.searchFilter); var functionNodeList = function_zTree.getNodesByFilter(apiContent.searchFilter); var treenodeNodeList = treenode_zTree.getNodesByFilter(apiContent.searchFilter); apiContent.searchNodes = settingNodeList.concat(functionNodeList).concat(treenodeNodeList); apiContent.searchNodesCur = -1; apiContent.searchCur(); apiContent.updateNodes(true); }, searchFilter: function(node) { var value = $.trim(apiContent.searchKey.get(0).value).toLowerCase(); return (node.showAPI && node.name.toLowerCase().indexOf(value) > -1); }, searchPrev: function(e) { if (apiContent.searchPrevBtn.hasClass("disabled")) return; apiContent.searchNodesCur--; if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { apiContent.searchNodesCur = apiContent.searchNodes.length -1; } apiContent.openAPI(); }, searchNext: function(e) { if (apiContent.searchNextBtn.hasClass("disabled")) return; apiContent.searchNodesCur++; apiContent.openAPI(); }, searchCur: function(init) { var result = apiContent.searchNodes; if (init) { apiContent.searchResultInput.removeClass("noResult").attr("value",""); } else if (result.length == 0) { apiContent.searchResultInput.addClass("noResult").attr("value"," [ 0 / 0 ] "); } else { apiContent.searchResultInput.removeClass("noResult").attr("value"," [ " + (apiContent.searchNodesCur > -1 ? apiContent.searchNodesCur+1 : "?")+ " / " + result.length + " ] "); } if (result.length > 0) { apiContent.searchPrevBtn.removeClass("disabled"); apiContent.searchNextBtn.removeClass("disabled"); } else { apiContent.searchPrevBtn.addClass("disabled"); apiContent.searchNextBtn.addClass("disabled"); } }, updateNodes: function(highlight) { var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), function_zTree = $.fn.zTree.getZTreeObj("functionTree"), node = null; for( var i=0, l=apiContent.searchNodes.length; i 0) { node.highlight = highlight; if (node.tId.indexOf("setting") > -1) { setting_zTree.updateNode(node); } else if (node.tId.indexOf("treenode") > -1) { treenode_zTree.updateNode(node); } else { function_zTree.updateNode(node); } } } }, getFontCss: function(treeId, treeNode) { return (!!treeNode.highlight) ? {color:"#A60000", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"}; }, getTitle: function(treeId, node) { var t = [], n = node; while (n && !!n.t) { t.push(n.t); n = n.getParentNode(); } t = t.reverse(); node.tt = t.join('.'); return true; }, showIcon: function(treeId, node) { return (!!node.iconSkin); }, onNodeCreated: function (e, treeId, node) { var a = $("#" + node.tId + "_a"); if (node.showAPI) { a.attr("rel", "#overlayDiv"); } else { a.css({cursor: "default"}); } }, beforeClick: function (treeId, node, noClear) { if (!node.showAPI) return false; var o = $("#" + node.tId + "_a"); if (!!apiContent.apiCache[node.tId]) { apiContent.tmpDiv.html(apiContent.apiCache[node.tId]); apiContent.overlayShow(o, (apiContent.lastNode === node)); } else { apiContent.overlayAjax(treeId, node); } apiContent.lastNode = node; if (node.tId.indexOf("settingTree")>-1) { apiContent.settingDiv.removeClass("right").addClass("left"); apiContent.functionDiv.removeClass("left").addClass("right"); } else { apiContent.settingDiv.removeClass("left").addClass("right"); apiContent.functionDiv.removeClass("right").addClass("left"); } if (!noClear) { apiContent.clearSelectedNode(); } return true; }, clearSelectedNode: function() { apiContent.zTree_Setting.cancelSelectedNode(); apiContent.zTree_Node.cancelSelectedNode(); apiContent.zTree_Function.cancelSelectedNode(); }, overlayAutoClose: function(e) { var eId = e.target.id, eRel = e.target.getAttribute("rel"), eClass = e.target.className; if (eId === "overlayDiv" || eId === "overlayDivArrow" || eClass.indexOf("searchPrev") > -1 || eClass.indexOf("searchNext") > -1 || !!eRel) return; if (!$(e.target).parents("[rel]").length && !$(e.target).parents("#overlayDiv").length) { apiContent.overlayClose(); } }, overlayClose: function() { var o = apiContent.overlayDiv; o.stop(); apiContent.clearSelectedNode(); if (ie) { o.hide(); } else { setTimeout(function() {o.fadeTo("fast", 0, function(){o.hide();})}, 200); } $(document).unbind("click", apiContent.overlayAutoClose); }, overlayShow: function(target, isSameNode) { var w = $(window), o = apiContent.overlayDiv, a = apiContent.overlayArrow, oc = apiContent.overlayContent, c = apiContent.contentBoxDiv, t = target.offset().top - 30, cMaxLeft = c.offset().left + c.outerWidth({margin:true}) - o.outerWidth({margin:true}) - 10, l = Math.min(cMaxLeft, target.offset().left + target.width() + 40), arrowT = target.offset().top + 16, wMinTop = 100, footerHeight = 50, onlyFade = false, wHeight = w.height(), wScrollTop=w.scrollTop(), wMaxTop = wHeight + wScrollTop - footerHeight; if (!apiContent.overlayMaxTop) { apiContent.overlayMaxTop = apiContent.contentBoxDiv.offset().top + apiContent.contentBoxDiv.height(); } o.stop(); if (o.css("display") !== "block") { o.css({top: t, left: l}); a.css({top:arrowT - t}); $(document).bind("click", apiContent.overlayAutoClose); } if (ie) { onlyFade = true; o.show(); } else { o.fadeTo("fast", 1); } var h = apiContent.tmpDiv.outerHeight({margin:true}) + apiContent.overlaySearch.outerHeight(); if ((t + h) > wMaxTop) { t = wMaxTop - h; } if ((t + h) > apiContent.overlayMaxTop) { t = apiContent.overlayMaxTop - h; } t = Math.max(t, wScrollTop, wMinTop); if ((t + h) > ($("body").height()-footerHeight-20)) { o.css("padding-bottom", footerHeight + "px"); } else { o.css("padding-bottom", "0"); } apiContent.overlayDetailDiv.empty(); apiContent.overlayDetailDiv.append(apiContent.tmpDiv.children()); if (!onlyFade) { onlyFade = (isSameNode && t === parseInt(o.css("top").replace("px", ""))); } a.removeClass("reverse"); if ( (arrowT - t) > (h-55) ) { a.addClass("reverse"); arrowT -= 55; } if (onlyFade) { o.css({top: t, left: l}); oc.css({height: h}); a.css({top:arrowT - t}); } else { o.animate({top: t, left: l}, {duration: "normal",easing: "swing", complete:null}); oc.animate({height: h}, {duration: "fast",easing: "swing", complete:null}); a.animate({top:arrowT - t}, {duration: "normal",easing: "linear", complete:null}); } }, overlayAjax: function(treeId, node) { var o = $("#" + node.tId + "_a"); if (node.isAjax) return; node.isAjax = true; $.ajax({ type: "get", url: "" + lang + "/" + node.tt.replace("$.", "") + ".html", data: null, dataType: "text", success: function(msg) { if (!apiContent.tmpDiv) { var tmpDiv = $(document.createElement("div")); tmpDiv.addClass("baby_overlay_tmp"); $("body").append(tmpDiv) apiContent.tmpDiv = $(document.createElement("div")); apiContent.tmpDiv.addClass("details"); tmpDiv.append(apiContent.tmpDiv); } else { apiContent.tmpDiv.empty(); } apiContent.tmpDiv.html(msg); apiContent.overlayShow(o, false); apiContent.apiCache[node.tId] = msg; node.isAjax = false; }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert(ajaxMsg) if (apiContent.tmpDiv) apiContent.tmpDiv.empty(); node.isAjax = false; } }); } } ================================================ FILE: lib/zTree_v3/api/apiCss/common.css ================================================ /* Resets */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} :focus {outline: 0;} body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #528036 url(img/background.jpg) no-repeat fixed 0 0;} p {padding-bottom: 20px;} ol, ul {list-style: none;} table {border-collapse: separate;border-spacing: 0;} caption, th, td {text-align: left;font-weight: normal;} strong {font-weight: bold;} em {font-style: italic;} hr {display: none;} .font1 {color: white;background-color: #528036;} .right {float: right;} .left {float: left;} .hide {display: none;} .round {-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;} .clear {clear: both;} .clearfix {display: block;} .clearfix:after {content: ".";display: block;clear: both;visibility: hidden;line-height: 0;height: 0;} html[xmlns] .clearfix {display: block;} * html .clearfix {height: 1%;} /* Link Styles */ a {color: #528036;} a:link, a:visited {text-decoration: none;} a:hover {color: #000;text-decoration: none;} a:active {text-decoration: none;} /* Headings */ h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;} h1 {font-size: 36px;line-height: 44px;} h2 {font-size: 20px;line-height: 20px;} h3 {font-size: 14px;line-height: 14px;} h4 {font-size: 14px;font-weight: normal;line-height: 25px;} /* Wraps */ .header_wrap {position: relative;min-width: 940px;padding: 100px 30px 0 30px;} .content_wrap {position: relative;min-width: 940px;padding: 0 30px 50px 30px;} .footer_wrap {bottom: 0;height: 47px;width: 100%;background-color: #1b1b1b;border-top: 1px solid #749e58;} /* Header */ .header {position: relative;width: 940px;margin: 0 auto;height: 160px;border: 1px solid white;background: transparent url(img/header-bg.png) repeat-x 0 -50px;} .header-text {padding: 40px 25px 15px 120px;font-size: 18px;line-height: 24px;color: #747d67;font-family: Helvetica, sans-serif;} .header-text img {padding-bottom: 5px;} .shortcuts {white-space: nowrap;text-align: right;position: absolute;top: -45px;right: 5px;} .shortcuts.language {top: -85px;right:0px;} .shortcuts li {display: inline;font-size: 18px;line-height: 28px;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;margin-left: 30px;cursor: pointer;} .shortcuts li button {cursor: pointer;} .shortcuts li span {border-bottom: 1px dotted white;} .shortcuts li span.selected {padding: 2px;background-color: #528036;} .shortcuts li a {color: #fff;} .ieSuggest {display:none;font-size: 12px;color: silver;position: absolute;left: 10px;top: 2px;} .light-bulb {position: absolute;left: -20px;bottom: -35px;width:116px;height:180px;background-image:url(img/lightbulb.png);background-repeat: no-repeat;} /* Content */ .content {position: relative;width: 940px;margin: 0 auto;} .nav_section {position: relative;height: 20px;font-family: "Myriad Pro", "Trebuchet MS", sans-serif;font-size: 15px;color: #253;padding: 20px 0;} .nav_section ul {position: absolute;right: 10px;} .nav_section ul li {display: inline;line-height: 20px;margin: 0 5px 0 20px;border-bottom: 1px dotted white;} .nav_section ul li.noline {border-bottom: 0;} .nav_section ul li a {color: #fff;} .nav_section ul li a.selected {padding: 2px;background-color: #528036;} .nav_section ul li.first {border: none;} .content .title {margin: 50px 30px 20px 70px;} .content li {margin-bottom: 5px;} .contentBox {position: relative;overflow: hidden;border: 1px solid white;min-height: 200px;line-height: 25px;background: transparent url(img/contact-bg.png) repeat-x 0 0;} .zTreeInfo {display:none;width: 940px;position: absolute;} .zTreeInfo p {padding-bottom: 50px;} .zTreeInfo-left {float: left;width: 280px;height:300px;padding: 0 50px 60px 75px;background:url(img/zTreeIntroduction.jpg) no-repeat 30px 30px;} .zTreeInfo-right {position: relative;float: right;width: 475px;padding: 0 50px 60px 0;} .zTreeInfo-right li {font-size: 12px;list-style-type: disc;} .license {display:none;width: 940px;position: absolute;} .donateInfo {display:block;width: 940px;position: absolute;} .links {display:none;width: 940px;position: absolute;} .links .content {float: left;width: 160px;height:200px;padding: 0 10px 10px 2px;text-align: center;} .links .content.first {margin-left: 30px;} .contact {display:none;width: 940px;position: absolute;} .contact .myhome { position: absolute; top:10px; left:620px; width:300px; height:266px; background: transparent url(img/myhome.gif) scroll no-repeat 0 0;} .siteTag {position: absolute;left: -16px;top: 109px;z-index: 10;width: 65px;height: 46px;padding:0;margin:0 10px 0 0; vertical-align:middle;border:0 none;background: transparent url(img/siteTag.png) scroll no-repeat 0 0;} .siteTag.tag_zTreeInfo {background-position: 0 0} .siteTag.tag_license {background-position: 0 -46px} .siteTag.tag_donate {background-position: 0 -92px} .siteTag.tag_contact {background-position: 0 -138px} .apiContent {width: 940px;} .apiContent .right {float: right;padding-right: 100px;} .apiContent .left {float: left;padding-right: 20px;border-right: 1px dotted silver;} .api_setting {position: relative;margin:20px 0 20px 20px;} .api_function {position: relative;margin:20px 0 20px 30px;padding-right: 10px;} .api_content_title {text-align: center;font-weight: bold;} .demoContent {width: 940px;} .demoContent .right {float: right;padding: 20px;width: 600px;} .demoContent .left {float: left;padding: 20px;} .demoContent iframe {width:600px;min-height: 530px;} .faqContent {width: 940px;} .faqContent .right {float: right;padding: 20px;width: 600px;} .faqContent .left {float: left;padding: 20px;} .faqContent iframe {width:600px;min-height: 300px;} .baby_overlay_tmp {position: absolute;top:0; left:-5000px;display:block;visibility: hidden;width:640px;font-size:11px;} .baby_overlay_tmp .details {padding: 20px;} .baby_overlay {display:none;position:absolute;z-index:99;left:0; top:0;width:640px;color:#fff;font-size:11px;} .baby_overlay .content {width:100%; height:100px;overflow: hidden;background: transparent url(img/overlay_bg.png) scroll repeat 0 0;} .baby_overlay .details {padding:0 20px 20px 20px;} .baby_overlay .close {background-image:url(img/close.png);position:absolute; right:5px; top:5px;cursor:pointer;height:36px;width:36px;} .baby_overlay_arrow {background-image:url(img/overlay_arrow.png);background-position:0 0;position:absolute;height:40px;width:40px;left: -40px;} .baby_overlay_arrow.reverse {background-position:0 -40px;} /* Footer */ .footer {position: relative;min-width: 1000px;font: 14px/24px arial, helvetica, sans-serif;} .footer ul {position:absolute;left: 0px;border:1px solid #393939;background:#262626;padding:12px 0px;line-height: 18px;display: none;list-style: none;} .footer ul li a {display:block;padding: 2px 15px;color: #9c9c9c;text-indent: 0;} .footer ul li a:hover {text-decoration:none;color: #fff;} .footer-logo {position:absolute;margin: 10px 0 0 30px;width:122px; height:24px;top:0; left:0;background: transparent url(img/footer-logo.png) no-repeat 0 0;} .footer_mii {position: absolute;right: 558px;top: 8px;z-index: 10;padding: 4px 0;} .footer_mii a {font-size:10px;color:#649140} .footer_mii a:hover {color:#B6D76F} .footer_siteMap {position: absolute;right: 358px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} .footer_siteMap .footer_siteMap_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_siteMap.gif) no-repeat 0 0;} .footer_siteMap ul {top:-202px;width:180px;} .footer_siteMap:hover ul {left: 0} .footer_contact {position: absolute;right: 193px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} .footer_contact .footer_contact_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_contact.gif) no-repeat 0px 0px;} .footer_contact ul {top:-113px;width:153px;} .footer_contact:hover ul {left: 0} .footer_download {position: absolute;right: 60px;top: 8px;width: 123px;z-index: 10;padding: 4px 0;} .footer_download .footer_download_header {width:123px;text-indent: -9999px;background: transparent url(img/footer_download.png) no-repeat 0px 0px;} .footer_download ul {top:-113px;width:140px;} .footer_download:hover ul {left: 0} /* button icon */ button {vertical-align:middle;border:0 none;background: transparent no-repeat 0 0 scroll;} .shortcuts button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/menuIcon.png)} .shortcuts button.home {background-position: 0 0} .shortcuts button.demo {background-position: 0 -24px} .shortcuts button.api {background-position: 0 -48px} .shortcuts button.faq {background-position: 0 -72px} .shortcuts button.donate {background-position: 0 -144px} .shortcuts button.download {background-position: 0 -96px} .shortcuts button.face {background-position: 0 -120px} .shortcuts button.cn {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/chinese.png)} .shortcuts button.en {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/english.png)} .content button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;} .content button.ico16 {width:16px; height:16px;padding:0; margin:0 5px 0 0;background-image:url("img/apiMenu.png");} button.z_core {margin-top: -4px;background-position:0 0;} button.z_check {margin-top: -4px;background-position:0 -16px;} button.z_edit {margin-top: -4px;background-position:0 -32px;} button.z_hide {margin-top: -4px;background-position:0 -64px;} button.z_search {margin-top: -4px;background-position:0 -48px;} button.searchPrev {margin-top: -4px;background-position:-16px 0;cursor:pointer} button.searchNext {margin-top: -4px;background-position:-16px -16px;cursor:pointer} button.searchPrev.disabled {margin-top: -4px;background-position:-16px -32px;cursor:auto} button.searchNext.disabled {margin-top: -4px;background-position:-16px -48px;cursor:auto} input.search {margin:0;padding:2px 0; border:0;} input.searchKey {width:150px;} input.searchResult {margin-left:-3px;width:65px;text-align:right;background-color:white;color:#707070} input.searchResult.noResult {background-color:#ff6666;color:black} .baby_overlay div.overlaySearch {text-align:right;padding-right:50px;padding-top:12px;} /* api overlay*/ .apiDetail .topLine {border-top: 1px dashed #376B29;margin-top: 5px;padding-top: 5px;} .apiDetail .highlight_red {color:#A60000;} .apiDetail .highlight_green {color:#A7F43D;} .apiDetail h1, .apiDetail h2, .apiDetail h3, .apiDetail h4, .apiDetail h5, .apiDetail h6 {color: white;padding: 0;} .apiDetail h2 {color: #A7F43D;margin: 5px auto;padding: 5px;font-size: 20px;} .apiDetail h2 span {font-size: 14px;float: right;font-weight: normal;margin: 2px 20px 0 0;vertical-align: bottom;} .apiDetail h2 span.path {float: left;margin: 2px 0 0 0;vertical-align: bottom;} .apiDetail h3 {margin: 5px auto;padding: 5px;font-size: 14px;font-weight: normal;} .apiDetail h3 span.h3_info {margin-left: 20px;font-size: 12px;} .apiDetail h4 {margin: 0 auto;padding: 0 5px;font-size: 12px;font-weight: normal;line-height: 16px;} .apiDetail .desc h4 {color: black;} .apiDetail h4 b{width: 150px;display:inline-block;} .apiDetail h4 span{width: 230px;display:inline-block;} .apiDetail pre, .apiDetail .desc {background: #E8FCD6;color: black;margin: 10px;padding: 10px;display: block;} .apiDetail pre {word-wrap: break-word;} .apiDetail p{margin-left: 5px;padding: 0;} .apiDetail .longdesc {margin-top: 5px;} .apiDetail .longdesc p{font-size: 12px;line-height:1.5;margin:3px 0;} .apiDetail .longdesc b{font-size: 14px;} .apiDetail table {border-collapse:collapse;} .apiDetail table td {border:1px solid silver;text-align: center;vertical-align: middle;} .apiDetail table thead td {font-weight: bold} .apiDetail button {width:16px; height:16px; vertical-align:middle; border:0 none; cursor: pointer; background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; background-image:url("zTreeStyle/img/zTreeStandard.png");} .apiDetail button.chk {width:13px; height:13px; margin:0 3px 2px 0; cursor: auto} .apiDetail button.chk.checkbox_false_full {background-position:0 0} .apiDetail button.chk.checkbox_false_full_focus {background-position:0 -14px} .apiDetail button.chk.checkbox_false_part {background-position:0 -28px} .apiDetail button.chk.checkbox_false_part_focus {background-position:0 -42px} .apiDetail button.chk.checkbox_true_full {background-position:-14px 0} .apiDetail button.chk.checkbox_true_full_focus {background-position:-14px -14px} .apiDetail button.chk.checkbox_true_part {background-position:-14px -28px} .apiDetail button.chk.checkbox_true_part_focus {background-position:-14px -42px} .apiDetail button.chk.radio_false_full {background-position:-28px 0} .apiDetail button.chk.radio_false_full_focus {background-position:-28px -14px} .apiDetail button.chk.radio_false_part {background-position:-28px -28px} .apiDetail button.chk.radio_false_part_focus {background-position:-28px -42px} .apiDetail button.chk.radio_true_full {background-position:-42px 0} .apiDetail button.chk.radio_true_full_focus {background-position:-42px -14px} .apiDetail button.chk.radio_true_part {background-position:-42px -28px} .apiDetail button.chk.radio_true_part_focus {background-position:-42px -42px} ================================================ FILE: lib/zTree_v3/api/apiCss/common_ie6.css ================================================ * html{ /* background-image:url(about:blank);*/ background-attachment:fixed; } html pre {word-wrap: break-word} .header {background-image: none;background-color: #F0F6E4;} .ieSuggest {display:block;} .shortcuts button.cn {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/chinese.png');background-image: none;} .shortcuts button.en {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/english.png');background-image: none;} .light-bulb {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/lightbulb.png');background-image: none;} .contentBox {background-image: none;background-color: #F0F6E4;} .zTreeInfo {background-image: none;background-color: #F0F6E4;} .content button.ico16 {*background-image:url("img/apiMenu.gif")} .siteTag {background-image: none;} .apiContent .right {float: right;padding-right: 50px;} div.baby_overlay {background-color: #3C6E31;background-image:none;color:#fff;} div.baby_overlay .close {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/overlay_close_IE6.gif');background-image: none;} .baby_overlay_arrow {background-image:url(img/overlay_arrow.gif);} .apiDetail button {background-image:url("img/zTreeStandard.gif")} ================================================ FILE: lib/zTree_v3/api/apiCss/jquery.ztree.core.js ================================================ /* * JQuery zTree core v3.5.40 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2019-01-18 */ (function(r){var J,K,L,M,N,O,v,t={},w={},x={},P={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{isParent:"isParent",children:"children",name:"name",title:"",url:"url",icon:"icon"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post", dataType:"text",headers:{},xhrFields:{},url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},y=[function(a){var b=a.treeObj,c=g.event;b.bind(c.NODECREATED, function(b,c,i){h.apply(a.callback.onNodeCreated,[b,c,i])});b.bind(c.CLICK,function(b,c,i,e,k){h.apply(a.callback.onClick,[c,i,e,k])});b.bind(c.EXPAND,function(b,c,i){h.apply(a.callback.onExpand,[b,c,i])});b.bind(c.COLLAPSE,function(b,c,i){h.apply(a.callback.onCollapse,[b,c,i])});b.bind(c.ASYNC_SUCCESS,function(b,c,i,e){h.apply(a.callback.onAsyncSuccess,[b,c,i,e])});b.bind(c.ASYNC_ERROR,function(b,c,i,e,k,g){h.apply(a.callback.onAsyncError,[b,c,i,e,k,g])});b.bind(c.REMOVE,function(b,c,i){h.apply(a.callback.onRemove, [b,c,i])});b.bind(c.SELECTED,function(b,c,i){h.apply(a.callback.onSelected,[c,i])});b.bind(c.UNSELECTED,function(b,c,i){h.apply(a.callback.onUnSelected,[c,i])})}],z=[function(a){var b=g.event;a.treeObj.unbind(b.NODECREATED).unbind(b.CLICK).unbind(b.EXPAND).unbind(b.COLLAPSE).unbind(b.ASYNC_SUCCESS).unbind(b.ASYNC_ERROR).unbind(b.REMOVE).unbind(b.SELECTED).unbind(b.UNSELECTED)}],A=[function(a){var b=e.getCache(a);b||(b={},e.setCache(a,b));b.nodes=[];b.doms=[]}],B=[function(a,b,c,d,f,i){if(c){var m= e.getRoot(a),k=e.nodeChildren(a,c);c.level=b;c.tId=a.treeId+"_"+ ++m.zId;c.parentTId=d?d.tId:null;c.open=typeof c.open=="string"?h.eqs(c.open,"true"):!!c.open;b=e.nodeIsParent(a,c);h.isArray(k)?(e.nodeIsParent(a,c,!0),c.zAsync=!0):(b=e.nodeIsParent(a,c,b),c.open=b&&!a.async.enable?c.open:!1,c.zAsync=!b);c.isFirstNode=f;c.isLastNode=i;c.getParentNode=function(){return e.getNodeCache(a,c.parentTId)};c.getPreNode=function(){return e.getPreNode(a,c)};c.getNextNode=function(){return e.getNextNode(a,c)}; c.getIndex=function(){return e.getNodeIndex(a,c)};c.getPath=function(){return e.getNodePath(a,c)};c.isAjaxing=!1;e.fixPIdKeyValue(a,c)}}],u=[function(a){var b=a.target,c=e.getSetting(a.data.treeId),d="",f=null,i="",m="",k=null,j=null,o=null;if(h.eqs(a.type,"mousedown"))m="mousedown";else if(h.eqs(a.type,"mouseup"))m="mouseup";else if(h.eqs(a.type,"contextmenu"))m="contextmenu";else if(h.eqs(a.type,"click"))if(h.eqs(b.tagName,"span")&&b.getAttribute("treeNode"+g.id.SWITCH)!==null)d=h.getNodeMainDom(b).id, i="switchNode";else{if(o=h.getMDom(c,b,[{tagName:"a",attrName:"treeNode"+g.id.A}]))d=h.getNodeMainDom(o).id,i="clickNode"}else if(h.eqs(a.type,"dblclick")&&(m="dblclick",o=h.getMDom(c,b,[{tagName:"a",attrName:"treeNode"+g.id.A}])))d=h.getNodeMainDom(o).id,i="switchNode";if(m.length>0&&d.length==0&&(o=h.getMDom(c,b,[{tagName:"a",attrName:"treeNode"+g.id.A}])))d=h.getNodeMainDom(o).id;if(d.length>0)switch(f=e.getNodeCache(c,d),i){case "switchNode":e.nodeIsParent(c,f)?h.eqs(a.type,"click")||h.eqs(a.type, "dblclick")&&h.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?k=J:i="":i="";break;case "clickNode":k=K}switch(m){case "mousedown":j=L;break;case "mouseup":j=M;break;case "dblclick":j=N;break;case "contextmenu":j=O}return{stop:!1,node:f,nodeEventType:i,nodeEventCallback:k,treeEventType:m,treeEventCallback:j}}],C=[function(a){var b=e.getRoot(a);b||(b={},e.setRoot(a,b));e.nodeChildren(a,b,[]);b.expandTriggerFlag=!1;b.curSelectedList=[];b.noSelection=!0;b.createdNodes=[];b.zId=0;b._ver= (new Date).getTime()}],D=[],E=[],F=[],G=[],H=[],e={addNodeCache:function(a,b){e.getCache(a).nodes[e.getNodeCacheId(b.tId)]=b},getNodeCacheId:function(a){return a.substring(a.lastIndexOf("_")+1)},addAfterA:function(a){E.push(a)},addBeforeA:function(a){D.push(a)},addInnerAfterA:function(a){G.push(a)},addInnerBeforeA:function(a){F.push(a)},addInitBind:function(a){y.push(a)},addInitUnBind:function(a){z.push(a)},addInitCache:function(a){A.push(a)},addInitNode:function(a){B.push(a)},addInitProxy:function(a, b){b?u.splice(0,0,a):u.push(a)},addInitRoot:function(a){C.push(a)},addNodesData:function(a,b,c,d){var f=e.nodeChildren(a,b);f?c>=f.length&&(c=-1):(f=e.nodeChildren(a,b,[]),c=-1);if(f.length>0&&c===0)f[0].isFirstNode=!1,j.setNodeLineIcos(a,f[0]);else if(f.length>0&&c<0)f[f.length-1].isLastNode=!1,j.setNodeLineIcos(a,f[f.length-1]);e.nodeIsParent(a,b,!0);c<0?e.nodeChildren(a,b,f.concat(d)):(a=[c,0].concat(d),f.splice.apply(f,a))},addSelectedNode:function(a,b){var c=e.getRoot(a);e.isSelectedNode(a,b)|| c.curSelectedList.push(b)},addCreatedNode:function(a,b){(a.callback.onNodeCreated||a.view.addDiyDom)&&e.getRoot(a).createdNodes.push(b)},addZTreeTools:function(a){H.push(a)},exSetting:function(a){r.extend(!0,P,a)},fixPIdKeyValue:function(a,b){a.data.simpleData.enable&&(b[a.data.simpleData.pIdKey]=b.parentTId?b.getParentNode()[a.data.simpleData.idKey]:a.data.simpleData.rootPId)},getAfterA:function(a,b,c){for(var d=0,e=E.length;d-1&&f.push(k);k=e.nodeChildren(a, k);f=f.concat(e.getNodesByParamFuzzy(a,k,c,d))}return f},getNodesByFilter:function(a,b,c,d,f){if(!b)return d?null:[];for(var i=d?null:[],m=0,k=b.length;m0)},clone:function(a){if(a===null)return null;var b=h.isArray(a)?[]:{},c;for(c in a)b[c]=a[c]instanceof Date?new Date(a[c].getTime()):typeof a[c]==="object"?h.clone(a[c]):a[c];return b},eqs:function(a,b){return a.toLowerCase()===b.toLowerCase()},isArray:function(a){return Object.prototype.toString.apply(a)==="[object Array]"},isElement:function(a){return typeof HTMLElement==="object"?a instanceof HTMLElement:a&&typeof a==="object"&&a!==null&& a.nodeType===1&&typeof a.nodeName==="string"},$:function(a,b,c){b&&typeof b!="string"&&(c=b,b="");return typeof a=="string"?r(a,c?c.treeObj.get(0).ownerDocument:null):r("#"+a.tId+b,c?c.treeObj:null)},getMDom:function(a,b,c){if(!b)return null;for(;b&&b.id!==a.treeId;){for(var d=0,e=c.length;b.tagName&&d0},uCanDo:function(){return!0}},j={addNodes:function(a,b,c,d,f){var i=e.nodeIsParent(a,b);if(!a.data.keep.leaf||!b||i)if(h.isArray(d)||(d=[d]),a.data.simpleData.enable&&(d=e.transformTozTreeFormat(a,d)),b){var i=l(b,g.id.SWITCH,a),m=l(b,g.id.ICON,a),k=l(b,g.id.UL,a);if(!b.open)j.replaceSwitchClass(b,i,g.folder.CLOSE),j.replaceIcoClass(b,m,g.folder.CLOSE),b.open=!1,k.css({display:"none"});e.addNodesData(a,b,c,d);j.createNodes(a,b.level+ 1,d,b,c);f||j.expandCollapseParentNode(a,b,!0)}else e.addNodesData(a,e.getRoot(a),c,d),j.createNodes(a,0,d,null,c)},appendNodes:function(a,b,c,d,f,i,g){if(!c)return[];var k=[],h=d?d:e.getRoot(a),h=e.nodeChildren(a,h),o,l;if(!h||f>=h.length-c.length)f=-1;for(var s=0,n=c.length;s0&&(l=j.appendNodes(a,b+1,I,p,-1, i,g&&p.open));g&&(j.makeDOMNodeMainBefore(k,a,p),j.makeDOMNodeLine(k,a,p),e.getBeforeA(a,p,k),j.makeDOMNodeNameBefore(k,a,p),e.getInnerBeforeA(a,p,k),j.makeDOMNodeIcon(k,a,p),e.getInnerAfterA(a,p,k),j.makeDOMNodeNameAfter(k,a,p),e.getAfterA(a,p,k),o&&p.open&&j.makeUlHtml(a,p,k,l.join("")),j.makeDOMNodeMainAfter(k,a,p),e.addCreatedNode(a,p))}return k},appendParentULDom:function(a,b){var c=[],d=l(b,a);!d.get(0)&&b.parentTId&&(j.appendParentULDom(a,b.getParentNode()),d=l(b,a));var f=l(b,g.id.UL,a);f.get(0)&& f.remove();f=e.nodeChildren(a,b);f=j.appendNodes(a,b.level+1,f,b,-1,!1,!0);j.makeUlHtml(a,b,c,f.join(""));d.append(c.join(""))},asyncNode:function(a,b,c,d){var f,i;f=e.nodeIsParent(a,b);if(b&&!f)return h.apply(d),!1;else if(b&&b.isAjaxing)return!1;else if(h.apply(a.callback.beforeAsync,[a.treeId,b],!0)==!1)return h.apply(d),!1;if(b)b.isAjaxing=!0,l(b,g.id.ICON,a).attr({style:"","class":g.className.BUTTON+" "+g.className.ICO_LOADING});var m={},k=h.apply(a.async.autoParam,[a.treeId,b],a.async.autoParam); for(f=0,i=k.length;b&&f1&&(o=q[1],q=q[0]);m[o]=b[q]}k=h.apply(a.async.otherParam,[a.treeId,b],a.async.otherParam);if(h.isArray(k))for(f=0,i=k.length;f-1?JSON.stringify(m):m,dataType:a.async.dataType,headers:a.async.headers, xhrFields:a.async.xhrFields,success:function(i){if(s==e.getRoot(a)._ver){var f=[];try{f=!i||i.length==0?[]:typeof i=="string"?eval("("+i+")"):i}catch(k){f=i}if(b)b.isAjaxing=null,b.zAsync=!0;j.setNodeLineIcos(a,b);f&&f!==""?(f=h.apply(a.async.dataFilter,[a.treeId,b,f],f),j.addNodes(a,b,-1,f?h.clone(f):[],!!c)):j.addNodes(a,b,-1,[],!!c);a.treeObj.trigger(g.event.ASYNC_SUCCESS,[a.treeId,b,i]);h.apply(d)}},error:function(c,d,i){if(s==e.getRoot(a)._ver){if(b)b.isAjaxing=null;j.setNodeLineIcos(a,b);a.treeObj.trigger(g.event.ASYNC_ERROR, [a.treeId,b,c,d,i])}}});return!0},cancelPreSelectedNode:function(a,b,c){var d=e.getRoot(a).curSelectedList,f,i;for(f=d.length-1;f>=0;f--)if(i=d[f],b===i||!b&&(!c||c!==i))if(l(i,g.id.A,a).removeClass(g.node.CURSELECTED),b){e.removeSelectedNode(a,b);break}else d.splice(f,1),a.treeObj.trigger(g.event.UNSELECTED,[a.treeId,i])},createNodeCallback:function(a){if(a.callback.onNodeCreated||a.view.addDiyDom)for(var b=e.getRoot(a);b.createdNodes.length>0;){var c=b.createdNodes.shift();h.apply(a.view.addDiyDom, [a.treeId,c]);a.callback.onNodeCreated&&a.treeObj.trigger(g.event.NODECREATED,[a.treeId,c])}},createNodes:function(a,b,c,d,f){if(c&&c.length!=0){var i=e.getRoot(a),m=!d||d.open||!!l(e.nodeChildren(a,d)[0],a).get(0);i.createdNodes=[];var b=j.appendNodes(a,b,c,d,f,!0,m),k,h;d?(d=l(d,g.id.UL,a),d.get(0)&&(k=d)):k=a.treeObj;k&&(f>=0&&(h=k.children()[f]),f>=0&&h?r(h).before(b.join("")):k.append(b.join("")));j.createNodeCallback(a)}},destroy:function(a){a&&(e.initCache(a),e.initRoot(a),n.unbindTree(a), n.unbindEvent(a),a.treeObj.empty(),delete t[a.treeId])},expandCollapseNode:function(a,b,c,d,f){var i=e.getRoot(a),m;if(b){var k=e.nodeChildren(a,b),q=e.nodeIsParent(a,b);if(i.expandTriggerFlag)m=f,f=function(){m&&m();b.open?a.treeObj.trigger(g.event.EXPAND,[a.treeId,b]):a.treeObj.trigger(g.event.COLLAPSE,[a.treeId,b])},i.expandTriggerFlag=!1;if(!b.open&&q&&(!l(b,g.id.UL,a).get(0)||k&&k.length>0&&!l(k[0],a).get(0)))j.appendParentULDom(a,b),j.createNodeCallback(a);if(b.open==c)h.apply(f,[]);else{var c= l(b,g.id.UL,a),i=l(b,g.id.SWITCH,a),o=l(b,g.id.ICON,a);q?(b.open=!b.open,b.iconOpen&&b.iconClose&&o.attr("style",j.makeNodeIcoStyle(a,b)),b.open?(j.replaceSwitchClass(b,i,g.folder.OPEN),j.replaceIcoClass(b,o,g.folder.OPEN),d==!1||a.view.expandSpeed==""?(c.show(),h.apply(f,[])):k&&k.length>0?c.slideDown(a.view.expandSpeed,f):(c.show(),h.apply(f,[]))):(j.replaceSwitchClass(b,i,g.folder.CLOSE),j.replaceIcoClass(b,o,g.folder.CLOSE),d==!1||a.view.expandSpeed==""||!(k&&k.length>0)?(c.hide(),h.apply(f,[])): c.slideUp(a.view.expandSpeed,f))):h.apply(f,[])}}else h.apply(f,[])},expandCollapseParentNode:function(a,b,c,d,e){b&&(b.parentTId?(j.expandCollapseNode(a,b,c,d),b.parentTId&&j.expandCollapseParentNode(a,b.getParentNode(),c,d,e)):j.expandCollapseNode(a,b,c,d,e))},expandCollapseSonNode:function(a,b,c,d,f){var i=e.getRoot(a),i=b?e.nodeChildren(a,b):e.nodeChildren(a,i),g=b?!1:d,k=e.getRoot(a).expandTriggerFlag;e.getRoot(a).expandTriggerFlag=!1;if(i)for(var h=0,l=i.length;h=0;d--)if(b===c[d])return!0;return!1},makeDOMNodeIcon:function(a,b,c){var d=e.nodeName(b,c),d=b.view.nameIsHTML?d:d.replace(/&/g,"&").replace(//g,">");a.push("",d,"")},makeDOMNodeLine:function(a,b,c){a.push("")},makeDOMNodeMainAfter:function(a){a.push("")},makeDOMNodeMainBefore:function(a,b,c){a.push("
                      • ")},makeDOMNodeNameAfter:function(a){a.push("")},makeDOMNodeNameBefore:function(a,b,c){var d= e.nodeTitle(b,c),f=j.makeNodeUrl(b,c),i=j.makeNodeFontCss(b,c),m=[],k;for(k in i)m.push(k,":",i[k],";");a.push("0?"href='"+f+"'":""," target='",j.makeNodeTarget(c),"' style='",m.join(""),"'");h.apply(b.view.showTitle,[b.treeId,c],b.view.showTitle)&&d&&a.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");a.push(">")},makeNodeFontCss:function(a, b){var c=h.apply(a.view.fontCss,[a.treeId,b],a.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(a,b){var c=["ico"];if(!b.isAjaxing){var d=e.nodeIsParent(a,b);c[0]=(b.iconSkin?b.iconSkin+"_":"")+c[0];d?c.push(b.open?g.folder.OPEN:g.folder.CLOSE):c.push(g.folder.DOCU)}return g.className.BUTTON+" "+c.join("_")},makeNodeIcoStyle:function(a,b){var c=[];if(!b.isAjaxing){var d=e.nodeIsParent(a,b)&&b.iconOpen&&b.iconClose?b.open?b.iconOpen:b.iconClose:b[a.data.key.icon];d&&c.push("background:url(", d,") 0 0 no-repeat;");(a.view.showIcon==!1||!h.apply(a.view.showIcon,[a.treeId,b],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(a,b){var c=[];a.view.showLine?b.level==0&&b.isFirstNode&&b.isLastNode?c.push(g.line.ROOT):b.level==0&&b.isFirstNode?c.push(g.line.ROOTS):b.isLastNode?c.push(g.line.BOTTOM):c.push(g.line.CENTER):c.push(g.line.NOLINE);e.nodeIsParent(a,b)?c.push(b.open?g.folder.OPEN:g.folder.CLOSE):c.push(g.folder.DOCU);return j.makeNodeLineClassEx(b)+c.join("_")}, makeNodeLineClassEx:function(a){return g.className.BUTTON+" "+g.className.LEVEL+a.level+" "+g.className.SWITCH+" "},makeNodeTarget:function(a){return a.target||"_blank"},makeNodeUrl:function(a,b){var c=a.data.key.url;return b[c]?b[c]:null},makeUlHtml:function(a,b,c,d){c.push("
                          ");c.push(d);c.push("
                        ")},makeUlLineClass:function(a,b){return a.view.showLine&&!b.isLastNode? g.line.LINE:""},removeChildNodes:function(a,b){if(b){var c=e.nodeChildren(a,b);if(c){for(var d=0,f=c.length;dc.bottom||d.right>c.right||d.left0)c[0].isFirstNode= !0},setLastNode:function(a,b){var c=e.nodeChildren(a,b);if(c.length>0)c[c.length-1].isLastNode=!0},removeNode:function(a,b){var c=e.getRoot(a),d=b.parentTId?b.getParentNode():c;b.isFirstNode=!1;b.isLastNode=!1;b.getPreNode=function(){return null};b.getNextNode=function(){return null};if(e.getNodeCache(a,b.tId)){l(b,a).remove();e.removeNodeCache(a,b);e.removeSelectedNode(a,b);for(var f=e.nodeChildren(a,d),i=0,h=f.length;i0){var q=f[i-1],i=l(q,g.id.UL,a),h=l(q,g.id.SWITCH,a);k=l(q,g.id.ICON,a);d==c?f.length==1?j.replaceSwitchClass(q,h,g.line.ROOT):(c=l(f[0],g.id.SWITCH,a),j.replaceSwitchClass(f[0],c,g.line.ROOTS),j.replaceSwitchClass(q, h,g.line.BOTTOM)):j.replaceSwitchClass(q,h,g.line.BOTTOM);i.removeClass(g.line.LINE)}}},replaceIcoClass:function(a,b,c){if(b&&!a.isAjaxing&&(a=b.attr("class"),a!=void 0)){a=a.split("_");switch(c){case g.folder.OPEN:case g.folder.CLOSE:case g.folder.DOCU:a[a.length-1]=c}b.attr("class",a.join("_"))}},replaceSwitchClass:function(a,b,c){if(b){var d=b.attr("class");if(d!=void 0){d=d.split("_");switch(c){case g.line.ROOT:case g.line.ROOTS:case g.line.CENTER:case g.line.BOTTOM:case g.line.NOLINE:d[0]=j.makeNodeLineClassEx(a)+ c;break;case g.folder.OPEN:case g.folder.CLOSE:case g.folder.DOCU:d[1]=c}b.attr("class",d.join("_"));c!==g.folder.DOCU?b.removeAttr("disabled"):b.attr("disabled","disabled")}}},selectNode:function(a,b,c){c||j.cancelPreSelectedNode(a,null,b);l(b,g.id.A,a).addClass(g.node.CURSELECTED);e.addSelectedNode(a,b);a.treeObj.trigger(g.event.SELECTED,[a.treeId,b])},setNodeFontCss:function(a,b){var c=l(b,g.id.A,a),d=j.makeNodeFontCss(a,b);d&&c.css(d)},setNodeLineIcos:function(a,b){if(b){var c=l(b,g.id.SWITCH, a),d=l(b,g.id.UL,a),f=l(b,g.id.ICON,a),i=j.makeUlLineClass(a,b);i.length==0?d.removeClass(g.line.LINE):d.addClass(i);c.attr("class",j.makeNodeLineClass(a,b));e.nodeIsParent(a,b)?c.removeAttr("disabled"):c.attr("disabled","disabled");f.removeAttr("style");f.attr("style",j.makeNodeIcoStyle(a,b));f.attr("class",j.makeNodeIcoClass(a,b))}},setNodeName:function(a,b){var c=e.nodeTitle(a,b),d=l(b,g.id.SPAN,a);d.empty();a.view.nameIsHTML?d.html(e.nodeName(a,b)):d.text(e.nodeName(a,b));h.apply(a.view.showTitle, [a.treeId,b],a.view.showTitle)&&l(b,g.id.A,a).attr("title",!c?"":c)},setNodeTarget:function(a,b){l(b,g.id.A,a).attr("target",j.makeNodeTarget(b))},setNodeUrl:function(a,b){var c=l(b,g.id.A,a),d=j.makeNodeUrl(a,b);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(a,b){b.open||!h.canAsync(a,b)?j.expandCollapseNode(a,b,!b.open):a.async.enable?j.asyncNode(a,b)||j.expandCollapseNode(a,b,!b.open):b&&j.expandCollapseNode(a,b,!b.open)}};r.fn.zTree={consts:{className:{BUTTON:"button", LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch",NAME:"node_name"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove",SELECTED:"ztree_selected",UNSELECTED:"ztree_unselected"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open", CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:h,view:j,event:n,data:e},getZTreeObj:function(a){return(a=e.getZTreeTools(a))?a:null},destroy:function(a){if(a&&a.length>0)j.destroy(e.getSetting(a));else for(var b in t)j.destroy(t[b])},init:function(a,b,c){var d=h.clone(P);r.extend(!0,d,b);d.treeId=a.attr("id");d.treeObj=a;d.treeObj.empty();t[d.treeId]=d;if(typeof document.body.style.maxHeight==="undefined")d.view.expandSpeed="";e.initRoot(d);a=e.getRoot(d);c=c?h.clone(h.isArray(c)? c:[c]):[];d.data.simpleData.enable?e.nodeChildren(d,a,e.transformTozTreeFormat(d,c)):e.nodeChildren(d,a,c);e.initCache(d);n.unbindTree(d);n.bindTree(d);n.unbindEvent(d);n.bindEvent(d);var f={setting:d,addNodes:function(a,b,c,f){function g(){j.addNodes(d,a,b,n,f==!0)}a||(a=null);var l=e.nodeIsParent(d,a);if(a&&!l&&d.data.keep.leaf)return null;l=parseInt(b,10);isNaN(l)?(f=!!c,c=b,b=-1):b=l;if(!c)return null;var n=h.clone(h.isArray(c)?c:[c]);h.canAsync(d,a)?j.asyncNode(d,a,f,g):g();return n},cancelSelectedNode:function(a){j.cancelPreSelectedNode(d, a)},destroy:function(){j.destroy(d)},expandAll:function(a){a=!!a;j.expandCollapseSonNode(d,null,a,!0);return a},expandNode:function(a,b,c,f,g){function n(){var b=l(a,d).get(0);b&&f!==!1&&j.scrollIntoView(d,b)}if(!a||!e.nodeIsParent(d,a))return null;b!==!0&&b!==!1&&(b=!a.open);if((g=!!g)&&b&&h.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(g&&!b&&h.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&&j.expandCollapseParentNode(d,a.getParentNode(), b,!1);if(b===a.open&&!c)return null;e.getRoot(d).expandTriggerFlag=g;!h.canAsync(d,a)&&c?j.expandCollapseSonNode(d,a,b,!0,n):(a.open=!b,j.switchNode(this.setting,a),n());return b},getNodes:function(){return e.getNodes(d)},getNodeByParam:function(a,b,c){return!a?null:e.getNodeByParam(d,c?e.nodeChildren(d,c):e.getNodes(d),a,b)},getNodeByTId:function(a){return e.getNodeCache(d,a)},getNodesByParam:function(a,b,c){return!a?null:e.getNodesByParam(d,c?e.nodeChildren(d,c):e.getNodes(d),a,b)},getNodesByParamFuzzy:function(a, b,c){return!a?null:e.getNodesByParamFuzzy(d,c?e.nodeChildren(d,c):e.getNodes(d),a,b)},getNodesByFilter:function(a,b,c,f){b=!!b;return!a||typeof a!="function"?b?null:[]:e.getNodesByFilter(d,c?e.nodeChildren(d,c):e.getNodes(d),a,b,f)},getNodeIndex:function(a){if(!a)return null;for(var b=a.parentTId?a.getParentNode():e.getRoot(d),b=e.nodeChildren(d,b),c=0,f=b.length;c0?j.createNodes(d,0,c,null,-1):d.async.enable&&d.async.url&&d.async.url!==""&&j.asyncNode(d);return f}};var Q=r.fn.zTree,l=h.$,g=Q.consts})(jQuery); ================================================ FILE: lib/zTree_v3/api/apiCss/zTreeStyleForApi.css ================================================ /*------------------------------------- zTree Style version: 3.0 author: Hunter.z email: hunter.z@263.net website: http://code.google.com/p/jquerytree/ -------------------------------------*/ .ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} .ztree {margin:0; padding:5px; color:#333} .ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap} .ztree li ul{ margin:0; padding:0 0 0 18px} .ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} .ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; color:#333; height:17px; text-decoration:none; vertical-align:top; display: inline-block} .ztree li a:hover {text-decoration:none} .ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid;} .ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8; filter:alpha(opacity=80)} .ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; opacity:0.8; filter:alpha(opacity=80)} .ztree li a.tmpTargetNode_prev {} .ztree li a.tmpTargetNode_next {} .ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; font-size:12px; border:1px #7EC4CC solid; *border:0px} .ztree li span {line-height:16px; margin-right: 2px} .ztree li span.button {line-height:0; margin:0;width:16px; height:16px; display: inline-block; vertical-align:middle; border:0 none; cursor: pointer; background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} .ztree li span.button.switch {width:1px; height:18px; visibility: hidden} .zTreeDragUL {margin:0; padding:0; position:absolute; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} .zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} /* level 等级样式*/ /*.ztree li button.level0 { display:none; } .ztree li ul.level0 { padding:0; background:none; }*/ .ztree li span.button.core_ico_docu{margin-right:2px; background-position:-126px 0; vertical-align:top; *vertical-align:middle} .ztree li span.button.check_ico_docu{margin-right:2px; background-position:-126px -16px; vertical-align:top; *vertical-align:middle} .ztree li span.button.edit_ico_docu{margin-right:2px; background-position:-126px -32px; vertical-align:top; *vertical-align:middle} .ztree li span.button.hide_ico_docu{margin-right:2px; background-position:-160px 0; vertical-align:top; *vertical-align:middle} ================================================ FILE: lib/zTree_v3/api/cn/fn.zTree._z.html ================================================

                        JSON$.fn.zTree._z

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree v3.x 内部的全部方法都可以通过 $.fn.zTree._z 进行调用,开放出来是为了更便于大家开发制作自己的 zTree 插件。

                        如无特殊需求请勿使用此对象,以及修改此对象内部的各个函数。

                        ================================================ FILE: lib/zTree_v3/api/cn/fn.zTree.destroy.html ================================================

                        Function(treeId)$.fn.zTree.destroy

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        从 zTree v3.4 开始提供销毁 zTree 的方法。

                        1、用此方法可以销毁指定 treeId 的 zTree,也可以销毁当前页面全部的 zTree。

                        2、销毁指定 treeId 的 zTree 也可以使用 zTreeObj.destroy() 方法。

                        3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

                        Function 参数说明

                        treeIdString

                        zTree 的 DOM 容器的 id

                        省略 treeId,表示销毁当前页面全部的 zTree

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 销毁 id 为 "treeDemo" 的 zTree

                        $.fn.zTree.destroy("treeDemo");

                        2. 销毁全部 的 zTree

                        $.fn.zTree.destroy();
                        ================================================ FILE: lib/zTree_v3/api/cn/fn.zTree.getZTreeObj.html ================================================

                        Function(treeId)$.fn.zTree.getZTreeObj

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree v3.x 专门提供的根据 treeId 获取 zTree 对象的方法。

                        必须在初始化 zTree 以后才可以使用此方法。

                        有了这个方法,用户不再需要自己设定全局变量来保存 zTree 初始化后得到的对象了,而且在所有回调函数中全都会返回 treeId 属性,用户可以随时使用此方法获取需要进行操作的 zTree 对象

                        Function 参数说明

                        treeIdString

                        zTree 的 DOM 容器的 id

                        返回值JSON

                        zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

                        function 举例

                        1. 获取 id 为 tree 的 zTree 对象

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        ================================================ FILE: lib/zTree_v3/api/cn/fn.zTree.init.html ================================================

                        Function(obj, zSetting, zNodes)$.fn.zTree.init

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 初始化方法,创建 zTree 必须使用此方法

                        1、页面需要进行 W3C 申明,例如:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">。

                        2、需要首先加载 jquery-1.4.2.js 或其他更高版本的 jQuery 。

                        3、需要加载 jquery-ztree.core-3.0.js,如果需要用到 编辑功能 或 checkbox / radio 还需要分别加载 jquery-ztree.exedit-3.0.js 和 jquery-ztree.excheck-3.0.js 。

                        4、需要加载 zTreeStyle.css 以及 zTreeStyle 目录下的 img 文件。

                        5、如果需要使用自定义图标请参考相应的Demo。

                        6、请注意设置 zTree 的容器样式 class="ztree",其中 "ztree" 这个 className,可以根据需要随意修改,别忘了修改 css 中对应名字就是了,对于容器如果需要增加其他特殊样式,可根据自己的需要进行修改。

                        Function 参数说明

                        objjQuery Object

                        用于展现 zTree 的 DOM 容器

                        zSettingJSON

                        zTree 的配置数据,具体请参考 “setting 配置详解”中的各个属性详细说明

                        zNodesArray(JSON) / JSON

                        zTree 的节点数据,具体请参考 “treeNode 节点数据详解”中的各个属性详细说明

                        1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

                        2、如果需要异步加载根节点,可以设置为 null 或 [ ]

                        3、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

                        返回值JSON

                        zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

                        如果不需要自行设定全局变量保存,可以利用 $.fn.zTree.getZTreeObj 方法随时获取

                        setting & function 举例

                        1. 简单创建 zTree 演示

                        <!DOCTYPE html>
                        <HTML>
                         <HEAD>
                          <TITLE> ZTREE DEMO </TITLE>
                          <meta http-equiv="content-type" content="text/html; charset=UTF-8">
                          <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
                          <script type="text/javascript" src="jquery-1.4.2.js"></script>
                          <script type="text/javascript" src="jquery.ztree.core.js"></script>
                        <!--
                          <script type="text/javascript" src="jquery.ztree.excheck.js"></script>
                          <script type="text/javascript" src="jquery.ztree.exedit.js"></script>
                        -->
                          <SCRIPT type="text/javascript" >
                        	var zTreeObj,
                        	setting = {
                        		view: {
                        			selectedMulti: false
                        		}
                        	},
                        	zTreeNodes = [
                        		{"name":"网站导航", open:true, children: [
                        			{ "name":"google", "url":"http://g.cn", "target":"_blank"},
                        			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
                        			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
                        			]
                        		}
                        	];
                        
                        	$(document).ready(function(){
                        		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
                        
                        	});
                          </SCRIPT>
                         </HEAD>
                        
                        <BODY>
                        <ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
                         </BODY>
                        </HTML>
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.autoParam.html ================================================

                        Array(String) / Function(treeId, treeNode)setting.async.autoParam

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        异步加载时需要自动提交父节点属性的参数。[setting.async.enable = true 时生效]

                        默认值:[ ]

                        Array(String) 格式说明

                        1、将需要作为参数提交的属性名称,制作成 Array 即可,例如:["id", "name"]

                        2、可以设置提交时的参数名称,例如 server 只接受 zId : ["id=zId"]

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要异步加载子节点的的父节点 JSON 数据对象

                        针对根进行异步加载时,treeNode = null

                        返回值Array(String)

                        返回值同 Array(String) 格式的数据

                        setting 举例

                        1. 设置 id 属性为自动提交的参数

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		autoParam: ["id"]
                        	}
                        };
                        假设 异步加载 父节点(node = {id:1, name:"test"}) 的子节点时,将提交参数 id=1
                        ......

                        2. 设置 id 属性作为 zId 成为自动提交的参数

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		autoParam: ["id=zId"]
                        	}
                        };
                        假设 对父节点 node = {id:1, name:"test"},进行异步加载时,将提交参数 zId=1
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.contentType.html ================================================

                        Stringsetting.async.contentType

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        Ajax 提交参数的数据类型。[setting.async.enable = true 时生效]

                        默认值:"application/x-www-form-urlencoded"

                        String 格式说明

                        contentType = "application/x-www-form-urlencoded" 可以满足绝大部分请求,按照标准的 Form 格式提交参数

                        contentType = "application/json" 可以满足 .Net 的编程需要,按照 JSON 格式提交参数

                        setting 举例

                        1. 设置 Ajax 提交参数的数据类型为 JSON 格式

                        var setting = {
                        	async: {
                        		enable: true,
                        		contentType: "application/json",
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.dataFilter.html ================================================

                        Function(treeId, parentNode, responseData)setting.async.dataFilter

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于对 Ajax 返回数据进行预处理的函数。[setting.async.enable = true 时生效]

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        parentNodeJSON

                        进行异步加载的父节点 JSON 数据对象

                        对根进行异步加载时,parentNode = null

                        responseDataArray(JSON) / JSON / String

                        异步加载获取到的数据转换后的 Array(JSON) / JSON / String 数据对象

                        v3.4开始 支持 XML 数据格式的 String

                        返回值Array(JSON) / JSON

                        返回值是 zTree 支持的JSON 数据结构即可。

                        v3.x 支持单个 JSON 节点数据进行加载

                        setting & function 举例

                        1. 修改异步获取到的节点name属性

                        function ajaxDataFilter(treeId, parentNode, responseData) {
                            if (responseData) {
                              for(var i =0; i < responseData.length; i++) {
                                responseData[i].name += "_filter";
                              }
                            }
                            return responseData;
                        };
                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		dataFilter: ajaxDataFilter
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.dataType.html ================================================

                        Stringsetting.async.dataType

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        Ajax 获取的数据类型。[setting.async.enable = true 时生效]

                        默认值:"text"

                        String 格式说明

                        dataType = "text" 可以满足绝大部分请求

                        其余 dataType 类型请参考 jQuery ajax 中的 dataType 参数

                        setting 举例

                        1. 设置 Ajax 获取的数据类型为 纯文本

                        var setting = {
                        	async: {
                        		enable: true,
                        		dataType: "text",
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.enable.html ================================================

                        Booleansetting.async.enable

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置 zTree 是否开启异步加载模式

                        默认值:false

                        Boolean 格式说明

                        true 表示 开启 异步加载模式

                        false 表示 关闭 异步加载模式

                        如果设置为 true,请务必设置 setting.async 内的其它参数。

                        如果需要根节点也异步加载,初始化时 treeNodes 参数设置为 null 即可。

                        setting 举例

                        1. 需要开启异步加载模式

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.headers.html ================================================

                        Objectsetting.async.headers

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        [setting.async.enable = true 时生效]

                        默认值:"{}"

                        v3.5.36+

                        Object 格式说明

                        请参考 jQuery ajax 中的 headers 参数

                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.otherParam.html ================================================

                        Array(String) / JSON / Function(treeId, treeNode)setting.async.otherParam

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        Ajax 请求提交的静态参数键值对。[setting.async.enable = true 时生效]

                        默认值:[ ]

                        Array(String) 格式说明

                        可以为空[ ],如果有 key,则必须存在 value。 例如:[key, value]

                        JSON 格式说明

                        直接用 JSON 格式制作键值对,例如:{ key1:value1, key2:value2 }

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要异步加载子节点的的父节点 JSON 数据对象

                        针对根进行异步加载时,treeNode = null

                        返回值Array(String) || JSON

                        返回值同 Array(String) || JSON 格式的数据

                        setting 举例

                        1. 设置 Array(String) 格式的参数

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		otherParam: ["id", "1", "name", "test"]
                        	}
                        };
                        进行异步加载时,将提交参数 id=1&name=test

                        2. 设置 JSON 格式的参数

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		otherParam: { "id":"1", "name":"test"}
                        	}
                        };
                        进行异步加载时,将提交参数 id=1&name=test
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.type.html ================================================

                        Stringsetting.async.type

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        Ajax 的 http 请求模式。[setting.async.enable = true 时生效]

                        默认值:"post"

                        String 格式说明

                        type = "post" 表示异步加载采用 post 方法请求

                        type = "get" 表示异步加载采用 get 方法请求

                        对应于 jQuery ajax 中的 type 参数

                        setting 举例

                        1. 设置使用 get 方式请求数据

                        var setting = {
                        	async: {
                        		enable: true,
                        		type: "get",
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.url.html ================================================

                        String / Function(treeId, treeNode)setting.async.url

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        Ajax 获取数据的 URL 地址。[setting.async.enable = true 时生效]

                        默认值:""

                        String 格式说明

                        设置固定的异步加载 url 字符串,请注意地址的路径,确保页面能正常加载

                        url 内也可以带参数,这些参数就只能是通过 get 方式提交了,并且请注意进行转码

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要异步加载子节点的的父节点 JSON 数据对象

                        针对根进行异步加载时,treeNode = null

                        返回值String

                        返回值同 String 格式的数据

                        setting & function 举例

                        1. 设置异步获取节点的 URL 为 nodes.php

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "nodes.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......

                        2. 设置异步获取节点的 URL 为 function 动态获取

                        function getAsyncUrl(treeId, treeNode) {
                            return treeNode.isParent ? "nodes1.php" : "nodes2.php";
                        };
                        var setting = {
                        	async: {
                        		enable: true,
                        		url: getAsyncUrl,
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.async.xhrFields.html ================================================

                        Objectsetting.async.xhrFields

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        [setting.async.enable = true 时生效]

                        默认值:"{}"

                        v3.5.36+

                        Object 格式说明

                        请参考 jQuery ajax 中的 xhrFields 参数

                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeAsync.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeAsync

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获异步加载之前的事件回调函数,zTree 根据返回值确定是否允许进行异步加载

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        进行异步加载的父节点 JSON 数据对象

                        针对根进行异步加载时,treeNode = null

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将不进行异步加载,也无法触发 onAsyncSuccess / onAsyncError 事件回调函数

                        setting & function 举例

                        1. 禁止 id 为 1 的父节点进行异步加载操作

                        function zTreeBeforeAsync(treeId, treeNode) {
                            return (treeNode.id !== 1);
                        };
                        var setting = {
                        	callback: {
                        		beforeAsync: zTreeBeforeAsync
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeCheck.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeCheck

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        用于捕获 勾选 或 取消勾选 之前的事件回调函数,并且根据返回值确定是否允许 勾选 或 取消勾选

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        进行 勾选 或 取消勾选 的节点 JSON 数据对象

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,将不会改变勾选状态,并且无法触发 onCheck 事件回调函数

                        setting & function 举例

                        1. 禁止所有勾选操作,保持初始化的勾选状态

                        function zTreeBeforeCheck(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeCheck: zTreeBeforeCheck
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeClick.html ================================================

                        Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获单击节点之前的事件回调函数,并且根据返回值确定是否允许单击操作

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        被单击的节点 JSON 数据对象

                        clickFlagNumber

                        节点被点击后的选中操作类型,详细看下表

                        clickFlagselectedMultiautoCancelSelected
                        &&
                        event.ctrlKey / metaKey
                        isSelected选中操作
                        1truefalsefalse普通选中
                        1truefalsetrue普通选中
                        2truetruefalse追加选中
                        0truetruetrue取消选中
                        1falsefalsefalse普通选中
                        1falsefalsetrue普通选中
                        1falsetruefalse普通选中
                        0falsetruetrue取消选中

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将不会选中节点,也无法触发 onClick 事件回调函数

                        setting & function 举例

                        1. 禁止节点被选中

                        function zTreeBeforeClick(treeId, treeNode, clickFlag) {
                            return (treeNode.id !== 1);
                        };
                        var setting = {
                        	callback: {
                        		beforeClick: zTreeBeforeClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeCollapse.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeCollapse

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获父节点折叠之前的事件回调函数,并且根据返回值确定是否允许折叠操作

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        要折叠的父节点 JSON 数据对象

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将不会折叠节点,也无法触发 onCollapse 事件回调函数

                        setting & function 举例

                        1. 禁止所有已展开的父节点折叠

                        function zTreeBeforeCollapse(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeCollapse: zTreeBeforeCollapse
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeDblClick.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeDblClick

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标双击之前的事件回调函数,并且根据返回值确定触发 onDblClick 事件回调函数

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标双击时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,将仅仅无法触发 onDblClick 事件回调函数,对其他操作无任何影响

                        此事件回调函数对双击节点展开功能无任何影响,如果需要设置请参考 setting.view.dblClickExpand 属性

                        setting & function 举例

                        1. 禁止 onDblClick 事件

                        function zTreeBeforeDblClick(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeDblClick: zTreeBeforeDblClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeDrag.html ================================================

                        Function(treeId, treeNodes)setting.callback.beforeDrag

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点被拖拽之前的事件回调函数,并且根据返回值确定是否允许开启拖拽操作

                        默认值:null

                        Function 参数说明

                        treeIdString

                        被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

                        treeNodesArray(JSON)

                        要被拖拽的节点 JSON 数据集合

                        v3.x 允许多个同级节点同时被拖拽,因此将此参数修改为 Array(JSON)

                        如果拖拽时多个被选择的节点不是同级关系,则只能拖拽鼠标当前所在位置的节点

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将终止拖拽,也无法触发 onDrag / beforeDrop / onDrop 事件回调函数

                        setting & function 举例

                        1. 禁止全部拖拽操作

                        function zTreeBeforeDrag(treeId, treeNodes) {
                            return false;
                        };
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeDrag: zTreeBeforeDrag
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeDragOpen.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeDragOpen

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获拖拽节点移动到折叠状态的父节点后,即将自动展开该父节点之前的事件回调函数,并且根据返回值确定是否允许自动展开操作

                        默认值:null

                        Function 参数说明

                        treeIdString

                        需要被展开的父节点 treeNode 所在 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        要被自动展开的父节点 JSON 数据对象

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将无法进行自动展开操作

                        setting & function 举例

                        1. 禁止全部拖拽时的自动展开操作

                        function zTreeBeforeDragOpen(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeDragOpen: zTreeBeforeDragOpen
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeDrop.html ================================================

                        Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作

                        默认值:null

                        如未拖拽到有效位置,则不触发此回调函数,直接将节点恢复原位置

                        Function 参数说明

                        treeIdString

                        目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

                        treeNodesArray(JSON)

                        被拖拽的节点 JSON 数据集合

                        无论拖拽操作为 复制 还是 移动,treeNodes 都是当前被拖拽节点的数据集合。

                        targetNodeJSON

                        treeNodes 被拖拽放开的目标节点 JSON 数据对象。

                        如果拖拽成为根节点,则 targetNode = null

                        moveTypeString

                        指定移动到目标节点的相对位置

                        "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                        isCopyBoolean

                        拖拽节点操作是 复制 或 移动

                        true:复制;false:移动

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将恢复被拖拽的节点,也无法触发 onDrop 事件回调函数

                        setting & function 举例

                        1. 禁止将节点拖拽成为根节点

                        function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
                            return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
                        };
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeDrop: zTreeBeforeDrop
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeEditName.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeEditName

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点编辑按钮的 click 事件,并且根据返回值确定是否允许进入名称编辑状态

                        此事件回调函数最主要是用于捕获编辑按钮的点击事件,然后触发自定义的编辑界面操作。

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        将要进入编辑名称状态的节点 JSON 数据对象

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,节点将无法进入 zTree 默认的编辑名称状态

                        setting & function 举例

                        1. 禁止修改父节点的名称

                        function zTreeBeforeEditName(treeId, treeNode) {
                        	return !treeNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeEditName: zTreeBeforeEditName
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeExpand.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeExpand

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获父节点展开之前的事件回调函数,并且根据返回值确定是否允许展开操作

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        要展开的父节点 JSON 数据对象

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将不会展开节点,也无法触发 onExpand 事件回调函数

                        setting & function 举例

                        1. 禁止所有已折叠的父节点展开

                        function zTreeBeforeExpand(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeExpand: zTreeBeforeExpand
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeMouseDown.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeMouseDown

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标按键按下之前的事件回调函数,并且根据返回值确定触发 onMouseDown 事件回调函数

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标按键按下时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,将仅仅无法触发 onMouseDown 事件回调函数,对其他操作无任何影响

                        setting & function 举例

                        1. 禁止 onMouseDown 事件

                        function zTreeBeforeMouseDown(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeMouseDown: zTreeBeforeMouseDown
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeMouseUp.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeMouseUp

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标按键松开之前的事件回调函数,并且根据返回值确定触发 onMouseUp 事件回调函数

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标按键松开时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,将仅仅无法触发 onMouseUp 事件回调函数,对其他操作无任何影响

                        setting & function 举例

                        1. 禁止 onMouseUp 事件

                        function zTreeBeforeMouseUp(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeMouseUp: zTreeBeforeMouseUp
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeRemove.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeRemove

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点被删除之前的事件回调函数,并且根据返回值确定是否允许删除操作

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        将要删除的节点 JSON 数据对象

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将不删除节点,也无法触发 onRemove 事件回调函数

                        setting & function 举例

                        1. 禁止全部删除操作

                        function zTreeBeforeRemove(treeId, treeNode) {
                        	return false;
                        }
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeRemove: zTreeBeforeRemove
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeRename.html ================================================

                        Function(treeId, treeNode, newName, isCancel)setting.callback.beforeRename

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点编辑名称结束(Input 失去焦点 或 按下 Enter 键)之后,更新节点名称数据之前的事件回调函数,并且根据返回值确定是否允许更改名称的操作

                        节点进入编辑名称状态后,按 ESC 键可以放弃当前修改,恢复原名称,取消编辑名称状态

                        从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        将要更改名称的节点 JSON 数据对象

                        newNameString

                        修改后的新名称

                        isCancelBoolean

                        是否取消操作 (v3.5.13+)

                        isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)

                        isCancel = false 表示确认修改操作

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,zTree 将保持名称编辑状态,无法触发 onRename 事件回调函数,并且会导致屏蔽其它事件,直到修改名称使得 beforeRename 返回 true

                        如果返回 false,不会让 input 输入框获取焦点,避免由于警告信息而导致反复触发 beforeRename。 请在关闭提示警告信息后,利用 editName 方法让 input 重新获取焦点。

                        setting & function 举例

                        1. 禁止修改的名称的长度小于 5

                        function zTreeBeforeRename(treeId, treeNode, newName, isCancel) {
                        	return newName.length > 5;
                        }
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeRename: zTreeBeforeRename
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.beforeRightClick.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeRightClick

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标右键点击之前的事件回调函数,并且根据返回值确定触发 onRightClick 事件回调函数

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标右键点击时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        返回值Boolean

                        返回值是 true / false

                        如果返回 false,将仅仅无法触发 onRightClick 事件回调函数,对其他操作无任何影响

                        setting & function 举例

                        1. 禁止 onRightClick 事件

                        function zTreeBeforeRightClick(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeRightClick: zTreeBeforeRightClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onAsyncError.html ================================================

                        setting.callback.onAsyncError

                        Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获异步加载出现异常错误的事件回调函数

                        如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        进行异步加载的父节点 JSON 数据对象

                        针对根进行异步加载时,treeNode = null

                        XMLHttpRequestString

                        标准 XMLHttpRequest 对象,请参考 JQuery API 文档。

                        textStatusString

                        请求状态:success,error,请参考 JQuery API 文档。

                        errorThrownString

                        errorThrown 只有当异常发生时才会被传递,请参考 JQuery API 文档。

                        setting & function 举例

                        1. 异步加载出现异常后,弹出错误信息

                        function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
                            alert(XMLHttpRequest);
                        };
                        var setting = {
                        	callback: {
                        		onAsyncError: zTreeOnAsyncError
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onAsyncSuccess.html ================================================

                        Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获异步加载正常结束的事件回调函数

                        如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        进行异步加载的父节点 JSON 数据对象

                        针对根进行异步加载时,treeNode = null

                        msgString / Object

                        异步获取的节点数据字符串,主要便于用户调试使用。

                        实际数据类型会受 setting.async.dataType 的设置影响,请参考 JQuery API 文档。

                        setting & function 举例

                        1. 异步加载成功后,弹出提示信息

                        function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
                            alert(msg);
                        };
                        var setting = {
                        	callback: {
                        		onAsyncSuccess: zTreeOnAsyncSuccess
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onCheck.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onCheck

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        用于捕获 checkbox / radio 被勾选 或 取消勾选的事件回调函数

                        如果设置了 setting.callback.beforeCheck 方法,且返回 false,将无法触发 onCheck 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        被勾选 或 取消勾选的节点 JSON 数据对象

                        setting & function 举例

                        1. 每次点击 checkbox 或 radio 后, 弹出该节点的 tId、name 以及当前勾选状态的信息

                        function zTreeOnCheck(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
                        };
                        var setting = {
                        	callback: {
                        		onCheck: zTreeOnCheck
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onClick.html ================================================

                        Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获节点被点击的事件回调函数

                        如果设置了 setting.callback.beforeClick 方法,且返回 false,将无法触发 onClick 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        被点击的节点 JSON 数据对象

                        clickFlagNumber

                        节点被点击后的选中操作类型,详细看下表

                        clickFlagselectedMultiautoCancelSelected
                        &&
                        event.ctrlKey / metaKey
                        isSelected选中操作
                        1truefalsefalse普通选中
                        1truefalsetrue普通选中
                        2truetruefalse追加选中
                        0truetruetrue取消选中
                        1falsefalsefalse普通选中
                        1falsefalsetrue普通选中
                        1falsetruefalse普通选中
                        0falsetruetrue取消选中

                        setting & function 举例

                        1. 每次点击节点后, 弹出该节点的 tId、name 的信息

                        function zTreeOnClick(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onClick: zTreeOnClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onCollapse.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onCollapse

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获节点被折叠的事件回调函数

                        如果设置了 setting.callback.beforeCollapse 方法,且返回 false,将无法触发 onCollapse 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        被折叠的节点 JSON 数据对象

                        setting & function 举例

                        1. 每次折叠节点后, 弹出该节点的 tId、name 的信息

                        function zTreeOnCollapse(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onCollapse: zTreeOnCollapse
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onDblClick.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onDblClick

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标双击之后的事件回调函数

                        如果设置了 setting.callback.beforeDblClick 方法,且返回 false,将无法触发 onDblClick 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标双击时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        setting & function 举例

                        1. 每次鼠标双击后, 弹出鼠标所在节点的 tId、name 的信息

                        function zTreeOnDblClick(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onDblClick: zTreeOnDblClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onDrag.html ================================================

                        Function(event, treeId, treeNodes)setting.callback.onDrag

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点被拖拽的事件回调函数

                        如果设置了 setting.callback.beforeDrag 方法,且返回 false,将无法触发 onDragMove 和 onDrag 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

                        treeNodesArray(JSON)

                        要被拖拽的节点 JSON 数据集合

                        setting & function 举例

                        1. 每次开始进行拖拽节点后, 弹出被拖拽节点的个数信息

                        function zTreeOnDrag(event, treeId, treeNodes) {
                            alert(treeNodes.length);
                        };
                        var setting = {
                        	callback: {
                        		onDrag: zTreeOnDrag
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onDragMove.html ================================================

                        Function(event, treeId, treeNodes)setting.callback.onDragMove

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点被拖拽过程中移动的事件回调函数

                        主要用于捕获 zTree 节点拖拽到的 DOM,从而操作对应的 DOM。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

                        treeNodesArray(JSON)

                        要被拖拽的节点 JSON 数据集合

                        setting & function 举例

                        1. 拖拽节点时,随时输出 当前拖拽到的目标 DOM

                        function zTreeOnDragMove(event, treeId, treeNodes) {
                            console.log(event.target);
                        };
                        var setting = {
                        	callback: {
                        		onDragMove: zTreeOnDragMove
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onDrop.html ================================================

                        Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点拖拽操作结束的事件回调函数

                        如果设置了 setting.callback.beforeDrop 方法,且返回 false,将无法触发 onDrop 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

                        treeNodesArray(JSON)

                        被拖拽的节点 JSON 数据集合

                        如果拖拽操作为 移动,treeNodes 是当前被拖拽节点的数据集合。

                        如果拖拽操作为 复制,treeNodes 是复制后 clone 得到的新节点数据。

                        targetNodeJSON

                        成为 treeNodes 拖拽结束的目标节点 JSON 数据对象。

                        如果拖拽成为根节点,则 targetNode = null

                        moveTypeString

                        指定移动到目标节点的相对位置

                        "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                        如果 moveType = null,表明拖拽无效

                        isCopyBoolean

                        拖拽节点操作是 复制 或 移动

                        true:复制;false:移动

                        setting & function 举例

                        1. 每次拖拽操作结束后, 弹出该被拖拽节点的个数以及目标节点的 tId、name 的信息

                        function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
                            alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
                        };
                        var setting = {
                        	callback: {
                        		onDrop: zTreeOnDrop
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onExpand.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onExpand

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获节点被展开的事件回调函数

                        如果设置了 setting.callback.beforeExpand 方法,且返回 false,将无法触发 onExpand 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        被展开的节点 JSON 数据对象

                        setting & function 举例

                        1. 每次展开节点后, 弹出该节点的 tId、name 的信息

                        function zTreeOnExpand(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onExpand: zTreeOnExpand
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onMouseDown.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onMouseDown

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标按键按下后的事件回调函数

                        如果设置了 setting.callback.beforeMouseDown 方法,且返回 false,将无法触发 onMouseDown 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标按键按下时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        setting & function 举例

                        1. 每次鼠标按键按下后, 弹出鼠标所在节点的 tId、name 的信息

                        function zTreeOnMouseDown(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onMouseDown: zTreeOnMouseDown
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onMouseUp.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onMouseUp

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标按键松开后的事件回调函数

                        如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标按键松开时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        setting & function 举例

                        1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息

                        function zTreeOnMouseUp(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onMouseUp: zTreeOnMouseUp
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onNodeCreated.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onNodeCreated

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获节点生成 DOM 后的事件回调函数

                        v3.x 采用了延迟加载技术,因此对于父节点未展开的子节点来说,初始化后是不会触发此回调函数,直到其父节点被展开

                        大数据量的节点加载请注意:不设置 onNodeCreated,可以提升一部分初始化性能

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        生成 DOM 完毕的节点的 JSON 数据对象

                        setting & function 举例

                        1. 创建节点 DOM 后, 弹出该节点的 tId、name 的信息

                        function zTreeOnNodeCreated(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onNodeCreated: zTreeOnNodeCreated
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onRemove.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onRemove

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获删除节点之后的事件回调函数。

                        如果用户设置了 beforeRemove 回调函数,并返回 false,将无法触发 onRemove 事件回调函数。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        将要删除的节点 JSON 数据对象

                        setting & function 举例

                        1. 删除节点时,弹出被删除的节点的 tId 以及 name 信息

                        function zTreeOnRemove(event, treeId, treeNode) {
                        	alert(treeNode.tId + ", " + treeNode.name);
                        }
                        var setting = {
                        	callback: {
                        		onRemove: zTreeOnRemove
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onRename.html ================================================

                        Function(event, treeId, treeNode, isCancel)setting.callback.onRename

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于捕获节点编辑名称结束之后的事件回调函数。

                        1、节点进入编辑名称状态,并且修改节点名称后触发此回调函数。如果用户设置了 beforeRename 回调函数,并返回 false,将无法触发 onRename 事件回调函数。

                        2、如果通过直接修改 treeNode 的数据,并且利用 updateNode 方法更新,是不会触发此回调函数的。

                        3、从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        被修改名称的节点 JSON 数据对象

                        isCancelBoolean

                        是否取消操作 (v3.5.13+)

                        isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)

                        isCancel = false 表示确认修改操作

                        setting & function 举例

                        1. 修改名称后,弹出被修改名称的节点的 tId 以及 name 信息

                        function zTreeOnRename(event, treeId, treeNode, isCancel) {
                        	alert(treeNode.tId + ", " + treeNode.name);
                        }
                        var setting = {
                        	callback: {
                        		onRename: zTreeOnRename
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.callback.onRightClick.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onRightClick

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于捕获 zTree 上鼠标右键点击之后的事件回调函数

                        1、如果设置了 setting.callback.beforeRightClick 方法,且返回 false,将无法触发 onRightClick 事件回调函数。

                        2、只要将 function 的引用赋给 onRightClick 属性,则右键点击 zTree 时,将屏蔽浏览器的右键菜单。

                        默认值:null

                        Function 参数说明

                        eventjs event 对象

                        标准的 js event 对象

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        鼠标右键点击时所在节点的 JSON 数据对象

                        如果不在节点上,则返回 null

                        setting & function 举例

                        1. 每次鼠标右键点击后, 弹出鼠标所在节点的 tId、name 的信息

                        function zTreeOnRightClick(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onRightClick: zTreeOnRightClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.check.autoCheckTrigger.html ================================================

                        Booleansetting.check.autoCheckTrigger

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        设置自动关联勾选时是否触发 beforeCheck / onCheck 事件回调函数。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

                        1、如果设置 setting.check.chkboxType = { "Y": "", "N": "" },将不会有任何自动关联勾选的操作。

                        2、如果开启触发,对于节点较多的树将会影响性能,因为所有被联动勾选的操作都会触发事件回调函数,请根据需要决定是否使用此功能。

                        默认值: false

                        Boolean 格式说明

                        true / false 分别表示 触发 / 不触发 事件回调函数

                        setting 举例

                        1. 需要触发自动关联勾选操作

                        var setting = {
                        	check: {
                        		enable: true,
                        		autoCheckTrigger: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.check.chkDisabledInherit.html ================================================

                        Booleansetting.check.chkDisabledInherit

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        当父节点设置 chkDisabled = true 时,设置子节点是否自动继承 chkDisabled = true 。[setting.check.enable = true 时生效]

                        1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 setChkDisabled 方法单个节点设置。

                        默认值: false

                        Boolean 格式说明

                        true 表示 新加入子节点时,自动继承父节点 chkDisabled = true 的属性。

                        false 表示 新加入子节点时,不继承父节点 chkDisabled 的属性。

                        setting 举例

                        1. 需要子节点自动继承 chkDisabled = true

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkDisabledInherit: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.check.chkStyle.html ================================================

                        Stringsetting.check.chkStyle

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        勾选框类型(checkbox 或 radio)[setting.check.enable = true 时生效]

                        默认值:"checkbox"

                        String 格式说明

                        chkStyle = "checkbox" 时,显示 checkbox 选择框,setting.check.chkboxType 属性有效。
                        chkStyle = "radio" 时,显示 radio 选择框, setting.check.radioType 属性有效。

                        请注意大小写,不要改变

                        checkbox 状态说明

                        未勾选;如果是父节点,则无子节点被勾选。鼠标移到该节点上显示为:

                        未勾选;(只有父节点存在此状态)存在被勾选的子节点。鼠标移到该节点上显示为:

                        被勾选;如果是父节点,则全部子节点都被勾选。鼠标移到该节点上显示为:

                        被勾选;(只有父节点存在此状态)且部分或无子节点被勾选。鼠标移到该节点上显示为:

                        radio 状态说明

                        未勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

                        未勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

                        被勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

                        被勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

                        setting 举例

                        1. 设置选择框为 radio

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkStyle: "radio"
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.check.chkboxType.html ================================================

                        JSONsetting.check.chkboxType

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        勾选 checkbox 对于父子节点的关联关系。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

                        默认值:{ "Y": "ps", "N": "ps" }

                        JSON 格式说明

                        Y 属性定义 checkbox 被勾选后的情况;
                        N 属性定义 checkbox 取消勾选后的情况;
                        "p" 表示操作会影响父级节点;
                        "s" 表示操作会影响子级节点。

                        请注意大小写,不要改变

                        setting 举例

                        1. checkbox 勾选操作,只影响父级节点;取消勾选操作,只影响子级节点

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkStyle: "checkbox",
                        		chkboxType: { "Y": "p", "N": "s" }
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.check.enable.html ================================================

                        Booleansetting.check.enable

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        设置 zTree 的节点上是否显示 checkbox / radio

                        默认值: false

                        Boolean 格式说明

                        true / false 分别表示 显示 / 不显示 复选框或单选框

                        setting 举例

                        1. 需要显示 checkbox

                        var setting = {
                        	check: {
                        		enable: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.check.nocheckInherit.html ================================================

                        Booleansetting.check.nocheckInherit

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        当父节点设置 nocheck = true 时,设置子节点是否自动继承 nocheck = true 。[setting.check.enable = true 时生效]

                        1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 updateNode 方法单个节点设置。

                        默认值: false

                        Boolean 格式说明

                        true 表示 新加入子节点时,自动继承父节点 nocheck = true 的属性。

                        false 表示 新加入子节点时,不继承父节点 nocheck 的属性。

                        setting 举例

                        1. 需要子节点自动继承 nocheck = true

                        var setting = {
                        	check: {
                        		enable: true,
                        		nocheckInherit: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.check.radioType.html ================================================

                        Stringsetting.check.radioType

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        radio 的分组范围。[setting.check.enable = true 且 setting.check.chkStyle = "radio" 时生效]

                        默认值:"level"

                        String 格式说明

                        radioType = "level" 时,在每一级节点范围内当做一个分组。
                        radioType = "all" 时,在整棵树范围内当做一个分组。

                        请注意大小写,不要改变

                        setting 举例

                        1. 设置 radio 的判别规则为整棵树内

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkStyle: "radio",
                        		radioType: "all"
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.keep.leaf.html ================================================

                        Booleansetting.data.keep.leaf

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 的节点叶子节点属性锁,是否始终保持 isParent = false

                        默认值:false

                        Boolean 格式说明

                        true / false 分别表示 锁定 / 不锁定 叶子节点属性

                        如果设置为 true,则所有 isParent = false 的节点,都无法添加子节点。

                        setting 举例

                        1. 需要锁定叶子节点状态

                        var setting = {
                        	data: {
                        		keep: {
                        			leaf: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.keep.parent.html ================================================

                        Booleansetting.data.keep.parent

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 的节点父节点属性锁,是否始终保持 isParent = true

                        默认值:false

                        Boolean 格式说明

                        true / false 分别表示 锁定 / 不锁定 父节点属性

                        如果设置为 true,则所有 isParent = true 的节点,即使该节点的子节点被全部删除或移走,依旧保持父节点状态。

                        setting 举例

                        1. 需要锁定父节点状态

                        var setting = {
                        	data: {
                        		keep: {
                        			parent: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.key.checked.html ================================================

                        Stringsetting.data.key.checked

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        zTree 节点数据中保存 check 状态的属性名称。

                        默认值:"checked"

                        请勿与 zTree 节点数据的其他参数冲突,例如:checkedOld

                        setting 举例

                        1. 设置 zTree 显示节点时,将 treeNode 的 isChecked 属性当做节点名称

                        var setting = {
                        	data: {
                        		key: {
                        			checked: "isChecked"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.key.children.html ================================================

                        Stringsetting.data.key.children

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 节点数据中保存子节点数据的属性名称。

                        默认值:"children"

                        setting 举例

                        1. 设置 zTree 显示节点时,将 treeNode 的 nodes 属性当做节点名称

                        var setting = {
                        	data: {
                        		key: {
                        			children: "nodes"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.key.isHidden.html ================================================

                        Stringsetting.data.key.isHidden

                        概述[ 依赖 jquery.ztree.exhide js ]

                        zTree 节点数据保存节点是否隐藏的属性名称。

                        默认值:"isHidden"

                        v3.5.32+

                        setting 举例

                        1. 设置 zTree 显示节点时,将 treeNode 的 hidden 属性当做节点是否隐藏的属性名称

                        var setting = {
                        	data: {
                        		key: {
                        			isHidden: "hidden"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.key.isParent.html ================================================

                        Stringsetting.data.key.isParent

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 节点数据保存节点是否为父节点的属性名称。

                        默认值:"isParent"

                        v3.5.32+

                        setting 举例

                        1. 设置 zTree 显示节点时,将 treeNode 的 parent 属性当做节点是否为父节点的属性名称

                        var setting = {
                        	data: {
                        		key: {
                        			isParent: "parent"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.key.name.html ================================================

                        Stringsetting.data.key.name

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 节点数据保存节点名称的属性名称。

                        默认值:"name"

                        setting 举例

                        1. 设置 zTree 显示节点时,将 treeNode 的 ename 属性当做节点名称

                        var setting = {
                        	data: {
                        		key: {
                        			name: "ename"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.key.title.html ================================================

                        Stringsetting.data.key.title

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 节点数据保存节点提示信息的属性名称。[setting.view.showTitle = true 时生效]

                        如果设置为 "" ,则自动与 setting.data.key.name 保持一致,避免用户反复设置

                        默认值:""

                        setting 举例

                        1. 设置 zTree 显示节点时,将 treeNode 的 fullName 属性当做节点名称

                        var setting = {
                        	data: {
                        		key: {
                        			title: "fullName"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.key.url.html ================================================

                        Stringsetting.data.key.url

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 节点数据保存节点链接的目标 URL 的属性名称。

                        特殊用途:当后台数据只能生成 url 属性,又不想实现点击节点跳转的功能时,可以直接修改此属性为其他不存在的属性名称

                        默认值:"url"

                        setting 举例

                        1. 设置 zTree 显示节点时,将 treeNode 的 xUrl 属性当做节点链接的目标 URL

                        var setting = {
                        	data: {
                        		key: {
                        			url: "xUrl"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.simpleData.enable.html ================================================

                        Booleansetting.data.simpleData.enable

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        确定 zTree 初始化时的节点数据、异步加载时的节点数据、或 addNodes 方法中输入的 newNodes 数据是否采用简单数据模式 (Array)

                        不需要用户再把数据库中取出的 List 强行转换为复杂的 JSON 嵌套格式

                        默认值:false

                        Boolean 格式说明

                        true / false 分别表示 使用 / 不使用 简单数据模式

                        如果设置为 true,请务必设置 setting.data.simpleData 内的其他参数: idKey / pIdKey / rootPId,并且让数据满足父子关系。

                        setting 举例

                        1. 使用简单 Array 格式的数据

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.simpleData.idKey.html ================================================

                        Stringsetting.data.simpleData.idKey

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        节点数据中保存唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

                        默认值:"id"

                        setting 举例

                        1. 使用简单 Array 格式的数据

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.simpleData.pIdKey.html ================================================

                        Stringsetting.data.simpleData.pIdKey

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        节点数据中保存其父节点唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

                        默认值:"pId"

                        setting 举例

                        1. 使用简单 Array 格式的数据

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.data.simpleData.rootPId.html ================================================

                        String / Numbersetting.data.simpleData.rootPId

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于修正根节点父节点数据,即 pIdKey 指定的属性值。[setting.data.simpleData.enable = true 时生效]

                        默认值:null

                        setting 举例

                        1. 使用简单 Array 格式的数据

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.autoExpandTrigger.html ================================================

                        Booleansetting.edit.drag.autoExpandTrigger

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽时父节点自动展开是否触发 onExpand 事件回调函数。[setting.edit.enable = true 时生效]

                        默认值:false

                        Boolean 格式说明

                        true / false 分别表示 触发 / 不触发 onExpand 事件回调函数。

                        setting 举例

                        1. 设置拖拽时父节点自动展开触发 onExpand 事件回调函数

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			autoExpandTrigger: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.autoOpenTime.html ================================================

                        Numbersetting.edit.drag.autoOpenTime

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽时父节点自动展开的延时间隔。 (单位:ms)[setting.edit.enable = true 时生效]

                        默认值:500

                        请根据自己的需求适当调整此值

                        setting 举例

                        1. 设置拖拽到父节点上立刻自动展开

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			autoOpenTime: 0
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.borderMax.html ================================================

                        Numbersetting.edit.drag.borderMax

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽节点成为根节点时的 Tree 内边界范围 (单位:px)。[setting.edit.enable = true 时生效]

                        默认值:10

                        请根据自己的需求适当调整此值

                        setting 举例

                        1. 更改拖拽操作节点成为根节点时的 Tree 内边界范围为20px

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			borderMax: 20
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.borderMin.html ================================================

                        Numbersetting.edit.drag.borderMin

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽节点成为根节点时的 Tree 外边界范围 (单位:px)。[setting.edit.enable = true 时生效]

                        默认值:-5

                        请根据自己的需求适当调整此值

                        setting 举例

                        1. 更改拖拽操作节点成为根节点时的 Tree 外边界范围为10px

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			borderMin: -10
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.inner.html ================================================

                        Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽到目标节点时,设置是否允许成为目标节点的子节点。[setting.edit.enable = true 时生效]

                        拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                        此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、next 一起使用,才能实现完整功能。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 允许 / 不允许 成为目标节点的子节点

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                        treeNodesArray(JSON)

                        被拖拽的节点 JSON 数据集合

                        targetNodeJSON

                        拖拽时的目标节点 JSON 数据对象

                        如果拖拽的节点要成为根节点,则 targetNode = null

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting & function 举例

                        1. 禁止拖拽成为目标节点的子节点

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: true,
                        			inner: false
                        		}
                        	}
                        };
                        ......

                        2. 禁止拖拽成为根节点的子节点

                        function canInner(treeId, nodes, targetNode) {
                        	return !(targetNode && targetNode.level === 0);
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: true,
                        			inner: canInner
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.isCopy.html ================================================

                        Booleansetting.edit.drag.isCopy

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽时, 设置是否允许复制节点。[setting.edit.enable = true 时生效]

                        默认值:true

                        规则说明

                        1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 或 Cmd 键表示 copy; 否则为 move

                        2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

                        3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

                        4、isCopy = false; isMove = false 时,禁止拖拽操作

                        setting 举例

                        1. 设置所有拖拽操作都是 copy

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			isCopy: true,
                        			isMove: false
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.isMove.html ================================================

                        Booleansetting.edit.drag.isMove

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽时, 设置是否允许移动节点。[setting.edit.enable = true 时生效]

                        默认值:true

                        规则说明

                        1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 或 Cmd 键表示 copy; 否则为 move

                        2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

                        3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

                        4、isCopy = false; isMove = false 时,禁止拖拽操作

                        setting 举例

                        1. 设置所有拖拽操作都是 move

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			isCopy: false,
                        			isMove: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.maxShowNodeNum.html ================================================

                        Numbersetting.edit.drag.maxShowNodeNum

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽多个兄弟节点时,浮动图层中显示的最大节点数。 多余的节点用...代替。[setting.edit.enable = true 时生效]

                        默认值:5

                        请根据自己的需求适当调整此值

                        setting 举例

                        1. 设置拖拽时最多可显示10个节点

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			maxShowNodeNum: 10
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.minMoveSize.html ================================================

                        Numbersetting.edit.drag.minMoveSize

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        判定是否拖拽操作的最小位移值 (单位:px)。[setting.edit.enable = true 时生效]

                        根据自己的需求可适当调整此值,如果太小容易导致点击鼠标时误操作进行拖拽

                        默认值:5

                        setting 举例

                        1. 更改拖拽操作启动位移值为10px

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			minMoveSize: 10
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.next.html ================================================

                        Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽到目标节点时,设置是否允许移动到目标节点后面的操作。[setting.edit.enable = true 时生效]

                        拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                        此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、inner 一起使用,才能实现完整功能。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 允许 / 不允许 移动到目标节点后面

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                        treeNodesArray(JSON)

                        被拖拽的节点 JSON 数据集合

                        targetNodeJSON

                        拖拽时的目标节点 JSON 数据对象

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting & function 举例

                        1. 禁止拖拽到节点后面的操作

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: false,
                        			inner: true
                        		}
                        	}
                        };
                        ......

                        2. 禁止拖拽到父节点后面的操作

                        function canNext(treeId, nodes, targetNode) {
                        	return !targetNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: canNext,
                        			inner: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.drag.prev.html ================================================

                        Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        拖拽到目标节点时,设置是否允许移动到目标节点前面的操作。[setting.edit.enable = true 时生效]

                        拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                        此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 next、inner 一起使用,才能实现完整功能。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 允许 / 不允许 移动到目标节点前面

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                        treeNodesArray(JSON)

                        被拖拽的节点 JSON 数据集合

                        targetNodeJSON

                        拖拽时的目标节点 JSON 数据对象

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting & function 举例

                        1. 禁止拖拽到节点前面的操作

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: false,
                        			next: true,
                        			inner: true
                        		}
                        	}
                        };
                        ......

                        2. 禁止拖拽到父节点前面的操作

                        function canPrev(treeId, nodes, targetNode) {
                        	return !targetNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: canPrev,
                        			next: true,
                        			inner: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.editNameSelectAll.html ================================================

                        Booleansetting.edit.editNameSelectAll

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 [setting.edit.enable = true 时生效]

                        默认值: false

                        Boolean 格式说明

                        true 表示 全选状态

                        false 表示 不是全选状态,光标默认在最后

                        setting 举例

                        1. 设置节点编辑名称 input 初次显示时,txt内容为全选状态

                        var setting = {
                        	edit: {
                        		enable: true,
                        		editNameSelectAll: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.enable.html ================================================

                        Booleansetting.edit.enable

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        设置 zTree 是否处于编辑状态

                        请在初始化之前设置,初始化后需要改变编辑状态请使用 zTreeObj.setEditable() 方法

                        默认值: false

                        Boolean 格式说明

                        true / false 分别表示 可以 / 不可以 编辑

                        编辑状态规则说明

                        1、点击节点时,不会打开 node.url 指定的 URL。
                        2、全面支持 编辑 与 异步加载 状态共存。
                        3、可以对节点进行拖拽,且支持多棵树之间进行拖拽。
                        4、支持拖拽时 复制/移动 节点。(参考: setting.edit.drag.isCopy / setting.edit.drag.isMove
                        5、可以通过编辑按钮修改 name 属性。
                        6、可以通过删除按钮删除节点。

                        请注意大小写,不要改变

                        setting 举例

                        1. 设置 zTree 进入编辑状态

                        var setting = {
                        	edit: {
                        		enable: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.removeTitle.html ================================================

                        String / Function(treeId, treeNode)setting.edit.removeTitle

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        删除按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRemoveBtn = true 时生效]

                        默认值:"remove"

                        String 格式说明

                        鼠标移动到 删除按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置删除按钮 Title 信息的节点 JSON 数据对象

                        返回值String

                        返回值同 String 格式的数据

                        setting & function 举例

                        1. 设置删除按钮的 Title 辅助信息为: "删除节点"

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: true,
                        		removeTitle: "删除节点"
                        	}
                        };
                        ......

                        2. 设置父节点删除按钮的 Title 辅助信息为: "删除父节点"

                        function setRemoveTitle(treeId, treeNode) {
                        	return treeNode.isParent ? "删除父节点":"删除叶子节点";
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: true,
                        		removeTitle: setRemoveTitle
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.renameTitle.html ================================================

                        String / Function(treeId, treeNode)setting.edit.renameTitle

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        编辑名称按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRenameBtn = true 时生效]

                        默认值:"rename"

                        String 格式说明

                        设置鼠标移动到 编辑名称按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置编辑名称按钮 Title 信息的节点 JSON 数据对象

                        返回值String

                        返回值同 String 格式的数据

                        setting & function 举例

                        1. 设置编辑名称按钮的 Title 辅助信息为: "编辑节点名称"

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: true,
                        		renameTitle: "编辑节点名称"
                        	}
                        };
                        ......

                        2. 设置父节点编辑名称按钮的 Title 辅助信息为: "编辑父节点名称"

                        function setRenameTitle(treeId, treeNode) {
                        	return treeNode.isParent ? "编辑父节点名称":"编辑叶子节点名称";
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: true,
                        		renameTitle: setRenameTitle
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.showRemoveBtn.html ================================================

                        Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        设置是否显示删除按钮。[setting.edit.enable = true 时生效]

                        当点击某节点的删除按钮时:

                        1、首先触发 setting.callback.beforeRemove 回调函数,用户可判定是否进行删除操作。

                        2、如果未设置 beforeRemove 或 beforeRemove 返回 true,则删除节点并触发 setting.callback.onRemove 回调函数。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 显示 / 隐藏 删除按钮

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置是否显示删除按钮的节点 JSON 数据对象

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting & function 举例

                        1. 不显示删除按钮

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: false
                        	}
                        };
                        ......

                        2. 设置所有的父节点不显示删除按钮

                        function setRemoveBtn(treeId, treeNode) {
                        	return !treeNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: setRemoveBtn
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.edit.showRenameBtn.html ================================================

                        Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        设置是否显示编辑名称按钮。[setting.edit.enable = true 时生效]

                        当点击某节点的编辑名称按钮时:

                        1、进入节点编辑名称状态。

                        2、编辑名称完毕(Input 失去焦点 或 按下 Enter 键),会触发 setting.callback.beforeRename 回调函数,用户可根据自己的规则判定是否允许修改名称。

                        3、如果 beforeRename 返回 false,则继续保持编辑名称状态,直到名称符合规则位置 (按下 ESC 键可取消编辑名称状态,恢复原名称)。

                        4、如果未设置 beforeRename 或 beforeRename 返回 true,则结束节点编辑名称状态,更新节点名称,并触发 setting.callback.onRename 回调函数。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 显示 / 隐藏 编辑名称按钮

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置是否显示编辑名称按钮的节点 JSON 数据对象

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting & function 举例

                        1. 不显示编辑名称按钮

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: false
                        	}
                        };
                        ......

                        2. 设置所有的父节点不显示编辑名称按钮

                        function setRenameBtn(treeId, treeNode) {
                        	return !treeNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: setRenameBtn
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.treeId.html ================================================

                        Stringsetting.treeId

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 的唯一标识,初始化后,等于 用户定义的 zTree 容器的 id 属性值。

                        请勿进行初始化 或 修改,属于内部参数。

                        ================================================ FILE: lib/zTree_v3/api/cn/setting.treeObj.html ================================================

                        Objectsetting.treeObj

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 容器的 jQuery 对象,主要功能:便于操作。

                        请勿进行初始化 或 修改,属于内部参数。

                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.addDiyDom.html ================================================

                        Function(treeId, treeNode)setting.view.addDiyDom

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于在节点上固定显示用户自定义控件

                        1. 大数据量的节点加载请注意:在 addDiyDom 中针对每个节点 查找 DOM 对象并且添加新 DOM 控件,肯定会影响初始化性能;如果不是必须使用,建议不使用此功能

                        2. 属于高级应用,使用时请确保对 zTree 比较了解。

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要显示自定义控件的节点 JSON 数据对象

                        setting & function 举例

                        1. 设置节点后面显示一个按钮

                        var setting = {
                        	view: {
                        		addDiyDom: addDiyDom
                        	}
                        };
                        function addDiyDom(treeId, treeNode) {
                        	var aObj = $("#" + treeNode.tId + "_a");
                        	if ($("#diyBtn_"+treeNode.id).length>0) return;
                        	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                        		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                        		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                        	aObj.append(editStr);
                        	var btn = $("#diyBtn_"+treeNode.id);
                        	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.addHoverDom.html ================================================

                        Function(treeId, treeNode)setting.view.addHoverDom

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于当鼠标移动到节点上时,显示用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

                        请务必与 setting.view.removeHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要显示自定义控件的节点 JSON 数据对象

                        setting & function 举例

                        1. 设置鼠标移到节点上,在后面显示一个按钮

                        var setting = {
                        	view: {
                        		addHoverDom: addHoverDom,
                        		removeHoverDom: removeHoverDom,
                        		......
                        	}
                        };
                        function addHoverDom(treeId, treeNode) {
                        	var aObj = $("#" + treeNode.tId + "_a");
                        	if ($("#diyBtn_"+treeNode.id).length>0) return;
                        	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                        		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                        		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                        	aObj.append(editStr);
                        	var btn = $("#diyBtn_"+treeNode.id);
                        	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                        };
                        function removeHoverDom(treeId, treeNode) {
                        	$("#diyBtn_"+treeNode.id).unbind().remove();
                        	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.autoCancelSelected.html ================================================

                        Booleansetting.view.autoCancelSelected

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        点击节点时,按下 Ctrl 或 Cmd 键是否允许取消选择操作。

                        如果不需要此功能,请设置为 false。

                        默认值: true

                        Boolean 格式说明

                        true / false 分别表示 支持 / 不支持 配合 Ctrl 或 Cmd 键进行取消节点选择的操作

                        setting 举例

                        1. 禁止配合 Ctrl 或 Cmd 键进行取消节点选择的操作

                        var setting = {
                        	view: {
                        		autoCancelSelected: false
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.dblClickExpand.html ================================================

                        Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        双击节点时,是否自动展开父节点的标识

                        默认值: true

                        Boolean 格式说明

                        true / false 分别表示双击节点 切换 / 不切换 展开状态

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置是否双击切换展开状态的节点 JSON 数据对象

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting 举例

                        1. 取消默认双击展开父节点的功能

                        var setting = {
                        	view: {
                        		dblClickExpand: false
                        	}
                        };
                        ......

                        2. 设置 zTree 仅仅 level=0 的父节点取消双击展开的功能

                        function dblClickExpand(treeId, treeNode) {
                        	return treeNode.level > 0;
                        };
                        var setting = {
                        	view: {
                        		dblClickExpand: dblClickExpand
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.expandSpeed.html ================================================

                        String / Numbersetting.view.expandSpeed

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 节点展开、折叠时的动画速度,设置方法同 JQuery 动画效果中 speed 参数。

                        IE6 下会自动关闭动画效果,以保证 zTree 的操作速度

                        默认值:"fast"

                        String 格式说明

                        三种预定速度之一的字符串("slow", "normal", or "fast")

                        设置为 "" 时,不显示动画效果

                        Number 格式说明

                        表示动画时长的毫秒数值 (如:1000)

                        setting 举例

                        1. 设置为慢速显示动画效果

                        var setting = {
                        	view: {
                        		expandSpeed: "slow"
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.fontCss.html ================================================

                        JSON / Function(treeId, treeNode)setting.view.fontCss

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        个性化文字样式,只针对 zTree 在节点上显示的<A>对象。

                        默认值:{}

                        JSON 格式说明

                        JSON 格式为 JQuery css方法中的 JSON 对象格式,例如:{color:"#ff0011", background:"blue"}

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置自定义样式的节点 JSON 数据对象

                        返回值JSON

                        返回值同 JSON 格式的数据,例如:{color:"#ff0011", background:"blue"}

                        setting & function 举例

                        1. 不修改CSS,设置全部节点 name 显示为红色

                        var setting = {
                        	view: {
                        		fontCss : {color:"red"}
                        	}
                        };

                        2. 设置 level=0 的节点 name 显示为红色

                        function setFontCss(treeId, treeNode) {
                        	return treeNode.level == 0 ? {color:"red"} : {};
                        };
                        var setting = {
                        	view: {
                        		fontCss: setFontCss
                        	}
                        };
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.nameIsHTML.html ================================================

                        Booleansetting.view.nameIsHTML

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置 name 属性是否支持 HTML 脚本

                        如果允许 HTML 脚本,请根据自己的需求做校验,避免出现 js 注入等安全问题。

                        默认值: false

                        Boolean 格式说明

                        true / false 分别表示 支持 / 不支持 HTML 脚本

                        setting 举例

                        1. 设置 name 属性支持 HTML 脚本

                        var setting = {
                        	view: {
                        		nameIsHTML: true
                        	}
                        };
                        var node = {"name":"<font color='red'>test</font>"};
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.removeHoverDom.html ================================================

                        Function(treeId, treeNode)setting.view.removeHoverDom

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于当鼠标移出节点时,隐藏用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

                        请务必与 addHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

                        默认值:null

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要隐藏自定义控件的节点 JSON 数据对象

                        setting & function 举例

                        1. 设置鼠标移到节点上,在后面显示一个按钮

                        var setting = {
                        	view: {
                        		addHoverDom: addHoverDom,
                        		removeHoverDom: removeHoverDom,
                        		......
                        	}
                        };
                        function addHoverDom(treeId, treeNode) {
                        	var aObj = $("#" + treeNode.tId + "_a");
                        	if ($("#diyBtn_"+treeNode.id).length>0) return;
                        	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                        		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                        		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                        	aObj.append(editStr);
                        	var btn = $("#diyBtn_"+treeNode.id);
                        	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                        };
                        function removeHoverDom(treeId, treeNode) {
                        	$("#diyBtn_"+treeNode.id).unbind().remove();
                        	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.selectedMulti.html ================================================

                        Booleansetting.view.selectedMulti

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置是否允许同时选中多个节点。

                        默认值: true

                        Boolean 格式说明

                        true / false 分别表示 支持 / 不支持 同时选中多个节点

                        1、设置为 true时,按下 Ctrl 或 Cmd 键可以选中多个节点

                        2、设置为 true / false 都不影响按下 Ctrl 或 Cmd 键可以让已选中的节点取消选中状态( 取消选中状态可以参考 setting.view.autoCancelSelected )

                        setting 举例

                        1. 禁止多点同时选中的功能

                        var setting = {
                        	view: {
                        		selectedMulti: false
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.showIcon.html ================================================

                        Boolean / Function(treeId, treeNode)setting.view.showIcon

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置 zTree 是否显示节点的图标。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 显示 / 隐藏 图标

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置是否显示图标的节点 JSON 数据对象

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting & function 举例

                        1. 设置 zTree 不显示图标

                        var setting = {
                        	view: {
                        		showIcon: false
                        	}
                        };
                        ......

                        2. 设置 zTree 仅仅 level=2 的节点不显示图标

                        function showIconForTree(treeId, treeNode) {
                        	return treeNode.level != 2;
                        };
                        var setting = {
                        	view: {
                        		showIcon: showIconForTree
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.showLine.html ================================================

                        Booleansetting.view.showLine

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置 zTree 是否显示节点之间的连线。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 显示 / 不显示 连线

                        setting 举例

                        1. 设置 zTree 不显示节点之间的连线

                        var setting = {
                        	view: {
                        		showLine: false
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.showTitle.html ================================================

                        Boolean / Function(treeId, treeNode)setting.view.showTitle

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置 zTree 是否显示节点的 title 提示信息(即节点 DOM 的 title 属性)。

                        请务必与 setting.data.key.title 同时使用。

                        默认值:true

                        Boolean 格式说明

                        true / false 分别表示 显示 / 隐藏 提示信息

                        如果 setting.view.showTitle = true & setting.data.key.title = '',zTree 会自动使用 setting.data.key.name 指定的节点名称当做 title

                        Function 参数说明

                        treeIdString

                        对应 zTree 的 treeId,便于用户操控

                        treeNodeJSON

                        需要设置是否显示提示信息的节点 JSON 数据对象

                        返回值Boolean

                        返回值同 Boolean 格式的数据

                        setting & function 举例

                        1. 设置 zTree 不显示提示信息

                        var setting = {
                        	view: {
                        		showTitle: false
                        	}
                        };
                        ......

                        2. 设置 zTree 仅仅 level=2 的节点不显示提示信息

                        function showTitleForTree(treeId, treeNode) {
                        	return treeNode.level != 2;
                        };
                        var setting = {
                        	view: {
                        		showTitle: showTitleForTree
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/setting.view.txtSelectedEnable.html ================================================

                        Booleansetting.view.txtSelectedEnable

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置 zTree 是否允许可以选择 zTree DOM 内的文本。

                        默认值:false

                        Boolean 格式说明

                        true / false 分别表示 允许 / 不允许 选择 zTree Dom 内的文本

                        setting & function 举例

                        1. 设置 zTree 允许选择文本

                        var setting = {
                        	view: {
                        		txtSelectedEnable: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.check_Child_State.html ================================================

                        NumbertreeNode.check_Child_State

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        用于设置节点的子节点的 checkBox / radio 的半选状态。[setting.check.enable = true 时有效]

                        v3.x 针对节点数据对象提供 treeNode.getCheckStatus() 方法获取标准的半选状态

                        zTree 内部使用,请勿进行初始化 或 随意修改

                        默认值:true

                        Number 格式说明

                        规则如下:

                        setting.check.checkType = "checkbox"
                        treeNode.check_Child_State勾选状态说明
                        -1不存在子节点 或 子节点全部设置为 nocheck = true
                        0无 子节点被勾选
                        1部分 子节点被勾选
                        2全部 子节点被勾选

                        setting.check.checkType = "radio"
                        treeNode.check_Child_State勾选状态说明
                        -1不存在子节点 或 子节点全部设置为 nocheck = true
                        0无 子节点被勾选
                        2有 子节点被勾选
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.check_Focus.html ================================================

                        BooleantreeNode.check_Focus

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        用于设置节点的 checkBox / radio 的 focus 状态。[setting.check.enable = true 时有效]

                        zTree 内部使用,请勿进行初始化 或 随意修改

                        默认值:false

                        Boolean 格式说明

                        true 表示当前鼠标移动到输入框内

                        false 表示当前鼠标移动到输入框外

                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.checked.html ================================================

                        BooleantreeNode.checked

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        节点的 checkBox / radio 的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                        1、如果不使用 checked 属性设置勾选状态,请修改 setting.data.key.checked

                        2、建立 treeNode 数据时设置 treeNode.checked = true 可以让节点的输入框默认为勾选状态

                        3、修改节点勾选状态,可以使用 treeObj.checkNode / checkAllNodes / updateNode 方法,具体使用哪种请根据自己的需求而定

                        4、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                        默认值:false

                        Boolean 格式说明

                        true 表示节点的输入框被勾选

                        false 表示节点的输入框未勾选

                        treeNode 举例

                        1. 初始化的数据设置 默认为勾选状态

                        var nodes = [
                        { "id":1, "name":"test1", checked:true },
                        { "id":2, "name":"test2", checked:true }
                        ]

                        2. 获取第一个根节点的勾选状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var checked = treeObj.getNodes()[0].checked;
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.checkedOld.html ================================================

                        BooleantreeNode.checkedOld

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        节点的 checkBox / radio 在初始化时的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                        1、zTree 初始化节点数据时会对此属性进行赋值,因此请勿对此属性初始化

                        2、如需配合 zTreeObj.getChangeCheckedNodes 方法实现特殊功能,可以根据需求在使用中自行修改 checkedOld 数据

                        默认值:checked的初始化值

                        Boolean 格式说明

                        true 表示节点初始化时 输入框被勾选

                        false 表示节点初始化时 输入框未勾选

                        treeNode 举例

                        1. 获取第一个根节点的初始勾选状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var checkedOld = treeObj.getNodes()[0].checkedOld;
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.children.html ================================================

                        Array(JSON)treeNode.children

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        节点的子节点数据集合。

                        1、如果不使用 children 属性保存子节点数据,请修改 setting.data.key.children

                        2、异步加载时,对于设置了 isParent = true 的节点,在展开时将进行异步加载

                        默认值:无

                        Array(JSON) 格式说明

                        标准的 JSON 数据对象

                        treeNode 举例

                        1. 初始化的标准嵌套格式的 JSON 数据对象

                        var nodes = [
                        { "id":1, "name":"test1",
                        	children: [
                        	{ "id":3, "name":"test3"},
                        	{ "id":4, "name":"test4"},
                        	{ "id":5, "name":"test5"}
                        	]
                        },
                        { "id":2, "name":"test2"  }
                        ]

                        2. 获取第一个根节点的子节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes()[0].children;
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.chkDisabled.html ================================================

                        BooleantreeNode.chkDisabled

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        1、设置节点的 checkbox / radio 是否禁用 [setting.check.enable = true 时有效]

                        2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                        3、请勿对已加载的节点修改此属性,禁止 或 取消禁止 请使用 setChkDisabled() 方法

                        4、初始化时,如果需要子孙节点继承父节点的 chkDisabled 属性,请设置 setting.check.chkDisabledInherit 属性

                        默认值:false

                        Boolean 格式说明

                        true 表示此节点的 checkbox / radio 被禁用。

                        false 表示此节点的 checkbox / radio 可以使用。

                        treeNode 举例

                        1. 禁用节点 checkbox / radio

                        var nodes = [
                        	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
                        	{ "id":2, "name":"test2", "chkDisabled":true},
                        	{ "id":3, "name":"test3"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.click.html ================================================

                        StringtreeNode.click

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        最简单的 click 事件操作。相当于 onclick="..." 的内容。 如果操作较复杂,请使用 onClick 事件回调函数。

                        由于 IE 对于 onclick 和 click事件共存时的处理与其他浏览器不同,所以请不要利用此参数控制是否允许跳转的操作(例如:treeNode.click = "return false;")。如有类似需求,请不要使用 url 属性设置网址,同时利用 onClick 回调函数控制跳转。

                        默认值:无

                        String 格式说明

                        标准 javascript 语法, 例如:alert("test"); 等

                        treeNode 举例

                        1. 设置某节点点击时,弹出信息框

                        var nodes = [
                        	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
                        	......
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.diy.html ================================================

                        ?treeNode.* DIY *

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        用于保存节点的其他自定义数据信息,不要与 zTree 使用的属性相同即可,用户可随意设定。

                        treeNode 举例

                        1. 设置节点的备用英文名称

                        var node = { "id":1, "name":"test1", "ename":"test eName"};
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.editNameFlag.html ================================================

                        BooleantreeNode.editNameFlag

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        用于记录节点是否处于编辑名称状态。[setting.edit.enable = true 时有效]

                        zTree 内部使用,请勿进行初始化 或 随意修改

                        默认值:false

                        Boolean 格式说明

                        true 表示节点处于编辑名称状态

                        false 表示节点未处于编辑名称状态

                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.getCheckStatus.html ================================================

                        Function()treeNode.getCheckStatus

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        获取节点 checkbox / radio 半勾选状态。[setting.check.enable = true 时有效]

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Function 参数说明

                        返回值JSON

                        {
                        	checked: true, //等同于 treeNode.checked
                        	half: true  //规则见下表
                        }
                        setting.check.checkType = "checkbox"
                        treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                        --truetrue
                         
                        true-1falsefalse
                        true0falsetrue
                        true1falsetrue
                        true2falsefalse
                         
                        false-1falsefalse
                        false0falsefalse
                        false1falsetrue
                        false2falsetrue

                        setting.check.checkType = "radio"
                        treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                        --truetrue
                         
                        true-1falsefalse
                        true0falsefalse
                        true2falsetrue
                         
                        false-1falsefalse
                        false0falsefalse
                        false2falsetrue

                        treeNode 举例

                        1. 获取第一个根节点的半选状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var halfCheck = treeObj.getNodes()[0].getCheckStatus();
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.getIndex.html ================================================

                        Function()treeNode.getIndex

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取 treeNode 节点在同级节点中的位置。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Function 参数说明

                        返回值Number

                        treeNode 节点在同级节点中的位置。(从 0 开始)

                        treeNode 举例

                        1. 获取当前被选中的节点在同级节点中的位置

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getIndex();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.getNextNode.html ================================================

                        Function()treeNode.getNextNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取与 treeNode 节点相邻的后一个节点。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Function 参数说明

                        返回值JSON

                        与 treeNode 节点相邻的后一个节点。

                        如果 treeNode 是最后一个节点,返回 null 。

                        treeNode 举例

                        1. 获取当前被选中的节点的下一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getNextNode();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.getParentNode.html ================================================

                        Function()treeNode.getParentNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取 treeNode 节点的父节点。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Function 参数说明

                        返回值JSON

                        treeNode 节点的父节点 JSON 数据对象。

                        如果 treeNode 是根节点,返回 null 。

                        treeNode 举例

                        1. 获取当前被选中的节点的父节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getParentNode();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.getPath.html ================================================

                        Function()treeNode.getPath

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取 treeNode 节点的所有父节点(包括自己)。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Function 参数说明

                        返回值Array (JSON)

                        treeNode 节点的所有父节点的数据集合(包括自己)

                        treeNode 举例

                        1. 获取当前被选中的节点的所有父节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getPath();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.getPreNode.html ================================================

                        Function()treeNode.getPreNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取与 treeNode 节点相邻的前一个节点。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Function 参数说明

                        返回值JSON

                        与 treeNode 节点相邻的前一个节点。

                        如果 treeNode 是第一个节点,返回 null 。

                        treeNode 举例

                        1. 获取当前被选中的节点的前一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getPreNode();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.halfCheck.html ================================================

                        BooleantreeNode.halfCheck

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        强制节点的 checkBox / radio 的 半勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                        1、强制为半勾选状态后,不再进行自动计算半勾选状态

                        2、设置 treeNode.halfCheck = false 或 null 才能恢复自动计算半勾选状态

                        3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                        默认值:false

                        Boolean 格式说明

                        true 表示节点的输入框 强行设置为半勾选

                        false 表示节点的输入框 根据 zTree 的规则自动计算半勾选状态

                        treeNode 举例

                        1. 初始化的数据设置 默认为半勾选状态

                        var nodes = [
                        { "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
                        { "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
                        { "id":3, "name":"test3", isParent:true, checked:true },
                        { "id":4, "name":"test4", isParent:true, checked:false }
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.icon.html ================================================

                        StringtreeNode.icon

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        节点自定义图标的 URL 路径。

                        1、父节点如果只设置 icon ,会导致展开、折叠时都使用同一个图标

                        2、父节点展开、折叠使用不同的个性化图标需要同时设置 treeNode.iconOpen / treeNode.iconClose 两个属性

                        3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                        默认值:无

                        String 格式说明

                        图标图片的 url 可以是相对路径也可以是绝对路径

                        设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                        treeNode 举例

                        1. 设置节点的个性化图标

                        var nodes = [
                        	//父节点展开 折叠时使用相同的图标
                        	{ name:"父节点1", icon:"/img/parent.gif"},
                        
                        	//父节点展开 折叠时分别使用不同的图标
                        	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                        
                        	//叶子节点个性化图标
                        	{ name:"叶子节点", icon:"/img/leaf.gif"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.iconClose.html ================================================

                        StringtreeNode.iconClose

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        父节点自定义折叠时图标的 URL 路径。

                        1、此属性只针对父节点有效

                        2、此属性必须与 iconOpen 同时使用

                        3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                        默认值:无

                        String 格式说明

                        图标图片的 url 可以是相对路径也可以是绝对路径

                        设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                        treeNode 举例

                        1. 设置节点的个性化图标

                        var nodes = [
                        	//父节点展开 折叠时使用相同的图标
                        	{ name:"父节点1", icon:"/img/parent.gif"},
                        
                        	//父节点展开 折叠时分别使用不同的图标
                        	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                        
                        	//叶子节点个性化图标
                        	{ name:"叶子节点", icon:"/img/leaf.gif"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.iconOpen.html ================================================

                        StringtreeNode.iconOpen

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        父节点自定义展开时图标的 URL 路径。

                        1、此属性只针对父节点有效

                        2、此属性必须与 iconClose 同时使用

                        3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                        默认值:无

                        String 格式说明

                        图标图片的 url 可以是相对路径也可以是绝对路径

                        设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                        treeNode 举例

                        1. 设置节点的个性化图标

                        var nodes = [
                        	//父节点展开 折叠时使用相同的图标
                        	{ name:"父节点1", icon:"/img/parent.gif"},
                        
                        	//父节点展开 折叠时分别使用不同的图标
                        	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                        
                        	//叶子节点个性化图标
                        	{ name:"叶子节点", icon:"/img/leaf.gif"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.iconSkin.html ================================================

                        StringtreeNode.iconSkin

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        节点自定义图标的 className

                        1、需要修改 css,增加相应 className 的设置

                        2、css 方式简单、方便,并且同时支持父节点展开、折叠状态切换图片

                        3、css 建议采用图片分割渲染的方式以减少反复加载图片,并且避免图片闪动

                        4、zTree v3.x 的 iconSkin 同样支持 IE6

                        5、如果想直接使用 图片的Url路径 设置节点的个性化图标,需要设置 treeNode.icon / treeNode.iconOpen / treeNode.iconClose 属性

                        默认值:无

                        String 格式说明

                        设置个性图标的 className

                        css & treeNode 举例

                        1. 设置节点的个性化图标

                        css 内容:
                        .ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
                        
                        .ztree li span.button.diy02_ico_open{...}
                        .ztree li span.button.diy02_ico_close{...}
                        
                        .ztree li span.button.diy03_ico_docu{...}
                        
                        js中节点数据:
                        var nodes = [
                        	//父节点展开 折叠时使用相同的图标
                        	{ name:"父节点1", iconSkin:"diy01"},
                        
                        	//父节点展开 折叠时分别使用不同的图标
                        	{ name:"父节点2", iconSkin:"diy02"},
                        
                        	//叶子节点个性化图标
                        	{ name:"叶子节点", iconSkin:"diy03"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.isAjaxing.html ================================================

                        BooleantreeNode.isAjaxing

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        记录 treeNode 节点是否正在进行异步加载。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Boolean 格式说明

                        true 表示节点正在进行异步加载

                        false 表示节点没有进行异步加载

                        treeNode 举例

                        1. 查看当前被选中的节点是否节点正在进行异步加载

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isAjaxing = sNodes[0].isAjaxing;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.isFirstNode.html ================================================

                        BooleantreeNode.isFirstNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        记录 treeNode 节点是否为同级节点中的第一个节点。

                        使用 exhide 扩展后,只针对显示的节点设置此属性

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Boolean 格式说明

                        true 表示是同级节点中的第一个节点

                        false 表示不是同级节点中的第一个节点

                        节点被隐藏后,isFirstNode = false

                        treeNode 举例

                        1. 查看当前被选中的节点是否是同级节点中的第一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isFirstNode = sNodes[0].isFirstNode;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.isHidden.html ================================================

                        BooleantreeNode.isHidden

                        概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                        判断 treeNode 节点是否被隐藏。

                        1、初始化 zTree 时,如果节点设置 isHidden = true,会被自动隐藏

                        2、请勿对已加载的节点修改此属性,隐藏 / 显示 请使用 hideNode() / hideNodes() / showNode() / showNodes() 方法

                        Boolean 格式说明

                        true 表示被隐藏

                        false 表示被显示

                        treeNode 举例

                        1. 查看第一个根节点是否被隐藏

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getNodes();
                        if (sNodes.length > 0) {
                        	var isHidden = sNodes[0].isHidden;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.isHover.html ================================================

                        BooleantreeNode.isHover

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        记录节点 的 hover 状态,主要用于 setting.view.addHoverDom / removeHoverDom 。

                        zTree 内部使用,请勿进行初始化 或 随意修改

                        默认值:false

                        Boolean 格式说明

                        true 表示节点处于 hover 状态

                        false 表示节点未处于 hover 状态

                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.isLastNode.html ================================================

                        BooleantreeNode.isLastNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        记录 treeNode 节点是否为同级节点中的最后一个节点。

                        使用 exhide 扩展后,只针对显示的节点设置此属性

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Boolean 格式说明

                        true 表示是同级节点中的最后一个节点

                        false 表示不是同级节点中的最后一个节点

                        节点被隐藏后,isLastNode = false

                        treeNode 举例

                        1. 查看当前被选中的节点是否是同级节点中的最后一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isLastNode = sNodes[0].isLastNode;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.isParent.html ================================================

                        BooleantreeNode.isParent

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        记录 treeNode 节点是否为父节点。

                        1、初始化节点数据时,根据 treeNode.children 属性判断,有子节点则设置为 true,否则为 false

                        2、初始化节点数据时,如果设定 treeNode.isParent = true,即使无子节点数据,也会设置为父节点

                        3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                        Boolean 格式说明

                        true 表示是父节点

                        false 表示不是父节点

                        treeNode 举例

                        1. 查看当前被选中的节点是否是父节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isParent = sNodes[0].isParent;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.level.html ================================================

                        NumbertreeNode.level

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        记录节点的层级

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        Number 格式说明

                        根节点 level = 0,依次递增

                        treeNode 举例

                        1. 查看当前被选中的节点的级数

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var level = sNodes[0].level;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.name.html ================================================

                        StringtreeNode.name

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        节点名称。

                        1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name

                        默认值:无

                        String 格式说明

                        节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义

                        treeNode 举例

                        1. 设置节点的名称为 test1、test2、test3

                        var nodes = [
                        	{ "id":1, "name":"test1"},
                        	{ "id":2, "name":"test2"},
                        	{ "id":3, "name":"test3"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.nocheck.html ================================================

                        BooleantreeNode.nocheck

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        1、设置节点是否隐藏 checkbox / radio [setting.check.enable = true 时有效]

                        2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                        默认值:false

                        Boolean 格式说明

                        true 表示此节点不显示 checkbox / radio,不影响勾选的关联关系,不影响父节点的半选状态。

                        false 表示节点具有正常的勾选功能

                        treeNode 举例

                        1. 不显示某个节点的 checkbox / radio

                        var nodes = [
                        	{ "id":1, "name":"test1", "nocheck":true},
                        	{ "id":2, "name":"test2"},
                        	{ "id":3, "name":"test3"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.open.html ================================================

                        BooleantreeNode.open

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        记录 treeNode 节点的 展开 / 折叠 状态。

                        1、初始化节点数据时,如果设定 treeNode.open = true,则会直接展开此节点

                        2、叶子节点 treeNode.open = false

                        3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                        4、非异步加载模式下,无子节点的父节点设置 open=true 后,可显示为展开状态,但异步加载模式下不会生效。(v3.5.15+)

                        默认值:false

                        Boolean 格式说明

                        true 表示节点为 展开 状态

                        false 表示节点为 折叠 状态

                        treeNode 举例

                        1. 查看当前被选中的节点的 展开 / 折叠 状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isOpen = sNodes[0].open;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.parentTId.html ================================================

                        StringtreeNode.parentTId

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        treeNode 节点的父节点唯一标识 tId。

                        1、v3.x 用 parentTId 替换了原先的 parentNode 属性,同时增加了 getParentNode 方法,以避免原先 parentNode 造成的 clone 死循环

                        2、初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        String 格式说明

                        zTree 内部生成的节点唯一标识,请参考 treeNode.tId 的说明

                        如果 treeNode 是根节点,则 parentTId = null

                        treeNode 举例

                        1. 查看当前被选中的节点的父节点 tId

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var parentTId = sNodes[0].parentTId;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.tId.html ================================================

                        StringtreeNode.tId

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        treeNode 节点的唯一标识 tId。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        String 格式说明

                        生成规则:setting.treeId + "_" + 内部计数

                        treeNode 举例

                        1. 查看当前被选中的节点的 tId

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var tId = sNodes[0].tId;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.target.html ================================================

                        StringtreeNode.target

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        设置点击节点后在何处打开 url。[treeNode.url 存在时有效]

                        默认值:无

                        String 格式说明

                        同超链接 target 属性: "_blank", "_self" 或 其他指定窗口名称

                        省略此属性,则默认为 "_blank"

                        treeNode 举例

                        1. 设置点击某节点时,弹出新页面

                        var nodes = [
                        	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
                        	......
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.url.html ================================================

                        StringtreeNode.url

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        节点链接的目标 URL

                        1、编辑模式 (setting.edit.enable = true) 下此属性功能失效,如果必须使用类似功能,请利用 onClick 事件回调函数自行控制。

                        2、如果需要在 onClick 事件回调函数中进行跳转控制,那么请将 URL 地址保存在其他自定义的属性内,请勿使用 url

                        默认值:无

                        String 格式说明

                        同超链接 href 属性

                        treeNode 举例

                        1. 设置某节点点击时,跳转到 g.cn

                        var nodes = [
                        	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
                        	......
                        ]
                        ================================================ FILE: lib/zTree_v3/api/cn/treeNode.zAsync.html ================================================

                        BooleantreeNode.zAsync

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        记录 treeNode 节点是否已经进行过异步加载,避免父节点反复异步加载数据。

                        初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                        默认值:false (无子节点的父节点); true (有子节点的父节点 & 叶子节点)

                        Boolean 格式说明

                        true 表示父节点展开时不需要自动异步加载

                        false 表示父节点展开时需要自动异步加载

                        此参数不会对 reAsyncChildNodes 方法造成任何影响

                        treeNode 举例

                        1. 查看当前被选中的节点是否节点是否需要自动异步加载

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var zAsync = sNodes[0].zAsync;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.addNodes.html ================================================

                        Function(parentNode, [index], newNodes, isSilent)zTreeObj.addNodes

                        概述[ 依赖 jquery.ztree.core 扩展 js ]

                        添加节点。

                        v3.x 为了避免原先反复初始化造成的数据重复问题,在 初始化 和 添加节点 时内部进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        parentNodeJSON

                        指定的父节点,如果增加根节点,请设置 parentNode 为 null 即可。

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        [index]Number

                        新节点插入的位置(从 0 开始)

                        index = -1 时,插入到最后

                        此参数可忽略

                        v3.5.19+

                        newNodesJSON / Array(JSON)

                        需要增加的节点数据 JSON 对象集合,数据只需要满足 zTree 的节点数据必需的属性即可,详细请参考“treeNode 节点数据详解”

                        1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

                        2、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

                        isSilentBoolean

                        设定增加节点后是否自动展开父节点。

                        isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                        返回值Array(JSON)

                        返回值是 zTree 最终添加的节点数据集合

                        如果 newNodes 是单个节点数据 JSON,返回值也是将其包在 Array 内

                        请务必记住:返回值中的数据对象 是 newNodes 被 clone 后的,所以绝对不相等!

                        function 举例

                        1. 对于 id = "tree" 的 zTree 增加 1 个根节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var newNode = {name:"newNode1"};
                        newNode = treeObj.addNodes(null, newNode);
                        

                        2. 对于 id = "tree" 的 zTree 增加 3 个根节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
                        newNodes = treeObj.addNodes(null, newNodes);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.cancelEditName.html ================================================

                        Function(newName)zTreeObj.cancelEditName

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        取消节点的编辑名称状态,可以恢复原名称,也可以强行赋给新的名称。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        newNameString

                        重新给定的新名称。

                        如果省略此参数,则恢复原名称。

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 取消 zTree 的编辑名称状态,恢复该节点原有名称

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.cancelEditName();
                        

                        2. 取消 zTree 的编辑名称状态,并且重新设定该节点名称

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.cancelEditName("test_new_name");
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.cancelSelectedNode.html ================================================

                        Function(treeNode)zTreeObj.cancelSelectedNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        取消节点的选中状态。

                        v3.x 支持多点同时选中,因此取消选中状态可以全部取消,也可以单独取消某个节点的选中状态。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        需要取消选中状态的节点。

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        如果省略此参数,则将取消全部被选中节点的选中状态。

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 取消当前所有被选中节点的选中状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.cancelSelectedNode();
                        

                        2. 取消当前第一个被选中节点的选中状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) { 
                        	treeObj.cancelSelectedNode(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.checkAllNodes.html ================================================

                        Function(checked)zTreeObj.checkAllNodes

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        勾选 或 取消勾选 全部节点。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时有效]

                        此方法不会触发 beforeCheck / onCheck 事件回调函数。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        checkedBoolean

                        checked = true 表示勾选全部节点

                        checked = false 表示全部节点取消勾选

                        不会影响 treeNode.nocheck = true 的节点。

                        不会影响未加载的节点。

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 勾选全部节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.checkAllNodes(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.checkNode.html ================================================

                        Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        勾选 或 取消勾选 单个节点。[setting.check.enable = true 时有效]

                        v3.x 中 checkNode() 方法可以触发 beforeCheck / onCheck 事件回调函数。便于减少冗余代码

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        需要勾选 或 取消勾选 的节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        checkedBoolean

                        checked = true 表示勾选节点

                        checked = false 表示节点取消勾选

                        省略此参数,则根据对此节点的勾选状态进行 toggle 切换

                        不影响 treeNode.nocheck = true 的节点。

                        checkTypeFlagBoolean

                        checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

                        checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

                        checkTypeFlag = false 且 treeNode.checked = checked 时,不会触发回调函数,直接返回

                        不影响父子节点中 treeNode.nocheck = true 的节点。

                        callbackFlagBoolean

                        callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数

                        callbackFlag = false 表示执行此方法时不触发事件回调函数

                        省略此参数,等同于 false

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 勾选当前选中的节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        for (var i=0, l=nodes.length; i < l; i++) {
                        	treeObj.checkNode(nodes[i], true, true);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.copyNode.html ================================================

                        Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        复制节点。

                        v3.x 复制节点时进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        targetNodeJSON

                        要复制到的目标节点 JSON 数据

                        如果复制成为根节点,请设置 targetNode 为 null 即可

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        treeNodeJSON

                        需要被复制的节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        moveTypeString

                        复制到目标节点的相对位置

                        "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                        isSilentBoolean

                        设定复制节点后是否自动展开父节点。

                        isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                        返回值JSON

                        返回值是最终加入到 zTree 内的节点数据

                        请务必记住:返回值中的数据对象 是 treeNode 被 clone 后的,所以绝对不相等!

                        function 举例

                        1. 将根节点中第二个节点 复制成为 第一个节点的子节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.copyNode(nodes[0], nodes[1], "inner");
                        

                        2. 将根节点中第二个节点 复制成为 第一个节点的前一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.copyNode(nodes[0], nodes[1], "before");
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.destroy.html ================================================

                        Function(treeId)zTreeObj.destroy

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        从 zTree v3.4 开始提供销毁 zTree 的方法。

                        1、用此方法可以销毁 zTreeObj 代表的 zTree。

                        2、销毁当前页面全部的 zTree,也可以使用 $.fn.zTree.destroy() 方法。

                        3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

                        Function Parameter Descriptions

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 销毁 id 为 "treeDemo" 的 zTree

                        var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
                        zTreeObj.destroy();
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.editName.html ================================================

                        Function(treeNode)zTreeObj.editName

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        设置某节点进入编辑名称状态。

                        1、如果需要用 js 取消编辑名称状态,请使用 cancelEditName(newName) 方法。

                        2、可利用此方法让当前正编辑的节点 input 输入框获取焦点。

                        3、请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        指定进入编辑名称状态的节点 JSON 数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 设置根节点第一个节点进入编辑名称状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.editName(nodes[0]);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.expandAll.html ================================================

                        Function(expandFlag)zTreeObj.expandAll

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        展开 / 折叠 全部节点

                        此方法不会触发 beforeExpand / onExpand 和 beforeCollapse / onCollapse 事件回调函数。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        expandFlagBoolean

                        expandFlag = true 表示 展开 全部节点

                        expandFlag = false 表示 折叠 全部节点

                        返回值Boolean

                        返回值表示最终实际操作情况

                        true 表示 展开 全部节点

                        false 表示 折叠 全部节点

                        null 表示 不存在任何父节点

                        function 举例

                        1. 展开全部节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.expandAll(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.expandNode.html ================================================

                        Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        展开 / 折叠 指定的节点

                        v3.x 中执行此方法可以触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数。便于减少冗余代码

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        需要 展开 / 折叠 的节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        expandFlagBoolean

                        expandFlag = true 表示 展开 节点

                        expandFlag = false 表示 折叠 节点

                        省略此参数,则根据对此节点的展开状态进行 toggle 切换

                        sonSignBoolean

                        sonSign = true 表示 全部子孙节点 进行与 expandFlag 相同的操作

                        sonSign = false 表示 只影响此节点,对于其 子孙节点无任何影响

                        sonSign = false 且 treeNode.open = expandFlag 时,不会触发回调函数,直接返回

                        省略此参数,等同于 false

                        focusBoolean

                        focus = true 表示 展开 / 折叠 操作后,通过设置焦点保证此焦点进入可视区域内

                        focus = false 表示 展开 / 折叠 操作后,不设置任何焦点

                        省略此参数,等同于 true

                        callbackFlagBoolean

                        callbackFlag = true 表示执行此方法时触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数

                        callbackFlag = false 表示执行此方法时不触发事件回调函数

                        省略此参数,等同于 false

                        返回值Boolean

                        返回值表示最终实际操作情况

                        true 表示 展开 节点

                        false 表示 折叠 节点

                        null 表示 不是父节点

                        function 举例

                        1. 展开当前选择的第一个节点(包括其全部子节点)

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	treeObj.expandNode(nodes[0], true, true, true);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getChangeCheckedNodes.html ================================================

                        Function()zTreeObj.getChangeCheckedNodes

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        获取输入框勾选状态被改变的节点集合(与原始数据 checkedOld 对比)。[setting.check.enable = true 时有效]

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        返回值Array(JSON)

                        返回全部勾选状态被改变的节点集合 Array

                        如果需要获取每次操作后全部被改变勾选状态的节点数据,请在每次勾选操作后,遍历所有被改变勾选状态的节点数据,让其 checkedOld = checked 就可以了。

                        function 举例

                        1. 获取当前勾选状态被改变的节点集合

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getChangeCheckedNodes();
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getCheckedNodes.html ================================================

                        Function(checked)zTreeObj.getCheckedNodes

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        获取输入框被勾选 或 未勾选的节点集合。[setting.check.enable = true 时有效]

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        checkedBoolean

                        checked = true 表示获取 被勾选 的节点集合

                        checked = false 表示获取 未勾选 的节点集合

                        省略此参数,等同于 true。

                        对于 treeNode.nocheck = true 的节点不进行获取。

                        返回值Array(JSON)

                        返回全部符合要求的节点集合 Array

                        function 举例

                        1. 获取当前被勾选的节点集合

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getCheckedNodes(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getNodeByParam.html ================================================

                        Function(key, value, parentNode)zTreeObj.getNodeByParam

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        keyString

                        需要精确匹配的属性名称

                        value?

                        需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

                        parentNodeJSON

                        搜索范围,指定在某个父节点下的子节点中进行搜索

                        忽略此参数,表示在全部节点中搜索

                        返回值JSON

                        匹配精确搜索的节点数据

                        1、如无结果,返回 null

                        2、如有多个节点满足查询条件,只返回第一个匹配到的节点

                        function 举例

                        1. 查找 id = 1 的节点数据

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodeByParam("id", 1, null);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getNodeByTId.html ================================================

                        Function(tId)zTreeObj.getNodeByTId

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        根据 zTree 的唯一标识 tId 快速获取节点 JSON 数据对象

                        通过内部的 cache 获取,不需要遍历节点。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        tIdString

                        节点在 zTree 内的唯一标识 tId

                        返回值JSON

                        tId 对应的节点 JSON 数据对象

                        如无结果,返回 null

                        function 举例

                        1. 获取 tId = "tree_10" 的节点数据

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodeByTId("tree_10");
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getNodeIndex.html ================================================

                        Function(treeNode)zTreeObj.getNodeIndex

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取某节点在同级节点中的序号(从0开始)

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        需要查询顺序的节点 JSON 数据对象

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        返回值Number

                        返回值从 0 开始计数

                        如果不存在该节点数据,返回 -1

                        function 举例

                        1. 获取当前选中的第一个节点在同级节点中的序号

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	var index = treeObj.getNodeIndex(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getNodes.html ================================================

                        Function()zTreeObj.getNodes

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取 zTree 的全部节点数据

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        返回值Array(JSON)

                        全部节点数据

                        1、Array 仅仅是根节点的集合(默认情况子节点都处于 children 属性下);

                        2、如需遍历全部节点需要利用递归,或利用 transformToArray 方法 将数据变成简单的 Array 集合

                        3、对于异步加载模式下,尚未加载的子节点是无法通过此方法获取的。

                        function 举例

                        1. 获取全部节点数据

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getNodesByFilter.html ================================================

                        Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        根据自定义规则搜索节点数据 JSON 对象集合 或 单个节点数据

                        可自定义复杂的搜索规则

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        filterFunction

                        自定义过滤器函数 function filter(node) {...}

                        filter 参数:node (节点数据 JSON)

                        filter 返回值:boolean (true 表示符合搜索条件;false 表示不符合搜索条件)

                        isSingleBoolean

                        isSingle = true 表示只查找单个节点

                        isSingle = false 表示查找节点集合

                        忽略此参数,表示查找节点集合

                        parentNodeJSON

                        可以指定在某个父节点下的子节点中搜索

                        忽略此参数,表示在全部节点中搜索

                        invokeParam任意类型

                        用户自定义的数据对象,用于 filter 中进行计算

                        返回值Array(JSON) / JSON

                        isSingle = true 返回 第一个找到的节点数据 JSON,无结果时返回 null

                        isSingle = false 返回 节点数据集合 Array(JSON),无结果时返回 [ ]

                        function 举例

                        1. 查找 level = 2 & name 中包含 "test" 的节点数据

                        function filter(node) {
                            return (node.level == 2 && node.name.indexOf("test")>-1);
                        }
                        ......
                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodesByFilter(filter, true); // 仅查找一个节点
                        var nodes = treeObj.getNodesByFilter(filter); // 查找节点集合
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getNodesByParam.html ================================================

                        Function(key, value, parentNode)zTreeObj.getNodesByParam

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象集合

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        keyString

                        需要精确匹配的属性名称

                        value?

                        需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

                        parentNodeJSON

                        可以指定在某个父节点下的子节点中搜索

                        忽略此参数,表示在全部节点中搜索

                        返回值Array(JSON)

                        匹配精确搜索的节点数据集合

                        如无结果,返回 [ ]

                        function 举例

                        1. 查找 name = "test" 的节点数据

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodesByParam("name", "test", null);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getNodesByParamFuzzy.html ================================================

                        Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        根据节点数据的属性搜索,获取条件模糊匹配的节点数据 JSON 对象集合

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        keyString

                        需要模糊匹配的属性名称

                        valueString

                        需要模糊匹配的属性值

                        模糊匹配只能针对 String 类型的数据

                        parentNodeJSON

                        可以指定在某个父节点下的子节点中搜索

                        忽略此参数,表示在全部节点中搜索

                        返回值Array(JSON)

                        匹配模糊搜索的节点数据集合

                        如无结果,返回 [ ]

                        function 举例

                        1. 查找 name 包含 "test" 的节点数据

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.getSelectedNodes.html ================================================

                        Function()zTreeObj.getSelectedNodes

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        获取 zTree 当前被选中的节点数据集合

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        返回值Array(JSON)

                        当前被选中的节点数据集合

                        function 举例

                        1. 获取当前被选中的节点数据集合

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.hideNode.html ================================================

                        Function(treeNode)zTreeObj.hideNode

                        概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                        隐藏某个节点。

                        1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                        2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                        3、请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        指定被隐藏的节点 JSON 数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 隐藏根节点第一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.hideNode(nodes[0]);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.hideNodes.html ================================================

                        Function(treeNodes)zTreeObj.hideNodes

                        概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                        隐藏一批节点。

                        1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                        2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                        3、请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodesArray(JSON)

                        指定被隐藏的节点 JSON 数据集合

                        请务必保证这些节点数据对象 是 zTree 内部的数据对象

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 隐藏根节点第一个节点的子节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.hideNodes(nodes[0].children);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.moveNode.html ================================================

                        Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        移动节点。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        targetNodeJSON

                        要移动到的目标节点 JSON 数据

                        如果移动成为根节点,请设置 targetNode 为 null 即可

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        treeNodeJSON

                        需要被移动的节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        moveTypeString

                        指定移动到目标节点的相对位置

                        "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                        isSilentBoolean

                        设定移动节点后是否自动展开父节点。

                        isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                        返回值JSON

                        返回值是最终被移动的节点数据,正常情况下与 treeNode 参数完全相同

                        如果 返回值 为 null,说明 移动失败,主要原因有:
                         1、targetNode 是 treeNode 父节点,且 moveType = "inner"
                         2、targetNode 是 treeNode 子孙节点

                        function 举例

                        1. 将根节点中第二个节点 移动成为 第一个节点的子节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.moveNode(nodes[0], nodes[1], "inner");
                        

                        2. 将根节点中第二个节点 移动成为 第一个节点的前一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.moveNode(nodes[0], nodes[1], "prev");
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.reAsyncChildNodes.html ================================================

                        Function(parentNode, reloadType, isSilent, callback)zTreeObj.reAsyncChildNodes

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        强行异步加载父节点的子节点。[setting.async.enable = true 时有效]

                        已经加载过的父节点可反复使用此方法重新加载。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        parentNodeJSON

                        指定需要异步加载的父节点 JSON 数据

                        1、parentNode = null 时,相当于从根节点 Root 进行异步加载

                        2、parentNode.isParent = false 时,不进行异步加载

                        3、请务必保证此节点数据对象 是 zTree 内部的数据对象

                        reloadTypeString

                        reloadType = "refresh" 表示清空后重新加载。

                        reloadType != "refresh" 时,表示追加子节点处理。

                        isSilentBoolean

                        设定异步加载后是否自动展开父节点。

                        isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                        callbackfunction

                        刷新完成后的回调函数。

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 重新异步加载 zTree

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.reAsyncChildNodes(null, "refresh");
                        

                        2. 重新异步加载当前选中的第一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.reAsyncChildNodesPromise.html ================================================

                        Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodesPromise

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        强行异步加载父节点的子节点(ES6 Promise 版)。[setting.async.enable = true 时有效]

                        已经加载过的父节点可反复使用此方法重新加载。

                        请通过 zTree 对象执行此方法。

                        v3.5.29+

                        Function 参数说明

                        parentNodeJSON

                        指定需要异步加载的父节点 JSON 数据

                        1、parentNode = null 时,相当于从根节点 Root 进行异步加载

                        2、parentNode.isParent = false 时,不进行异步加载

                        3、请务必保证此节点数据对象 是 zTree 内部的数据对象

                        reloadTypeString

                        reloadType = "refresh" 表示清空后重新加载。

                        reloadType != "refresh" 时,表示追加子节点处理。

                        isSilentBoolean

                        设定异步加载后是否自动展开父节点。

                        isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                        返回值ES6 Promise

                        ES6 的 Promise 对象,便于异步控制,使用时请注意浏览器兼容问题

                        function 举例

                        1. 重新异步加载 zTree

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.reAsyncChildNodes(null, "refresh");
                        

                        2. 重新异步加载当前选中的第一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.refresh.html ================================================

                        Function()zTreeObj.refresh

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        刷新 zTree 。

                        没有特殊必要,尽量不要使用此方法。单个节点更新请使用 updateNode 方法,异步加载模式下请使用 reAsyncChildNodes 方法。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 刷新 zTree

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.refresh();
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.removeChildNodes.html ================================================

                        Function(parentNode)zTreeObj.removeChildNodes

                        概述[ 依赖 jquery.ztree.core 扩展 js ]

                        清空某父节点的子节点。

                        1、清空子节点后,父节点会自动变为叶子节点,如需要父节点保持父节点状态,请设置 setting.data.keep.parent 属性。

                        2、请勿用此方法清空根节点,如果需要清空根节点,直接初始化 zTree,并且设置初始节点为 null 即可。

                        3、此方法不会触发任何事件回调函数。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        parentNodeJSON

                        需要清空子节点的父节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        返回值Array(JSON)

                        将该父节点的子节点数据返回,如果不存在则返回 null

                        function 举例

                        1. 清空选中的第一个节点的子节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes && nodes.length>0) {
                        	treeObj.removeChildNodes(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.removeNode.html ================================================

                        Function(treeNode, callbackFlag)zTreeObj.removeNode

                        概述[ 依赖 jquery.ztree.core 扩展 js ]

                        删除节点。

                        v3.x 中删除节点可以触发 beforeRemove / onRemove 事件回调函数。便于减少冗余代码

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        需要被删除的节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        callbackFlagBoolean

                        callbackFlag = true 表示执行此方法时触发 beforeRemove & onRemove 事件回调函数

                        callbackFlag = false 表示执行此方法时不触发事件回调函数

                        省略此参数,等同于 false

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 删除所有选中的节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        for (var i=0, l=nodes.length; i < l; i++) {
                        	treeObj.removeNode(nodes[i]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.selectNode.html ================================================

                        Function(treeNode, addFlag, isSilent)zTreeObj.selectNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        选中指定节点

                        v3.x 支持同时选中多个节点。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        需要被选中的节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        addFlagBoolean

                        addFlag = true 表示追加选中,会出现多点同时被选中的情况

                        addFlag = false (默认)表示单独选中,原先被选中的节点会被取消选中状态

                        setting.view.selectedMulti = false 时,此参数无效,始终进行单独选中

                        isSilentBoolean

                        isSilent = true 选中节点时,不会让节点自动滚到到可视区域内

                        isSilent = false (默认)表示选中节点时,会让节点自动滚到到可视区域内

                        (v3.5.23+)

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 单独选中根节点中第一个节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        if (nodes.length>0) {
                        	treeObj.selectNode(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.setChkDisabled.html ================================================

                        Function(node, disabled, inheritParent, inheritChildren)zTreeObj.setChkDisabled

                        概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                        禁用 或 解禁 某个节点的 checkbox / radio [setting.check.enable = true 时有效]

                        1、节点的 checkbox / radio 被禁用后,无法勾选或取消勾选,但能够影响父节点的半选状态

                        2、请不要直接修改已加载节点的 treeNode.chkDisabled 属性。

                        3、请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        需要禁用 或 解禁 checkbox / radio 的节点数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        disabledBoolean

                        disabled = true 表示禁用 checkbox / radio

                        disabled = false 表示解禁 checkbox / radio

                        省略此参数,等同于 disabled = false

                        不影响 treeNode.nocheck = true 的节点。

                        inheritParentBoolean

                        inheritParent = true 表示全部父节点进行同样的操作

                        inheritParent = false 表示不影响父节点

                        省略此参数,等同于 inheritParent = false

                        inheritChildrenBoolean

                        inheritChildren = true 表示全部子节点进行同样的操作

                        inheritChildren = false 表示不影响子节点

                        省略此参数,等同于 inheritChildren = false

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 禁用当前选中的节点的 checkbox / radio

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        for (var i=0, l=nodes.length; i < l; i++) {
                        	treeObj.setChkDisabled(nodes[i], true);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.setEditable.html ================================================

                        Function(editable)zTreeObj.setEditable

                        概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                        设置 zTree 进入 / 取消 编辑状态。

                        对于编辑状态的各种功能需要提前设置对应 setting 中的不同属性

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        editableBoolean

                        true 表示进入 编辑状态

                        false 表示取消 编辑状态

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 设置 zTree 进入编辑状态

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.setEditable(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.setting.html ================================================

                        JSONzTreeObj.setting

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        zTree 对象使用的 setting 配置数据,详细请参考 “setting 配置详解”中的各个属性详细说明

                        v3.x 取消了原先操作 setting 的方法,让用户可以较自由的修改参数,但请注意,对于 zTree 初始化有影响的参数后期修改是不会起作用的,请对各个属性有较深入的了解以后再考虑进行修改。

                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.showNode.html ================================================

                        Function(treeNode)zTreeObj.showNode

                        概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                        显示某个被隐藏的节点。

                        1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                        2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                        3、请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        指定被显示的节点 JSON 数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 显示某个隐藏的节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodeByParam("isHidden", true);
                        if (node) {
                          treeObj.showNode(node);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.showNodes.html ================================================

                        Function(treeNodes)zTreeObj.showNodes

                        概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                        显示一批已经被隐藏的节点。

                        1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                        2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                        3、请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodesArray(JSON)

                        指定被显示的节点 JSON 数据集合

                        请务必保证这些节点数据对象 是 zTree 内部的数据对象

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 显示全部隐藏的节点

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodesByParam("isHidden", true);
                        treeObj.showNodes(nodes);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.transformToArray.html ================================================

                        Function(treeNodes)zTreeObj.transformToArray

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        将 zTree 使用的标准 JSON 嵌套格式的数据转换为简单 Array 格式。(免去用户自行编写递归遍历全部节点的麻烦)

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodesArray(JSON) / JSON

                        需要被转换的 zTree 节点数据对象集合 或 某个单独节点的数据对象

                        返回值Array(JSON)

                        转换后的简单 Array 数据格式

                        function 举例

                        1. 将 zTree 节点数据转换为简单 Array 格式

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.transformToArray(treeObj.getNodes());
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.transformTozTreeNodes.html ================================================

                        Function(simpleNodes)zTreeObj.transformTozTreeNodes

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        将简单 Array 格式数据转换为 zTree 使用的标准 JSON 嵌套数据格式。

                        使用此方法,请务必设置节点唯一标识属性名称 setting.data.simpleData.idKey 和 父节点唯一标识属性名称 setting.data.simpleData.pIdKey,并且让数据满足父子关系。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        simpleNodesArray(JSON) / JSON

                        需要被转换的简单 Array 格式数据 或 某个单独的数据对象

                        返回值Array(JSON)

                        zTree 使用的标准数据,子节点都存在于父节点数据的 children 属性中

                        如果 simpleNodes 是一个 JSON 对象,则被简单封装成长度为 1 的数组。

                        function 举例

                        1. 将简单 Array 格式转换为zTree使用的标准格式

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var simpleNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.transformTozTreeNodes(simpleNodes);
                        
                        ================================================ FILE: lib/zTree_v3/api/cn/zTreeObj.updateNode.html ================================================

                        Function(treeNode, checkTypeFlag)zTreeObj.updateNode

                        概述[ 依赖 jquery.ztree.core 核心 js ]

                        更新某节点数据,主要用于该节点显示属性的更新。

                        1、可针对 name、target、 url、icon、 iconSkin、checked、nocheck 等这几个用于显示效果的参数进行更新,其他用于 zTreeNodes 的参数请不要随意更新,对于展开节点,还请调用 expandNode方法,因此请勿随意修改 open 属性。

                        2、用此方法修改 checked 勾选状态不会触发 beforeCheck / onCheck 事件回调函数。

                        请通过 zTree 对象执行此方法。

                        Function 参数说明

                        treeNodeJSON

                        指定需要更新的节点 JSON 数据

                        请务必保证此节点数据对象 是 zTree 内部的数据对象

                        checkTypeFlagBoolean

                        checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

                        checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

                        当 setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时才有效

                        不影响父子节点中 treeNode.nocheck = true 的节点。

                        返回值

                        目前无任何返回值

                        function 举例

                        1. 更新根节点中第一个节点的名称

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        if (nodes.length>0) {
                        	nodes[0].name = "test";
                        	treeObj.updateNode(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/fn.zTree._z.html ================================================

                        JSON$.fn.zTree._z

                        Overview[ depends on jquery.ztree.core js ]

                        All of the internal methods in zTree v3.x are available through '$. fn.zTree._z', use this if you want to develop your own zTree plug-ins.

                        Unless you are writing a plugin, you should not use this object.

                        ================================================ FILE: lib/zTree_v3/api/en/fn.zTree.destroy.html ================================================

                        Function(treeId)$.fn.zTree.destroy

                        Overview[ depends on jquery.ztree.core js ]

                        From zTree v3.4, zTree provides a method for destruction.

                        1. This method can destroy a zTree by treeId, or destroy all zTree instances.

                        2. If you want to destroy a zTree, you can use the 'zTreeObj.destroy()' method.

                        3. If you want to re-use the tree which has been destroyed, you must first re-initialise it with the 'init()' method.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier

                        If this parameter is omitted, all zTree instances will be destroyed.

                        Return none

                        no return value

                        Examples of function

                        1. Destroy the zTree with id === 'treeDemo'

                        $.fn.zTree.destroy("treeDemo");

                        2. Destroy all zTree instances

                        $.fn.zTree.destroy();
                        ================================================ FILE: lib/zTree_v3/api/en/fn.zTree.getZTreeObj.html ================================================

                        Function(treeId)$.fn.zTree.getZTreeObj

                        Overview[ depends on jquery.ztree.core js ]

                        zTree v3.x provides this method to get zTree object from the tree's Id.

                        Please initialize zTree first, then you can use this method.

                        Users don't need to use a global variable to reference the zTree object, as all of the callback methods will pass 'treeId' parameters, and you can always call this method to get the zTree object.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier

                        Return JSON

                        zTree object

                        This is a reference to the zTree object.

                        Examples of function

                        1. Get the zTree object with id='tree'

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        ================================================ FILE: lib/zTree_v3/api/en/fn.zTree.init.html ================================================

                        Function(obj, zSetting, zNodes)$.fn.zTree.init

                        Overview[ depends on jquery.ztree.core js ]

                        This method is used to create a zTree.

                        1. The web page must use the W3C DTD. For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                        2. Needs jquery-1.4.2.js or better.

                        3. Needs jquery-ztree.core-3.0.js or better. If you are using edit mode or checkbox / radio mode, make sure you load jquery-ztree.exedit-3.0.js and jquery-ztree.excheck-3.0.js.

                        4. Needs zTreeStyle.css and image files

                        5. If you plan to use custom icons, please refer to the Demo, or see the help on iconSkin.

                        6. Note: You need to set zTree container's class name to "ztree". If you need to change it, don't forget to modify the css file. If you need other special styles, you can modify the css file.

                        Function Parameter Descriptions

                        objectjQuery Object

                        DOM Container for zTree

                        zSettingJSON

                        zTree's configuration data, please refer to "setting details" in the API Document.

                        zNodesArray(JSON) / JSON

                        zTree's node data, please refer to "treeNode data details" in the API Document.

                        1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.

                        2. If you are planning on using asynchronous loading of root nodes, set it to null or [ ]

                        3. If you are using simple data mode, please refer to "setting.data.simpleData" in the API Document.

                        Return JSON

                        zTree object

                        This object can provide the methods of operate the zTree

                        You can use $.fn.zTree.getZTreeObj method at any time to obtain.

                        Examples of setting & function

                        1. create a simple tree

                        <!DOCTYPE html>
                        <HTML>
                         <HEAD>
                          <TITLE> ZTREE DEMO </TITLE>
                          <meta http-equiv="content-type" content="text/html; charset=UTF-8">
                          <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
                          <script type="text/javascript" src="jquery-1.4.2.js"></script>
                          <script type="text/javascript" src="jquery.ztree.core.js"></script>
                        <!--
                          <script type="text/javascript" src="jquery.ztree.excheck.js"></script>
                          <script type="text/javascript" src="jquery.ztree.exedit.js"></script>
                        -->
                          <SCRIPT type="text/javascript" >
                        	var zTreeObj,
                        	setting = {
                        		view: {
                        			selectedMulti: false
                        		}
                        	},
                        	zTreeNodes = [
                        		{"name":"Site Map", open:true, children: [
                        			{ "name":"google", "url":"http://www.google.com", "target":"_blank"},
                        			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
                        			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
                        			]
                        		}
                        	];
                        
                        	$(document).ready(function(){
                        		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
                        
                        	});
                          </SCRIPT>
                         </HEAD>
                        
                        <BODY>
                        <ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
                         </BODY>
                        </HTML>
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.autoParam.html ================================================

                        Array(String) / Function(treeId, treeNode)setting.async.autoParam

                        Overview[ depends on jquery.ztree.core js ]

                        During asynchronous loading, a request is sent to the server, which contains the identify of the parent node, so it can retrieve the children. This attribute is an array of strings, which is the identity parameter (or parameters). It applies when [setting.async.enable = true]

                        Default:[ ]

                        Array(String) Format

                        1. Put the attribute name(s) of node to the array. For example: ["id", "name"]

                        2. You can rename the parameter name as sent to the server. For example: server only accepts "zId" -- ["id=zId"]

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        Parent node's JSON data object

                        When asynchronously loading the root, the treeNode = null

                        Return Array(String)

                        Return value is same as 'Array(String) Format'

                        Examples of setting

                        1. set auto commit 'id' attribute

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		autoParam: ["id"]
                        	}
                        };
                        If we have a parent node: {id:1, name:"test"}, When we are asynchronously loading this parent node's children, it will be submitted to the server with parameters: id=1
                        ......

                        2. set auto commit 'id' attribute, but the parameter name expected by the server is 'zId'

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		autoParam: ["id=zId"]
                        	}
                        };
                        If we have a parent node: {id:1, name:"test"}, When we are asynchronously loading this parent node's children, it will be submitted to the server with parameters: zId=1
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.contentType.html ================================================

                        Stringsetting.async.contentType

                        Overview[ depends on jquery.ztree.core js ]

                        When Ajax sends data to the server, it uses this content-type. It is used when [setting.async.enable = true]

                        Default:"application/x-www-form-urlencoded"

                        String Format

                        contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.

                        contentType = "application/json", means: the sending data format is "json" format. (for .Net)

                        Examples of setting

                        1. set the sending data format to "json" format.

                        var setting = {
                        	async: {
                        		enable: true,
                        		contentType: "application/json",
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.dataFilter.html ================================================

                        Function(treeId, parentNode, responseData)setting.async.dataFilter

                        Overview[ depends on jquery.ztree.core js ]

                        Callback function to pre-process Ajax return data. It is valid when [setting.async.enable = true]

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId

                        parentNodeJSON

                        Parent node's JSON data object

                        When asynchronously loading the root, the parentNode = null

                        responseDataArray(JSON) / JSON / String

                        Array (JSON) / JSON / String data objects

                        From v3.4, support XML strings.

                        Return Array(JSON) / JSON

                        The return value should be the JSON data structure which is supported by the zTree.

                        v3.x supports to load single node JSON data object.

                        Examples of setting & function

                        1. Modify the node name attributes returned by an Ajax request.

                        function ajaxDataFilter(treeId, parentNode, responseData) {
                            if (responseData) {
                              for(var i =0; i < responseData.length; i++) {
                                responseData[i].name += "_filter";
                              }
                            }
                            return responseData;
                        };
                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		dataFilter: ajaxDataFilter
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.dataType.html ================================================

                        Stringsetting.async.dataType

                        Overview[ depends on jquery.ztree.core js ]

                        The data type of Ajax requests. It is valid when [setting.async.enable = true]

                        Default:"text"

                        String Format

                        dataType = "text", There is probably no need to change this.

                        The 'dataType' in zTree and jQuery's ajax requests is same.

                        Examples of setting

                        1. Set the dataType which ajax retrieves to "text".

                        var setting = {
                        	async: {
                        		enable: true,
                        		dataType: "text",
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.enable.html ================================================

                        Booleansetting.async.enable

                        Overview[ depends on jquery.ztree.core js ]

                        Set zTree asynchronous loading mode on/off.

                        Default: false

                        Boolean Format

                        true - turn on asynchronous loading mode

                        false - turn off asynchronous loading mode

                        If set it is true, you must set other attributes in setting.async

                        If you don't pass the 'treeNodes' parameter when you initialize zTree, the root nodes will be retrieved using ajax.

                        Examples of setting

                        1. Turn on asynchronous loading mode

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.headers.html ================================================

                        Objectsetting.async.headers

                        Overview[ depends on jquery.ztree.core js ]

                        It is valid when [setting.async.enable = true]

                        Default:"{}"

                        v3.5.36+

                        String Format

                        The 'headers' in zTree and jQuery's ajax requests is same.

                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.otherParam.html ================================================

                        Array(String) / JSON / Function(treeId, treeNode)setting.async.otherParam

                        Overview[ depends on jquery.ztree.core js ]

                        The query parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]

                        Default: [ ]

                        Array(String) Format

                        Can be an empty array. e.g. [ ]. The array should contain key value pairs, e.g. [key, value]. (Either or [key] or [key, value, key] is wrong!!)

                        JSON Format

                        Use JSON hash data to set the key-value pairs. e.g. { key1:value1, key2:value2 }

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        Parent node's JSON data object

                        When asynchronously loading the root, the treeNode = null

                        Return Array(String) || JSON

                        Return value is same as 'Array(String) || JSON Format'

                        Examples of setting

                        1. Using Array(String) Format

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		otherParam: ["id", "1", "name", "test"]
                        	}
                        };
                        when zTree sends the ajax request, the query string will be like this: id=1&name=test

                        2. Using JSON data Format

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "http://host/getNode.php",
                        		otherParam: { "id":"1", "name":"test"}
                        	}
                        };
                        when zTree sends the ajax request, the query string will be like this: id=1&name=test
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.type.html ================================================

                        Stringsetting.async.type

                        Overview[ depends on jquery.ztree.core js ]

                        Http request tyoe in ajax. It is valid when [setting.async.enable = true]

                        Default: "post"

                        String Format

                        "post" - http request mode

                        "get" - http request mode

                        Both zTree and jQuery's this 'type' for ajax requests.

                        Examples of setting

                        1. Set http request mode is 'get'

                        var setting = {
                        	async: {
                        		enable: true,
                        		type: "get",
                        		url: "http://host/getNode.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.url.html ================================================

                        String / Function(treeId, treeNode)setting.async.url

                        Overview[ depends on jquery.ztree.core js ]

                        The URL to which the ajax request is sent. It is valid when [setting.async.enable = true]

                        Default: ""

                        String Format

                        A url string(e.g. "http://www.domain.com/cgi-bin/my-script.cgi"). Note: please check that the url can be loaded with a browser

                        Url can also take parameters, please note that they need to be urlencoded.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        Parent node's JSON data object

                        When asynchronously loading the root, the treeNode = null

                        Return String

                        Return value is same as 'String Format'

                        Examples of setting & function

                        1. set ajax url is "nodes.php"

                        var setting = {
                        	async: {
                        		enable: true,
                        		url: "nodes.php",
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......

                        2. set ajax url is "function"

                        function getAsyncUrl(treeId, treeNode) {
                            return treeNode.isParent ? "nodes1.php" : "nodes2.php";
                        };
                        var setting = {
                        	async: {
                        		enable: true,
                        		url: getAsyncUrl,
                        		autoParam: ["id", "name"]
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.async.xhrFields.html ================================================

                        Objectsetting.async.xhrFields

                        Overview[ depends on jquery.ztree.core js ]

                        It is valid when [setting.async.enable = true]

                        Default:"{}"

                        v3.5.36+

                        String Format

                        The 'xhrFields' in zTree and jQuery's ajax requests is same.

                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeAsync.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeAsync

                        Overview[ depends on jquery.ztree.core js ]

                        This callback is made before zTree makes an ajax request, giving you an opportunity to decide if it should proceed or not. Return false to prevent zTree from sending the ajax request.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the parent node

                        When asynchronously loading the root, treeNode = null

                        Return Boolean

                        return true or false

                        If the function returns false, zTree will not send the ajax request, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                        Examples of setting & function

                        1. If the parent node's attribute 'id' is 1, don't send the ajax request.

                        function myBeforeCallBack(treeId, treeNode) {
                            return (treeNode.id !== 1);
                        };
                        var setting = {
                        	callback: {
                        		beforeAsync: myBeforeCallBack
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeCheck.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeCheck

                        Overview[ depends on jquery.ztree.excheck js ]

                        Callback before checking or unchecking a node, A false return value from the callback will prevent any change in the checked state.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is checked or unchecked

                        Return Boolean

                        return true or false

                        If return false, zTree will not change the checkbox state, and will not trigger the 'onCheck' callback.

                        Examples of setting & function

                        1. This example returns false, preventing all checkboxes in the tree from toggling.

                        function myBeforeCheckCallBack(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeCheck: myBeforeCheckCallBack
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeClick.html ================================================

                        Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

                        Overview[ depends on jquery.ztree.core js ]

                        Before click callback, return false to prevent the 'onClick' callback.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is clicked

                        clickFlagNumber

                        Node is selected or deselected state, please see table below for details

                        clickFlagselectedMultiautoCancelSelected
                        &&
                        event.ctrlKey / metaKey
                        isSelectedoperate for selected
                        1truefalsefalsenode is selected (single)
                        1truefalsetruenode is selected (single)
                        2truetruefalsenode is selected (multi)
                        0truetruetruenode is deselected
                        1falsefalsefalsenode is selected (single)
                        1falsefalsetruenode is selected (single)
                        1falsetruefalsenode is selected (single)
                        0falsetruetruenode is deselected

                        Return Boolean

                        return true or false

                        If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

                        Examples of setting & function

                        1. disabled to click the node

                        function myBeforeClick(treeId, treeNode, clickFlag) {
                            return (treeNode.id !== 1);
                        };
                        var setting = {
                        	callback: {
                        		beforeClick: myBeforeClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeCollapse.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeCollapse

                        Overview[ depends on jquery.ztree.core js ]

                        Specify callback function to be called before collapse node, The return value controls the collapse node.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node to be collapsed

                        Return Boolean

                        return true or false

                        If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

                        Examples of setting & function

                        1. disabled to collapse node which is expanded

                        function myBeforeCollapse(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeCollapse: myBeforeCollapse
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeDblClick.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeDblClick

                        Overview[ depends on jquery.ztree.core js ]

                        Specify callback function, executed before the 'onDblClick' callback, The return value controls the 'onDblClick' callback.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is double clicked

                        If the DOM which dblclicked isn't a node, it will return null.

                        Return Boolean

                        return true or false

                        If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.

                        This callback function does not affect the auto expand of the parent node , please refer to setting.view.dblClickExpand properties.

                        Examples of setting & function

                        1. disable to trigger the 'onDblClick' callback

                        function myBeforeDblClick(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeDblClick: myBeforeDblClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeDrag.html ================================================

                        Function(treeId, treeNodes)setting.callback.beforeDrag

                        Overview[ depends on jquery.ztree.exedit js ]

                        Specify callback function to be called before the drag node callback, The return value controls whether the drag node callback will execute.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId, the id of the containing tree.

                        treeNodesArray(JSON)

                        A collection of the nodes being dragged

                        v3.x allows the drag and drop of multiple sibling nodes, so this parameter's type is changed to Array(JSON).

                        If the selected nodes aren't sibling nodes, you can only drag one node.

                        Return Boolean

                        return true or false

                        If return false, zTree will abort the drag and drop, and will not trigger the 'onDrag / beforeDrop / onDrop' sequence of callbacks.

                        Examples of setting & function

                        1. disable drag completely (by returning false)

                        function myBeforeDrag(treeId, treeNodes) {
                            return false;
                        };
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeDrag: myBeforeDrag
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeDragOpen.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeDragOpen

                        Overview[ depends on jquery.ztree.exedit js ]

                        Callback executed before drag node to collapsed parent node, The return value controls the auto expand behaviour of the parent node.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId, the tree is what the treeNode(parent node) is belong to.

                        treeNodeJSON

                        JSON data object of the parent node which will be auto expanded

                        Return Boolean

                        return true or false

                        If return false, zTree will not auto expand parent node.

                        Examples of setting & function

                        1. disable to auto expand parent node.

                        function myBeforeDragOpen(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeDragOpen: myBeforeDragOpen
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeDrop.html ================================================

                        Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

                        Overview[ depends on jquery.ztree.exedit js ]

                        Specify callback function to be called before drag-drop of a node, The return value controls the execution of drag-drop callback.

                        Default: null

                        When a node is dropped, if the drop is not in a valid location, this callback will not be triggered, and will revert to the original position.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId, the id of the containing tree.

                        treeNodesArray(JSON)

                        A collection of the nodes which has been dragged

                        The treeNodes which have been dragged, when copying nodes or moving nodes.

                        targetNodeJSON

                        JSON data object of the destination node on which treeNodes are being dropped.

                        If the treeNodes is the root node, the targetNode = null

                        moveTypeString

                        the relative position of move to the target node

                        "inner": will be child of targetNode

                        "prev": will be sibling node, and be in front of targetNode

                        "next": will be sibling node, and be behind targetNode

                        isCopyBoolean

                        the flag used to determine if the drop is to copy or move the node

                        true: copy node; false: move node

                        Return Boolean

                        return true or false

                        If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

                        Examples of setting & function

                        1. disable to drag nodes to root

                        function myBeforeDrop(treeId, treeNodes, targetNode, moveType) {
                            return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
                        };
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeDrop: myBeforeDrop
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeEditName.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeEditName

                        Overview[ depends on jquery.ztree.exedit js ]

                        Specify callback function to be called before click edit button, The return value controls the editing of the name.

                        This callback is fired when the edit button is clicked, to control the custom editing operation.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node to be edited.

                        Return Boolean

                        return true or false

                        If return false, allow editing of the name.

                        Examples of setting & function

                        1. disable editing of any parent node's name

                        function myBeforeEditName(treeId, treeNode) {
                        	return !treeNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeEditName: myBeforeEditName
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeExpand.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeExpand

                        Overview[ depends on jquery.ztree.core js ]

                        Specify callback function to be called before expanding a node, The return value controls the expand node callback.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node to be expanded

                        Return Boolean

                        return true or false

                        If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

                        Examples of setting & function

                        1. disables expanding of all nodes

                        function myBeforeExpand(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeExpand: myBeforeExpand
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeMouseDown.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeMouseDown

                        Overview[ depends on jquery.ztree.core js ]

                        Specify callback function, executed before the 'onMouseDown' callback, The return value controls the 'onMouseDown' callback.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which mouse over

                        If the DOM which mouse over isn't a node, it will return null.

                        Return Boolean

                        return true or false

                        If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.

                        Examples of setting & function

                        1. disable to trigger the 'onMouseDown' callback

                        function myBeforeMouseDown(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeMouseDown: myBeforeMouseDown
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeMouseUp.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeMouseUp

                        Overview[ depends on jquery.ztree.core js ]

                        Specify callback function, executed before the 'onMouseUp' callback, The return value controls the 'onMouseUp' callback.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which mouse over

                        If the DOM which mouse over isn't a node, it will return null.

                        Return Boolean

                        return true or false

                        If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.

                        Examples of setting & function

                        1. disable to trigger the 'onMouseUp' callback

                        function myBeforeMouseUp(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeMouseUp: myBeforeMouseUp
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeRemove.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeRemove

                        Overview[ depends on jquery.ztree.exedit js ]

                        Specify callback function to be called before remove node, The return value controls the allow to remove node.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node to be removed.

                        Return Boolean

                        return true or false

                        If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

                        Examples of setting & function

                        1. disable to remove node

                        function myBeforeRemove(treeId, treeNode) {
                        	return false;
                        }
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeRemove: myBeforeRemove
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeRename.html ================================================

                        Function(treeId, treeNode, newName, isCancel)setting.callback.beforeRename

                        Overview[ depends on jquery.ztree.exedit js ]

                        Specify callback function to be called before rename(when input DOM blur or press Enter Key), The return value controls the allow to rename node.

                        When node is editing name, press the ESC key to restore the original name and stop edit name.

                        From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node to be rename.

                        newNameString

                        the new name

                        isCancelBoolean

                        the status about cancel edit name (v3.5.13+)

                        isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)

                        isCancel = false means: user submit edit name.

                        Return Boolean

                        return true or false

                        If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.

                        If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.

                        Examples of setting & function

                        1. the length of the new name can't less than 5

                        function myBeforeRename(treeId, treeNode, newName, isCancel) {
                        	return newName.length > 5;
                        }
                        var setting = {
                        	edit: {
                        		enable: true
                        	},
                        	callback: {
                        		beforeRename: myBeforeRename
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.beforeRightClick.html ================================================

                        Function(treeId, treeNode)setting.callback.beforeRightClick

                        Overview[ depends on jquery.ztree.core js ]

                        Used to capture the right click event before the 'onRightClick' callback, The return value controls the 'onRightClick' callback.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is mouse right clicked

                        If the DOM which mouse right clicked isn't a node, it will return null.

                        ReturnBoolean

                        return true or false

                        If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.

                        Examples of setting & function

                        1. disable to trigger the 'onRightClick' callback

                        function myBeforeRightClick(treeId, treeNode) {
                            return false;
                        };
                        var setting = {
                        	callback: {
                        		beforeRightClick: myBeforeRightClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onAsyncError.html ================================================

                        setting.callback.onAsyncError

                        Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

                        Overview[ depends on jquery.ztree.core js ]

                        Used to capture the error event when execute ajax.

                        If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the parent node

                        When load root nodes, treeNode = null

                        XMLHttpRequestString

                        XMLHttpRequest Object, please refer to JQuery API documentation.

                        textStatusString

                        a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.

                        errorThrownString

                        eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.

                        Examples of setting & function

                        1. When execute ajax make error, alert message.

                        function myOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
                            alert(XMLHttpRequest);
                        };
                        var setting = {
                        	callback: {
                        		onAsyncError: myOnAsyncError
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onAsyncSuccess.html ================================================

                        Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

                        Overview[ depends on jquery.ztree.core js ]

                        Used to capture the complete success event when execute ajax.

                        If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the parent node

                        When load root nodes, treeNode = null

                        msgString / Object

                        The actualnode data which got by ajax. User-friendly debugging.

                        The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.

                        Examples of setting & function

                        1. When execute ajax complete success, alert message.

                        function myOnAsyncSuccess(event, treeId, treeNode, msg) {
                            alert(msg);
                        };
                        var setting = {
                        	callback: {
                        		onAsyncSuccess: myOnAsyncSuccess
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onCheck.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onCheck

                        Overview[ depends on jquery.ztree.excheck js ]

                        Used to capture the check or uncheck event when check or uncheck the checkbox and radio.

                        If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is checked or unchecked

                        Examples of setting & function

                        1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.

                        function myOnCheck(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
                        };
                        var setting = {
                        	callback: {
                        		onCheck: myOnCheck
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onClick.html ================================================

                        Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

                        Overview[ depends on jquery.ztree.core js ]

                        Used to capture the click event when click node.

                        If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is clicked

                        clickFlagNumber

                        Node is selected or deselected state, please see table below for details

                        clickFlagselectedMultiautoCancelSelected
                        &&
                        event.ctrlKey / metaKey
                        isSelectedoperate for selected
                        1truefalsefalsenode is selected (single)
                        1truefalsetruenode is selected (single)
                        2truetruefalsenode is selected (multi)
                        0truetruetruenode is deselected
                        1falsefalsefalsenode is selected (single)
                        1falsefalsetruenode is selected (single)
                        1falsetruefalsenode is selected (single)
                        0falsetruetruenode is deselected

                        Examples of setting & function

                        1. When click node, alert info about 'tId' and 'name'.

                        function myOnClick(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onClick: myOnClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onCollapse.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onCollapse

                        Overview[ depends on jquery.ztree.core js ]

                        Callback for collapse node.

                        If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node to be collapsed

                        Examples of setting & function

                        1. When collapse node, alert info about 'tId' and 'name'.

                        function myOnCollapse(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onCollapse: myOnCollapse
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onDblClick.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onDblClick

                        Overview[ depends on jquery.ztree.core js ]

                        Used to capture the dblclick event when double click node.

                        If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is double clicked

                        If the DOM which dblclicked isn't a node, it will return null.

                        Examples of setting & function

                        1. When double click node, alert info about 'tId' and 'name'.

                        function myOnDblClick(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onDblClick: myOnDblClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onDrag.html ================================================

                        Function(event, treeId, treeNodes)setting.callback.onDrag

                        Overview[ depends on jquery.ztree.exedit js ]

                        Used to capture the drag event when drag node.

                        If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDragMove' & 'onDrag' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId, the id of the containing tree.

                        treeNodesArray(JSON)

                        A collection of the nodes which will be dragged

                        Examples of setting & function

                        1. When drag nodes, alert the number of dragged nodes.

                        function myOnDrag(event, treeId, treeNodes) {
                            alert(treeNodes.length);
                        };
                        var setting = {
                        	callback: {
                        		onDrag: myOnDrag
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onDragMove.html ================================================

                        Function(event, treeId, treeNodes)setting.callback.onDragMove

                        Overview[ depends on jquery.ztree.exedit js ]

                        Used to capture the drag-move event when drag & drop node.

                        Mainly used to capture the DOM which the nodes was drag in.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId, the id of the containing tree.

                        treeNodesArray(JSON)

                        A collection of the nodes which will be dragged

                        Examples of setting & function

                        1. When drag nodes, output the target dom.

                        function myOnDragMove(event, treeId, treeNodes) {
                        	console.log(event.target);
                        };
                        var setting = {
                        	callback: {
                        		onDragMove: myOnDragMove
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onDrop.html ================================================

                        Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

                        Overview[ depends on jquery.ztree.exedit js ]

                        Used to capture the drop event when drag-drop node.

                        If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId, the id of the containing tree.

                        treeNodesArray(JSON)

                        A collection of the nodes which has been dragged

                        The treeNodes are the data of the nodes which be dragged, when move nodes.

                        The treeNodes are the clone data of the nodes which be dragged, when copy nodes.

                        targetNodeJSON

                        JSON data object of the target node which treeNodes are drag-dropped.

                        If the treeNodes will be root node, the targetNode = null

                        moveTypeString

                        the relative position of move to the target node

                        "inner": will be child of targetNode

                        "prev": will be sibling node, and be in front of targetNode

                        "next": will be sibling node, and be behind targetNode

                        If moveType is null, means drag & drop is cancel.

                        isCopyBoolean

                        the flag used to judge copy node or move node

                        true: copy node; false: move node

                        Examples of setting & function

                        1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.

                        function myOnDrop(event, treeId, treeNodes, targetNode, moveType) {
                            alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
                        };
                        var setting = {
                        	callback: {
                        		onDrop: myOnDrop
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onExpand.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onExpand

                        Overview[ depends on jquery.ztree.core js ]

                        Callback for expand node.

                        If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node to be expanded

                        Examples of setting & function

                        1. When expand node, alert info about 'tId' and 'name'.

                        function myOnExpand(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onExpand: myOnExpand
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onMouseDown.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onMouseDown

                        Overview[ depends on jquery.ztree.core js ]

                        Callback for mouse down.

                        If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which mouse over

                        If the DOM which mouse over isn't a node, it will return null.

                        Examples of setting & function

                        1. When mouse down, alert info about 'tId' and 'name'.

                        function myOnMouseDown(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onMouseDown: myOnMouseDown
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onMouseUp.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onMouseUp

                        Overview[ depends on jquery.ztree.core js ]

                        Callback for mouse up.

                        If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which mouse over

                        If the DOM which mouse over isn't a node, it will return null.

                        Examples of setting & function

                        1. When mouse up, alert info about 'tId' and 'name'.

                        function myOnMouseUp(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onMouseUp: myOnMouseUp
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onNodeCreated.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onNodeCreated

                        Overview[ depends on jquery.ztree.core js ]

                        Callback for node's DOM is created.

                        Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.

                        Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which DOM is created

                        Examples of setting & function

                        1. When node's DOM is created, alert info about 'tId' and 'name'.

                        function myOnNodeCreated(event, treeId, treeNode) {
                            alert(treeNode.tId + ", " + treeNode.name);
                        };
                        var setting = {
                        	callback: {
                        		onNodeCreated: myOnNodeCreated
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onRemove.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onRemove

                        Overview[ depends on jquery.ztree.exedit js ]

                        Callback for remove node.

                        If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which was removed.

                        Examples of setting & function

                        1. When remove node, alert info about 'tId' and 'name'.

                        function myOnRemove(event, treeId, treeNode) {
                        	alert(treeNode.tId + ", " + treeNode.name);
                        }
                        var setting = {
                        	callback: {
                        		onRemove: myOnRemove
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onRename.html ================================================

                        Function(event, treeId, treeNode, isCancel)setting.callback.onRename

                        Overview[ depends on jquery.ztree.exedit js ]

                        Callback for remove node.

                        1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.

                        2. If you modify treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.

                        3. From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which was rename.

                        isCancelBoolean

                        the status about cancel edit name (v3.5.13+)

                        isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)

                        isCancel = false means: user submit edit name.

                        Examples of setting & function

                        1. When rename node, alert info about 'tId' and 'name'.

                        function myOnRename(event, treeId, treeNode, isCancel) {
                        	alert(treeNode.tId + ", " + treeNode.name);
                        }
                        var setting = {
                        	callback: {
                        		onRename: myOnRename
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.callback.onRightClick.html ================================================

                        Function(event, treeId, treeNode)setting.callback.onRightClick

                        Overview[ depends on jquery.ztree.core js ]

                        Callback for mouse right click node.

                        If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.

                        If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.

                        Default: null

                        Function Parameter Descriptions

                        eventjs event Object

                        event Object

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which is mouse right clicked

                        If the DOM which mouse right clicked isn't a node, it will return null.

                        Examples of setting & function

                        1. When mouse right click node, alert info about 'tId' and 'name'.

                        function myOnRightClick(event, treeId, treeNode) {
                            alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                        };
                        var setting = {
                        	callback: {
                        		onRightClick: myOnRightClick
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.check.autoCheckTrigger.html ================================================

                        Booleansetting.check.autoCheckTrigger

                        Overview[ depends on jquery.ztree.excheck js ]

                        When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                        1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.

                        2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.

                        Default: false

                        Boolean Format

                        true means: trigger callback

                        false means: don't trigger callback

                        Examples of setting

                        1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.

                        var setting = {
                        	check: {
                        		enable: true,
                        		autoCheckTrigger: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.check.chkDisabledInherit.html ================================================

                        Booleansetting.check.chkDisabledInherit

                        Overview[ depends on jquery.ztree.excheck js ]

                        When the parent node's 'chkDisabled' attribute is true, set the child nodes automatically inherit the 'chkDisabled' attribute. It is valid when [setting.check.enable = true]

                        1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

                        Default: false

                        Boolean Format

                        true means: When add new child nodes, if parent node's 'chkDisabled' attribute is true, the child nodes automatically inherit the 'chkDisabled' attribute.

                        false means: When add new child nodes, the child nodes don't inherit the 'chkDisabled' attribute from parent node.

                        Examples of setting

                        1. When add new child nodes, the child nodes automatically inherit the 'chkDisabled' attribute from parent node.

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkDisabledInherit: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.check.chkStyle.html ================================================

                        Stringsetting.check.chkStyle

                        Overview[ depends on jquery.ztree.excheck js ]

                        Use the checkbox or radio. It is valid when [setting.check.enable = true]

                        Default: "checkbox"

                        String Format

                        When chkStyle = "checkbox", zTree show checkbox, and 'setting.check.chkboxType' attribute is valid.
                        When chkStyle = "radio", zTree show radio, and 'setting.check.radioType' attribute is valid.

                        Please note that letter case, do not change.

                        checkbox States Descriptions

                        not checked; If node is parent, so its child nodes have been not checked. when mouse over:

                        not checked; (only parent node) some of its child nodes have been checked. when mouse over:

                        be checked; If node is parent, so its all child nodes have been checked. when mouse over:

                        be checked; (only parent node) some of its child nodes or all have been not checked. when mouse over:

                        radio States Descriptions

                        not checked; If node is parent, so its child have been not checked. when mouse over:

                        not checked; (only parent node) some of its child have been checked. when mouse over:

                        be checked; If node is parent, so its child have been not checked. when mouse over:

                        be checked; (only parent node) some of its child have been checked. when mouse over:

                        Examples of setting

                        1. use radio

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkStyle: "radio"
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.check.chkboxType.html ================================================

                        JSONsetting.check.chkboxType

                        Overview[ depends on jquery.ztree.excheck js ]

                        When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                        Default: { "Y": "ps", "N": "ps" }

                        JSON Format

                        "Y" attribute use to set auto check after checkbox was checked.
                        "N" attribute use to set auto uncheck after checkbox was unchecked.
                        If value has "p", so parent nodes will be checked or unchecked.
                        If value has "s", so child nodes will be checked or unchecked.

                        Please note that letter case, do not change.

                        Examples of setting

                        1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkStyle: "checkbox",
                        		chkboxType: { "Y": "p", "N": "s" }
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.check.enable.html ================================================

                        Booleansetting.check.enable

                        Overview[ depends on jquery.ztree.excheck js ]

                        Set to use checkbox or radio in zTree

                        Default: false

                        Boolean Format

                        true means: use the checkbox or radio

                        false means: don't use the checkbox or radio

                        Examples of setting

                        1. use the checkbox

                        var setting = {
                        	check: {
                        		enable: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.check.nocheckInherit.html ================================================

                        Booleansetting.check.nocheckInherit

                        Overview[ depends on jquery.ztree.excheck js ]

                        When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when [setting.check.enable = true]

                        1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

                        Default: false

                        Boolean Format

                        true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.

                        false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.

                        Examples of setting

                        1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.

                        var setting = {
                        	check: {
                        		enable: true,
                        		nocheckInherit: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.check.radioType.html ================================================

                        Stringsetting.check.radioType

                        Overview[ depends on jquery.ztree.excheck js ]

                        The group about radio. It is valid when [setting.check.enable = true & setting.check.chkStyle = "radio"]

                        Default: "level"

                        String Format

                        When radioType = "level", will be grouped with same level nodes which have the same parent node.
                        When radioType = "all", will be grouped with all nodes.

                        Please note that letter case, do not change.

                        Examples of setting

                        1. Set the group about radio is all nodes.

                        var setting = {
                        	check: {
                        		enable: true,
                        		chkStyle: "radio",
                        		radioType: "all"
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.keep.leaf.html ================================================

                        Booleansetting.data.keep.leaf

                        Overview[ depends on jquery.ztree.core js ]

                        The leaf node's lock, the leaf node will lock the 'isParent' attribute to false.

                        Default: false

                        Boolean Format

                        true means: lock the leaf node, and the node which 'isParent' attribute is false can't add child nodes.

                        false means: don't lock the leaf node, and the node which 'isParent' attribute is false can add child nodes.

                        Examples of setting

                        1. lock the leaf node

                        var setting = {
                        	data: {
                        		keep: {
                        			leaf: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.keep.parent.html ================================================

                        Booleansetting.data.keep.parent

                        Overview[ depends on jquery.ztree.core js ]

                        The parent node's lock, the parent node will lock 'isParent' attribute to true.

                        Default: false

                        Boolean Format

                        true means: lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true..

                        false means: don't lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false..

                        Examples of setting

                        1. lock the parent node

                        var setting = {
                        	data: {
                        		keep: {
                        			parent: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.key.checked.html ================================================

                        Stringsetting.data.key.checked

                        Overview[ depends on jquery.ztree.excheck js ]

                        The node data's attribute to save the checked state.

                        Default: "checked"

                        Please don't set the other node attribute which zTree used. (e.g., checkedOld)

                        Examples of setting

                        1. set the 'isChecked' attribute to save the checked state.

                        var setting = {
                        	data: {
                        		key: {
                        			checked: "isChecked"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.key.children.html ================================================

                        Stringsetting.data.key.children

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save the child nodes.

                        Default: "children"

                        Examples of setting

                        1. Set the 'nodes' attribute to save the child nodes.

                        var setting = {
                        	data: {
                        		key: {
                        			children: "nodes"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.key.isHidden.html ================================================

                        Stringsetting.data.key.isHidden

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save whether the node is the parent node.

                        Default: "isHidden"

                        v3.5.32+

                        Examples of setting

                        1. Set the 'hidden' attribute to save whether the node is the parent node.

                        var setting = {
                        	data: {
                        		key: {
                        			isHidden: "hidden"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.key.isParent.html ================================================

                        Stringsetting.data.key.isParent

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save whether the node is the parent node.

                        Default: "isParent"

                        v3.5.32+

                        Examples of setting

                        1. Set the 'parent' attribute to save whether the node is the parent node.

                        var setting = {
                        	data: {
                        		key: {
                        			isParent: "parent"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.key.name.html ================================================

                        Stringsetting.data.key.name

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save the node name.

                        Default: "name"

                        Examples of setting

                        1. Set the 'ename' attribute to save the node name.

                        var setting = {
                        	data: {
                        		key: {
                        			name: "ename"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.key.title.html ================================================

                        Stringsetting.data.key.title

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save the 'title' attribute of node DOM. It is valid when [setting.view.showTitle = true]

                        If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.

                        Default: ""

                        Examples of setting

                        1. Set the 'fullName' attribute to save the title of node DOM.

                        var setting = {
                        	data: {
                        		key: {
                        			title: "fullName"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.key.url.html ================================================

                        Stringsetting.data.key.url

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save the node link's url.

                        Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.

                        Default: "url"

                        Examples of setting

                        1. Set the 'xUrl' attribute to save the node link's url.

                        var setting = {
                        	data: {
                        		key: {
                        			url: "xUrl"
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.simpleData.enable.html ================================================

                        Booleansetting.data.simpleData.enable

                        Overview[ depends on jquery.ztree.core js ]

                        Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use addNodes method.

                        Don't have to generate the complex nested data.

                        Default: false

                        Boolean Format

                        true means: zTree's node accept the simple data format.

                        false means: zTree's node only accept the nested data format.

                        If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.

                        Examples of setting

                        1. use the simple data format

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.simpleData.idKey.html ================================================

                        Stringsetting.data.simpleData.idKey

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

                        Default: "id"

                        Examples of setting

                        1. use the simple data format

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.simpleData.pIdKey.html ================================================

                        Stringsetting.data.simpleData.pIdKey

                        Overview[ depends on jquery.ztree.core js ]

                        The node data's attribute to save its parent node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

                        Default: "pId"

                        Examples of setting

                        1. use the simple data format

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.data.simpleData.rootPId.html ================================================

                        String / Numbersetting.data.simpleData.rootPId

                        Overview[ depends on jquery.ztree.core js ]

                        Set the default value of root's 'pIdKey' specified attribute values​​. It is valid when [setting.data.simpleData.enable = true]

                        Default: null

                        Examples of setting

                        1. use the simple data format

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var treeNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.autoExpandTrigger.html ================================================

                        Booleansetting.edit.drag.autoExpandTrigger

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when [setting.edit.enable = true]

                        Default: false

                        Boolean Format

                        true means: trigger the 'onExpand' callback.

                        false means: don't trigger the 'onExpand' callback.

                        Examples of setting

                        1. Set to allow to trigger the 'onExpand' callback

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			autoExpandTrigger: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.autoOpenTime.html ================================================

                        Numbersetting.edit.drag.autoOpenTime

                        Overview[ depends on jquery.ztree.exedit js ]

                        Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when [setting.edit.enable = true]

                        Default: 500

                        Please adjust the value according to needs.

                        Examples of setting

                        1. When drag node to other parent node, expand it at once.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			autoOpenTime: 0
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.borderMax.html ================================================

                        Numbersetting.edit.drag.borderMax

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when [setting.edit.enable = true]

                        Default: 10

                        Please adjust the value according to needs.

                        Examples of setting

                        1. adjust the inner border width is 20px

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			borderMax: 20
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.borderMin.html ================================================

                        Numbersetting.edit.drag.borderMin

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when [setting.edit.enable = true]

                        Default: -5

                        Please adjust the value according to needs.

                        Examples of setting

                        1. adjust the outer border width is 10px

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			borderMin: -10
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.inner.html ================================================

                        Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when [setting.edit.enable = true]

                        If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                        This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.

                        Default: true

                        Boolean Format

                        true means: allow the node to be the target node's child.

                        false means: don't allow the node to be the target node's child.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodesArray(JSON)

                        A collection of the nodes which has been dragged

                        targetNodeJSON

                        JSON data object of the target node which treeNodes are draged over.

                        If the treeNodes will be root node, the targetNode = null

                        Return Boolean

                        return true or false

                        Examples of setting & function

                        1. disable to drag the node to the target node's inner.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: true,
                        			inner: false
                        		}
                        	}
                        };
                        ......

                        2. disable to drag the node to be root node's child.

                        function canInner(treeId, nodes, targetNode) {
                        	return !(targetNode && targetNode.level === 0);
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: true,
                        			inner: canInner
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.isCopy.html ================================================

                        Booleansetting.edit.drag.isCopy

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag-drop node, set whether to allow to copy node. It is valid when [setting.edit.enable = true]

                        Default: true

                        Rules Description

                        1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.

                        2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

                        3. If isCopy = false and isMove = true, when drag-drop node, will move node.

                        4. If isCopy = false and isMove = false, so disable to drag-drop node.

                        Examples of setting

                        1. all of the drag-drop operation will copy node.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			isCopy: true,
                        			isMove: false
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.isMove.html ================================================

                        Booleansetting.edit.drag.isMove

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag-drop node, set whether to allow to move node. It is valid when [setting.edit.enable = true]

                        Default: true

                        Rules Description

                        1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.

                        2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

                        3. If isCopy = false and isMove = true, when drag-drop node, will move node.

                        4. If isCopy = false and isMove = false, so disable to drag-drop node.

                        Examples of setting

                        1. all of the drag-drop operation will move node.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			isCopy: false,
                        			isMove: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.maxShowNodeNum.html ================================================

                        Numbersetting.edit.drag.maxShowNodeNum

                        Overview[ depends on jquery.ztree.exedit js ]

                        When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when [setting.edit.enable = true]

                        Default: 5

                        Please adjust the value according to needs.

                        Examples of setting

                        1. Set the maximum number is 10

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			maxShowNodeNum: 10
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.minMoveSize.html ================================================

                        Numbersetting.edit.drag.minMoveSize

                        Overview[ depends on jquery.ztree.exedit js ]

                        The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when [setting.edit.enable = true]

                        Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.

                        Default: 5

                        Examples of setting

                        1. Set the minimum offset is 10px.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			minMoveSize: 10
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.next.html ================================================

                        Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when [setting.edit.enable = true]

                        If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                        This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.

                        Default: true

                        Boolean Format

                        true means: allow the node to be the target node's next sibling.

                        false means: don't allow the node to be the target node's next sibling.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodesArray(JSON)

                        A collection of the nodes which has been dragged

                        targetNodeJSON

                        JSON data object of the target node which treeNodes are draged over.

                        Return Boolean

                        return true or false

                        Examples of setting & function

                        1. disable to drag the node to the target node's next sibling.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: false,
                        			inner: true
                        		}
                        	}
                        };
                        ......

                        2. disable to drag the node to be all of the parent nodes's next sibling.

                        function canNext(treeId, nodes, targetNode) {
                        	return !targetNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: true,
                        			next: canNext,
                        			inner: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.drag.prev.html ================================================

                        Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

                        Overview[ depends on jquery.ztree.exedit js ]

                        When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when [setting.edit.enable = true]

                        If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                        This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.

                        Default: true

                        Boolean Format

                        true means: allow the node to be the target node's previous sibling.

                        false means: don't allow the node to be the target node's previous sibling.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodesArray(JSON)

                        A collection of the nodes which has been dragged

                        targetNodeJSON

                        JSON data object of the target node which treeNodes are draged over.

                        Return Boolean

                        return true or false

                        Examples of setting & function

                        1. disable to drag the node to the target node's previous sibling.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: false,
                        			next: true,
                        			inner: true
                        		}
                        	}
                        };
                        ......

                        2. disable to drag the node to be all of the parent nodes's previous sibling.

                        function canPrev(treeId, nodes, targetNode) {
                        	return !targetNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		drag: {
                        			prev: canPrev,
                        			next: true,
                        			inner: true
                        		}
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.editNameSelectAll.html ================================================

                        Booleansetting.edit.editNameSelectAll

                        Overview[ depends on jquery.ztree.exedit js ]

                        When edit node's name, the text in input is selected or unselected. It is valid when [setting.edit.enable = true]

                        Default: false

                        Boolean Format

                        true means: when show the input, the text in input is selected

                        false means: when show the input, the text in input is not selected

                        Examples of setting

                        1. When edit node's name, the text in input is selected.

                        var setting = {
                        	edit: {
                        		enable: true,
                        		editNameSelectAll: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.enable.html ================================================

                        Booleansetting.edit.enable

                        Overview[ depends on jquery.ztree.exedit js ]

                        Set zTree is in edit mode

                        Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.

                        Default: false

                        Boolean Format

                        true means: zTree is in edit mode.

                        false means: zTree is not in edit mode.

                        Editing Rules Description

                        1. When click the node, it will not open 'node.url' specified URL.
                        2. Support for dynamic tree editing.
                        3. You can drag-drop nodes, and support drag-drop nodes between multiple trees.
                        4. Support use drag-drop to copy or move the node. (Reference: setting.edit.drag.isCopy / setting.edit.drag.isMove)
                        5. You can use the Edit button to modify the name attribute.
                        6. You can use the Remove button to remove the node.

                        Please note that letter case, do not change.

                        Examples of setting

                        1. edit the tree

                        var setting = {
                        	edit: {
                        		enable: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.removeTitle.html ================================================

                        String / Function(treeId, treeNode)setting.edit.removeTitle

                        Overview[ depends on jquery.ztree.exedit js ]

                        the title of the remove button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRemoveBtn = true]

                        Default: "remove"

                        String Format

                        When the mouse over the remove button, the browser auto pop-up message content.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which show the remove button

                        Return String

                        Return value is same as 'String Format'

                        Examples of setting & function

                        1. Set title is 'remove the node' about all the remove button

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: true,
                        		removeTitle: "remove the node"
                        	}
                        };
                        ......

                        2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node

                        function setRemoveTitle(treeId, treeNode) {
                        	return treeNode.isParent ? "remove the parent node":"remove the leaf node";
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: true,
                        		removeTitle: setRemoveTitle
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.renameTitle.html ================================================

                        String / Function(treeId, treeNode)setting.edit.renameTitle

                        Overview[ depends on jquery.ztree.exedit js ]

                        the title of the rename button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRenameBtn = true]

                        Default: "rename"

                        String Format

                        When the mouse over the rename button, the browser auto pop-up message content.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which show the rename button

                        Return String

                        return value is same as 'String Format'

                        Examples of setting & function

                        1. Set title is 'rename the node' about all the rename button

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: true,
                        		renameTitle: "rename the node"
                        	}
                        };
                        ......

                        2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node

                        function setRenameTitle(treeId, treeNode) {
                        	return treeNode.isParent ? "rename the parent node":"rename the leaf node";
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: true,
                        		renameTitle: setRenameTitle
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.showRemoveBtn.html ================================================

                        Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

                        Overview[ depends on jquery.ztree.exedit js ]

                        Set to show or hide the remove button. It is valid when [setting.edit.enable = true]

                        When you click the remove button:

                        1. zTree will trigger the setting.callback.beforeRemove callback, and you can decide whether to allow delete.

                        2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the setting.callback.onRemove callback after remove the node.

                        Default: true

                        Boolean Format

                        true means: show the remove button

                        false means: hide the remove button

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which show the remove button

                        Return Boolean

                        Return value is same as 'Boolean Format'

                        Examples of setting & function

                        1. Hide the remove button

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: false
                        	}
                        };
                        ......

                        2. Hide the remove button of parent node

                        function setRemoveBtn(treeId, treeNode) {
                        	return !treeNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRemoveBtn: setRemoveBtn
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.edit.showRenameBtn.html ================================================

                        Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

                        Overview[ depends on jquery.ztree.exedit js ]

                        Set to show or hide the rename button. It is valid when [setting.edit.enable = true]

                        When you click the rename button:

                        1. Click the rename button, you can rename the node.

                        2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the setting.callback.beforeRename callback, and you can decide whether to allow rename.

                        3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.

                        4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the setting.callback.onRename callback after rename the node.

                        Default: true

                        Boolean Format

                        true means: show the rename button

                        false means: hide the rename button

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which show the rename button

                        Return Boolean

                        Return value is same as 'Boolean Format'

                        Examples of setting & function

                        1. Hide the rename button

                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: false
                        	}
                        };
                        ......

                        2. Hide the rename button of parent node

                        function setRenameBtn(treeId, treeNode) {
                        	return !treeNode.isParent;
                        }
                        var setting = {
                        	edit: {
                        		enable: true,
                        		showRenameBtn: setRenameBtn
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.treeId.html ================================================

                        Stringsetting.treeId

                        Overview[ depends on jquery.ztree.core js ]

                        zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.

                        Do not initialize or modify it, it is an internal argument.

                        ================================================ FILE: lib/zTree_v3/api/en/setting.treeObj.html ================================================

                        Objectsetting.treeObj

                        Overview[ depends on jquery.ztree.core js ]

                        zTree DOM's jQuery object, the main function: easy to internal operations.

                        Do not initialize or modify it, it is an internal argument.

                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.addDiyDom.html ================================================

                        Function(treeId, treeNode)setting.view.addDiyDom

                        Overview[ depends on jquery.ztree.core js ]

                        This function used to display the custom control on the node.

                        1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.

                        2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which display the custom control.

                        Examples of setting & function

                        1. Display button in all nodes.

                        var setting = {
                        	view: {
                        		addDiyDom: addDiyDom
                        	}
                        };
                        function addDiyDom(treeId, treeNode) {
                        	var aObj = $("#" + treeNode.tId + "_a");
                        	if ($("#diyBtn_"+treeNode.id).length>0) return;
                        	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                        		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                        		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                        	aObj.append(editStr);
                        	var btn = $("#diyBtn_"+treeNode.id);
                        	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.addHoverDom.html ================================================

                        Function(treeId, treeNode)setting.view.addHoverDom

                        Overview[ depends on jquery.ztree.exedit js ]

                        Used to display custom control when mouse move over the node. (e.g. the rename and remove button)

                        If you use this function, so must set setting.view.removeHoverDom, please make sure that a better understanding of zTree before you use it.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which need to display the custom control.

                        Examples of setting & function

                        1. Display a button when mouse move over the node, and hide the button when mouse move out.

                        var setting = {
                        	view: {
                        		addHoverDom: addHoverDom,
                        		removeHoverDom: removeHoverDom,
                        		......
                        	}
                        };
                        function addHoverDom(treeId, treeNode) {
                        	var aObj = $("#" + treeNode.tId + "_a");
                        	if ($("#diyBtn_"+treeNode.id).length>0) return;
                        	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                        		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                        		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                        	aObj.append(editStr);
                        	var btn = $("#diyBtn_"+treeNode.id);
                        	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                        };
                        function removeHoverDom(treeId, treeNode) {
                        	$("#diyBtn_"+treeNode.id).unbind().remove();
                        	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.autoCancelSelected.html ================================================

                        Booleansetting.view.autoCancelSelected

                        Overview[ depends on jquery.ztree.core js ]

                        When click the selected node while pressing the Ctrl-key or Cmd-key, allow to cancel selected the node.

                        If you don't need this function, please set to false.

                        Default: true

                        Boolean Format

                        true means: press the Ctrl-key or Cmd-key, can cancel selected node.

                        false means: press the Ctrl-key or Cmd-key, can't cancel selected node.

                        Examples of setting

                        1. Press the Ctrl-key or Cmd-key, can't cancel selected node.

                        var setting = {
                        	view: {
                        		autoCancelSelected: false
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.dblClickExpand.html ================================================

                        Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

                        Overview[ depends on jquery.ztree.core js ]

                        When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.

                        Default: true

                        Boolean Format

                        true means: When double-click the parent node, zTree will expand the parent node.

                        false means: When double-click the parent node, zTree will not expand the parent node.

                        Function Pamameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which be double-clicked.

                        Return Boolean

                        Return value is same as 'Boolean Format'

                        Example of setting

                        1. When double-click the parent node, zTree will not expand the parent node.

                        var setting = {
                        	view: {
                        		dblClickExpand: false
                        	}
                        };
                        ......

                        2. When double-click the parent node, zTree will expand the parent node which level>0.

                        function dblClickExpand(treeId, treeNode) {
                        	return treeNode.level > 0;
                        };
                        var setting = {
                        	view: {
                        		dblClickExpand: dblClickExpand
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.expandSpeed.html ================================================

                        String / Numbersetting.view.expandSpeed

                        Overview[ depends on jquery.ztree.core js ]

                        The animation speed of expand or collapse node. As same as 'speed' parameter in jQuery

                        In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.

                        Default: "fast"

                        String Format

                        e.g. "slow", "normal", or "fast"

                        If set to "", zTree will not use animation.

                        Number Format

                        How long the animation will run. [Unit: ms] (e.g. 1000)

                        Examples of setting

                        1. Set the animation speed to slow

                        var setting = {
                        	view: {
                        		expandSpeed: "slow"
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.fontCss.html ================================================

                        JSON / Function(treeId, treeNode)setting.view.fontCss

                        Overview[ depends on jquery.ztree.core js ]

                        Personalized text style, only applies to <A> object in the node DOM

                        Default: {}

                        JSON Format

                        As same as .css() method in jQuery. e.g. {color:"#ff0011", background:"blue"}

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which use the personalized text style

                        Return JSON

                        Return value is same as 'JSON Format'. e.g. {color:"#ff0011", background:"blue"}

                        Examples of setting & function

                        1. Don't modify css file, and set the node name's color to red

                        var setting = {
                        	view: {
                        		fontCss : {color:"red"}
                        	}
                        };

                        2. Don't modify css file, and set the root node name's color to red

                        function setFontCss(treeId, treeNode) {
                        	return treeNode.level == 0 ? {color:"red"} : {};
                        };
                        var setting = {
                        	view: {
                        		fontCss: setFontCss
                        	}
                        };
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.nameIsHTML.html ================================================

                        Booleansetting.view.nameIsHTML

                        Overview[ depends on jquery.ztree.core js ]

                        Set to use HTML in 'name' attribute.

                        If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...

                        Default: false

                        Boolean Format

                        true means: 'name' attribute can be HTML.

                        false means: 'name' attribute is only TEXT.

                        Examples of setting

                        1. Set to allow HTML

                        var setting = {
                        	view: {
                        		nameIsHTML: true
                        	}
                        };
                        var node = {"name":"<font color='red'>test</font>"};
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.removeHoverDom.html ================================================

                        Function(treeId, treeNode)setting.view.removeHoverDom

                        Overview[ depends on jquery.ztree.exedit js ]

                        Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)

                        If you use this function, so must set setting.view.addHoverDom, please make sure that a better understanding of zTree before you use it.

                        Default: null

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which need to hide the custom control.

                        Examples of setting & function

                        1. Display a button when mouse move over the node, and hide the button when mouse move out.

                        var setting = {
                        	view: {
                        		addHoverDom: addHoverDom,
                        		removeHoverDom: removeHoverDom,
                        		......
                        	}
                        };
                        function addHoverDom(treeId, treeNode) {
                        	var aObj = $("#" + treeNode.tId + "_a");
                        	if ($("#diyBtn_"+treeNode.id).length>0) return;
                        	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                        		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                        		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                        	aObj.append(editStr);
                        	var btn = $("#diyBtn_"+treeNode.id);
                        	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                        };
                        function removeHoverDom(treeId, treeNode) {
                        	$("#diyBtn_"+treeNode.id).unbind().remove();
                        	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.selectedMulti.html ================================================

                        Booleansetting.view.selectedMulti

                        Overview[ depends on jquery.ztree.core js ]

                        Set whether to allow select multiple nodes.

                        Default: true

                        Boolean Format

                        true mean: you can select multiple nodes.

                        false mean: you can only select one node.

                        1. Press Ctrl-key or Cmd-key, you can select multiple nodes.

                        2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )

                        Examples of setting

                        1. Only select one node.

                        var setting = {
                        	view: {
                        		selectedMulti: false
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.showIcon.html ================================================

                        Boolean / Function(treeId, treeNode)setting.view.showIcon

                        Overview[ depends on jquery.ztree.core js ]

                        Set to show or hide node icon.

                        Default: true

                        Boolean Format

                        true means: show node icon.

                        false means: hide node icon.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which need to show icon.

                        Return Boolean

                        Return value is same as 'Boolean Format'

                        Examples of setting & function

                        1. Hide node icon

                        var setting = {
                        	view: {
                        		showIcon: false
                        	}
                        };
                        ......

                        2. Hide node icon which level=2

                        function showIconForTree(treeId, treeNode) {
                        	return treeNode.level != 2;
                        };
                        var setting = {
                        	view: {
                        		showIcon: showIconForTree
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.showLine.html ================================================

                        Booleansetting.view.showLine

                        Overview[ depends on jquery.ztree.core js ]

                        Set to show or hide line.

                        Default: true

                        Boolean Format

                        true means: show line.

                        false means: hide line.

                        Examples of setting

                        1. Hide line

                        var setting = {
                        	view: {
                        		showLine: false
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.showTitle.html ================================================

                        Boolean / Function(treeId, treeNode)setting.view.showTitle

                        Overview[ depends on jquery.ztree.core js ]

                        Set to show or hide the 'title' attribute of node DOM.

                        Please see the setting.data.key.title attribute

                        Default: true

                        Boolean Format

                        true means: show the 'title' attribute of node DOM.

                        false means: hide the 'title' attribute of node DOM.

                        When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.

                        Function Parameter Descriptions

                        treeIdString

                        zTree unique identifier: treeId.

                        treeNodeJSON

                        JSON data object of the node which need to show title.

                        Return Boolean

                        Return value is same as 'Boolean Format'

                        Examples of setting & function

                        1. Hide the 'title' attribute of node DOM.

                        var setting = {
                        	view: {
                        		showTitle: false
                        	}
                        };
                        ......

                        2. Hide the 'title' attribute of node DOM which level=2.

                        function showTitleForTree(treeId, treeNode) {
                        	return treeNode.level != 2;
                        };
                        var setting = {
                        	view: {
                        		showTitle: showTitleForTree
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/setting.view.txtSelectedEnable.html ================================================

                        Booleansetting.view.txtSelectedEnable

                        Overview[ depends on jquery.ztree.core js ]

                        Set to allow or don't allow to select the text which in zTree's DOM.

                        Default: false

                        Boolean Format

                        true means: Allow to select the txt which in zTree's DOM.

                        false means: Don't allow to select the txt which in zTree's DOM.

                        Examples of setting & function

                        1. Allow to select the txt which in zTree's DOM.

                        var setting = {
                        	view: {
                        		txtSelectedEnable: true
                        	}
                        };
                        ......
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.check_Child_State.html ================================================

                        NumbertreeNode.check_Child_State

                        Overview[ depends on jquery.ztree.excheck js ]

                        Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when [setting.check.enable = true]

                        zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.

                        Do not initialize or modify it, it is an internal argument.

                        Default: true

                        Number Format

                        Rules:

                        setting.check.checkType = "checkbox"
                        treeNode.check_Child_StateChecked Status Description
                        -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
                        0All of the child nodes has not been checked.
                        1Some of the child nodes has been checked.
                        2All of the child nodes has been checked.

                        setting.check.checkType = "radio"
                        treeNode.check_Child_StateChecked Status Description
                        -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
                        0All of the child nodes has not been checked.
                        2Some of the child nodes has been checked.
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.check_Focus.html ================================================

                        BooleantreeNode.check_Focus

                        Overview[ depends on jquery.ztree.excheck js ]

                        Used to record the status which the checkbox or radio get focus. It is valid when [setting.check.enable = true]

                        Do not initialize or modify it, it is an internal argument.

                        Default: false

                        Boolean Format

                        true means: mouse move over the checkbox

                        false means: mouse move out the checkbox

                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.checked.html ================================================

                        BooleantreeNode.checked

                        Overview[ depends on jquery.ztree.excheck js ]

                        The checked status about node's checkbox or radio. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                        1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.

                        2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.

                        3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.

                        4. zTree support identification string 'true' & 'false'.

                        Default: false

                        Boolean Format

                        true means: check the checkbox or radio when zTree is initialized.

                        false means: uncheck the checkbox or radio when zTree is initialized.

                        Examples of treeNode

                        1. check the checkbox when zTree is initialized

                        var nodes = [
                        { "id":1, "name":"test1", checked:true },
                        { "id":2, "name":"test2", checked:true }
                        ]

                        2. Get the checked status of the first root node

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var checked = treeObj.getNodes()[0].checked;
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.checkedOld.html ================================================

                        BooleantreeNode.checkedOld

                        Overview[ depends on jquery.ztree.excheck js ]

                        The checked status about node's checkbox or radio when zTree was initialized. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                        1. Do not initialize it, it will be initialized when the node is initialized.

                        2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.

                        Default: the value of 'checked' attribute when zTree is initialized

                        Boolean Format

                        true means: the checkbox or radio is checked when zTree is initialized.

                        false means: the checkbox or radio is not checked when zTree is initialized.

                        Examples of treeNode

                        1. Get the original checked status of the first root node

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var checkedOld = treeObj.getNodes()[0].checkedOld;
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.children.html ================================================

                        Array(JSON)treeNode.children

                        Overview[ depends on jquery.ztree.core js ]

                        The data collections of node's child nodes.

                        1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.

                        2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.

                        Default: undefined

                        Array(JSON) Format

                        Standard JSON Data object

                        Examples of treeNode

                        1. Use the standard JSON data object.

                        var nodes = [
                        { "id":1, "name":"test1",
                        	children: [
                        	{ "id":3, "name":"test3"},
                        	{ "id":4, "name":"test4"},
                        	{ "id":5, "name":"test5"}
                        	]
                        },
                        { "id":2, "name":"test2"  }
                        ]

                        2. Get the first root node's child nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes()[0].children;
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.chkDisabled.html ================================================

                        BooleantreeNode.chkDisabled

                        Overview[ depends on jquery.ztree.excheck js ]

                        1. Set node's checkbox / radio to disabled. It is valid when [setting.check.enable = true]

                        2. zTree support identification string 'true' & 'false'.

                        3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.

                        4. When zTree initialize the nodes, if you need to the child nodes automatically inherit the 'chkDisabled' attribute, please see 'setting.check.chkDisabledInherit'.

                        Default: false

                        Boolean Format

                        true means: this node's checkbox / radio is disabled.

                        false means: this node's checkbox / radio is able.

                        Examples of treeNode

                        1. disable some node's checkbox / radio

                        var nodes = [
                        	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
                        	{ "id":2, "name":"test2", "chkDisabled":true},
                        	{ "id":3, "name":"test3"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.click.html ================================================

                        StringtreeNode.click

                        Overview[ depends on jquery.ztree.core js ]

                        Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.

                        Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.

                        Default: undefined

                        String Format

                        Standard javascript syntax, for example: alert ("test"); etc.

                        Examples of treeNode

                        1. When click this node, will alert msg.

                        var nodes = [
                        	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
                        	......
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.diy.html ================================================

                        ?treeNode.* DIY *

                        Overview[ depends on jquery.ztree.core js ]

                        Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.

                        Examples of treeNode

                        1. Use 'ename' attribute to save more info

                        var node = { "id":1, "name":"test1", "ename":"test eName"};
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.editNameFlag.html ================================================

                        BooleantreeNode.editNameFlag

                        Overview[ depends on jquery.ztree.exedit js ]

                        Used to save the node editing name status. It is valid when [setting.edit.enable = true]

                        Do not initialize or modify it, it is an internal argument.

                        Default: false

                        Boolean Format

                        true means: node is being edited.

                        false means: node is not being edited.

                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.getCheckStatus.html ================================================

                        Function()treeNode.getCheckStatus

                        Overview[ depends on jquery.ztree.excheck js ]

                        Get the node's half-checked status of checkbox or radio. It is valid when [setting.check.enable = true]

                        Do not initialize or modify it, it is created by the zTree.

                        Function Parameter Descriptions

                        ReturnJSON

                        {
                        	checked: true, //As same as 'treeNode.checked'
                        	half: true  //Rule the table below
                        }
                        setting.check.checkType = "checkbox"
                        treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                        --truetrue
                         
                        true-1falsefalse
                        true0falsetrue
                        true1falsetrue
                        true2falsefalse
                         
                        false-1falsefalse
                        false0falsefalse
                        false1falsetrue
                        false2falsetrue

                        setting.check.checkType = "radio"
                        treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                        --truetrue
                         
                        true-1falsefalse
                        true0falsefalse
                        true2falsetrue
                         
                        false-1falsefalse
                        false0falsefalse
                        false2falsetrue

                        Examples of treeNode

                        1. Get the first root node's half-checked status

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var halfCheck = treeObj.getNodes()[0].getCheckStatus();
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.getIndex.html ================================================

                        Function()treeNode.getIndex

                        Overview[ depends on jquery.ztree.core js ]

                        Get the treeNode's index in its parent node's children.

                        Do not initialize or modify it, it is created by the zTree.

                        Function Parameter Descriptions

                        ReturnNumber

                        the treeNode's index in its parent node's children. ( start at 0 )

                        Examples of treeNode

                        1. Get the first selected node's index.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getIndex();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.getNextNode.html ================================================

                        Function()treeNode.getNextNode

                        Overview[ depends on jquery.ztree.core js ]

                        Get the treeNode's next sibling node.

                        Do not initialize or modify it, it is created by the zTree.

                        Function Parameter Descriptions

                        ReturnJSON

                        JSON data object of the treeNode's next sibling node

                        If have not the next node, return null.

                        Examples of treeNode

                        1. Get the first selected node's next sibling node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getNextNode();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.getParentNode.html ================================================

                        Function()treeNode.getParentNode

                        Overview[ depends on jquery.ztree.core js ]

                        Get the treeNode's parent node.

                        Do not initialize or modify it, it is created by the zTree.

                        Function Parameter Descriptions

                        ReturnJSON

                        JSON data object of treeNode's parent node.

                        If treeNode is root, return null.

                        Examples of treeNode

                        1. Get the first selected node's parent node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getParentNode();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.getPath.html ================================================

                        Function()treeNode.getPath

                        Overview[ depends on jquery.ztree.core js ]

                        Get the treeNode's all parent nodes. (Include itself)

                        Do not initialize or modify it, it is created by the zTree.

                        Function Parameter Descriptions

                        ReturnArray (JSON)

                        Array of treeNode's all parent nodes. (Include itself)

                        Examples of treeNode

                        1. Get the first selected node's all parent nodes.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getPath();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.getPreNode.html ================================================

                        Function()treeNode.getPreNode

                        Overview[ depends on jquery.ztree.core js ]

                        Get the treeNode's previous sibling node.

                        Do not initialize or modify it, it is created by the zTree.

                        Function Parameter Descriptions

                        ReturnJSON

                        JSON data object of the treeNode's previous sibling node

                        If have not the previous node, return null.

                        Examples of treeNode

                        1. Get the first selected node's previous sibling node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var node = sNodes[0].getPreNode();
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.halfCheck.html ================================================

                        BooleantreeNode.halfCheck

                        Overview[ depends on jquery.ztree.excheck js ]

                        Force node checkBox / radio to the half-checked status. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                        1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.

                        2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.

                        3. zTree support identification string 'true' & 'false'.

                        Defaul: false

                        Boolean Format

                        true means: the checkbox or radio is half-checked when zTree is initialized.

                        false means: the half-checked status will be automatically calculated

                        Examples of treeNode

                        1. set the half-checked status when zTree is initialized

                        var nodes = [
                        { "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
                        { "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
                        { "id":3, "name":"test3", isParent:true, checked:true },
                        { "id":4, "name":"test4", isParent:true, checked:false }
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.icon.html ================================================

                        StringtreeNode.icon

                        Overview[ depends on jquery.ztree.core js ]

                        URL path of node's custom icon.

                        1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.

                        2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.

                        3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                        Default: undefined

                        String Format

                        Icon image url can be a relative path or absolute path.

                        If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                        Examples of treeNode

                        1. Set the custom icon

                        var nodes = [
                        	//Only show one icon when it is expanded or collapsed.
                        	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                        
                        	//Show two icons when it is expanded or collapsed.
                        	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                        
                        	//the custom icon for leaf node
                        	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.iconClose.html ================================================

                        StringtreeNode.iconClose

                        Overview[ depends on jquery.ztree.core js ]

                        URL path of parent node's custom icon when it is collapsed.

                        1. Only parent node support this attribute.

                        2. This attribute must be used simultaneously with 'iconOpen' attribute.

                        3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                        Default: undefined

                        String Format

                        Icon image url can be a relative path or absolute path.

                        If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                        Examples of treeNode

                        1. Set the custom icon

                        var nodes = [
                        	//Only show one icon when it is expanded or collapsed.
                        	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                        
                        	//Show two icons when it is expanded or collapsed.
                        	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                        
                        	//the custom icon for leaf node
                        	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.iconOpen.html ================================================

                        StringtreeNode.iconOpen

                        Overview[ depends on jquery.ztree.core js ]

                        URL path of parent node's custom icon when it is expanded.

                        1. Only parent node support this attribute.

                        2. This attribute must be used simultaneously with 'iconClose' attribute.

                        3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                        Default: undefined

                        String Format

                        Icon image url can be a relative path or absolute path.

                        If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                        Examples of treeNode

                        1. Set the custom icon

                        var nodes = [
                        	//Only show one icon when it is expanded or collapsed.
                        	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                        
                        	//Show two icons when it is expanded or collapsed.
                        	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                        
                        	//the custom icon for leaf node
                        	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.iconSkin.html ================================================

                        StringtreeNode.iconSkin

                        Overview[ depends on jquery.ztree.core js ]

                        The className of node's custom icon.

                        1. You need to modify the css, add the definition of className.

                        2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.

                        3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.

                        4. The 'iconSkin' support IE6 in zTree v3.x.

                        5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.

                        Default: undefined

                        String Format

                        The string about custom icon's className.

                        Examples of css & treeNode

                        1. Set the custom icon

                        css example:
                        .ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
                        
                        .ztree li span.button.diy02_ico_open{...}
                        .ztree li span.button.diy02_ico_close{...}
                        
                        .ztree li span.button.diy03_ico_docu{...}
                        
                        node's data example:
                        var nodes = [
                        	//Only show one icon when it is expanded or collapsed.
                        	{ name:"Parent Node 1", iconSkin:"diy01"},
                        
                        	//Show two icons when it is expanded or collapsed.
                        	{ name:"Parent Node 2", iconSkin:"diy02"},
                        
                        	//the custom icon for leaf node
                        	{ name:"Leaf Node", iconSkin:"diy03"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.isAjaxing.html ================================================

                        BooleantreeNode.isAjaxing

                        Overview[ depends on jquery.ztree.core js ]

                        Judge whether the node's child nodes being loaded asynchronously.

                        Do not initialize or modify it, it is created by the zTree.

                        Boolean Format

                        true means: the node's child nodes is being loaded asynchronously

                        false means: the node's child nodes is not being loaded asynchronously

                        Examples of treeNode

                        1. Judge whether the first selected node's child nodes being loaded asynchronously

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isAjaxing = sNodes[0].isAjaxing;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.isFirstNode.html ================================================

                        BooleantreeNode.isFirstNode

                        Overview[ depends on jquery.ztree.core js ]

                        Judge whether the node is the sibling nodes's first node.

                        If you use the 'exhide' pack, so this attribute will only support the node which be shown.

                        Do not initialize or modify it, it is created by the zTree.

                        Boolean Format

                        true means: the node is first node.

                        false means: the node is not first node.

                        If the node has been hidden, isFirstNode = false

                        Examples of treeNode

                        1. Judge whether the first selected node is the sibling nodes's first node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isFirstNode = sNodes[0].isFirstNode;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.isHidden.html ================================================

                        BooleantreeNode.isHidden

                        Overview[ depends on jquery.ztree.exhide js ]

                        Judge whether the node has been hidden.

                        1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.

                        2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.

                        Boolean Format

                        true means: this node is hidden.

                        false means: this node is shown.

                        Examples of treeNode

                        1. Judge whether the first root node has been hidden.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getNodes();
                        if (sNodes.length > 0) {
                        	var isHidden = sNodes[0].isHidden;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.isHover.html ================================================

                        BooleantreeNode.isHover

                        Overview[ depends on jquery.ztree.exedit js ]

                        Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.

                        Do not initialize or modify it, it is an internal argument.

                        Default: false

                        Boolean Format

                        true means: the node's DOM is in hover.

                        false means: the node's DOM is not in hover.

                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.isLastNode.html ================================================

                        BooleantreeNode.isLastNode

                        Overview[ depends on jquery.ztree.core js ]

                        Judge whether the node is the sibling nodes's last node.

                        If you use the 'exhide' pack, so this attribute will only support the node which be shown.

                        Do not initialize or modify it, it is created by the zTree.

                        Boolean Format

                        true means: the node is last node.

                        false means: the node is not last node.

                        If the node has been hidden, isLastNode = false

                        Examples of treeNode

                        1. Judge whether the first selected node is the sibling nodes's last node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isLastNode = sNodes[0].isLastNode;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.isParent.html ================================================

                        BooleantreeNode.isParent

                        Overview[ depends on jquery.ztree.core js ]

                        Judge whether the node is the parent node.

                        1. When zTree initialize the node data, the node which has children is set to true, otherwise false.

                        2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.

                        3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

                        Boolean Format

                        true means: the node is parent node.

                        false means: the node is not parent node.

                        Examples of treeNode

                        1. Judge whether the first selected node is the parent node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isParent = sNodes[0].isParent;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.level.html ================================================

                        NumbertreeNode.level

                        Overview[ depends on jquery.ztree.core js ]

                        The level of node

                        Do not initialize or modify it, it is created by the zTree.

                        Number Format

                        The root node's level = 0, and next level = 1, ...

                        Examples of treeNode

                        1. Get the first selected node's level

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var level = sNodes[0].level;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.name.html ================================================

                        StringtreeNode.name

                        Overview[ depends on jquery.ztree.core js ]

                        The node's name

                        1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.

                        Default: undenfined

                        String Format

                        String object. The HTML special characters are escaped

                        Examples of treeNode

                        1. Set node's name to 'test1', 'test2', 'test3'

                        var nodes = [
                        	{ "id":1, "name":"test1"},
                        	{ "id":2, "name":"test2"},
                        	{ "id":3, "name":"test3"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.nocheck.html ================================================

                        BooleantreeNode.nocheck

                        Overview[ depends on jquery.ztree.excheck js ]

                        1. Set node to hide the checkbox or radio. It is valid when [setting.check.enable = true]

                        2. zTree support identification string 'true' & 'false'.

                        Default: false

                        Boolean Format

                        true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.

                        false means: the node show the checkbox or radio.

                        Examples of treeNode

                        1. Hide some node's checkbox / radio

                        var nodes = [
                        	{ "id":1, "name":"test1", "nocheck":true},
                        	{ "id":2, "name":"test2"},
                        	{ "id":3, "name":"test3"}
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.open.html ================================================

                        BooleantreeNode.open

                        Overview[ depends on jquery.ztree.core js ]

                        Used to record the parent node's expand status.

                        1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.

                        2. Leaf node's 'open' attribute is false.

                        3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

                        4. When setting.async.enable = false, the parent node will be expanded which have no child nodes and its attribute 'open' is true. (v3.5.15+)

                        Default: false

                        Boolean Format

                        true means: the parent node is expanded.

                        false means: the parent node is collapsed.

                        Examples of treeNode

                        1. Get the first selected node's expand status.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var isOpen = sNodes[0].open;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.parentTId.html ================================================

                        StringtreeNode.parentTId

                        Overview[ depends on jquery.ztree.core js ]

                        The unique identifier of node's parent node.

                        1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.

                        2. Do not initialize or modify it, it is created by the zTree.

                        String Format

                        String object of node's parent node's tId. please see API about 'treeNode.tId'

                        If treeNode is root node, parentTId is null.

                        Examples of treeNode

                        1. Get the first selected node's parent node's tId

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var parentTId = sNodes[0].parentTId;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.tId.html ================================================

                        StringtreeNode.tId

                        Overview[ depends on jquery.ztree.core js ]

                        The unique identifier of node.

                        Do not initialize or modify it, it is created by the zTree.

                        String Format

                        tId rules: setting.treeId + "_" + zTree counter

                        Examples of treeNode

                        1. Get the first selected node's tId

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var tId = sNodes[0].tId;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.target.html ================================================

                        StringtreeNode.target

                        Overview[ depends on jquery.ztree.core js ]

                        Used to set the target where the node is clicked to open url. It is valid when [treeNode.url exists]

                        Default: undefined

                        String Format

                        As same as <a> tag's 'target' attribute. e.g. '_blank', '_self' or other window name.

                        if this attribute is omitted, zTree default set it to '_blank'

                        Exmaples of treeNode

                        1. Set target is '_blank'

                        var nodes = [
                        	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
                        	......
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.url.html ================================================

                        StringtreeNode.url

                        Overview[ depends on jquery.ztree.core js ]

                        The URL of node link

                        1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.

                        2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.

                        Default: undefined

                        String Format

                        As same as <a> tag's 'href' attribute.

                        Examples of treeNode

                        1. Set the URL is 'g.cn'

                        var nodes = [
                        	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
                        	......
                        ]
                        ================================================ FILE: lib/zTree_v3/api/en/treeNode.zAsync.html ================================================

                        BooleantreeNode.zAsync

                        Overview[ depends on jquery.ztree.core js ]

                        Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.

                        Do not initialize or modify it, it is created by the zTree.

                        Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)

                        Boolean Format

                        true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.

                        false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.

                        This attribute will not effect to 'reAsyncChildNodes()' method

                        Examples of treeNode

                        1. Judge whether the first selected node's child nodes has been loaded asynchronously

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var sNodes = treeObj.getSelectedNodes();
                        if (sNodes.length > 0) {
                        	var zAsync = sNodes[0].zAsync;
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.addNodes.html ================================================

                        Function(parentNode, [index], newNodes, isSilent)zTreeObj.addNodes

                        Overview[ depends on jquery.ztree.core js ]

                        Add nodes

                        In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        parentNodeJSON

                        The additional node's parent node. If additional node is root node, please the parentNode is null.

                        Please ensure this node data object is a data object within zTree.

                        [index]Number

                        The index of the parentNode's children where the newnodes will be added (the value start from 0)

                        When index = -1, the newnodes will be added to the last

                        This parameter can be ignore.

                        v3.5.19+

                        newNodesJSON / Array(JSON)

                        The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'

                        1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.

                        2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.

                        isSilentBoolean

                        Set whether to automatically expand the parent node, after add nodes.

                        isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

                        Return Array(JSON)

                        return the new nodes in zTree

                        If the newNodes is single data object, the return value is a array with length is 1.

                        Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.

                        Examples of function

                        1. Add one root node to zTree which id is 'tree'

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var newNode = {name:"newNode1"};
                        newNode = treeObj.addNodes(null, newNode);
                        

                        2. Add three root nodes to zTree which id is 'tree'

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
                        newNodes = treeObj.addNodes(null, newNodes);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.cancelEditName.html ================================================

                        Function(newName)zTreeObj.cancelEditName

                        Overview[ depends on jquery.ztree.exedit js ]

                        Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        newNameString

                        Re given a new name

                        If this parameter is omitted, then restore the original name.

                        Return none

                        no return value

                        Examples of function

                        1. Cancel edit name, and restore the original name.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.cancelEditName();
                        

                        2. Cancel edit name , and set the new name.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.cancelEditName("test_new_name");
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.cancelSelectedNode.html ================================================

                        Function(treeNode)zTreeObj.cancelSelectedNode

                        Overview[ depends on jquery.ztree.core js ]

                        To cancel the selected node.

                        zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node which need to cancel selected.

                        Please ensure that this data object is an internal node data object in zTree.

                        If you omit this parameter, zTree will cancel all of the selected nodes.

                        Return none

                        no return value

                        Examples of function

                        1. Cancel all of the selected nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.cancelSelectedNode();
                        

                        2. Cancel the first node of the selected nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) { 
                        	treeObj.cancelSelectedNode(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.checkAllNodes.html ================================================

                        Function(checked)zTreeObj.checkAllNodes

                        Overview[ depends on jquery.ztree.excheck js ]

                        Check or unCheck all nodes which have been initialized. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                        This method does not trigger 'beforeCheck' or 'onCheck' callback function.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        checkedBoolean

                        checked = true means: check all nodes.

                        checked = false means: uncheck all nodes.

                        Don't affect the node which 'nocheck' attribute is true.

                        Don't affect the node is not loaded.

                        Return none

                        no return value

                        Examples of function

                        1. check all nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.checkAllNodes(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.checkNode.html ================================================

                        Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

                        Overview[ depends on jquery.ztree.excheck js ]

                        Check or unCheck a single node. It is valid when [setting.check.enable = true]

                        Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node which need to be checked or unchecked.

                        Please ensure that this data object is an internal node data object in zTree.

                        checkedBoolean

                        checked = true means: check node.

                        checked = false means: uncheck node.

                        If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.

                        Don't affect the node which 'nocheck' attribute is true.

                        checkTypeFlagBoolean

                        checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

                        checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

                        When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.

                        Don't affect the parent and child nodes which 'nocheck' attribute is true.

                        callbackFlagBoolean

                        callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.

                        callbackFlag = false means: call this method, will not trigger callback.

                        If this parameter is omitted, it is same as 'callbackFlag = false'

                        Return none

                        no return value

                        Examples of function

                        1. check the selected nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        for (var i=0, l=nodes.length; i < l; i++) {
                        	treeObj.checkNode(nodes[i], true, true);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.copyNode.html ================================================

                        Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

                        Overview[ depends on jquery.ztree.exedit js ]

                        Copy the node

                        When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        targetNodeJSON

                        JSON data object of the node to be target.

                        If copy the node to root node, please set the 'targetNode' to null.

                        Please ensure that this data object is an internal node data object in zTree.

                        treeNodeJSON

                        JSON data object of the node to be copied.

                        Please ensure that this data object is an internal node data object in zTree.

                        moveTypeString

                        Copied to the target node's relative position.

                        "inner" means: to be taregetNode's child node.

                        "prev" means: to be taregetNode's previous sibling node.

                        "next" means: to be taregetNode's next sibling node.

                        isSilentBoolean

                        After copy the node, whether to automatically expand its parent node.

                        isSilent = true means: don't expand its parent node.

                        isSilent = false or omit this parameter means: expand its parent node.

                        Return JSON

                        return the new node in zTree

                        Note: the node data JSON object in the return value is not equal to the treeNode.

                        Examples of function

                        1. Copy the second root node to the first root node's child node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.copyNode(nodes[0], nodes[1], "inner");
                        

                        2. Copy the second root node to the first root node's previous sibling node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.copyNode(nodes[0], nodes[1], "before");
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.destroy.html ================================================

                        Function(treeId)zTreeObj.destroy

                        Overview[ depends on jquery.ztree.core js ]

                        From zTree v3.4, zTree support the method for destruction.

                        1. This method can destroy the zTreeObj's zTree.

                        2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.

                        3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

                        Function Parameter Descriptions

                        Return none

                        no return value

                        Examples of function

                        1. destroy the zTree which its id is 'treeDemo'

                        var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
                        zTreeObj.destroy();
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.editName.html ================================================

                        Function(treeNode)zTreeObj.editName

                        Overview[ depends on jquery.ztree.exedit js ]

                        Start editing the node's name.

                        1. If need to cancel editing the node's name, please use cancelEditName(newName) method.

                        2. This method can be used to set the editing node‘s input box to get focus.

                        3. Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node to be editing name

                        Please ensure that this data object is an internal node data object in zTree.

                        Retrun none

                        no return value

                        Examples of function

                        1. Start editing the first selected node's name.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.editName(nodes[0]);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.expandAll.html ================================================

                        Function(expandFlag)zTreeObj.expandAll

                        Overview[ depends on jquery.ztree.core js ]

                        Expand or collapse all nodes.

                        This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        expandFlagBoolean

                        expandFlag = true means: expand all nodes.

                        expandFlag = false means: collapse all nodes.

                        Return Boolean

                        return the result of expand or collapse.

                        true means: expand all nodes

                        false means: collapse all nodes

                        null means: have no parent node to expand or collapse.

                        Examples of function

                        1. Expand all nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.expandAll(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.expandNode.html ================================================

                        Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

                        Overview[ depends on jquery.ztree.core js ]

                        Expand or collapse single node.

                        Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node to be expanded or collapsed

                        Please ensure that this data object is an internal node data object in zTree.

                        expandFlagBoolean

                        expandFlag = true means: expand the node.

                        expandFlag = false means: collapse the node.

                        If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.

                        sonSignBoolean

                        sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.

                        sonSign = false means: only expand or collapse this node.

                        When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.

                        If this parameter is omitted, it is same as 'sonSign = false'.

                        focusBoolean

                        focus = true means: after expand or collapse, set the focus of this node for view.

                        focus = false means: after expand or coolapse, don't set the focus of this node.

                        If this parameter is omitted, it is same as 'focus = true'.

                        callbackFlagBoolean

                        callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.

                        callbackFlag = false means: call this method, will not trigger callback.

                        If this parameter is omitted, it is same as 'callbackFlag = false'

                        Return Boolean

                        return the result of expand or collapse.

                        true means: expand node

                        false means: collapse node

                        null means: the node is not parent node.

                        Examples of function

                        1. Expand the first selected node. (and expand this node's child nodes)

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	treeObj.expandNode(nodes[0], true, true, true);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getChangeCheckedNodes.html ================================================

                        Function()zTreeObj.getChangeCheckedNodes

                        Overview[ depends on jquery.ztree.excheck js ]

                        Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when [setting.check.enable = true]

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        Return Array(JSON)

                        return the collection of nodes which be changed checked status (Array)

                        If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).

                        Examples of function

                        1. Get the collection of nodes which be changed checked status

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getChangeCheckedNodes();
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getCheckedNodes.html ================================================

                        Function(checked)zTreeObj.getCheckedNodes

                        Overview[ depends on jquery.ztree.excheck js ]

                        Get the collection of nodes which be checked or unchecked. It is valid when [setting.check.enable = true]

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        checkedBoolean

                        checked = true means: get the collection of nodes which be checked

                        checked = false means: get the collection of nodes which be unchecked

                        If this parameter is omitted, it is same as 'checked = true'

                        Don't get the nodes which 'nocheck' attribute is true.

                        Return Array(JSON)

                        return the collection of nodes which be checked or unchecked. (Array)

                        Examples of function

                        1. Get the collection of nodes which be checked.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getCheckedNodes(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getNodeByParam.html ================================================

                        Function(key, value, parentNode)zTreeObj.getNodeByParam

                        Overview[ depends on jquery.ztree.core js ]

                        According to the node data attribute, search the node which exactly matches, and get the JSON object of node.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        keyString

                        The name of attribute which need to exactly match

                        value?

                        The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

                        parentNodeJSON

                        The search range, you can search node from a parent node's child nodes.

                        If this parameter is omitted, zTree will search node from all nodes.

                        Return JSON

                        JSON data object of the node which be searched.

                        1. If search none node, return null.

                        2. If there are many nodes can be searched, return the first node.

                        Examples of function

                        1. Search the node which its 'id' attribute is 1.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodeByParam("id", 1, null);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getNodeByTId.html ================================================

                        Function(tId)zTreeObj.getNodeByTId

                        Overview[ depends on jquery.ztree.core js ]

                        According the unique identifier tId of zTree, quick get the node's JSON data object.

                        Get the node from the cache, don't need to search from all nodes.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        tIdString

                        The unique identifier of node.

                        Return JSON

                        JSON data object of the node which be searched.

                        If no result, return null.

                        Examples of function

                        1. 1. Search the node which its 'tId' attribute is 'tree_10'

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodeByTId("tree_10");
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getNodeIndex.html ================================================

                        Function(treeNode)zTreeObj.getNodeIndex

                        Overview[ depends on jquery.ztree.core js ]

                        Get the node's index in the same level nodes. (start from 0)

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node which need to get index.

                        Please ensure that this data object is an internal node data object in zTree.

                        Return Number

                        return the index. (start from 0)

                        If there is no this node, return -1.

                        Examples of function

                        1. Get the first selected node's index in the same level nodes.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	var index = treeObj.getNodeIndex(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getNodes.html ================================================

                        Function()zTreeObj.getNodes

                        Overview[ depends on jquery.ztree.core js ]

                        Get all of the nodes in zTree

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        Return Array(JSON)

                        return all of the nodes

                        1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);

                        2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.

                        3. For the asynchronous loading mode, can't get the nodes which are yet loaded.

                        Examples of function

                        1. Get all of the nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getNodesByFilter.html ================================================

                        Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

                        Overview[ depends on jquery.ztree.core js ]

                        Search the single node's data or collection of nodes's data by custom rules.

                        Can be customized complex search rules.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        filterFunction

                        Custom search function. e.g. function filter(node) {...}

                        filter's parameter: node (node's data -- JSON)

                        filter's return: boolean (true means: match the rules; false means: don't match the rules)

                        isSingleBoolean

                        isSingle = true means: search only one node

                        isSingle = false means: search the array of the nodes

                        If this parameter is omitted, as same as false

                        parentNodeJSON

                        The search range, you can search node from a parent node's child nodes.

                        If this parameter is omitted, zTree will search node from all nodes.

                        invokeParamanything

                        Custom data object by user, used to calculate in the filter function.

                        Return Array(JSON) / JSON

                        If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.

                        If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].

                        Examples of function

                        1. Search the nodes which their 'name' contains 'test' and 'level' is 2.

                        function filter(node) {
                            return (node.level == 2 && node.name.indexOf("test")>-1);
                        }
                        ......
                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodesByFilter(filter, true); // search only one node
                        var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getNodesByParam.html ================================================

                        Function(key, value, parentNode)zTreeObj.getNodesByParam

                        Overview[ depends on jquery.ztree.core js ]

                        According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        keyString

                        The name of attribute which need to exactly match

                        value?

                        The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

                        parentNodeJSON

                        The search range, you can search node from a parent node's child nodes.

                        If this parameter is omitted, zTree will search node from all nodes.

                        Return Array(JSON)

                        The JSON data objects collection of the nodes which be searched.

                        If search none node, return [ ].

                        Examples of function

                        1. Search the nodes which their 'name' attribute is 'test'.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodesByParam("name", "test", null);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getNodesByParamFuzzy.html ================================================

                        Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

                        Overview[ depends on jquery.ztree.core js ]

                        According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        keyString

                        The name of attribute which need to fuzzy match

                        valueString

                        The value which need to fuzzy match.

                        The type of value can only be String

                        parentNodeJSON

                        The search range, you can search node from a parent node's child nodes.

                        If this parameter is omitted, zTree will search node from all nodes.

                        Return Array(JSON)

                        The JSON data objects collection of the nodes which be searched.

                        If search none node, return [ ].

                        Examples of function

                        1. Search the nodes which their 'name' attribute contains the string 'test'.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.getSelectedNodes.html ================================================

                        Function()zTreeObj.getSelectedNodes

                        Overview[ depends on jquery.ztree.core js ]

                        Get the JSON data objects collection of the selected nodes in zTree.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        Return Array(JSON)

                        The JSON data objects collection of the selected nodes.

                        Examples of function

                        1. get the selected nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.hideNode.html ================================================

                        Function(treeNode)zTreeObj.hideNode

                        Overview[ depends on jquery.ztree.exhide js ]

                        To hide any node.

                        1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                        2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                        3. Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node to be hidden

                        Please ensure that this data object is an internal node data object in zTree.

                        Retrun none

                        no return value

                        Examples of function

                        1. hide the first root node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.hideNode(nodes[0]);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.hideNodes.html ================================================

                        Function(treeNodes)zTreeObj.hideNodes

                        Overview[ depends on jquery.ztree.exhide js ]

                        To hide a group of nodes.

                        1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                        2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                        3. Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodesArray(JSON)

                        the array of the nodes which will be hidden

                        Please ensure that this data object is an internal node data object in zTree.

                        Retrun none

                        no return value

                        Examples of function

                        1. hide the first root node's children.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.hideNodes(nodes[0].children);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.moveNode.html ================================================

                        Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

                        Overview[ depends on jquery.ztree.exedit js ]

                        Move the node

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        targetNodeJSON

                        JSON data object of the node to be target.

                        If move the node to root node, please set the 'targetNode' to null.

                        Please ensure that this data object is an internal node data object in zTree.

                        treeNodeJSON

                        JSON data object of the node to be moved.

                        Please ensure that this data object is an internal node data object in zTree.

                        moveTypeString

                        Moved to the target node's relative position.

                        "inner" means: to be taregetNode's child node.

                        "prev" means: to be taregetNode's previous sibling node.

                        "next" means: to be taregetNode's next sibling node.

                        isSilentBoolean

                        After move the node, whether to automatically expand its parent node.

                        isSilent = true means: don't expand its parent node.

                        isSilent = false or omit this parameter means: expand its parent node.

                        Return JSON

                        return the node which be moved, it is same as the 'treeNode' parameter.

                        Return null means: move node has failed. The cause:
                         1. the targetNode is the treeNode's parent node, and moveType = "inner"
                         2. the targetNode is the treeNode's child node.

                        Examples of function

                        1. Move the second root node to the first root node's child node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.moveNode(nodes[0], nodes[1], "inner");
                        

                        2. Move the second root node to the first root node's previous sibling node.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        treeObj.moveNode(nodes[0], nodes[1], "prev");
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.reAsyncChildNodes.html ================================================

                        Function(parentNode, reloadType, isSilent, callback)zTreeObj.reAsyncChildNodes

                        Overview[ depends on jquery.ztree.core js ]

                        Forced asynchronous loading child nodes of parent node. It is valid when [setting.async.enable = true]

                        You can use this method to reload child nodes.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        parentNodeJSON

                        The parent node which will asynchronous loading child nodes.

                        1. If parentNode = null, it is same as reload root nodes.

                        2. If parentNode.isParent = false, don't load nodes.

                        3. Please ensure that this data object is an internal node data object in zTree.

                        reloadTypeString

                        reloadType = "refresh" means: reload child nodes.

                        reloadType != "refresh" means: append to load child nodes.

                        isSilentBoolean

                        Set whether to automatically expand the parent node, after load nodes.

                        isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

                        callbackfunction

                        zTree will trigger this callback() function after reAsyncChildNodes()

                        Return none

                        no return value

                        Examples of function

                        1. reload root nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.reAsyncChildNodes(null, "refresh");
                        

                        2. reload the first selected node's child nodes.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.reAsyncChildNodesPromise.html ================================================

                        Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodesPromise

                        Overview[ depends on jquery.ztree.core js ]

                        Forced asynchronous loading child nodes of parent node ( for ES6 Promise ). It is valid when [setting.async.enable = true]

                        You can use this method to reload child nodes.

                        Please use zTree object to executing the method.

                        v3.5.29+

                        Function Parameter Descriptions

                        parentNodeJSON

                        The parent node which will asynchronous loading child nodes.

                        1. If parentNode = null, it is same as reload root nodes.

                        2. If parentNode.isParent = false, don't load nodes.

                        3. Please ensure that this data object is an internal node data object in zTree.

                        reloadTypeString

                        reloadType = "refresh" means: reload child nodes.

                        reloadType != "refresh" means: append to load child nodes.

                        isSilentBoolean

                        Set whether to automatically expand the parent node, after load nodes.

                        isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

                        Return ES6 Promise

                        Promise Object of ES6

                        Examples of function

                        1. reload root nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.reAsyncChildNodes(null, "refresh");
                        

                        2. reload the first selected node's child nodes.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes.length>0) {
                        	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.refresh.html ================================================

                        Function()zTreeObj.refresh

                        Overview[ depends on jquery.ztree.core js ]

                        Refresh zTree

                        If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        Return none

                        no return value

                        Examples of function

                        1. refresh zTree

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.refresh();
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.removeChildNodes.html ================================================

                        Function(parentNode)zTreeObj.removeChildNodes

                        Overview[ depends on jquery.ztree.core js ]

                        Remove a parent node's child nodes

                        1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.

                        2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.

                        3. This method does not trigger any callback function.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        parentNodeJSON

                        The parent node which need to clear its child nodes.

                        Please ensure that this data object is an internal node data object in zTree.

                        Return Array(JSON)

                        Return the parent node's child nodes which have been removed. If has no child nodes, return null.

                        Examples of function

                        1. Remove the first selected node's child nodes

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        if (nodes && nodes.length>0) {
                        	treeObj.removeChildNodes(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.removeNode.html ================================================

                        Function(treeNode, callbackFlag)zTreeObj.removeNode

                        Overview[ depends on jquery.ztree.core js ]

                        Remove a node

                        Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node to be removed.

                        Please ensure that this data object is an internal node data object in zTree.

                        callbackFlagBoolean

                        callbackFlag = true means: call this method, will trigger 'beforeRemove' & 'onRemove' callback.

                        callbackFlag = false means: call this method, will not trigger callback.

                        If this parameter is omitted, it is same as 'callbackFlag = false'

                        Return none

                        no return value

                        Examples of function

                        1. Remove all of the selected nodes.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        for (var i=0, l=nodes.length; i < l; i++) {
                        	treeObj.removeNode(nodes[i]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.selectNode.html ================================================

                        Function(treeNode, addFlag, isSilent)zTreeObj.selectNode

                        Overview[ depends on jquery.ztree.core js ]

                        Select a node

                        zTree v3.x supports select multiple nodes.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node to be selected.

                        Please ensure that this data object is an internal node data object in zTree.

                        addFlagBoolean

                        addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.

                        addFlag = false (default) means: select single node, prior the selected node is deselected.

                        If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node

                        isSilent = true means: when you select node, zTree will not scroll the node into view.

                        isSilent = false (default) means: when you select node, zTree will scroll the node into view.

                        (v3.5.23+)

                        Return none

                        no return value

                        Exampleso of function

                        1. Select single node which be first selected.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        if (nodes.length>0) {
                        	treeObj.selectNode(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.setChkDisabled.html ================================================

                        Function(node, disabled, inheritParent, inheritChildren)zTreeObj.setChkDisabled

                        Overview[ depends on jquery.ztree.excheck js ]

                        Set the node's checkbox or radio is disabled or remove disabled. It is valid when [setting.check.enable = true]

                        1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.

                        2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.

                        3. Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node which need to be checked or unchecked.

                        Please ensure that this data object is an internal node data object in zTree.

                        disabledBoolean

                        disabled = true means: the node's checkbox / radio is disabled.

                        disabled = false means: the node's checkbox / radio is removed disabled.

                        If this parameter is omitted, it is same as disabled = false

                        Don't affect the node which 'nocheck' attribute is true.

                        inheritParentBoolean

                        inheritParent = true means: all parent nodes's disabled status will be same as this node.

                        inheritParent = false means: all parent nodes's disabled status will be not affected.

                        If this parameter is omitted, it is same as 'inheritParent = false'

                        inheritChildrenBoolean

                        inheritChildren = true means: all child nodes's disabled status will be same as this node.

                        inheritChildren = false means: all child nodes's disabled status will be not affected.

                        If this parameter is omitted, it is same as 'inheritChildren = false'

                        Return none

                        no return value

                        Examples of function

                        1. Set the selected nodes's checkbox / radio to disable.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getSelectedNodes();
                        for (var i=0, l=nodes.length; i < l; i++) {
                        	treeObj.setChkDisabled(nodes[i], true);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.setEditable.html ================================================

                        Function(editable)zTreeObj.setEditable

                        Overview[ depends on jquery.ztree.exedit js ]

                        Edit mode and normal mode switch.

                        To use edit mode, please set the attributes in 'setting.edit'

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        editableBoolean

                        true means: set zTree to edit mode.

                        false means: set zTree to normal mode.

                        Return none

                        no return value

                        Examples of function

                        1. set zTree to edit mode

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        treeObj.setEditable(true);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.setting.html ================================================

                        JSONzTreeObj.setting

                        Overview[ depends on jquery.ztree.core js ]

                        The configuration data of zTree, refer to "setting details"

                        zTree v3.x to cancel the original operation setting method, so users can modify.

                        Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.

                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.showNode.html ================================================

                        Function(treeNode)zTreeObj.showNode

                        Overview[ depends on jquery.ztree.exhide js ]

                        To hide any node which be hidden.

                        1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                        2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                        3. Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodesArray(JSON)

                        JSON data object of the node to be shown

                        Please ensure that this data object is an internal node data object in zTree.

                        Retrun none

                        no return value

                        Examples of function

                        1. show someone node which be hidden.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var node = treeObj.getNodeByParam("isHidden", true);
                        if (node) {
                          treeObj.showNode(node);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.showNodes.html ================================================

                        Function(treeNodes)zTreeObj.showNodes

                        Overview[ depends on jquery.ztree.exhide js ]

                        To show a group of nodes which be hidden.

                        1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                        2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                        3. Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodesArray(JSON)

                        the array of the nodes which will be shown

                        Please ensure that this data object is an internal node data object in zTree.

                        Retrun none

                        no return value

                        Examples of function

                        1. show all of the nodes which be hidden.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodesByParam("isHidden", true);
                        treeObj.showNodes(nodes);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.transformToArray.html ================================================

                        Function(treeNodes)zTreeObj.transformToArray

                        Overview[ depends on jquery.ztree.core js ]

                        Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodesArray(JSON) / JSON

                        JSON data object of the node which need to be transformed.

                        or JSON data objects collection of the nodes which need to be transformed.

                        Return Array(JSON)

                        The JSON data objects array of the nodes which be transformed.

                        Examples of function

                        1. Transform the zTree nodes data into simple array.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.transformToArray(treeObj.getNodes());
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.transformTozTreeNodes.html ================================================

                        Function(simpleNodes)zTreeObj.transformTozTreeNodes

                        Overview[ depends on jquery.ztree.core js ]

                        Transform the simple array into zTree nodes data.

                        If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        simpleNodesArray(JSON) / JSON

                        JSON data object of the node which need to be transformed.

                        or JSON data objects array of the nodes which need to be transformed.

                        Return Array(JSON)

                        Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.

                        If simpleNodes is a single JSON, so the return array's length is 1.

                        Examples of function

                        1. Transform the simple array data into zTree nodes format.

                        var setting = {
                        	data: {
                        		simpleData: {
                        			enable: true,
                        			idKey: "id",
                        			pIdKey: "pId",
                        			rootPId: 0
                        		}
                        	}
                        };
                        var simpleNodes = [
                            {"id":1, "pId":0, "name":"test1"},
                            {"id":11, "pId":1, "name":"test11"},
                            {"id":12, "pId":1, "name":"test12"},
                            {"id":111, "pId":11, "name":"test111"}
                        ];
                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.transformTozTreeNodes(simpleNodes);
                        
                        ================================================ FILE: lib/zTree_v3/api/en/zTreeObj.updateNode.html ================================================

                        Function(treeNode, checkTypeFlag)zTreeObj.updateNode

                        Overview[ depends on jquery.ztree.core js ]

                        Update node data. Primarily used to update the node's DOM.

                        1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.

                        2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.

                        Please use zTree object to executing the method.

                        Function Parameter Descriptions

                        treeNodeJSON

                        JSON data object of the node which need to update.

                        Please ensure that this data object is an internal node data object in zTree.

                        checkTypeFlagBoolean

                        checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

                        checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

                        This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'

                        Don't affect the parent and child nodes which 'nocheck' attribute is true.

                        Return none

                        no return value

                        Examples of function

                        1. Modify the first selected node's name, and update it.

                        var treeObj = $.fn.zTree.getZTreeObj("tree");
                        var nodes = treeObj.getNodes();
                        if (nodes.length>0) {
                        	nodes[0].name = "test";
                        	treeObj.updateNode(nodes[0]);
                        }
                        
                        ================================================ FILE: lib/zTree_v3/css/awesomeStyle/awesome.css ================================================ /*------------------------------------- zTree Style using fontawesome instead of images version: 1.1 author: Mike King email: mikkelking @ hotmail . com website: http://code.google.com/p/jquerytree/ -------------------------------------*/ /* Definitions ----------------------*/ /* End of Definitions ---------------*/ /* Imports -------------------------*/ /* End of Imports ------------------*/ .ztree * { padding: 0; margin: 0; font-size: 12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif; background-color: #af0000; } .ztree { margin: 0; padding: 5px; color: #ffffff; background-color: #af0000; } .ztree li { padding: 0; margin: 0; list-style: none; line-height: 17px; text-align: left; white-space: nowrap; outline: 0; } .ztree li ul { margin: 0px; padding: 0 0 0 18px; } .ztree li a { padding-right: 3px; margin: 0; cursor: pointer; height: 17px; color: #ffffff; background-color: transparent; text-decoration: none; vertical-align: top; display: inline-block; } .ztree li a input.rename { height: 14px; width: 80px; padding: 0; margin: 0; color: #af0000; background-color: #ffffff; font-size: 12px; border: 1px #585956 solid; *border: 0px; } .ztree li a:hover { text-decoration: underline; } .ztree li a.curSelectedNode { padding-top: 0px; background-color: #af4040; color: #ffff00; height: 17px; opacity: 0.8; } .ztree li a.curSelectedNode_Edit { padding-top: 0px; background-color: transparent; color: #ffff00; height: 17px; border: 1px #666 solid; opacity: 0.8; } .ztree li a.tmpTargetNode_inner { padding-top: 0px; background-color: #aaa; color: #ffff00; height: 17px; border: 1px #666 solid; opacity: 0.8; filter: alpha(opacity=80); } .ztree li span { line-height: 17px; margin-right: 2px; background-color: transparent; } .ztree li span.button { line-height: 0; margin: 0; padding: 0; width: 15px; height: 17px; display: inline-block; vertical-align: top; border: 0px solid; cursor: pointer; outline: none; background-color: transparent; background-repeat: no-repeat; background-attachment: scroll; } .ztree li span.button::before { color: #ffffff; font-family: FontAwesome; padding-top: 10px; } .ztree li span.button.chk { margin: 0px; cursor: auto; width: 12px; display: inline-block; padding-top: 10px; padding-left: 2px; } .ztree li span.button.chk.checkbox_false_full::before { content: "\f096"; } .ztree li span.button.chk.checkbox_false_full_focus::before { content: "\f096"; color: #ffff00; } .ztree li span.button.chk.checkbox_false_part::before { content: "\f096"; color: #aaaaaa; } .ztree li span.button.chk.checkbox_false_part_focus::before { content: "\f096"; color: #cad96c; } .ztree li span.button.chk.checkbox_false_disable::before { content: "\f096"; color: #808080; } .ztree li span.button.chk.checkbox_true_full::before { content: "\f046"; } .ztree li span.button.chk.checkbox_true_full_focus::before { content: "\f046"; } .ztree li span.button.chk.checkbox_true_part::before { content: "\f14a"; } .ztree li span.button.chk.checkbox_true_part_focus::before { content: "\f14a"; color: #ffff00; } .ztree li span.button.chk.checkbox_true_full_focus::before { content: "\f046"; color: #ffff00; } .ztree li span.button.chk.checkbox_true_part::before { content: "\f046"; color: #aaaaaa; } .ztree li span.button.chk.checkbox_true_part_focus::before { content: "\f046"; color: #cad96c; } .ztree li span.button.chk.checkbox_true_disable::before { content: "\f046"; color: #808080; } .ztree li span.button.chk.radio_false_full::before { content: "\f10c"; } .ztree li span.button.chk.radio_false_full_focus::before { content: "\f10c"; color: #ffff00; } .ztree li span.button.chk.radio_false_part::before { content: "\f10c"; color: #aaaaaa; } .ztree li span.button.chk.radio_false_part_focus::before { content: "\f10c"; color: #ffff00; } .ztree li span.button.chk.radio_false_disable::before { content: "\f1db"; color: #808080; } .ztree li span.button.chk.radio_true_full::before { content: "\f192"; } .ztree li span.button.chk.radio_true_full_focus::before { content: "\f192"; color: #ffff00; } .ztree li span.button.chk.radio_true_part::before { content: "\f192"; color: #aaaaaa; } .ztree li span.button.chk.radio_true_part_focus::before { content: "\f192"; color: #aaaaaa; } .ztree li span.button.chk.radio_true_disable::before { content: "\f1db"; color: #808080; } .ztree li span.button.switch { width: 15px; height: 17px; } .ztree li span.button.root_open::before { content: "\f078"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.root_close::before { content: "\f115"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.roots_open::before { content: "\f078"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.roots_close::before { content: "\f054"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.center_open::before { content: "\f078"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.center_close::before { content: "\f054"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.bottom_open::before { content: "\f078"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.bottom_close::before { content: "\f054"; padding-top: 10px; padding-left: 2px; display: inline-block; } .ztree li span.button.root_docu { background: none; } .ztree li span.button.roots_docu::before { content: "\f022"; padding-left: 2px; display: inline-block; color: #ffffff; } .ztree li span.button.center_docu::before { padding-top: 10px; padding-left: 2px; display: inline-block; color: #ffffff; } .ztree li span.button.bottom_docu::before { padding-top: 10px; padding-left: 2px; display: inline-block; color: #ffffff; } .ztree li span.button.noline_docu { background: none; } .ztree li span.button.ico_open::before { content: "\f115"; font-family: FontAwesome; padding-top: 10px; padding-left: 2px; display: inline-block; color: #ffffff; } .ztree li span.button.ico_close::before { content: "\f114"; font-family: FontAwesome; padding-top: 10px; padding-left: 2px; display: inline-block; color: #ffffff; } .ztree li span.button.ico_docu::before { content: "\f022"; font-family: FontAwesome; padding-top: 10px; padding-left: 2px; display: inline-block; color: #ffffff; } .ztree li span.button.edit { margin-left: 4px; margin-right: -1px; vertical-align: top; *vertical-align: middle; padding-top: 10px; } .ztree li span.button.edit::before { content: "\f044"; font-family: FontAwesome; } .ztree li span.button.remove { margin-left: 4px; margin-right: -1px; vertical-align: top; *vertical-align: middle; padding-top: 10px; } .ztree li span.button.remove::before { content: "\f1f8"; font-family: FontAwesome; } .ztree li span.button.add { margin-left: 4px; margin-right: -1px; vertical-align: top; *vertical-align: middle; padding-top: 10px; } .ztree li span.button.add::before { content: "\f067"; font-family: FontAwesome; } .ztree li span.button.ico_loading { margin-right: 2px; background: url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align: top; *vertical-align: middle; } ul.tmpTargetzTree { background-color: #FFE6B0; opacity: 0.8; filter: alpha(opacity=80); } span.tmpzTreeMove_arrow { width: 16px; height: 17px; display: inline-block; padding: 0; margin: 2px 0 0 1px; border: 0 none; position: absolute; background-color: transparent; background-attachment: scroll; } span.tmpzTreeMove_arrow::before { content: "\f04b"; font-family: FontAwesome; color: #ffff00; } ul.ztree.zTreeDragUL { margin: 0; padding: 0; position: absolute; width: auto; height: auto; overflow: hidden; background-color: #cfcfcf; border: 1px #ffff00 dotted; opacity: 0.8; filter: alpha(opacity=80); } .ztreeMask { z-index: 10000; background-color: #cfcfcf; opacity: 0.0; filter: alpha(opacity=0); position: absolute; } ================================================ FILE: lib/zTree_v3/css/awesomeStyle/awesome.less ================================================ /*------------------------------------- zTree Style using fontawesome instead of images version: 1.1 author: Mike King email: mikkelking @ hotmail . com website: http://code.google.com/p/jquerytree/ -------------------------------------*/ /* Definitions ----------------------*/ @font-size: 12px; // Regular icon and text color is white, which suits any medium -> dark background @color-normal: white; // Background color @color-bg: #af0000; // Highlight color @color-highlight: yellow; // Partially selected (checkboxes, radio buttons) @color-partial: #aaaaaa; // Partially selected and focused (checkboxes, radio buttons) @color-partfocus: #cad96c; // Disabled altogether @color-disabled: #808080; // Editing color @color-edit: yellow; @w: 15px; @h: 17px; @pad-left: 2px; @pad-top: 10px; /* End of Definitions ---------------*/ /* Imports -------------------------*/ @import "fa.less"; /* End of Imports ------------------*/ .ztree * {padding:0; margin:0; font-size:@font-size; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif; background-color: @color-bg;} .ztree { margin:0; padding:5px; color:@color-normal; background-color: @color-bg; li { padding:0; margin:0; list-style:none; line-height:17px; text-align:left; white-space:nowrap; outline:0; ul { margin: 0px; padding:0 0 0 18px; } ul.line { } a {padding-right:3px; margin:0; cursor:pointer; height:@h; color:@color-normal; background-color: transparent; text-decoration:none; vertical-align:top; display: inline-block; input.rename {height:14px; width:80px; padding:0; margin:0; color: @color-bg; background-color: @color-normal; font-size:@font-size; border:1px #585956 solid; *border:0px} } a:hover {text-decoration:underline} a.curSelectedNode {padding-top:0px; background-color:#af4040; color:@color-highlight; height:@h; opacity:0.8;} a.curSelectedNode_Edit {padding-top:0px; background-color:transparent; color:@color-highlight; height:@h; border:1px #666 solid; opacity:0.8;} a.tmpTargetNode_inner {padding-top:0px; background-color:#aaa; color:@color-highlight; height:@h; border:1px #666 solid; opacity:0.8; filter:alpha(opacity=80)} a.tmpTargetNode_prev {} a.tmpTargetNode_next {} span {line-height:@h; margin-right:2px; background-color:transparent;} span.button {line-height:0; margin:0; padding: 0; width:@w; height:@h; display: inline-block; vertical-align:top; border:0px solid; cursor: pointer;outline:none; background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; &::before{color: @color-normal; font-family: FontAwesome; padding-top:@pad-top;} &.chk { margin:0px; cursor: auto; width: 12px; display: inline-block;padding-top:@pad-top;padding-left:@pad-left; &.checkbox_false_full::before {content: @fa-square-o;} &.checkbox_false_full_focus::before {content: @fa-square-o; color:@color-highlight;} &.checkbox_false_part::before {content: @fa-square-o;color: @color-partial;} &.checkbox_false_part_focus::before {content: @fa-square-o; color:@color-partfocus;} &.checkbox_false_disable::before {content: @fa-square-o; color:@color-disabled;} &.checkbox_true_full::before {content: @fa-check-square-o;} &.checkbox_true_full_focus::before {content: @fa-check-square-o;} &.checkbox_true_part::before {content: @fa-check-square;} &.checkbox_true_part_focus::before {content: @fa-check-square; color: @color-highlight} &.checkbox_true_full_focus::before {content: @fa-check-square-o; color: @color-highlight} &.checkbox_true_part::before {content: @fa-check-square-o;color: @color-partial} &.checkbox_true_part_focus::before {content: @fa-check-square-o;color: @color-partfocus;} &.checkbox_true_disable::before {content: @fa-check-square-o;color: @color-disabled} &.radio_false_full::before {content: @fa-circle-o;} &.radio_false_full_focus::before {content: @fa-circle-o;color: @color-highlight} &.radio_false_part::before {content: @fa-circle-o;color: @color-partial} &.radio_false_part_focus::before {content: @fa-circle-o;color: @color-highlight} &.radio_false_disable::before {content: @fa-circle-thin;color: @color-disabled} &.radio_true_full::before {content: @fa-dot-circle-o;} &.radio_true_full_focus::before {content: @fa-dot-circle-o;color: @color-highlight} &.radio_true_part::before {content: @fa-dot-circle-o;color: @color-partial} &.radio_true_part_focus::before {content: @fa-dot-circle-o;color: @color-partial;} &.radio_true_disable::before {content: @fa-circle-thin;color: @color-disabled} } &.switch {width:@w; height:@h} &.root_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.root_close::before{content: @fa-folder-open-o;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.roots_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.roots_close::before{content: @fa-chevron-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.center_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.center_close::before{content: @fa-chevron-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.bottom_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.bottom_close::before{content: @fa-chevron-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;} &.noline_open{} &.noline_close{} &.root_docu{ background:none;} &.roots_docu::before{content: @fa-list-alt;padding-left:@pad-left;display: inline-block;color:@color-normal;} &.center_docu::before{padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;} &.bottom_docu::before{padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;} &.noline_docu{ background:none;} &.ico_open::before {content: @fa-folder-open-o;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;} &.ico_close::before {content: @fa-folder-o;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;} &.ico_docu::before{content: @fa-list-alt;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;} &.edit {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;} &.edit::before{content: @fa-pencil-square-o;font-family: FontAwesome;} &.remove {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;} &.remove::before{content: @fa-trash;font-family: FontAwesome;} &.add {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;} &.add::before{content: @fa-plus;font-family: FontAwesome;} &.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} } } } ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} // this is the arrow that moves span.tmpzTreeMove_arrow{width:16px; height:@h; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; background-color:transparent; background-attachment: scroll; } span.tmpzTreeMove_arrow::before{content: @fa-play;font-family: FontAwesome;color: @color-highlight; } // outline ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px @color-highlight dotted; opacity:0.8; filter:alpha(opacity=80)} .ztreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} ================================================ FILE: lib/zTree_v3/css/awesomeStyle/fa.less ================================================ @fa-glass: "\f000"; @fa-music: "\f001"; @fa-search: "\f002"; @fa-envelope-o: "\f003"; @fa-heart: "\f004"; @fa-star: "\f005"; @fa-star-o: "\f006"; @fa-user: "\f007"; @fa-film: "\f008"; @fa-th-large: "\f009"; @fa-th: "\f00a"; @fa-th-list: "\f00b"; @fa-check: "\f00c"; @fa-times: "\f00d"; @fa-search-plus: "\f00e"; @fa-search-minus: "\f010"; @fa-power-off: "\f011"; @fa-signal: "\f012"; @fa-cog: "\f013"; @fa-trash-o: "\f014"; @fa-home: "\f015"; @fa-file-o: "\f016"; @fa-clock-o: "\f017"; @fa-road: "\f018"; @fa-download: "\f019"; @fa-arrow-circle-o-down: "\f01a"; @fa-arrow-circle-o-up: "\f01b"; @fa-inbox: "\f01c"; @fa-play-circle-o: "\f01d"; @fa-repeat: "\f01e"; @fa-refresh: "\f021"; @fa-list-alt: "\f022"; @fa-lock: "\f023"; @fa-flag: "\f024"; @fa-headphones: "\f025"; @fa-volume-off: "\f026"; @fa-volume-down: "\f027"; @fa-volume-up: "\f028"; @fa-qrcode: "\f029"; @fa-barcode: "\f02a"; @fa-tag: "\f02b"; @fa-tags: "\f02c"; @fa-book: "\f02d"; @fa-bookmark: "\f02e"; @fa-print: "\f02f"; @fa-camera: "\f030"; @fa-font: "\f031"; @fa-bold: "\f032"; @fa-italic: "\f033"; @fa-text-height: "\f034"; @fa-text-width: "\f035"; @fa-align-left: "\f036"; @fa-align-center: "\f037"; @fa-align-right: "\f038"; @fa-align-justify: "\f039"; @fa-list: "\f03a"; @fa-outdent: "\f03b"; @fa-indent: "\f03c"; @fa-video-camera: "\f03d"; @fa-picture-o: "\f03e"; @fa-pencil: "\f040"; @fa-map-marker: "\f041"; @fa-adjust: "\f042"; @fa-tint: "\f043"; @fa-pencil-square-o: "\f044"; @fa-share-square-o: "\f045"; @fa-check-square-o: "\f046"; @fa-arrows: "\f047"; @fa-step-backward: "\f048"; @fa-fast-backward: "\f049"; @fa-backward: "\f04a"; @fa-play: "\f04b"; @fa-pause: "\f04c"; @fa-stop: "\f04d"; @fa-forward: "\f04e"; @fa-fast-forward: "\f050"; @fa-step-forward: "\f051"; @fa-eject: "\f052"; @fa-chevron-left: "\f053"; @fa-chevron-right: "\f054"; @fa-plus-circle: "\f055"; @fa-minus-circle: "\f056"; @fa-times-circle: "\f057"; @fa-check-circle: "\f058"; @fa-question-circle: "\f059"; @fa-info-circle: "\f05a"; @fa-crosshairs: "\f05b"; @fa-times-circle-o: "\f05c"; @fa-check-circle-o: "\f05d"; @fa-ban: "\f05e"; @fa-arrow-left: "\f060"; @fa-arrow-right: "\f061"; @fa-arrow-up: "\f062"; @fa-arrow-down: "\f063"; @fa-share: "\f064"; @fa-expand: "\f065"; @fa-compress: "\f066"; @fa-plus: "\f067"; @fa-minus: "\f068"; @fa-asterisk: "\f069"; @fa-exclamation-circle: "\f06a"; @fa-gift: "\f06b"; @fa-leaf: "\f06c"; @fa-fire: "\f06d"; @fa-eye: "\f06e"; @fa-eye-slash: "\f070"; @fa-exclamation-triangle: "\f071"; @fa-plane: "\f072"; @fa-calendar: "\f073"; @fa-random: "\f074"; @fa-comment: "\f075"; @fa-magnet: "\f076"; @fa-chevron-up: "\f077"; @fa-chevron-down: "\f078"; @fa-retweet: "\f079"; @fa-shopping-cart: "\f07a"; @fa-folder: "\f07b"; @fa-folder-open: "\f07c"; @fa-arrows-v: "\f07d"; @fa-arrows-h: "\f07e"; @fa-bar-chart: "\f080"; @fa-twitter-square: "\f081"; @fa-facebook-square: "\f082"; @fa-camera-retro: "\f083"; @fa-key: "\f084"; @fa-cogs: "\f085"; @fa-comments: "\f086"; @fa-thumbs-o-up: "\f087"; @fa-thumbs-o-down: "\f088"; @fa-star-half: "\f089"; @fa-heart-o: "\f08a"; @fa-sign-out: "\f08b"; @fa-linkedin-square: "\f08c"; @fa-thumb-tack: "\f08d"; @fa-external-link: "\f08e"; @fa-sign-in: "\f090"; @fa-trophy: "\f091"; @fa-github-square: "\f092"; @fa-upload: "\f093"; @fa-lemon-o: "\f094"; @fa-phone: "\f095"; @fa-square-o: "\f096"; @fa-bookmark-o: "\f097"; @fa-phone-square: "\f098"; @fa-twitter: "\f099"; @fa-facebook: "\f09a"; @fa-github: "\f09b"; @fa-unlock: "\f09c"; @fa-credit-card: "\f09d"; @fa-rss: "\f09e"; @fa-hdd-o: "\f0a0"; @fa-bullhorn: "\f0a1"; @fa-bell: "\f0f3"; @fa-certificate: "\f0a3"; @fa-hand-o-right: "\f0a4"; @fa-hand-o-left: "\f0a5"; @fa-hand-o-up: "\f0a6"; @fa-hand-o-down: "\f0a7"; @fa-arrow-circle-left: "\f0a8"; @fa-arrow-circle-right: "\f0a9"; @fa-arrow-circle-up: "\f0aa"; @fa-arrow-circle-down: "\f0ab"; @fa-globe: "\f0ac"; @fa-wrench: "\f0ad"; @fa-tasks: "\f0ae"; @fa-filter: "\f0b0"; @fa-briefcase: "\f0b1"; @fa-arrows-alt: "\f0b2"; @fa-users: "\f0c0"; @fa-link: "\f0c1"; @fa-cloud: "\f0c2"; @fa-flask: "\f0c3"; @fa-scissors: "\f0c4"; @fa-files-o: "\f0c5"; @fa-paperclip: "\f0c6"; @fa-floppy-o: "\f0c7"; @fa-square: "\f0c8"; @fa-bars: "\f0c9"; @fa-list-ul: "\f0ca"; @fa-list-ol: "\f0cb"; @fa-strikethrough: "\f0cc"; @fa-underline: "\f0cd"; @fa-table: "\f0ce"; @fa-magic: "\f0d0"; @fa-truck: "\f0d1"; @fa-pinterest: "\f0d2"; @fa-pinterest-square: "\f0d3"; @fa-google-plus-square: "\f0d4"; @fa-google-plus: "\f0d5"; @fa-money: "\f0d6"; @fa-caret-down: "\f0d7"; @fa-caret-up: "\f0d8"; @fa-caret-left: "\f0d9"; @fa-caret-right: "\f0da"; @fa-columns: "\f0db"; @fa-sort: "\f0dc"; @fa-sort-desc: "\f0dd"; @fa-sort-asc: "\f0de"; @fa-envelope: "\f0e0"; @fa-linkedin: "\f0e1"; @fa-undo: "\f0e2"; @fa-gavel: "\f0e3"; @fa-tachometer: "\f0e4"; @fa-comment-o: "\f0e5"; @fa-comments-o: "\f0e6"; @fa-bolt: "\f0e7"; @fa-sitemap: "\f0e8"; @fa-umbrella: "\f0e9"; @fa-clipboard: "\f0ea"; @fa-lightbulb-o: "\f0eb"; @fa-exchange: "\f0ec"; @fa-cloud-download: "\f0ed"; @fa-cloud-upload: "\f0ee"; @fa-user-md: "\f0f0"; @fa-stethoscope: "\f0f1"; @fa-suitcase: "\f0f2"; @fa-bell-o: "\f0a2"; @fa-coffee: "\f0f4"; @fa-cutlery: "\f0f5"; @fa-file-text-o: "\f0f6"; @fa-building-o: "\f0f7"; @fa-hospital-o: "\f0f8"; @fa-ambulance: "\f0f9"; @fa-medkit: "\f0fa"; @fa-fighter-jet: "\f0fb"; @fa-beer: "\f0fc"; @fa-h-square: "\f0fd"; @fa-plus-square: "\f0fe"; @fa-angle-double-left: "\f100"; @fa-angle-double-right: "\f101"; @fa-angle-double-up: "\f102"; @fa-angle-double-down: "\f103"; @fa-angle-left: "\f104"; @fa-angle-right: "\f105"; @fa-angle-up: "\f106"; @fa-angle-down: "\f107"; @fa-desktop: "\f108"; @fa-laptop: "\f109"; @fa-tablet: "\f10a"; @fa-mobile: "\f10b"; @fa-circle-o: "\f10c"; @fa-quote-left: "\f10d"; @fa-quote-right: "\f10e"; @fa-spinner: "\f110"; @fa-circle: "\f111"; @fa-reply: "\f112"; @fa-github-alt: "\f113"; @fa-folder-o: "\f114"; @fa-folder-open-o: "\f115"; @fa-smile-o: "\f118"; @fa-frown-o: "\f119"; @fa-meh-o: "\f11a"; @fa-gamepad: "\f11b"; @fa-keyboard-o: "\f11c"; @fa-flag-o: "\f11d"; @fa-flag-checkered: "\f11e"; @fa-terminal: "\f120"; @fa-code: "\f121"; @fa-reply-all: "\f122"; @fa-star-half-o: "\f123"; @fa-location-arrow: "\f124"; @fa-crop: "\f125"; @fa-code-fork: "\f126"; @fa-chain-broken: "\f127"; @fa-question: "\f128"; @fa-info: "\f129"; @fa-exclamation: "\f12a"; @fa-superscript: "\f12b"; @fa-subscript: "\f12c"; @fa-eraser: "\f12d"; @fa-puzzle-piece: "\f12e"; @fa-microphone: "\f130"; @fa-microphone-slash: "\f131"; @fa-shield: "\f132"; @fa-calendar-o: "\f133"; @fa-fire-extinguisher: "\f134"; @fa-rocket: "\f135"; @fa-maxcdn: "\f136"; @fa-chevron-circle-left: "\f137"; @fa-chevron-circle-right: "\f138"; @fa-chevron-circle-up: "\f139"; @fa-chevron-circle-down: "\f13a"; @fa-html5: "\f13b"; @fa-css3: "\f13c"; @fa-anchor: "\f13d"; @fa-unlock-alt: "\f13e"; @fa-bullseye: "\f140"; @fa-ellipsis-h: "\f141"; @fa-ellipsis-v: "\f142"; @fa-rss-square: "\f143"; @fa-play-circle: "\f144"; @fa-ticket: "\f145"; @fa-minus-square: "\f146"; @fa-minus-square-o: "\f147"; @fa-level-up: "\f148"; @fa-level-down: "\f149"; @fa-check-square: "\f14a"; @fa-pencil-square: "\f14b"; @fa-external-link-square: "\f14c"; @fa-share-square: "\f14d"; @fa-compass: "\f14e"; @fa-caret-square-o-down: "\f150"; @fa-caret-square-o-up: "\f151"; @fa-caret-square-o-right: "\f152"; @fa-eur: "\f153"; @fa-gbp: "\f154"; @fa-usd: "\f155"; @fa-inr: "\f156"; @fa-jpy: "\f157"; @fa-rub: "\f158"; @fa-krw: "\f159"; @fa-btc: "\f15a"; @fa-file: "\f15b"; @fa-file-text: "\f15c"; @fa-sort-alpha-asc: "\f15d"; @fa-sort-alpha-desc: "\f15e"; @fa-sort-amount-asc: "\f160"; @fa-sort-amount-desc: "\f161"; @fa-sort-numeric-asc: "\f162"; @fa-sort-numeric-desc: "\f163"; @fa-thumbs-up: "\f164"; @fa-thumbs-down: "\f165"; @fa-youtube-square: "\f166"; @fa-youtube: "\f167"; @fa-xing: "\f168"; @fa-xing-square: "\f169"; @fa-youtube-play: "\f16a"; @fa-dropbox: "\f16b"; @fa-stack-overflow: "\f16c"; @fa-instagram: "\f16d"; @fa-flickr: "\f16e"; @fa-adn: "\f170"; @fa-bitbucket: "\f171"; @fa-bitbucket-square: "\f172"; @fa-tumblr: "\f173"; @fa-tumblr-square: "\f174"; @fa-long-arrow-down: "\f175"; @fa-long-arrow-up: "\f176"; @fa-long-arrow-left: "\f177"; @fa-long-arrow-right: "\f178"; @fa-apple: "\f179"; @fa-windows: "\f17a"; @fa-android: "\f17b"; @fa-linux: "\f17c"; @fa-dribbble: "\f17d"; @fa-skype: "\f17e"; @fa-foursquare: "\f180"; @fa-trello: "\f181"; @fa-female: "\f182"; @fa-male: "\f183"; @fa-gittip: "\f184"; @fa-sun-o: "\f185"; @fa-moon-o: "\f186"; @fa-archive: "\f187"; @fa-bug: "\f188"; @fa-vk: "\f189"; @fa-weibo: "\f18a"; @fa-renren: "\f18b"; @fa-pagelines: "\f18c"; @fa-stack-exchange: "\f18d"; @fa-arrow-circle-o-right: "\f18e"; @fa-arrow-circle-o-left: "\f190"; @fa-caret-square-o-left: "\f191"; @fa-dot-circle-o: "\f192"; @fa-wheelchair: "\f193"; @fa-vimeo-square: "\f194"; @fa-try: "\f195"; @fa-plus-square-o: "\f196"; @fa-space-shuttle: "\f197"; @fa-slack: "\f198"; @fa-envelope-square: "\f199"; @fa-wordpress: "\f19a"; @fa-openid: "\f19b"; @fa-university: "\f19c"; @fa-graduation-cap: "\f19d"; @fa-yahoo: "\f19e"; @fa-google: "\f1a0"; @fa-reddit: "\f1a1"; @fa-reddit-square: "\f1a2"; @fa-stumbleupon-circle: "\f1a3"; @fa-stumbleupon: "\f1a4"; @fa-delicious: "\f1a5"; @fa-digg: "\f1a6"; @fa-pied-piper: "\f1a7"; @fa-pied-piper-alt: "\f1a8"; @fa-drupal: "\f1a9"; @fa-joomla: "\f1aa"; @fa-language: "\f1ab"; @fa-fax: "\f1ac"; @fa-building: "\f1ad"; @fa-child: "\f1ae"; @fa-paw: "\f1b0"; @fa-spoon: "\f1b1"; @fa-cube: "\f1b2"; @fa-cubes: "\f1b3"; @fa-behance: "\f1b4"; @fa-behance-square: "\f1b5"; @fa-steam: "\f1b6"; @fa-steam-square: "\f1b7"; @fa-recycle: "\f1b8"; @fa-car: "\f1b9"; @fa-taxi: "\f1ba"; @fa-tree: "\f1bb"; @fa-spotify: "\f1bc"; @fa-deviantart: "\f1bd"; @fa-soundcloud: "\f1be"; @fa-database: "\f1c0"; @fa-file-pdf-o: "\f1c1"; @fa-file-word-o: "\f1c2"; @fa-file-excel-o: "\f1c3"; @fa-file-powerpoint-o: "\f1c4"; @fa-file-image-o: "\f1c5"; @fa-file-archive-o: "\f1c6"; @fa-file-audio-o: "\f1c7"; @fa-file-video-o: "\f1c8"; @fa-file-code-o: "\f1c9"; @fa-vine: "\f1ca"; @fa-codepen: "\f1cb"; @fa-jsfiddle: "\f1cc"; @fa-life-ring: "\f1cd"; @fa-circle-o-notch: "\f1ce"; @fa-rebel: "\f1d0"; @fa-empire: "\f1d1"; @fa-git-square: "\f1d2"; @fa-git: "\f1d3"; @fa-hacker-news: "\f1d4"; @fa-tencent-weibo: "\f1d5"; @fa-qq: "\f1d6"; @fa-weixin: "\f1d7"; @fa-paper-plane: "\f1d8"; @fa-paper-plane-o: "\f1d9"; @fa-history: "\f1da"; @fa-circle-thin: "\f1db"; @fa-header: "\f1dc"; @fa-paragraph: "\f1dd"; @fa-sliders: "\f1de"; @fa-share-alt: "\f1e0"; @fa-share-alt-square: "\f1e1"; @fa-bomb: "\f1e2"; @fa-futbol-o: "\f1e3"; @fa-tty: "\f1e4"; @fa-binoculars: "\f1e5"; @fa-plug: "\f1e6"; @fa-slideshare: "\f1e7"; @fa-twitch: "\f1e8"; @fa-yelp: "\f1e9"; @fa-newspaper-o: "\f1ea"; @fa-wifi: "\f1eb"; @fa-calculator: "\f1ec"; @fa-paypal: "\f1ed"; @fa-google-wallet: "\f1ee"; @fa-cc-visa: "\f1f0"; @fa-cc-mastercard: "\f1f1"; @fa-cc-discover: "\f1f2"; @fa-cc-amex: "\f1f3"; @fa-cc-paypal: "\f1f4"; @fa-cc-stripe: "\f1f5"; @fa-bell-slash: "\f1f6"; @fa-bell-slash-o: "\f1f7"; @fa-trash: "\f1f8"; @fa-copyright: "\f1f9"; @fa-at: "\f1fa"; @fa-eyedropper: "\f1fb"; @fa-paint-brush: "\f1fc"; @fa-birthday-cake: "\f1fd"; @fa-area-chart: "\f1fe"; @fa-pie-chart: "\f200"; @fa-line-chart: "\f201"; @fa-lastfm: "\f202"; @fa-lastfm-square: "\f203"; @fa-toggle-off: "\f204"; @fa-toggle-on: "\f205"; @fa-bicycle: "\f206"; @fa-bus: "\f207"; @fa-ioxhost: "\f208"; @fa-angellist: "\f209"; @fa-cc: "\f20a"; @fa-ils: "\f20b"; @fa-meanpath: "\f20c"; ================================================ FILE: lib/zTree_v3/css/demo.css ================================================ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #f0f6e4 \9;} h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, sans-serif;padding-bottom: 5px;} h1 {font-size: 24px;line-height: 34px;text-align: center;} h2 {font-size: 14px;line-height: 24px;padding-top: 5px;} h6 {font-weight: normal;font-size: 12px;letter-spacing: 1px;line-height: 24px;text-align: center;} a {color:#3C6E31;text-decoration: underline;} a:hover {background-color:#3C6E31;color:white;} input.radio {margin: 0 2px 0 8px;} input.radio.first {margin-left:0;} input.empty {color: lightgray;} code {color: #2f332a;} .highlight_red {color:#A60000;} .highlight_green {color:#A7F43D;} li {list-style: circle;font-size: 12px;} li.title {list-style: none;} ul.list {margin-left: 17px;} div.content_wrap {width: 600px;height:380px;} div.content_wrap div.left{float: left;width: 250px;} div.content_wrap div.right{float: right;width: 340px;} div.zTreeDemoBackground {width:250px;height:362px;text-align:left;} ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4;width:220px;height:360px;overflow-y:scroll;overflow-x:auto;} ul.log {border: 1px solid #617775;background: #f0f6e4;width:300px;height:170px;overflow: hidden;} ul.log.small {height:45px;} ul.log li {color: #666666;list-style: none;padding-left: 10px;} ul.log li.dark {background-color: #E3E3E3;} /* ruler */ div.ruler {height:20px; width:220px; background-color:#f0f6e4;border: 1px solid #333; margin-bottom: 5px; cursor: pointer} div.ruler div.cursor {height:20px; width:30px; background-color:#3C6E31; color:white; text-align: right; padding-right: 5px; cursor: pointer} ================================================ FILE: lib/zTree_v3/css/metroStyle/metroStyle.css ================================================ /*------------------------------------- zTree Style version: 3.4 author: Hunter.z email: hunter.z@263.net website: http://code.google.com/p/jquerytree/ -------------------------------------*/ .ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} .ztree {margin:0; padding:5px; color:#333} .ztree li{padding:0; margin:0; list-style:none; line-height:17px; text-align:left; white-space:nowrap; outline:0} .ztree li ul{ margin:0; padding:0 0 0 18px} .ztree li ul.line{ background:url(./img/line_conn.png) 0 0 repeat-y;} .ztree li a {padding-right:3px; margin:0; cursor:pointer; height:21px; color:#333; background-color: transparent; text-decoration:none; vertical-align:top; display: inline-block} .ztree li a:hover {text-decoration:underline} .ztree li a.curSelectedNode {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; opacity:0.8;} .ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; border:1px #666 solid; opacity:0.8;} .ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#aaa; color:white; height:21px; border:1px #666 solid; opacity:0.8; filter:alpha(opacity=80)} .ztree li a.tmpTargetNode_prev {} .ztree li a.tmpTargetNode_next {} .ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; font-size:12px; border:1px #585956 solid; *border:0px} .ztree li span {line-height:21px; margin-right:2px} .ztree li span.button {line-height:0; margin:0; padding: 0; width:21px; height:21px; display: inline-block; vertical-align:middle; border:0 none; cursor: pointer;outline:none; background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")} .ztree li span.button.chk {width:13px; height:13px; margin:0 2px; cursor: auto} .ztree li span.button.chk.checkbox_false_full {background-position: -5px -5px;} .ztree li span.button.chk.checkbox_false_full_focus {background-position: -5px -26px;} .ztree li span.button.chk.checkbox_false_part {background-position: -5px -48px;} .ztree li span.button.chk.checkbox_false_part_focus {background-position: -5px -68px;} .ztree li span.button.chk.checkbox_false_disable {background-position: -5px -89px;} .ztree li span.button.chk.checkbox_true_full {background-position: -26px -5px;} .ztree li span.button.chk.checkbox_true_full_focus {background-position: -26px -26px;} .ztree li span.button.chk.checkbox_true_part {background-position: -26px -48px;} .ztree li span.button.chk.checkbox_true_part_focus {background-position: -26px -68px;} .ztree li span.button.chk.checkbox_true_disable {background-position: -26px -89px;} .ztree li span.button.chk.radio_false_full {background-position: -47px -5px;} .ztree li span.button.chk.radio_false_full_focus {background-position: -47px -26px;} .ztree li span.button.chk.radio_false_part {background-position: -47px -47px;} .ztree li span.button.chk.radio_false_part_focus {background-position: -47px -68px;} .ztree li span.button.chk.radio_false_disable {background-position: -47px -89px;} .ztree li span.button.chk.radio_true_full {background-position: -68px -5px;} .ztree li span.button.chk.radio_true_full_focus {background-position: -68px -26px;} .ztree li span.button.chk.radio_true_part {background-position: -68px -47px;} .ztree li span.button.chk.radio_true_part_focus {background-position: -68px -68px;} .ztree li span.button.chk.radio_true_disable {background-position: -68px -89px;} .ztree li span.button.switch {width:21px; height:21px} .ztree li span.button.root_open{background-position:-105px -63px} .ztree li span.button.root_close{background-position:-126px -63px} .ztree li span.button.roots_open{background-position: -105px 0;} .ztree li span.button.roots_close{background-position: -126px 0;} .ztree li span.button.center_open{background-position: -105px -21px;} .ztree li span.button.center_close{background-position: -126px -21px;} .ztree li span.button.bottom_open{background-position: -105px -42px;} .ztree li span.button.bottom_close{background-position: -126px -42px;} .ztree li span.button.noline_open{background-position: -105px -84px;} .ztree li span.button.noline_close{background-position: -126px -84px;} .ztree li span.button.root_docu{ background:none;} .ztree li span.button.roots_docu{background-position: -84px 0;} .ztree li span.button.center_docu{background-position: -84px -21px;} .ztree li span.button.bottom_docu{background-position: -84px -42px;} .ztree li span.button.noline_docu{ background:none;} .ztree li span.button.ico_open{margin-right:2px; background-position: -147px -21px; vertical-align:top; *vertical-align:middle} .ztree li span.button.ico_close{margin-right:2px; margin-right:2px; background-position: -147px 0; vertical-align:top; *vertical-align:middle} .ztree li span.button.ico_docu{margin-right:2px; background-position: -147px -42px; vertical-align:top; *vertical-align:middle} .ztree li span.button.edit {margin-left:2px; margin-right: -1px; background-position: -189px -21px; vertical-align:top; *vertical-align:middle} .ztree li span.button.edit:hover { background-position: -168px -21px; } .ztree li span.button.remove {margin-left:2px; margin-right: -1px; background-position: -189px -42px; vertical-align:top; *vertical-align:middle} .ztree li span.button.remove:hover { background-position: -168px -42px; } .ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position: -189px 0; vertical-align:top; *vertical-align:middle} .ztree li span.button.add:hover { background-position: -168px 0; } .ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} span.tmpzTreeMove_arrow {width:16px; height:21px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; background-position:-168px -84px; background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")} ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} .ztreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} ================================================ FILE: lib/zTree_v3/css/zTreeStyle/zTreeStyle.css ================================================ /*------------------------------------- zTree Style version: 3.5.19 author: Hunter.z email: hunter.z@263.net website: http://code.google.com/p/jquerytree/ -------------------------------------*/ .ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} .ztree {margin:0; padding:5px; color:#333} .ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0} .ztree li ul{ margin:0; padding:0 0 0 18px} .ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} .ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent; text-decoration:none; vertical-align:top; display: inline-block} .ztree li a:hover {text-decoration:underline} .ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} .ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} .ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; opacity:0.8; filter:alpha(opacity=80)} .ztree li a.tmpTargetNode_prev {} .ztree li a.tmpTargetNode_next {} .ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; font-size:12px; border:1px #7EC4CC solid; *border:0px} .ztree li span {line-height:16px; margin-right:2px} .ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle; border:0 none; cursor: pointer;outline:none; background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} .ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto} .ztree li span.button.chk.checkbox_false_full {background-position:0 0} .ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px} .ztree li span.button.chk.checkbox_false_part {background-position:0 -28px} .ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px} .ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px} .ztree li span.button.chk.checkbox_true_full {background-position:-14px 0} .ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px} .ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px} .ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px} .ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px} .ztree li span.button.chk.radio_false_full {background-position:-28px 0} .ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px} .ztree li span.button.chk.radio_false_part {background-position:-28px -28px} .ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px} .ztree li span.button.chk.radio_false_disable {background-position:-28px -56px} .ztree li span.button.chk.radio_true_full {background-position:-42px 0} .ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px} .ztree li span.button.chk.radio_true_part {background-position:-42px -28px} .ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px} .ztree li span.button.chk.radio_true_disable {background-position:-42px -56px} .ztree li span.button.switch {width:18px; height:18px} .ztree li span.button.root_open{background-position:-92px -54px} .ztree li span.button.root_close{background-position:-74px -54px} .ztree li span.button.roots_open{background-position:-92px 0} .ztree li span.button.roots_close{background-position:-74px 0} .ztree li span.button.center_open{background-position:-92px -18px} .ztree li span.button.center_close{background-position:-74px -18px} .ztree li span.button.bottom_open{background-position:-92px -36px} .ztree li span.button.bottom_close{background-position:-74px -36px} .ztree li span.button.noline_open{background-position:-92px -72px} .ztree li span.button.noline_close{background-position:-74px -72px} .ztree li span.button.root_docu{ background:none;} .ztree li span.button.roots_docu{background-position:-56px 0} .ztree li span.button.center_docu{background-position:-56px -18px} .ztree li span.button.bottom_docu{background-position:-56px -36px} .ztree li span.button.noline_docu{ background:none;} .ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle} .ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle} .ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle} .ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle} .ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle} .ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} .zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} /* level style*/ /*.ztree li span.button.level0 { display:none; } .ztree li ul.level0 { padding:0; background:none; }*/ ================================================ FILE: lib/zTree_v3/demo/cn/asyncData/getNodes.php ================================================ [] ================================================ FILE: lib/zTree_v3/demo/cn/asyncData/getNodesForBigData.php ================================================ [] ================================================ FILE: lib/zTree_v3/demo/cn/bigdata/common.html ================================================ ZTREE DEMO - big data common

                        一次性加载大数据量

                        [ 文件路径: bigdata/common.html ]
                        • 1、大数据量加载说明

                          • 1)、zTree v3.x 针对大数据量一次性加载进行了更深入的优化,实现了延迟加载功能,即不展开的节点不创建子节点的 DOM。
                          • 2)、对于每级节点最多一百左右,但总节点数几千甚至几万,且不是全部展开的数据,一次性加载的效果最明显,速度非常快。
                          • 3)、对于某一级节点数就多达几千的情况 延迟加载无效,这种情况建议考虑分页异步加载。
                          • 4)、对于全部节点都展开显示的情况,延迟加载无效,这种情况建议不要全部展开。
                          • 5)、显示 checkbox / radio 会造成一定程度的性能下降。
                          • 6)、利用 addDiyDom 功能增加自定义控件会影响速度,影响程度受节点数量而定。
                          • 7)、利用 onNodeCreated 事件回调函数对节点 DOM 进行操作会影响速度,影响程度受节点数量而定。
                        • 2、setting 配置信息说明

                          • 不需要进行特殊的配置
                        • 3、treeNode 节点数据说明

                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                        ================================================ FILE: lib/zTree_v3/demo/cn/bigdata/diy_async.html ================================================ ZTREE DEMO - big data async

                        分批异步加载大数据量

                        [ 文件路径: bigdata/diy_async.html ]
                        •     此 Demo 专门用于测试分批异步加载,每次展开节点都要重新进行异步加载。
                          • 1、大数据量加载说明

                            • 1)、对于某一级节点数多达几千个的时候,zTree 默认的延迟加载是无效的,此 Demo 演示了一种原先 zTree v2.6 时的分批加载节点的方法。
                            • 2)、此方法适用于1、2千个节点必须全部显示的需求。
                            • 3)、此方法并不能解决加载慢的问题,相反只会让最终结果出现的更慢,只是可以有限度的避免浏览器假死,而且显示的节点越多就越慢。
                            • 4)、对于某一级节点数至少几千个的情况,另一个解决方案是:分页异步加载。
                              async load log:
                            • 2、setting 配置信息说明

                              • 需要设置 setting.async 异步加载部分的参数
                              • 建议关闭动画效果 setting.view.expandSpeed = "";
                              • 其他不需要进行特殊的配置,根据自己的需求自行设置
                            • 3、treeNode 节点数据说明

                              • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                            ================================================ FILE: lib/zTree_v3/demo/cn/bigdata/page.html ================================================ ZTREE DEMO - big data page

                            分页加载大数据量

                            [ 文件路径: bigdata/page.html ]
                              • 1、大数据量加载说明

                                • 1)、分页方案可以有效解决某一级节点数据超大的情况。
                                • 2)、分页按钮通过自定义控件的方法实现。
                                • 3)、分页方案对于 checkbox 的关联关系无能为力,只能每次翻页后进行修正。由于时间关系,Demo 中不对 checkbox 的关联进行任何修正处理。
                                • 4)、分页方案中,从 zTree 得到的节点数据只有当前页的节点数据,可以在每次翻页后自行保存每页的数据,作为缓存,具体情况要根据实际需求来决定。
                                • 2、setting 配置信息说明

                                  • 需要设置 setting.async 异步加载部分的参数
                                  • 其他不需要进行特殊的配置,根据自己的需求自行设置
                                • 3、treeNode 节点数据说明

                                  • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                              ================================================ FILE: lib/zTree_v3/demo/cn/core/async.html ================================================ ZTREE DEMO - Async

                              异步加载节点数据的树

                              [ 文件路径: core/async.html ]
                                • 1、setting 配置信息说明

                                  • 使用异步加载,必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                                • 2、treeNode 节点数据说明

                                  • 异步加载功能对于 treeNode 节点数据没有特别要求,如果采用简单 JSON 数据,请设置 setting.data.simple 中的属性
                                  • 如果异步加载每次都只返回单层的节点数据,那么可以不设置简单 JSON 数据模式
                                • 3、其他说明

                                  • 观察 autoParam 和 otherParam 请使用 firebug 或 浏览器的开发人员工具
                                  • 此 Demo 只能加载到第 4 级节点(level=3)
                                  • 此 Demo 利用 dataFilter 对节点的 name 进行了修改
                                ================================================ FILE: lib/zTree_v3/demo/cn/core/async_fun.html ================================================ ZTREE DEMO - reAsyncChildNodes

                                用 zTree 方法异步加载节点数据

                                [ 文件路径: core/async_fun.html ]
                                  • 1、reAsyncChildNodes 方法操作说明

                                    • 使用 zTreeObj.reAsyncChildNodes 方法,详细请参见 API 文档中的相关内容
                                    • 此 Demo 只能同时选中一个父节点
                                      试试看:[ 重新加载 ]    [ 追加 ]

                                    • “悄悄地”操作只能针对 折叠状态 的父节点
                                      试试看:[ 悄悄地 重新加载 ]    [ 悄悄地 追加 ]
                                      async log:

                                    • 2、setting 配置信息说明

                                      • 使用 zTree 提供的 reAsyncChildNodes 方法也必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                                    • 3、treeNode 节点数据说明

                                      • 同 "异步加载 节点数据" 中的说明
                                    • 4、其他说明

                                      • 同 "异步加载 节点数据" 中的说明
                                    ================================================ FILE: lib/zTree_v3/demo/cn/core/click.html ================================================ ZTREE DEMO - beforeClick / onClick

                                    单击节点控制

                                    [ 文件路径: core/click.html ]
                                      • 1、beforeClick / onClick 事件回调函数控制

                                        • 利用 click 事件回调函数 可以进行各种其他的附加操作,这里简单演示如何监控此事件
                                        • 请尝试按下 CtrlCmd 键进行 多节点选择 和 取消选择
                                          click log:

                                        • 2、setting 配置信息说明

                                          • 需要设置 setting.callback.beforeClick 和 setting.callback.onClick 属性, 详细请参见 API 文档中的相关内容
                                        • 3、treeNode 节点数据说明

                                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                        ================================================ FILE: lib/zTree_v3/demo/cn/core/custom_font.html ================================================ ZTREE DEMO - Custom Font

                                        显示自定义字体的树

                                        [ 文件路径: core/custom_font.html ]
                                          • 1、setting 配置信息说明

                                            • 1、节点自定义字体请设置 setting.view.fontCss 属性,详细请参见 API 文档中的相关内容
                                            • 2、setting.view.nameIsHTML 属性可以允许节点名称支持 HTML 内容,详细请参见 API 文档中的相关内容
                                          • 2、treeNode 节点数据说明

                                            • 设置字体不需要 treeNode 设置特殊数据,但如果用于为了区别不同类型的节点,设置不同的样式,可以对相应的数据设置自定义属性
                                            • 此 Demo 利用 treeNode 保存样式定义
                                          ================================================ FILE: lib/zTree_v3/demo/cn/core/custom_icon.html ================================================ ZTREE DEMO - Custom Icon

                                          自定义图标 -- icon 属性

                                          [ 文件路径: core/custom_icon.html ]
                                            • 1、setting 配置信息说明

                                              • 自定义图标不需要对 setting 进行特殊配置
                                            • 2、treeNode 节点数据说明

                                              • 利用 节点数据的 icon / iconOpen / iconClose 属性实现自定义图标
                                              • 详细请参见 API 文档中的相关内容
                                            • 3、其他说明

                                              • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                            ================================================ FILE: lib/zTree_v3/demo/cn/core/custom_iconSkin.html ================================================ ZTREE DEMO - Custom Icon Skin

                                            自定义图标 -- iconSkin 属性

                                            [ 文件路径: core/custom_iconSkin.html ]
                                              • 1、setting 配置信息说明

                                                • 自定义图标不需要对 setting 进行特殊配置
                                              • 2、treeNode 节点数据说明

                                                • 利用 节点数据的 iconSkin 属性 配合 css 实现自定义图标
                                                • 详细请参见 API 文档中的相关内容
                                              • 3、其他说明

                                                • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                              ================================================ FILE: lib/zTree_v3/demo/cn/core/expand.html ================================================ ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse

                                              展开 / 折叠父节点控制

                                              [ 文件路径: core/expand.html ]
                                                • 1、beforeCollapse / onCollapse
                                                    beforeExpand / onExpand 事件回调函数控制

                                                  • 利用 collapse / expand 事件回调函数 可以控制父节点是否允许 展开 / 折叠,这里简单演示如何监控此事件
                                                  • 试试看:
                                                         expandNode 方法是否触发 callback
                                                        单个节点--[ 展开 ]     [ 折叠 ]     [ 展开 / 折叠 切换 ]
                                                        单个节点(包括子节点)--[ 展开 ]     [ 折叠 ]
                                                        全部节点--[ 展开 ]     [ 折叠 ]

                                                  • 使用 zTreeObj.expandNode 方法,详细请参见 API 文档中的相关内容
                                                    collapse / expand log:

                                                  • 2、setting 配置信息说明

                                                    • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                                    • 如果需要调整 展开 / 折叠 的动画效果, 详细请参见 API 文档中 setting.view.expandSpeed 的相关内容
                                                  • 3、treeNode 节点数据说明

                                                    • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                  ================================================ FILE: lib/zTree_v3/demo/cn/core/noicon.html ================================================ ZTREE DEMO - noIcon

                                                  不显示节点图标的树

                                                  [ 文件路径: core/noicon.html ]
                                                    • 1、setting 配置信息说明

                                                      • 此 Demo 利用 Function 设置了使父节点不显示图标的规则
                                                      • 是否显示节点图标请设置 setting.view.showIcon 属性,详细请参见 API 文档中的相关内容
                                                    • 2、treeNode 节点数据说明

                                                      • 是否显示图标,不需要 treeNode 节点数据提供特殊设置,但如果用户需要根据不同节点动态设置,可以对节点数据增加特殊属性,用于判别
                                                    ================================================ FILE: lib/zTree_v3/demo/cn/core/noline.html ================================================ ZTREE DEMO - noLine

                                                    不显示连接线的树

                                                    [ 文件路径: core/noline.html ]
                                                      • 1、setting 配置信息说明

                                                        • 是否显示连接线请设置 setting.view.showLine 属性,详细请参见 API 文档中的相关内容
                                                      • 2、treeNode 节点数据说明

                                                        • 是否显示连线,不需要 treeNode 节点数据提供特殊设置
                                                      ================================================ FILE: lib/zTree_v3/demo/cn/core/otherMouse.html ================================================ ZTREE DEMO - Other Mouse Event

                                                      其他鼠标事件监听

                                                      [ 文件路径: core/otherMouse.html ]
                                                        • 1、mousedown / mouseup / rightClick 事件回调函数控制

                                                          • zTree 提供 这几种鼠标事件响应,主要是为了便于用户针对一些特殊需求进行扩展开发,不会对 zTree 造成任何影响,这里简单演示如何监控此事件
                                                          • 请尝试鼠标在 zTree 上胡乱点击(左键、右键)吧,顺便看看 log
                                                            mousedown event log:

                                                              mouseup event log:
                                                                rightClick event log:

                                                              • 2、setting 配置信息说明

                                                                • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                                              • 3、treeNode 节点数据说明

                                                                • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                              ================================================ FILE: lib/zTree_v3/demo/cn/core/searchNodes.html ================================================ ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy

                                                              根据参数查找节点

                                                              [ 文件路径: core/searchNodes.html ]
                                                                • 1、getNodeByParam / getNodesByParam / getNodesByParamFuzzy 方法操作说明

                                                                  • 使用 zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId 方法,详细请参见 API 文档中的相关内容
                                                                  • 搜索试试看:
                                                                    属性值( value ):
                                                                    属性( key ):name (string)
                                                                    level (number) ... 根节点 level = 0
                                                                    id (number)
                                                                    方法:getNodeByParam
                                                                    getNodesByParam
                                                                    getNodesByParamFuzzy (only string)
                                                                    getNodesByFilter (参考本页源码中 function filter)

                                                                • 2、setting 配置信息说明

                                                                  • 不需要对 setting 进行特殊设置
                                                                • 3、treeNode 节点数据说明

                                                                  • 请注意各个方法使用时保证传入查找的参数类型与设定要查找的属性的类型一致
                                                                ================================================ FILE: lib/zTree_v3/demo/cn/core/simpleData.html ================================================ ZTREE DEMO - Simple Data

                                                                最简单的树 -- 简单 JSON 数据

                                                                [ 文件路径: core/simpleData.html ]
                                                                  • 1、setting 配置信息说明

                                                                    • 必须设置 setting.data.simple 内的属性,详细请参见 API 文档中的相关内容
                                                                    • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                                    • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                                  • 2、treeNode 节点数据说明

                                                                    • 简单模式的 JSON 数据需要使用 id / pId 表示节点的父子包含关系,如使用其他属性设置父子关联关系请参考 setting.data.simple 内各项说明
                                                                      例如:
                                                                      var nodes = [
                                                                      	{id:1, pId:0, name: "父节点1"},
                                                                      	{id:11, pId:1, name: "子节点1"},
                                                                      	{id:12, pId:1, name: "子节点2"}
                                                                      ];
                                                                    • 默认展开的节点,请设置 treeNode.open 属性
                                                                    • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                                    • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                  • 3、其他说明

                                                                    • Demo 中绝大部分都采用简单 JSON 数据模式,以便于大家学习
                                                                  ================================================ FILE: lib/zTree_v3/demo/cn/core/standardData.html ================================================ ZTREE DEMO - Standard Data

                                                                  最简单的树 -- 标准 JSON 数据

                                                                  [ 文件路径: core/standardData.html ]
                                                                    • 1、setting 配置信息说明

                                                                      • 普通使用,无必须设置的参数
                                                                      • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                                      • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                                    • 2、treeNode 节点数据说明

                                                                      • 标准的 JSON 数据需要嵌套表示节点的父子包含关系
                                                                        例如:
                                                                        var nodes = [
                                                                        	{name: "父节点1", children: [
                                                                        		{name: "子节点1"},
                                                                        		{name: "子节点2"}
                                                                        	]}
                                                                        ];
                                                                      • 默认展开的节点,请设置 treeNode.open 属性
                                                                      • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                                      • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/core/update_fun.html ================================================ ZTREE DEMO - updateNode

                                                                    用 zTree 方法 更新 节点数据

                                                                    [ 文件路径: core/update_fun.html ]
                                                                      • 1、updateNode 方法操作说明

                                                                        • 使用 zTreeObj.updateNode 方法,详细请参见 API 文档中的相关内容
                                                                        • 此 Demo 只能同时选中一个节点
                                                                          试试看:[ 换名字 ]     [ 换图标 ]     [ 换颜色 ]     [ 斜体 ]

                                                                      • 2、setting 配置信息说明

                                                                        • 不需要对 setting 进行特殊设置
                                                                        • 配合 setting.view.fontCss 可以修改节点文字样式
                                                                      • 3、treeNode 节点数据说明

                                                                        • zTreeObj.updateNode 方法的 API 文档中有详细说明
                                                                      • 4、其他说明

                                                                        • 此 Demo 是针对 核心 js 包 core 制作的,因此不包括 checkbox 的更新操作
                                                                      ================================================ FILE: lib/zTree_v3/demo/cn/core/url.html ================================================ ZTREE DEMO - url

                                                                      超链接演示

                                                                      [ 文件路径: core/url.html ]
                                                                        • 1、setting 配置信息说明

                                                                          • 普通使用,无必须设置的参数
                                                                          • 如果需要灵活控制超链接跳转,请利用 onClick 事件回调函数进行控制,详细请参见 API 文档中的相关内容
                                                                        • 2、treeNode 节点数据说明

                                                                          • 1、url 属性用于设置 页面跳转的路径
                                                                          • 2、target 属性用于设置 页面跳转的窗口目标
                                                                          • 3、click 属性用于设置简单的 onClick 事件
                                                                          • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                        ================================================ FILE: lib/zTree_v3/demo/cn/excheck/checkbox.html ================================================ ZTREE DEMO - checkbox

                                                                        Checkbox 勾选操作

                                                                        [ 文件路径: excheck/checkbox.html ]
                                                                          • 1、setting 配置信息说明

                                                                            • 使用 checkbox,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                            • 父子关联关系:
                                                                              被勾选时:关联父 关联子
                                                                              取消勾选时:关联父 关联子

                                                                            • 2、treeNode 节点数据说明

                                                                              • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                              • 2)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容 和 'chkDisabled 演示'
                                                                              • 3)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容 和 'nocheck 演示'
                                                                              • 4)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                              • 5)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                            ================================================ FILE: lib/zTree_v3/demo/cn/excheck/checkbox_chkDisabled.html ================================================ ZTREE DEMO - Checkbox chkDisabled

                                                                            Checkbox chkDisabled 演示

                                                                            [ 文件路径: excheck/checkbox_chkDisabled.html ]
                                                                              • 1、setChkDisabled 方法操作说明

                                                                                • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                                • 试试看:
                                                                                  禁用时:关联父 关联子
                                                                                  取消禁用时:关联父 关联子
                                                                                      [ 禁用 ]     [ 取消禁用 ]

                                                                              • 2、setting 配置信息说明

                                                                                • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                              • 3、treeNode 节点数据说明

                                                                                • 1)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                                • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                              ================================================ FILE: lib/zTree_v3/demo/cn/excheck/checkbox_count.html ================================================ ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes

                                                                              checkbox 勾选统计

                                                                              [ 文件路径: excheck/checkbox_count.html ]
                                                                                • 1、getChangeCheckedNodes / getCheckedNodes 方法操作说明

                                                                                  • 使用 zTreeObj.getChangeCheckedNodes / getCheckedNodes 方法,详细请参见 API 文档中的相关内容
                                                                                  • 去勾选 checkbox 比较下面的数字变化:

                                                                                    • 当前被勾选的节点共
                                                                                    • 当前未被勾选的节点共
                                                                                    • 勾选状态对比规则:与 zTree 初始化时对比
                                                                                      与上一次勾选后对比
                                                                                    • 当前被修改勾选状态的节点共

                                                                                • 2、setting 配置信息说明

                                                                                  • 同 "checkbox 勾选操作" 中的说明
                                                                                • 3、treeNode 节点数据说明

                                                                                  • 同 "checkbox 勾选操作" 中的说明
                                                                                ================================================ FILE: lib/zTree_v3/demo/cn/excheck/checkbox_fun.html ================================================ ZTREE DEMO - beforeCheck / onCheck

                                                                                用 zTree 方法 勾选 checkbox

                                                                                [ 文件路径: excheck/checkbox_fun.html ]
                                                                                  • 1、beforeCheck / onCheck 事件回调函数控制

                                                                                    • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                                    • 这里还演示了 checkNode / checkAllNodes 方法触发 beforeCheck / onCheck 事件回调函数的情况,试试看:
                                                                                           setting.check.autoCheckTrigger: false
                                                                                           执行勾选方法是否触发 callback
                                                                                          单节点--[ 勾选 ]     [ 取消勾选 ]     [ 勾选 切换 ]
                                                                                          单节点 ( 影响父子 )--[ 勾选 ]     [ 取消勾选 ]     [ 勾选 切换 ]
                                                                                          全部节点--[ 勾选 ]     [ 取消勾选 ]

                                                                                    • 使用 zTreeObj.checkNode / checkAllNodes 方法,详细请参见 API 文档中的相关内容
                                                                                      beforeCheck / onCheck log:

                                                                                    • 2、setting 配置信息说明

                                                                                      • 同 "checkbox 勾选操作" 中的说明
                                                                                    • 3、treeNode 节点数据说明

                                                                                      • 同 "checkbox 勾选操作" 中的说明
                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/excheck/checkbox_halfCheck.html ================================================ ZTREE DEMO - Checkbox halfCheck

                                                                                    Checkbox halfCheck 演示

                                                                                    [ 文件路径: excheck/checkbox_halfCheck.html ]
                                                                                      • 1、演示说明

                                                                                        • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                                        • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                                        • 2)、勾选父节点,可以影响之后加载的子节点的勾选状态
                                                                                        • 3)、勾选父节点,可以让其子节点的 halfCheck 属性失效
                                                                                      • 2、setting 配置信息说明

                                                                                        • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                                      • 3、treeNode 节点数据说明

                                                                                        • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                                        • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                      ================================================ FILE: lib/zTree_v3/demo/cn/excheck/checkbox_nocheck.html ================================================ ZTREE DEMO - no checkbox

                                                                                      Checkbox nocheck 演示

                                                                                      [ 文件路径: excheck/checkbox_nocheck.html ]
                                                                                        • 1、setting 配置信息说明

                                                                                          • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                                          • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                          • 试试看:
                                                                                                [ 隐藏 ]     [ 显示 ]

                                                                                        • 2、treeNode 节点数据说明

                                                                                          • 1)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                          • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                        ================================================ FILE: lib/zTree_v3/demo/cn/excheck/radio.html ================================================ ZTREE DEMO - radio

                                                                                        Radio 勾选操作

                                                                                        [ 文件路径: excheck/radio.html ]
                                                                                          • 1、setting 配置信息说明

                                                                                            • 使用 radio,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                            • radio 分组范围:同一级内 整棵树内

                                                                                            • 2、treeNode 节点数据说明

                                                                                              • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                                              • 2)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                              • 3)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                                              • 4)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                                            ================================================ FILE: lib/zTree_v3/demo/cn/excheck/radio_chkDisabled.html ================================================ ZTREE DEMO - Radio chkDisabled

                                                                                            Radio chkDisabled 演示

                                                                                            [ 文件路径: excheck/radio_chkDisabled.html ]
                                                                                              • 1、setChkDisabled 方法操作说明

                                                                                                • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                                                • 试试看:
                                                                                                      [ 禁用 ]     [ 取消禁用 ]

                                                                                              • 2、setting 配置信息说明

                                                                                                • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                              • 3、treeNode 节点数据说明

                                                                                                • 1)、如果某节点不显示 radio,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                                                • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                              ================================================ FILE: lib/zTree_v3/demo/cn/excheck/radio_fun.html ================================================ ZTREE DEMO - beforeCheck / onCheck

                                                                                              用 zTree 方法 勾选 radio

                                                                                              [ 文件路径: excheck/radio_fun.html ]
                                                                                                • 1、beforeCheck / onCheck 事件回调函数控制

                                                                                                  • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                                                  • 试试看:
                                                                                                         checkNode 方法是否触发 callback
                                                                                                        [ 勾选 ]     [ 取消勾选 ]

                                                                                                  • 使用 zTreeObj.checkNode 方法,详细请参见 API 文档中的相关内容
                                                                                                    beforeCheck / onCheck log:

                                                                                                  • 2、setting 配置信息说明

                                                                                                    • 同 "radio 勾选操作" 中的说明
                                                                                                  • 3、treeNode 节点数据说明

                                                                                                    • 同 "radio 勾选操作" 中的说明
                                                                                                  ================================================ FILE: lib/zTree_v3/demo/cn/excheck/radio_halfCheck.html ================================================ ZTREE DEMO - Radio halfCheck

                                                                                                  Radio halfCheck 演示

                                                                                                  [ 文件路径: excheck/radio_halfCheck.html ]
                                                                                                    • 1、演示说明

                                                                                                      • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                                                      • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                                                      • 2)、勾选父节点,不会影响子节点的勾选状态
                                                                                                      • 3)、勾选父节点,不会让其子节点的 halfCheck 属性失效
                                                                                                    • 2、setting 配置信息说明

                                                                                                      • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                                                    • 3、treeNode 节点数据说明

                                                                                                      • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                                                      • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/excheck/radio_nocheck.html ================================================ ZTREE DEMO - no radio

                                                                                                    Radio nocheck 演示

                                                                                                    [ 文件路径: excheck/radio_nocheck.html ]
                                                                                                      • 1、setting 配置信息说明

                                                                                                        • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                                        • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                      • 2、treeNode 节点数据说明

                                                                                                        • 1)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                        • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                                      ================================================ FILE: lib/zTree_v3/demo/cn/exedit/async_edit.html ================================================ ZTREE DEMO - async & edit

                                                                                                      异步加载 & 编辑功能 共存

                                                                                                      [ 文件路径: exedit/async_edit.html ]
                                                                                                        • 1、异步加载 & 编辑功能 共存说明

                                                                                                          • 1)、此 Demo 是基于 "高级 增 / 删 / 改 节点" 修改的,并且开放了拖拽功能,可与其进行对比
                                                                                                          • 2)、只需要同时开启编辑模式和异步加载模式即可实现共存
                                                                                                          • 3)、zTree 完善了异步加载模式下的编辑功能,对于未加载子节点的父节点,增加子节点时,会首先进行异步加载。
                                                                                                        • 2、setting 配置信息说明

                                                                                                          • 1)、使用 编辑功能,请参考 "拖拽节点基本控制" 和 "基本 增 / 删 / 改 节点" Demo 中关于 setting 的配置要求
                                                                                                          • 2)、使用 异步加载功能,请参考 "异步加载 节点数据" Demo 中关于 setting 的配置要求
                                                                                                        • 3、treeNode 节点数据说明

                                                                                                          • 两种模式共存,对数据无特殊要求,请分别参考 "异步加载 节点数据" & "拖拽 节点 基本控制" & "基本 增 / 删 / 改 节点" 中的相关说明
                                                                                                        ================================================ FILE: lib/zTree_v3/demo/cn/exedit/drag.html ================================================ ZTREE DEMO - drag & drop

                                                                                                        拖拽节点基本控制

                                                                                                        [ 文件路径: exedit/drag.html ]
                                                                                                          • 1、setting 配置信息说明

                                                                                                            • 此 Demo 仅从功能上演示实现拖拽的基本方法和配置参数
                                                                                                            • 1)、使用 拖拽功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                            • 2)、使用 拖拽功能的事件回调函数,必须设置 setting.callback.beforeDrag / onDrag / beforeDrop / onDrop 等属性,详细请参见 API 文档中的相关内容
                                                                                                            • 基本拖拽设置:
                                                                                                              允许复制 允许移动

                                                                                                              • 拖拽相对位置设置:
                                                                                                                prev inner next

                                                                                                              • 2、treeNode 节点数据说明

                                                                                                                • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                              ================================================ FILE: lib/zTree_v3/demo/cn/exedit/drag_fun.html ================================================ ZTREE DEMO - copyNode / moveNode

                                                                                                              用 zTree 方法 移动 / 复制节点

                                                                                                              [ 文件路径: exedit/drag_fun.html ]
                                                                                                                • 1、copyNode / moveNode 方法操作说明

                                                                                                                  • 利用 copyNode / moveNode 方法也可以实现 复制 / 移动 节点的目的,这里简单演示使用方法
                                                                                                                  • 对节点进行 复制 / 剪切,试试看:
                                                                                                                        [ 复制 ]     [ 剪切 ]     [ 粘贴 ]

                                                                                                                  • 使用 zTreeObj.copyNode / moveNode 方法,详细请参见 API 文档中的相关内容
                                                                                                                • 2、setting 配置信息说明

                                                                                                                  • 同 "拖拽 节点 基本控制"
                                                                                                                • 3、treeNode 节点数据说明

                                                                                                                  • 同 "拖拽 节点 基本控制"
                                                                                                                ================================================ FILE: lib/zTree_v3/demo/cn/exedit/drag_super.html ================================================ ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop

                                                                                                                拖拽节点高级控制

                                                                                                                [ 文件路径: exedit/drag_super.html ]
                                                                                                                  • 1、beforeDrag / onDrag
                                                                                                                      beforeDrop / onDrop 事件回调函数控制

                                                                                                                    • 此 Demo 演示合理利用配置参数实现更加灵活、更加合理的拖拽规则,操作时可以对比"基本控制"的例子
                                                                                                                    • 此 Demo 默认 允许复制 / 移动
                                                                                                                    • 此 Demo 中拖拽相对位置设置为 function,可以根据节点动态设定,从而可以放弃使用 beforeDrop 回调函数,拖拽时的效果会更好
                                                                                                                    • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的拖拽规则!
                                                                                                                           拖拽节点时自动展开父节点是否触发 callback
                                                                                                                      drag / drop log:

                                                                                                                    • 2、setting 配置信息说明

                                                                                                                      • 同 "拖拽 节点 基本控制"
                                                                                                                    • 3、treeNode 节点数据说明

                                                                                                                      • 同 "拖拽 节点 基本控制"
                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/exedit/edit.html ================================================ ZTREE DEMO - edit

                                                                                                                    基本 增 / 删 / 改 节点

                                                                                                                    [ 文件路径: exedit/edit.html ]
                                                                                                                      • 1、setting 配置信息说明

                                                                                                                        • 此 Demo 仅从功能上演示编辑节点的基本方法和配置参数
                                                                                                                        • 1)、使用 编辑功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                        • 2)、使用 编辑功能的事件回调函数,必须设置 setting.callback.beforeRemove / onRemove / beforeRename / onRename 等属性,详细请参见 API 文档中的相关内容
                                                                                                                        • 3)、zTree 不提供默认的增加按钮,如需实现请利用自定义控件的方法 addHoverDom / removeHoverDom ,详细请参见 API 文档中的相关内容;另外也可以参考 "高级 增 / 删 / 改 节点" 的 Demo
                                                                                                                        • 基本编辑按钮设置:
                                                                                                                          显示删除按钮 显示编辑按钮
                                                                                                                          remove 按钮的 title:
                                                                                                                          rename 按钮的 title:

                                                                                                                        • 2、treeNode 节点数据说明

                                                                                                                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/cn/exedit/edit_fun.html ================================================ ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes

                                                                                                                        用 zTree 方法 增 / 删 / 改 节点

                                                                                                                        [ 文件路径: exedit/edit_fun.html ]
                                                                                                                          • 1、addNodes / editName / removeNode / removeChildNodes 方法操作说明

                                                                                                                            • 利用 addNodes / editName / removeNode / removeChildNodes 方法也可以实现 增 / 删 / 改 节点的目的,这里简单演示使用方法
                                                                                                                            • cancelEditName 方法仅仅是在节点进入名称编辑状态时有效,请在必要时使用,Demo 不进行此方法的演示
                                                                                                                            • 利用 setting.data.keep.parent / leaf 属性 实现了父节点、叶子节点的状态锁定
                                                                                                                            • 对节点进行 增 / 删 / 改,试试看:
                                                                                                                                   removeNode 方法是否触发 callback
                                                                                                                                  [ 增加父节点 ]     [ 增加叶子节点 ]     [ 编辑名称 ]
                                                                                                                                  [ 删除节点 ]     [ 清空子节点 ]
                                                                                                                              remove log:

                                                                                                                              • 使用 zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes 方法,详细请参见 API 文档中的相关内容
                                                                                                                            • 2、setting 配置信息说明

                                                                                                                              • 同 "基本 增 / 删 / 改 节点"
                                                                                                                              • 保持 父 / 叶子 节点状态,需要设置 setting.data.keep.parent / leaf 属性,详细请参见 API 文档中的相关内容
                                                                                                                            • 3、treeNode 节点数据说明

                                                                                                                              • 同 "基本 增 / 删 / 改 节点"
                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/cn/exedit/edit_super.html ================================================ ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename

                                                                                                                            高级 增 / 删 / 改 节点

                                                                                                                            [ 文件路径: exedit/edit_super.html ]
                                                                                                                              • 1、beforeEditName
                                                                                                                                  beforeRemove / onRemove
                                                                                                                                  beforeRename / onRename 事件回调函数控制

                                                                                                                                • 此 Demo 演示合理利用自定义控件、事件回调函数配合以增强用户体验,操作时可以对比"基本 增 / 删 / 改 节点"的 Demo
                                                                                                                                • 此 Demo 实现增加节点按钮
                                                                                                                                • 此 Demo 实现删除节点时进行确认
                                                                                                                                • 此 Demo 利用 showRenameBtn 对 isLastNode = true 的节点不显示编辑按钮
                                                                                                                                • 此 Demo 利用 showRemoveBtn 对 isFirstNode = true 的节点不显示删除按钮
                                                                                                                                • 可以利用 beforeEditName 触发自定义的编辑操作
                                                                                                                                • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的编辑界面!
                                                                                                                                       编辑名称时是否全选 text
                                                                                                                                  remove / rename log:  红色 表示取消编辑操作 (v3.5.13+)

                                                                                                                                • 2、setting 配置信息说明

                                                                                                                                  • 同 "基本 增 / 删 / 改 节点"
                                                                                                                                • 3、treeNode 节点数据说明

                                                                                                                                  • 同 "基本 增 / 删 / 改 节点"
                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/cn/exedit/multiTree.html ================================================ ZTREE DEMO - multiTree

                                                                                                                                多棵树之间 的 数据交互

                                                                                                                                [ 文件路径: exedit/multiTree.html ]
                                                                                                                                • 1、setting 配置信息说明

                                                                                                                                  • zTree 对于多棵树之间拖拽的操作非常简单,只需要创建两棵可拖拽的树即可,同时可根据 各种事件回调函数 以及 zTree 的方法配合实现较复杂的操作规则,这里只是基本演示。
                                                                                                                                  • 关于配置信息请参考拖拽、编辑等 Demo 的详细说明
                                                                                                                                • 2、treeNode 节点数据说明

                                                                                                                                  • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/exhide/checkbox.html ================================================ ZTREE DEMO - Hide With Checkbox Mode

                                                                                                                                    配合 checkbox 的隐藏

                                                                                                                                    [ 文件路径: exhide/checkbox.html ]
                                                                                                                                      • 1、setting 配置信息说明

                                                                                                                                        • 使用隐藏功能,无需设置任何参数
                                                                                                                                      • 2、treeNode 节点数据说明

                                                                                                                                        • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                        • 隐藏、显示节点,看看树的变化:

                                                                                                                                          试试看:[ 隐藏选中的节点 ]     [ 显示全部被隐藏的节点 ]

                                                                                                                                          • isHidden = true 的节点共
                                                                                                                                          • 被隐藏的节点共
                                                                                                                                          • 当前被勾选的节点共
                                                                                                                                          • 当前未被勾选的节点共
                                                                                                                                          • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性

                                                                                                                                      • 3、其他说明

                                                                                                                                        • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/cn/exhide/common.html ================================================ ZTREE DEMO - Hide Ordinary Node

                                                                                                                                      隐藏普通节点

                                                                                                                                      [ 文件路径: exhide/common.html ]
                                                                                                                                        • 1、setting 配置信息说明

                                                                                                                                          • 使用此功能,无需设置任何参数
                                                                                                                                        • 2、treeNode 节点数据说明

                                                                                                                                          • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                          • 隐藏、显示节点,看看树的变化:

                                                                                                                                            试试看:[ 隐藏选中的节点 ]     [ 显示全部被隐藏的节点 ]

                                                                                                                                            • isHidden = true 的节点共
                                                                                                                                            • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性

                                                                                                                                        • 3、其他说明

                                                                                                                                          • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/cn/exhide/radio.html ================================================ ZTREE DEMO - Hide With Radio Mode

                                                                                                                                        配合 radio 的隐藏

                                                                                                                                        [ 文件路径: exhide/radio.html ]
                                                                                                                                          • 1、setting 配置信息说明

                                                                                                                                            • 使用隐藏功能,无需设置任何参数
                                                                                                                                          • 2、treeNode 节点数据说明

                                                                                                                                            • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                            • 隐藏、显示节点,看看树的变化:

                                                                                                                                              试试看:[ 隐藏选中的节点 ]     [ 显示全部被隐藏的节点 ]

                                                                                                                                              • isHidden = true 的节点共
                                                                                                                                              • 被隐藏的节点共
                                                                                                                                              • 当前被勾选的节点共
                                                                                                                                              • 当前未被勾选的节点共
                                                                                                                                              • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性

                                                                                                                                          • 3、其他说明

                                                                                                                                            • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                          ================================================ FILE: lib/zTree_v3/demo/cn/index.html ================================================ ZTREE DEMO
                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/cn/super/asyncForAll.html ================================================ ZTREE DEMO - async for All

                                                                                                                                            异步加载模式下全部展开

                                                                                                                                            [ 文件路径: super/asyncForAll.html ]
                                                                                                                                              • 实现方法说明

                                                                                                                                                • 利用 onAsyncSuccess / onAsyncError 回调函数 和 reAsyncChildNodes 或 expandNode 方法可以实现全部功能。
                                                                                                                                                • 如果父节点数量很大,请注意利用延时进行控制,避免异步进程过多。
                                                                                                                                                • 建议:演示时请利用调试工具查看 network 的 ajax 加载过程。
                                                                                                                                                • 演示操作

                                                                                                                                                  [ 全部展开 ]        [ 后台自动全部加载 ]

                                                                                                                                                  [ Reset zTree ]

                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/cn/super/awesome.html ================================================ ZTREE DEMO - awesome 风格

                                                                                                                                              Awesome 风格

                                                                                                                                              [ 文件路径: super/awesome.html ]
                                                                                                                                                • 实现方法说明

                                                                                                                                                  • 你需要在页面中引入 fontawesome 样式 (http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css)
                                                                                                                                                  • <= 小汽车图标 (如果 fontawesome 样式被正常加载,你可以正常看到)
                                                                                                                                                  • 引入 适配 zTree 的 样式文件: 'css/awesomeStyle'
                                                                                                                                                  • 感谢 mikkelking 提供这个 Demo. (仅供参考)
                                                                                                                                                  • Mode:

                                                                                                                                              • ================================================ FILE: lib/zTree_v3/demo/cn/super/checkbox_radio.html ================================================ ZTREE DEMO - checkbox & radio

                                                                                                                                                checkbox / radio 共存

                                                                                                                                                [ 文件路径: super/checkbox_radio.html ]
                                                                                                                                                  • 实现方法说明

                                                                                                                                                    • zTree 默认的 checkbox 和 radio 是无法共存的,但可以利用 自定义控件 的功能实现此需求,具体需求可以参考 "添加 自定义控件" 的详细说明
                                                                                                                                                    • 对于 checkbox / radio 的联动规则,请根据需求制定自己的规则
                                                                                                                                                  ================================================ FILE: lib/zTree_v3/demo/cn/super/diydom.html ================================================ ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom

                                                                                                                                                  添加自定义控件

                                                                                                                                                  [ 文件路径: super/diydom.html ]
                                                                                                                                                    • 1、实现方法说明

                                                                                                                                                      • 利用 setting.view.addHoverDom / removeHoverDom / addDiyDom 这几个参数的配置可以很容易的实现自定义控件的功能
                                                                                                                                                      • 添加自定义控件,请务必掌握 zTree 节点对象的命名规则,以保证正常添加 DOM 控件
                                                                                                                                                      • 如果添加标准的 select / checkbox / radio 等,请注意适当调整 zTree 的布局 css,保证 zTree 能正常显示
                                                                                                                                                    • 2、setting 配置信息说明

                                                                                                                                                      • 使用 setting.view.addHoverDom / removeHoverDom / addDiyDom 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                    • 3、treeNode 节点数据说明

                                                                                                                                                      • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/super/dragWithOther.html ================================================ ZTREE DEMO - drag with other DOM

                                                                                                                                                    与其他 DOM 拖拽互动

                                                                                                                                                    [ 文件路径: super/dragWithOther.html ]
                                                                                                                                                      • 实现方法说明

                                                                                                                                                        • zTree v3.2 版本修正了 onDrag/onDrop 中的 event 对象; v3.5.16 版本增加了 onDragMove; 因此可以较容易的控制将节点拖拽到其他 DOM
                                                                                                                                                        • 将其他 DOM 拖拽到 zTree 需要自己制作相关的拖拽代码
                                                                                                                                                        • 这仅仅是一个最简单的演示,如果需要更炫的效果,需要制作更复杂的代码
                                                                                                                                                      • 请拖拽下面内容到 树节点上

                                                                                                                                                        大树小草花朵
                                                                                                                                                        老虎狗熊狮子
                                                                                                                                                        也可以把二级节点拖拽到以上图层
                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/cn/super/fuzzySearch.html ================================================ ZTREE DEMO - fuzzySearch

                                                                                                                                                      根据关键字模糊查找节点

                                                                                                                                                      [ 文件路径: fuzzySearch/fuzzySearch.html ]
                                                                                                                                                        • 1、fuzzySearch()方法使用说明

                                                                                                                                                          • @param zTreeId ztree对象的id,不需要#
                                                                                                                                                          • @param searchField 输入框选择器
                                                                                                                                                          • @param isHighLight 是否高亮,默认高亮,传入false禁用
                                                                                                                                                          • @param isExpand 是否展开,默认合拢,传入true展开
                                                                                                                                                          • fuzzySearch ( zTreeId, searchField, isHighLight, isExpand )
                                                                                                                                                          • 搜索试试看:
                                                                                                                                                            关键字:

                                                                                                                                                        • 2、依赖的js

                                                                                                                                                          • ztree v3.5.19.1及以上,使用到getPath()方法
                                                                                                                                                          • ztree.exhide扩展,使用到hideNode()方法
                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/cn/super/left_menu.html ================================================ ZTREE DEMO - left_menu

                                                                                                                                                        左侧菜单

                                                                                                                                                        [ 文件路径: super/left_menu.html ]
                                                                                                                                                          • 实现方法说明

                                                                                                                                                            • 在 “Demo 演示”中的左侧菜单就是用 zTree 实现的,主要是靠 css 样式负责排版,利用 setting 中的配置进行功能制作,本 Demo 对实现 左侧菜单进行简单的介绍,你也可以通过查看 “Demo 演示”页面的源码深入了解。
                                                                                                                                                            • 1、关于 css 完全可以根据自己的需要进行个性化调整,例如:此 Demo 的菜单样式 就 与 “Demo 演示”页面的不一样,仅供对比参考
                                                                                                                                                            • 2、主要用到的配置有:
                                                                                                                                                                  setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                                  setting.callback.onNodeCreated / beforeClick / onClick
                                                                                                                                                            • 3、是否需要限制单一路径展开,完全由你的需求而定,实现代码可参考 "保持展开单一路径"
                                                                                                                                                            • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                                          ================================================ FILE: lib/zTree_v3/demo/cn/super/left_menuForOutLook.html ================================================ ZTREE DEMO - left_menu for Outlook

                                                                                                                                                          OutLook 样式的左侧菜单

                                                                                                                                                          [ 文件路径: super/left_menuForOutLook.html ]
                                                                                                                                                            • 实现方法说明

                                                                                                                                                              • 帮朋友用 zTree 实现了一个貌似 Outlook.com 的菜单,特拿出来分享给大家
                                                                                                                                                              • 1、请注意本页面源码中的 css 部分
                                                                                                                                                              • 2、请查看源码中 js 的使用,特别是利用 addDiyDom 回调将 展开按钮 转移到 <a> 标签内
                                                                                                                                                              • 3、利用添加 zTree 的 class 实现展开按钮的隐藏、显示
                                                                                                                                                              • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                                              • 5、当前规则说明:
                                                                                                                                                                  单击根节点可以展开、折叠;
                                                                                                                                                                  非根节点只有点击 箭头 图标才可以展开、折叠;
                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/cn/super/metro.html ================================================ ZTREE DEMO - Simple Data

                                                                                                                                                            Metro 风格

                                                                                                                                                            [ 文件路径: super/metro.html ]
                                                                                                                                                              • 1、样式文件说明

                                                                                                                                                                • 请使用 css/metroStyle 目录内的样式文件 和 图片
                                                                                                                                                                • 感谢网友 rqx110 提供, 仅供参考
                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/cn/super/oneclick.html ================================================ ZTREE DEMO - one click

                                                                                                                                                              单击展开/折叠节点

                                                                                                                                                              [ 文件路径: super/oneclick.html ]
                                                                                                                                                                • 实现方法说明

                                                                                                                                                                  • zTree 默认不提供单击展开节点的功能,但可以利用 onClick 事件回调函数轻松实现此功能
                                                                                                                                                                  • 为了避免与双击功能冲突,建议关闭双击展开节点的功能,请设置 setting.view.dblClickExpand = false
                                                                                                                                                                  • 可以将所有的 +/- 开关隐藏,请查看本页面源码,查看 css 设置
                                                                                                                                                                  • 由于 +/- 开关与 节点连接线是配套的,所以如果不显示 +/- 开关的话,那么请设置 setting.view.showLine = false 隐藏连接线
                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/cn/super/oneroot.html ================================================ ZTREE DEMO - one root

                                                                                                                                                                冻结根节点

                                                                                                                                                                [ 文件路径: super/oneroot.html ]
                                                                                                                                                                  • 实现方法说明

                                                                                                                                                                    • 对于这种只有一个根节点,且不显示 +/- 开关的需求,需要利用 css、setting 配合使用
                                                                                                                                                                    • zTree v3.x 可以针对指定的 level,进行样式设定,请查看本页面源码,查看 css 设置
                                                                                                                                                                    • 设置 setting.view.dblClickExpand 指向 Function,可以只针对根节点关闭双击展开的操作
                                                                                                                                                                  ================================================ FILE: lib/zTree_v3/demo/cn/super/rightClickMenu.html ================================================ ZTREE DEMO - select menu

                                                                                                                                                                  右键菜单的实现

                                                                                                                                                                  [ 文件路径: super/rightClickMenu.html ]
                                                                                                                                                                    • 实现方法说明

                                                                                                                                                                      • 利用 beforeRightClick / onRightClick 事件回调函数简单实现的右键菜单
                                                                                                                                                                      • Demo 中的菜单比较简陋,你完全可以配合其他自定义样式的菜单图层混合使用
                                                                                                                                                                    • 增加节点
                                                                                                                                                                    • 删除节点
                                                                                                                                                                    • Check节点
                                                                                                                                                                    • unCheck节点
                                                                                                                                                                    • 恢复zTree
                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/super/select_menu.html ================================================ ZTREE DEMO - select menu

                                                                                                                                                                    下拉菜单

                                                                                                                                                                    [ 文件路径: super/select_menu.html ]
                                                                                                                                                                    •   选择城市时,按下 Ctrl 或 Cmd 键可以进行多选
                                                                                                                                                                    •   城市:  选择
                                                                                                                                                                    • 实现方法说明

                                                                                                                                                                      • 用 zTree 实现这种下拉菜单,应该说是比较容易的,你只需要控制 zTree 所在容器的隐藏/显示,以及位置即可。
                                                                                                                                                                      • zTree v3.x 实现了多点选中功能,因此对于需要多选的下拉菜单也易如反掌。
                                                                                                                                                                      • 利用 setting 的各项配置参数,完全可以满足大部分的功能需求。
                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/super/select_menu_checkbox.html ================================================ ZTREE DEMO - checkbox select menu

                                                                                                                                                                    带 checkbox 的多选下拉菜单 -- zTree

                                                                                                                                                                    [ 文件路径: super/select_menu_checkbox.html ]
                                                                                                                                                                    •   勾选 checkbox 或者 点击节点 进行选择
                                                                                                                                                                    •   Test:  select
                                                                                                                                                                    • 实现方法说明

                                                                                                                                                                      • 用 checkbox 也可以轻松实现多选的下拉菜单
                                                                                                                                                                      • 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/super/select_menu_radio.html ================================================ ZTREE DEMO - radio select menu

                                                                                                                                                                    带 radio 的单选下拉菜单 -- zTree

                                                                                                                                                                    [ 文件路径: super/select_menu_radio.html ]
                                                                                                                                                                    •   勾选 radio 或者 点击节点 进行选择
                                                                                                                                                                    •   Test:  select
                                                                                                                                                                    • 实现方法说明

                                                                                                                                                                      • 用 radio 也可以轻松实现单选的下拉菜单
                                                                                                                                                                      • 单选其实没有必要使用 radio, 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/cn/super/singlepath.html ================================================ ZTREE DEMO - single path

                                                                                                                                                                    保持展开单一路径

                                                                                                                                                                    [ 文件路径: super/singlepath.html ]
                                                                                                                                                                      • 实现方法说明

                                                                                                                                                                        • 此 Demo 是在 "单击展开/折叠节点" 基础上改造而来,树节点保持始终只展开一条路径。
                                                                                                                                                                        • 利用 setting.callback.beforeExpand / onExpand 事件回调函数实现展开规则
                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/asyncData/getNodes.php ================================================ [] ================================================ FILE: lib/zTree_v3/demo/en/asyncData/getNodesForBigData.php ================================================ [] ================================================ FILE: lib/zTree_v3/demo/en/bigdata/common.html ================================================ ZTREE DEMO - big data common

                                                                                                                                                                      One-time Large Data Loading

                                                                                                                                                                      [ File Path: bigdata/common.html ]
                                                                                                                                                                      • Adjust the total number of nodes to the test load speed:
                                                                                                                                                                        5000
                                                                                                                                                                        checkbox     [ Initialize zTree ]
                                                                                                                                                                        • 1, Explanation of large data load

                                                                                                                                                                          • 1) zTree v3.x optimized for one-time large data loading capacity, using a lazy loading technique, which does not expand the node does not create child nodes of the DOM.
                                                                                                                                                                          • 2) If a maximum of 100 nodes each, but a total number of several thousand or even tens of thousands of nodes, and the parent node is collapsed by default to optimize the most obvious effect, very fast.
                                                                                                                                                                          • 3) For the next level there are thousands of sub-node case, the optimization of lazy loading is invalid, proposal to consider asynchronous page loading.
                                                                                                                                                                          • 4) if you set the data to all the parent nodes are expanded, the optimization of lazy loading is invalid, proposal to not expand all parent node when you initialize zTree.
                                                                                                                                                                          • 5) set the display checkbox / radio will affect some of the performance.
                                                                                                                                                                          • 6) DOM generated using addDiyDom function will affect the speed, the number of nodes determines the number of impact situations.
                                                                                                                                                                          • 7) Using 'onNodeCreated' callback function to manipulate nodes object will affect the speed, the degree of influence determined by the number of nodes.
                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                          • No special configuration.
                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/bigdata/diy_async.html ================================================ ZTREE DEMO - big data async

                                                                                                                                                                        Loading Data in Batches

                                                                                                                                                                        [ File Path: bigdata/diy_async.html ]
                                                                                                                                                                        •     Demo for testing load data in batches, each node needs to re-start to load.
                                                                                                                                                                          • 1, Explanation of large data load

                                                                                                                                                                            • 1) If has nodes for as many as thousands in one level, lazy loading is invalid, this demo shows how to load data in batches.
                                                                                                                                                                            • 2) This method applies to thousands of nodes must all display needs.
                                                                                                                                                                            • 3) This method doesn't solve the problem of slow loading, it will only make the final result appear more slowly, but can be limited to avoid browser suspended animation, and more nodes displayed slower.
                                                                                                                                                                            • 4) For at least several thousand nodes in one level case, another solution is to: pagination loading.
                                                                                                                                                                              async load log:
                                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                                              • Need to set the parameters in setting.async
                                                                                                                                                                              • Advised to turn off animation effects: setting.view.expandSpeed = "";
                                                                                                                                                                              • No other special configuration, the user can set their own requirements.
                                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                                              • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/en/bigdata/page.html ================================================ ZTREE DEMO - big data page

                                                                                                                                                                            Loading Data By Pagination

                                                                                                                                                                            [ File Path: bigdata/page.html ]
                                                                                                                                                                              • 1, Explanation of large data load

                                                                                                                                                                                • 1) Pagination can be an effective solution to the large number of child nodes of the situation.
                                                                                                                                                                                • 2) Using custom method to display the pagination button.
                                                                                                                                                                                • 3) Pagination lead to the association of checkbox can not be achieved, only correction after show each page . Because of the time limitation, Demo does not deal with association of checkbox.
                                                                                                                                                                                • 4) The use of pagination, you can only get the current page node data from zTree. You can save the data after each page loading as the cache, according to the demand to determine the specific methods.
                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                  • Need to set the parameters in setting.async
                                                                                                                                                                                  • No other special configuration, the user can set their own requirements.
                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/core/async.html ================================================ ZTREE DEMO - Async

                                                                                                                                                                              Dynamic Tree with Ajax

                                                                                                                                                                              [ File Path: core/async.html ]
                                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                                  • For create dynamic tree with ajax, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                  • Dynamic tree with ajax doesn't need to make special treeNode node data, if use simple JSON data model, please set the attributes in setting.data.simple.
                                                                                                                                                                                  • If ajax only to return node data in single level, you don't need to use simple JSON data model.
                                                                                                                                                                                • 3、Other explanation

                                                                                                                                                                                  • Monitoring autoParam and otherParam use firebug or the developer tools in browser.
                                                                                                                                                                                  • This Demo only loading 4 level nodes (level = 3).
                                                                                                                                                                                  • This Demo use 'dataFilter' to modify the name of the node.
                                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/en/core/async_fun.html ================================================ ZTREE DEMO - reAsyncChildNodes

                                                                                                                                                                                Dynamic Tree - zTree methods

                                                                                                                                                                                [ File Path: core/async_fun.html ]
                                                                                                                                                                                  • 1, Explanation of reAsyncChildNodes

                                                                                                                                                                                    • How to use zTreeObj.reAsyncChildNodes method, please see the API documentation.
                                                                                                                                                                                    • This Demo can only select one parent node
                                                                                                                                                                                      Try: [ reload ]    [ append ]

                                                                                                                                                                                    • 'isSilent' parameter is only for the collapsed state of the parent node.
                                                                                                                                                                                      Try: [ Quietly reloaded ]    [ Quietly append ]
                                                                                                                                                                                      async log:

                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                      • For useing reAsyncChildNodes method, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                      • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                                    • 4、Other explanation

                                                                                                                                                                                      • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/core/click.html ================================================ ZTREE DEMO - beforeClick / onClick

                                                                                                                                                                                    Control of Click Node

                                                                                                                                                                                    [ File Path: core/click.html ]
                                                                                                                                                                                      • 1, 'beforeClick / onClick' callback function

                                                                                                                                                                                        • Use 'beforeClick / onClick' callback function can be achieved with the click on the various functions. This simple demo shows how to monitor the click event.
                                                                                                                                                                                        • Try pressing the Ctrl or Cmd key for multi-node selection and deselection.
                                                                                                                                                                                          click log:

                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                          • You need to set attributes about setting.callback.beforeClick and setting.callback.onClick, see the API documentation for more related contents.
                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/core/custom_font.html ================================================ ZTREE DEMO - Custom Font

                                                                                                                                                                                        Custom Fonts

                                                                                                                                                                                        [ File Path: core/custom_font.html ]
                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                            • 1. For display custom fonts, you need to set setting.view.fontCss attribute, see the API documentation for more related contents.
                                                                                                                                                                                            • 2. If you need the node name support the HTML, please set the 'setting.view.nameIsHTML' attribute, see the API documentation for more related contents.
                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                            • Set the font does not require to special node data , but if used to differentiate between different types of nodes, the corresponding data can set custom attributes.
                                                                                                                                                                                            • The css style of data stored in the nodes within this demo
                                                                                                                                                                                          ================================================ FILE: lib/zTree_v3/demo/en/core/custom_icon.html ================================================ ZTREE DEMO - Custom Icon

                                                                                                                                                                                          Custom Icon - icon

                                                                                                                                                                                          [ File Path: core/custom_icon.html ]
                                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                                              • Custom icon does not require special configuration setting.
                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                              • Use node data’s icon / iconOpen / iconClose attribute show custom icon.
                                                                                                                                                                                              • See the API documentation for more related contents.
                                                                                                                                                                                            • 3、Other explanation

                                                                                                                                                                                              • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/en/core/custom_iconSkin.html ================================================ ZTREE DEMO - Custom Icon Skin

                                                                                                                                                                                            Custom Icon - iconSkin

                                                                                                                                                                                            [ File Path: core/custom_iconSkin.html ]
                                                                                                                                                                                              • 1, Explanation of setting

                                                                                                                                                                                                • Custom icon does not require special configuration setting.
                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                • Use the node data iconSkin attributes and css show custom icon.
                                                                                                                                                                                                • See the API documentation for more related contents.
                                                                                                                                                                                              • 3、Other explanation

                                                                                                                                                                                                • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/core/expand.html ================================================ ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse

                                                                                                                                                                                              Control of Expand Node

                                                                                                                                                                                              [ File Path: core/expand.html ]
                                                                                                                                                                                                • 1, 'beforeCollapse / onCollapse'
                                                                                                                                                                                                    'beforeExpand / onExpand' callback function

                                                                                                                                                                                                  • Use 'beforeCollapse / onCollapse' and 'beforeExpand / onExpand' callback function can control whether to allow expand or collapse the parent node . This simple demo shows how to monitor the collapse and expand event.
                                                                                                                                                                                                  • Try:
                                                                                                                                                                                                         Whether trigger the callback when execution expandNode() method.
                                                                                                                                                                                                        Single Node --[ expand ]     [ collapse ]     [ toggle ]
                                                                                                                                                                                                        Single Node (including child) --[ expand ]     [ collapse ]
                                                                                                                                                                                                        All Nodes --[ expand All ]     [ collapse All ]

                                                                                                                                                                                                  • How to use zTreeObj.updateNode method, please see the API documentation.
                                                                                                                                                                                                    collapse / expand log:

                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                    • Set attributes about 'setting.callback.beforeCollapse / onCollapse / beforeExpand / onExpand', please see the API documentation for more related contents.
                                                                                                                                                                                                    • If you need to adjust the expand / collapse animation effects, please see the API documentation about setting.view.expandSpeed.
                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                    • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                  ================================================ FILE: lib/zTree_v3/demo/en/core/noicon.html ================================================ ZTREE DEMO - noIcon

                                                                                                                                                                                                  Don't Show Icon

                                                                                                                                                                                                  [ File Path: core/noicon.html ]
                                                                                                                                                                                                    • 1, Explanation of setting

                                                                                                                                                                                                      • This Demo using Function set to the parent node does not display the icon.
                                                                                                                                                                                                      • Whether to display the icon, you need to set setting.view.showIcon attribute, see the API documentation for more related contents.
                                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                                      • TreeNode data does not require special settings. If you need some node display icon, and some nodes are not displayed, you can add special attributes to the node data for identification.
                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/core/noline.html ================================================ ZTREE DEMO - noLine

                                                                                                                                                                                                    Don't Show Line

                                                                                                                                                                                                    [ File Path: core/noline.html ]
                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                        • Whether to display the line, you need to set setting.view.showLine attribute, see the API documentation for more related contents.
                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                        • TreeNode data does not require special settings
                                                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/core/otherMouse.html ================================================ ZTREE DEMO - Other Mouse Event

                                                                                                                                                                                                      Other Mouse Events for zTree

                                                                                                                                                                                                      [ File Path: core/otherMouse.html ]
                                                                                                                                                                                                        • 1, 'beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick' callback function

                                                                                                                                                                                                          • zTree provide these types of mouse event callbacks, in order to facilitate the user to extend the functionality. And doesn't affect zTree normal function, This simple demo shows how to monitor the mousedown/mouseup/rightClick event.
                                                                                                                                                                                                          • Try clicking with the mouse on the zTree (left or right), by the way to see log.
                                                                                                                                                                                                            mousedown event log:

                                                                                                                                                                                                              mouseup event log:
                                                                                                                                                                                                                rightClick event log:

                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                • Set attributes about 'setting.callback.beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick', please see the API documentation for more related contents.
                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/core/searchNodes.html ================================================ ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy

                                                                                                                                                                                                              Search Nodes

                                                                                                                                                                                                              [ File Path: core/searchNodes.html ]
                                                                                                                                                                                                                • 1, Explanation of getNodeByParam / getNodesByParam / getNodesByParamFuzzy

                                                                                                                                                                                                                  • How to use ’zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId‘ method, please see the API documentation.
                                                                                                                                                                                                                  • Try to search:
                                                                                                                                                                                                                    attribute( value ):
                                                                                                                                                                                                                    attribute( key ): name (string)
                                                                                                                                                                                                                    level (number) ... root node's level is 0
                                                                                                                                                                                                                    id (number)
                                                                                                                                                                                                                    method: getNodeByParam
                                                                                                                                                                                                                    getNodesByParam
                                                                                                                                                                                                                    getNodesByParamFuzzy (only string)
                                                                                                                                                                                                                    getNodesByFilter (see source: function filter)

                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                  • Do not need to set the setting.
                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                  • Note: Please ensure that the incoming value type is the same as type of attribute.
                                                                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/en/core/simpleData.html ================================================ ZTREE DEMO - Simple Data

                                                                                                                                                                                                                Simple JSON Data

                                                                                                                                                                                                                [ File Path: core/simpleData.html ]
                                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                                    • Must set setting.data.simple attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                    • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                                    • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                                  • 2, Explanation of treeNode

                                                                                                                                                                                                                    • Id / pId that include parent-child relationship between nodes is needed if you use Simple model of the JSON data, and other attributes please refer to the instructions within setting.data.simple.
                                                                                                                                                                                                                      For example:
                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                      	{id:1, pId:0, name: "pNode 01"},
                                                                                                                                                                                                                      	{id:11, pId:1, name: "child 01"},
                                                                                                                                                                                                                      	{id:12, pId:1, name: "child 02"}
                                                                                                                                                                                                                      ];
                                                                                                                                                                                                                    • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                                    • To get parent node which has no child node, set treeNode.isParent attribute.
                                                                                                                                                                                                                    • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                                  • 3、Other explanation

                                                                                                                                                                                                                    • The simple JSON data model has been used almost everywhere, which can be learned easily.
                                                                                                                                                                                                                  ================================================ FILE: lib/zTree_v3/demo/en/core/standardData.html ================================================ ZTREE DEMO - Standard Data

                                                                                                                                                                                                                  Standard JSON Data

                                                                                                                                                                                                                  [ File Path: core/standardData.html ]
                                                                                                                                                                                                                    • 1, Explanation of setting

                                                                                                                                                                                                                      • No extrally setting needed for basic functions.
                                                                                                                                                                                                                      • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                                      • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                                                      • Need to use nested JSON data that include parent-child relationship between nodes
                                                                                                                                                                                                                        For example:
                                                                                                                                                                                                                        var nodes = [
                                                                                                                                                                                                                        	{name: "pNode 01", children: [
                                                                                                                                                                                                                        		{name: "child 01"},
                                                                                                                                                                                                                        		{name: "child 02"}
                                                                                                                                                                                                                        	]}
                                                                                                                                                                                                                        ];
                                                                                                                                                                                                                      • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                                      • No child nodes of parent node, set treeNode.isParent attribute.
                                                                                                                                                                                                                      • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/core/update_fun.html ================================================ ZTREE DEMO - updateNode

                                                                                                                                                                                                                    Update Node - zTree methods

                                                                                                                                                                                                                    [ File Path: core/update_fun.html ]
                                                                                                                                                                                                                      • 1, Explanation of updateNode

                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                        • Do not need to set the setting.
                                                                                                                                                                                                                        • You can modify the node style with setting.view.fontCss.
                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                        • In the API documentation has detail description about the 'zTreeObj.updateNode method'.
                                                                                                                                                                                                                      • 4、Other explanation

                                                                                                                                                                                                                        • This demo only made ​by the core js, so does not include the checkbox update.
                                                                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/core/url.html ================================================ ZTREE DEMO - url

                                                                                                                                                                                                                      Hyperlinks Demo

                                                                                                                                                                                                                      [ File Path: core/url.html ]
                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                          • No extrally setting needed for basic functions.
                                                                                                                                                                                                                          • If you need flexible control of hyperlinks to jump, please use the 'onClick' callback. See the API documentation for more related contents.
                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                          • 1. the 'url' attribute is used to save the hyperlink's path.
                                                                                                                                                                                                                          • 2. the 'target' attribute is used to save the hyperlink's target.
                                                                                                                                                                                                                          • 3. the 'click' attribute is used to save the hyperlink's 'onclick' attribute.
                                                                                                                                                                                                                          • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/excheck/checkbox.html ================================================ ZTREE DEMO - checkbox

                                                                                                                                                                                                                        Checkbox Operation

                                                                                                                                                                                                                        [ File Path: excheck/checkbox.html ]
                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                            • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                            • Linkage relationship between parent and child nodes:
                                                                                                                                                                                                                              check: affect the parent affect the child
                                                                                                                                                                                                                              uncheck: affect the parent affect the child

                                                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                                                              • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                              • 2), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents and 'chkDisabled Demo'.
                                                                                                                                                                                                                              • 3), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents and 'nocheck Demo'.
                                                                                                                                                                                                                              • 4), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                              • 5), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/en/excheck/checkbox_chkDisabled.html ================================================ ZTREE DEMO - Checkbox chkDisabled

                                                                                                                                                                                                                            Checkbox chkDisabled Demo

                                                                                                                                                                                                                            [ File Path: excheck/checkbox_chkDisabled.html ]
                                                                                                                                                                                                                              • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                                • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                                • Try:
                                                                                                                                                                                                                                  disabled: affect the parent affect the child
                                                                                                                                                                                                                                  unDisabled: affect the parent affect the child
                                                                                                                                                                                                                                      [ be disabled ]     [ be abled ]

                                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                                • This Demo only shows how use the ‘chkDisabled’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                                • 1), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/excheck/checkbox_count.html ================================================ ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes

                                                                                                                                                                                                                              Statistics Checkbox is Checked

                                                                                                                                                                                                                              [ File Path: excheck/checkbox_count.html ]
                                                                                                                                                                                                                                • 1, Explanation of getChangeCheckedNodes / getCheckedNodes

                                                                                                                                                                                                                                  • How to use zTreeObj.getChangeCheckedNodes / getCheckedNodes method, please see the API documentation.
                                                                                                                                                                                                                                  • Check the checkbox, observe the number of changes:

                                                                                                                                                                                                                                    • Total check node:
                                                                                                                                                                                                                                    • Total uncheck node:
                                                                                                                                                                                                                                    • Modify the state of checkbox:
                                                                                                                                                                                                                                      Compared with zTree initialization
                                                                                                                                                                                                                                      Compared with the last check
                                                                                                                                                                                                                                    • Total change the checkbox state of node:

                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                  • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                  • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/en/excheck/checkbox_fun.html ================================================ ZTREE DEMO - beforeCheck / onCheck

                                                                                                                                                                                                                                Checkbox - zTree methods

                                                                                                                                                                                                                                [ File Path: excheck/checkbox_fun.html ]
                                                                                                                                                                                                                                  • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                                    • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                                    • By the way also demonstrates how to use the 'checkNode / checkAllNodes' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                                           setting.check.autoCheckTrigger: false
                                                                                                                                                                                                                                           Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                                          Node --[ check ]     [ uncheck ]     [ toggle ]
                                                                                                                                                                                                                                          Node (relationships) --[ check ]     [ uncheck ]     [ toggle ]
                                                                                                                                                                                                                                          All Nodes --[ check ]     [ uncheck ]

                                                                                                                                                                                                                                    • How to use 'zTreeObj.checkNode / checkAllNodes' method, please see the API documentation.
                                                                                                                                                                                                                                      beforeCheck / onCheck log:

                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                      • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                      • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/excheck/checkbox_halfCheck.html ================================================ ZTREE DEMO - Checkbox halfCheck

                                                                                                                                                                                                                                    Checkbox halfCheck Demo

                                                                                                                                                                                                                                    [ File Path: excheck/checkbox_halfCheck.html ]
                                                                                                                                                                                                                                      • 1, Explanation of Demo

                                                                                                                                                                                                                                        • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                                        • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                                        • 2). If you check the parent node, so will effect the child nodes's check status.
                                                                                                                                                                                                                                        • 3). If you check the parent node, it's child node's 'halfCheck' attribute will be invalid.
                                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                                        • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                                        • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                                        • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/excheck/checkbox_nocheck.html ================================================ ZTREE DEMO - no checkbox

                                                                                                                                                                                                                                      Checkbox nocheck Demo

                                                                                                                                                                                                                                      [ File Path: excheck/checkbox_nocheck.html ]
                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                          • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                                          • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                          • Try:
                                                                                                                                                                                                                                                [ hide checkbox ]     [ show checkbox ]

                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                          • 1), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                          • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/excheck/radio.html ================================================ ZTREE DEMO - radio

                                                                                                                                                                                                                                        Radio Operation

                                                                                                                                                                                                                                        [ File Path: excheck/radio.html ]
                                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                                            • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                            • group range of radio:
                                                                                                                                                                                                                                              within the same level within the whole tree

                                                                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                                                                              • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                              • 2), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                              • 3), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                              • 4), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/en/excheck/radio_chkDisabled.html ================================================ ZTREE DEMO - Radio chkDisabled

                                                                                                                                                                                                                                            Radio chkDisabled Demo

                                                                                                                                                                                                                                            [ File Path: excheck/radio_chkDisabled.html ]
                                                                                                                                                                                                                                              • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                                                • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                                                • Try:
                                                                                                                                                                                                                                                      [ be disabled ]     [ be abled ]

                                                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                                                • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                                                • 1), If you need to initialize the node don't show radio, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/excheck/radio_fun.html ================================================ ZTREE DEMO - beforeCheck / onCheck

                                                                                                                                                                                                                                              Radio - zTree methods

                                                                                                                                                                                                                                              [ File Path: excheck/radio_fun.html ]
                                                                                                                                                                                                                                                • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                                                  • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                                                  • By the way also demonstrates how to use the 'checkNode' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                                                         Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                                                        [ check ]     [ uncheck ]

                                                                                                                                                                                                                                                  • How to use 'zTreeObj.checkNode' method, please see the API documentation.
                                                                                                                                                                                                                                                    beforeCheck / onCheck log:

                                                                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                                                                    • Same as 'Radio Operation'
                                                                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                                                                    • Same as 'Radio Operation'
                                                                                                                                                                                                                                                  ================================================ FILE: lib/zTree_v3/demo/en/excheck/radio_halfCheck.html ================================================ ZTREE DEMO - Radio halfCheck

                                                                                                                                                                                                                                                  Radio halfCheck Demo

                                                                                                                                                                                                                                                  [ File Path: excheck/radio_halfCheck.html ]
                                                                                                                                                                                                                                                    • 1, Explanation of Demo

                                                                                                                                                                                                                                                      • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                                                      • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                                                      • 2). If you check the parent node, will not effect the child nodes's check status.
                                                                                                                                                                                                                                                      • 3). If you check the parent node, it's child node's 'halfCheck' attribute will still be valid.
                                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                                      • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                                      • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                                                      • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/excheck/radio_nocheck.html ================================================ ZTREE DEMO - no radio

                                                                                                                                                                                                                                                    Radio nocheck Demo

                                                                                                                                                                                                                                                    [ File Path: excheck/radio_nocheck.html ]
                                                                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                                                                        • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                                        • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                                                                        • 1), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                        • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/exedit/async_edit.html ================================================ ZTREE DEMO - async & edit

                                                                                                                                                                                                                                                      Editing Dynamic Tree

                                                                                                                                                                                                                                                      [ File Path: exedit/async_edit.html ]
                                                                                                                                                                                                                                                        • 1, Explanation of editing dynamic tree

                                                                                                                                                                                                                                                          • 1) This Demo is based on the "Advanced Edit Nodes" to modify, and open to drag and drop functionality, can be compared with that demo.
                                                                                                                                                                                                                                                          • 2) At the same time set the editing mode and dynamic mode can be achieved editing dynamic tree.
                                                                                                                                                                                                                                                          • 3) zTree improved editing capabilities in dynamic mode, if the parent node hasn‘t loaded the child nodes, it will first load the child nodes before it add child node.
                                                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                                                          • 1) Use editing features, please refer to "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions.
                                                                                                                                                                                                                                                          • 2) Use dynamic loading, please refer to "Dynamic Tree with Ajax" demo of the instructions.
                                                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                                                          • No special requirements on the node data, please refer to "Dynamic Tree with Ajax" & "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions
                                                                                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/exedit/drag.html ================================================ ZTREE DEMO - drag & drop

                                                                                                                                                                                                                                                        Normal Drag Node Operation

                                                                                                                                                                                                                                                        [ File Path: exedit/drag.html ]
                                                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                                                            • This Demo only shows how to drag & drop nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                                            • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                            • 2) If you want to use drag & drop callback, muse to set 'setting.callback.beforeDrag / onDrag / beforeDrop / onDrop' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                            • Basic settings:
                                                                                                                                                                                                                                                              can Copy can Move

                                                                                                                                                                                                                                                              • Position settings:
                                                                                                                                                                                                                                                                prev inner next

                                                                                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/exedit/drag_fun.html ================================================ ZTREE DEMO - copyNode / moveNode

                                                                                                                                                                                                                                                              Move / Copy - zTree methods

                                                                                                                                                                                                                                                              [ File Path: exedit/drag_fun.html ]
                                                                                                                                                                                                                                                                • 1, Explanation of 'copyNode / moveNode' method

                                                                                                                                                                                                                                                                  • Use 'copyNode / moveNode' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                                  • Try to copy or cut node:
                                                                                                                                                                                                                                                                        [ copy ]     [ cut ]     [ paste ]

                                                                                                                                                                                                                                                                  • How to use 'zTreeObj.copyNode / moveNode' method, please see the API documentation.
                                                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                                                  • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                  • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/en/exedit/drag_super.html ================================================ ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop

                                                                                                                                                                                                                                                                Advanced Drag Node Operation

                                                                                                                                                                                                                                                                [ File Path: exedit/drag_super.html ]
                                                                                                                                                                                                                                                                  • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                                      'beforeDrop / onDrop' callback function

                                                                                                                                                                                                                                                                    • This Demo shows the configuration parameters to achieve a more flexible use of drag and drop rules, the operation can be compared with "Normal Drag Node Operation" example.
                                                                                                                                                                                                                                                                    • This Demo default allows copy & move.
                                                                                                                                                                                                                                                                    • This Demo set 'setting.edit.drag.prev / inner / next' as 'function', you can dynamically set according to the node, which can not use beforeDrop callback function, the effect of drag and drop will be better.
                                                                                                                                                                                                                                                                    • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                                           拖拽节点时自动展开父节点是否触发 callback
                                                                                                                                                                                                                                                                      drag / drop log:

                                                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                                                      • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                      • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/exedit/edit.html ================================================ ZTREE DEMO - edit

                                                                                                                                                                                                                                                                    Basic Edit Nodes

                                                                                                                                                                                                                                                                    [ File Path: exedit/edit.html ]
                                                                                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                                                                                        • This Demo only shows how to edit nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                                                        • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                        • 2) If you want to use remove / rename callback, muse to set 'setting.callback.beforeRemove / onRemove / beforeRename / onRename' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                        • 3) zTree do not provide buttons for add nodes, please use the custom control methods 'addHoverDom / removeHoverDom' to achieve added functionality, see the API documentation for more related contents. Another way, you can see the demo named 'Advanced Edit Nodes'.
                                                                                                                                                                                                                                                                        • Edit button setting:
                                                                                                                                                                                                                                                                          show remove button show edit button
                                                                                                                                                                                                                                                                          title for remove:
                                                                                                                                                                                                                                                                          title for rename:

                                                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/exedit/edit_fun.html ================================================ ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes

                                                                                                                                                                                                                                                                        Edit Nodes - zTree methods

                                                                                                                                                                                                                                                                        [ File Path: exedit/edit_fun.html ]
                                                                                                                                                                                                                                                                          • 1, Explanation of 'addNodes / editName / removeNode / removeChildNodes' method

                                                                                                                                                                                                                                                                            • Use 'addNodes / editName / removeNode / removeChildNodes' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                                            • Method 'cancelEditName' is effective, only when edit the node name. Please use it when necessary, this demo doesn't show how to use the method.
                                                                                                                                                                                                                                                                            • Use setting.data.keep.parent / leaf attribute, you can lock the parent node and leaf node.
                                                                                                                                                                                                                                                                            • Try to edit node:
                                                                                                                                                                                                                                                                                   Whether trigger the callback when execution removeNode() method.
                                                                                                                                                                                                                                                                                  [ add parent node ]     [ add leaf node ]     [ edit name ]
                                                                                                                                                                                                                                                                                  [ remove node ]     [ make child nodes to empty ]
                                                                                                                                                                                                                                                                              remove log:

                                                                                                                                                                                                                                                                              • How to use 'zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes' method, please see the API documentation.
                                                                                                                                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                                                                                                                                              • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                              • Lock the parent / leaf node status, need to set setting.data.keep.parent / leaf attribute, see the API documentation for more related contents
                                                                                                                                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                              • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/en/exedit/edit_super.html ================================================ ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename

                                                                                                                                                                                                                                                                            Advanced Edit Nodes

                                                                                                                                                                                                                                                                            [ File Path: exedit/edit_super.html ]
                                                                                                                                                                                                                                                                              • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                                                  'beforeEditName'
                                                                                                                                                                                                                                                                                  'beforeRemove / onRemove'
                                                                                                                                                                                                                                                                                  'beforeRename / onRename' callback function

                                                                                                                                                                                                                                                                                • This demo shows the use of custom controls, the callback function to enhance the user experience, the operation can be compared with "Basic Edit Nodes" example.
                                                                                                                                                                                                                                                                                • This demo achieve the Add nodes button.
                                                                                                                                                                                                                                                                                • This demo achieve the confirmation when deleting node.
                                                                                                                                                                                                                                                                                • This demo use the 'showRenameBtn' to hide the rename button, when the treeNode's isLastNode = true
                                                                                                                                                                                                                                                                                • This demo use the 'showRemoveBtn' to hide the delete button, when the treeNode's isFirstNode = true
                                                                                                                                                                                                                                                                                • Can use 'beforeEditName' callback trigger custom editing.
                                                                                                                                                                                                                                                                                • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                                                       Whether select all text, when edit node's name.
                                                                                                                                                                                                                                                                                  remove / rename log:  RED is cancel edit (v3.5.13+)

                                                                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                                                                  • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                  • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/en/exedit/multiTree.html ================================================ ZTREE DEMO - multiTree

                                                                                                                                                                                                                                                                                Multiple Trees

                                                                                                                                                                                                                                                                                [ File Path: exedit/multiTree.html ]
                                                                                                                                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                                                                                                                                  • zTree enables drag and drop nodes between multiple trees, only need to create two draggable tree can be. And you can use the callback function and zTree method achieve a more complex operating rules, here is only the basic demo.
                                                                                                                                                                                                                                                                                  • On the 'setting' configuration information please refer to drag and drop, edit, etc. demo's instructions
                                                                                                                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/exhide/checkbox.html ================================================ ZTREE DEMO - Hide With Checkbox Mode

                                                                                                                                                                                                                                                                                    Hide With Checkbox Mode

                                                                                                                                                                                                                                                                                    [ File Path: exhide/checkbox.html ]
                                                                                                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                                                                                                        • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                        • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                                        • Hide or show the nodes:
                                                                                                                                                                                                                                                                                          Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                                              [ Show all of the nodes which be hidden ]

                                                                                                                                                                                                                                                                                          • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                                          • Total hidden nodes:
                                                                                                                                                                                                                                                                                          • Total check nodes:   Total uncheck nodes:
                                                                                                                                                                                                                                                                                          • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.

                                                                                                                                                                                                                                                                                      • 3、Other explanation

                                                                                                                                                                                                                                                                                        • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/exhide/common.html ================================================ ZTREE DEMO - Hide Ordinary Node

                                                                                                                                                                                                                                                                                      Hide Ordinary Node

                                                                                                                                                                                                                                                                                      [ File Path: exhide/common.html ]
                                                                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                                                                          • Use this freature, you don't need to set any attributes.
                                                                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                          • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                                          • Hide or show the nodes:

                                                                                                                                                                                                                                                                                            Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                                                [ Show all of the nodes which be hidden ]

                                                                                                                                                                                                                                                                                            • Total hidden nodes ('isHidden' is true):
                                                                                                                                                                                                                                                                                            • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.

                                                                                                                                                                                                                                                                                        • 3、Other explanation

                                                                                                                                                                                                                                                                                          • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/exhide/radio.html ================================================ ZTREE DEMO - Hide With Radio Mode

                                                                                                                                                                                                                                                                                        Hide With Radio Mode

                                                                                                                                                                                                                                                                                        [ File Path: exhide/radio.html ]
                                                                                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                                                                                            • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                            • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                                            • Hide or show the nodes:
                                                                                                                                                                                                                                                                                              Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                                                  [ Show all of the nodes which be hidden ]

                                                                                                                                                                                                                                                                                              • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                                              • Total hidden nodes:
                                                                                                                                                                                                                                                                                              • Total check nodes:   Total uncheck nodes:
                                                                                                                                                                                                                                                                                              • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.

                                                                                                                                                                                                                                                                                          • 3、Other explanation

                                                                                                                                                                                                                                                                                            • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                                          ================================================ FILE: lib/zTree_v3/demo/en/index.html ================================================ ZTREE DEMO
                                                                                                                                                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/en/super/asyncForAll.html ================================================ ZTREE DEMO - async for All

                                                                                                                                                                                                                                                                                            Expand All Nodes with Async

                                                                                                                                                                                                                                                                                            [ File Path: super/asyncForAll.html ]
                                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                                • Using 'onAsyncSuccess' / 'onAsyncError' callback and 'reAsyncChildNodes' or 'expandNode' method, you will achieve all functionalities.
                                                                                                                                                                                                                                                                                                • Note: If there are large amount parent nodes, please use delay to avoid excessive asynchronous process.
                                                                                                                                                                                                                                                                                                • Recommendation: please use the debugging tools to view the ajax loading process with network.
                                                                                                                                                                                                                                                                                                • Demonstrate operation

                                                                                                                                                                                                                                                                                                  [ Expand All Nodes ]        [ Load all nodes (don't expand) ]

                                                                                                                                                                                                                                                                                                  [ Reset zTree ]

                                                                                                                                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/super/awesome.html ================================================ ZTREE DEMO - Simple Data

                                                                                                                                                                                                                                                                                              Awesome Style

                                                                                                                                                                                                                                                                                              [ File Path: super/awesome.html ]
                                                                                                                                                                                                                                                                                                • 1, Explanation of fontawesome Style

                                                                                                                                                                                                                                                                                                  • You need to include the fontawesome stylesheet in your page (http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css)
                                                                                                                                                                                                                                                                                                  • <= This should show a car icon (if fontawesome is loaded properly)
                                                                                                                                                                                                                                                                                                  • Include the css stylesheet: 'css/awesomeStyle'
                                                                                                                                                                                                                                                                                                  • Thanks to mikkelking for this Demo. For reference only.
                                                                                                                                                                                                                                                                                                  • Mode:

                                                                                                                                                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/en/super/checkbox_radio.html ================================================ ZTREE DEMO - checkbox & radio

                                                                                                                                                                                                                                                                                                Checkbox / Radio Coexistence

                                                                                                                                                                                                                                                                                                [ File Path: super/checkbox_radio.html ]
                                                                                                                                                                                                                                                                                                  • Explanation of implementation method

                                                                                                                                                                                                                                                                                                    • zTree default checkbox and radio can not coexist, but can be used the custom DOM features to achieve this requirement, refer to the "Adding Custom DOM".
                                                                                                                                                                                                                                                                                                    • For checkbox / radio association rules of the parent nodes and child nodes, according to the needs to develop its own rules.
                                                                                                                                                                                                                                                                                                  ================================================ FILE: lib/zTree_v3/demo/en/super/diydom.html ================================================ ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom

                                                                                                                                                                                                                                                                                                  Adding Custom DOM

                                                                                                                                                                                                                                                                                                  [ File Path: super/diydom.html ]
                                                                                                                                                                                                                                                                                                    • 1, Explanation of implementation method

                                                                                                                                                                                                                                                                                                      • Use 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes can easily display custom DOM.
                                                                                                                                                                                                                                                                                                      • Adding custom DOM, is important to understand zTree node object naming rules to ensure the normal controls add DOM.
                                                                                                                                                                                                                                                                                                      • If you add the browser's default ’select / checkbox / radio‘ DOM, please adjust the css, to ensure correctly display zTree.
                                                                                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                      • Set 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                      • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/super/dragWithOther.html ================================================ ZTREE DEMO - drag with other DOM

                                                                                                                                                                                                                                                                                                    Drag With Other DOMs

                                                                                                                                                                                                                                                                                                    [ File Path: super/dragWithOther.html ]
                                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                                        • zTree v3.2 modified the event object in onDrag/onDrop; v3.5.16 add the onDragMove callback, thus the nodes can be draged to other DOMs easily.
                                                                                                                                                                                                                                                                                                        • To drag other DOMS to zTree, you need to build the drag codes by yourself.
                                                                                                                                                                                                                                                                                                        • This is just a simple Demo. If you need more features, please build more complicated codes.
                                                                                                                                                                                                                                                                                                      • Please drag and drop the following content to the tree node

                                                                                                                                                                                                                                                                                                        TreeGrassFlower
                                                                                                                                                                                                                                                                                                        TigerBearLion
                                                                                                                                                                                                                                                                                                        You can drag the nodes of level 2 to the above layer.
                                                                                                                                                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/super/fuzzySearch.html ================================================ ZTREE DEMO - fuzzySearch

                                                                                                                                                                                                                                                                                                      Fuzzy Search

                                                                                                                                                                                                                                                                                                      [ File Path: fuzzySearch/fuzzySearch.html ]
                                                                                                                                                                                                                                                                                                        • 1. Explaination of fuzzySearch()

                                                                                                                                                                                                                                                                                                          • @param the ztree id used to get the ztree object
                                                                                                                                                                                                                                                                                                          • @param searchField selector of your input for fuzzy search
                                                                                                                                                                                                                                                                                                          • @param isHighLight whether highlight the match words, default true
                                                                                                                                                                                                                                                                                                          • @param isExpand whether to expand the node, default false
                                                                                                                                                                                                                                                                                                          • fuzzySearch ( zTreeId, searchField, isHighLight, isExpand )
                                                                                                                                                                                                                                                                                                          • Try to search:
                                                                                                                                                                                                                                                                                                            Keywords:

                                                                                                                                                                                                                                                                                                        • 2. js dependencies

                                                                                                                                                                                                                                                                                                          • ztree v3.5.19.1 +, getPath() in use
                                                                                                                                                                                                                                                                                                          • ztree.exhide extension, hideNode() in use
                                                                                                                                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/en/super/left_menu.html ================================================ ZTREE DEMO - left_menu

                                                                                                                                                                                                                                                                                                        Left Menu

                                                                                                                                                                                                                                                                                                        [ File Path: super/left_menu.html ]
                                                                                                                                                                                                                                                                                                          • Explanation of implementation method

                                                                                                                                                                                                                                                                                                            • The menu in the Demo's Web page is to use zTree to achieve, is to use css set interface, use the configuration 'setting' to achieve features, this demo achieve a simple example of the left menu, you can view the source code of Demo's Web Page for in-depth study.
                                                                                                                                                                                                                                                                                                            • 1. According to your needs to modify the css, for example: the menu style on this Demo and Demo's Web page not the same.
                                                                                                                                                                                                                                                                                                            • 2. Main configuration:
                                                                                                                                                                                                                                                                                                                  setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                                                                                                                                                                                  setting.callback.onNodeCreated / beforeClick / onClick
                                                                                                                                                                                                                                                                                                            • 3. If need to keep single path, please refer to the source code of "Keep Single Path" Demo.
                                                                                                                                                                                                                                                                                                            • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                                          ================================================ FILE: lib/zTree_v3/demo/en/super/left_menuForOutLook.html ================================================ ZTREE DEMO - left_menu for Outlook

                                                                                                                                                                                                                                                                                                          Left Menu Like OutLook Style

                                                                                                                                                                                                                                                                                                          [ File Path: super/left_menuForOutLook.html ]
                                                                                                                                                                                                                                                                                                            • Explanation of implementation method

                                                                                                                                                                                                                                                                                                              • I make one left menu which resembles outlook.com, so share to everyone.
                                                                                                                                                                                                                                                                                                              • 1. Please note that the css code of the source of this page.
                                                                                                                                                                                                                                                                                                              • 2. Please note that the javascript code of the source of this page, especially the switch button is moved into the <a> tag when 'addDiyDom' callback be called
                                                                                                                                                                                                                                                                                                              • 3. Use the method of add zTree class name to implement the switch button be hidden or showing.
                                                                                                                                                                                                                                                                                                              • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                                              • 5. The current rule description:
                                                                                                                                                                                                                                                                                                                  Click the root node can control the parent node be expanded or collapsed;
                                                                                                                                                                                                                                                                                                                  The parent nodes without root only are only clicked the arrow icon can control be expanded or collapsed;br/>
                                                                                                                                                                                                                                                                                                            ================================================ FILE: lib/zTree_v3/demo/en/super/metro.html ================================================ ZTREE DEMO - Simple Data

                                                                                                                                                                                                                                                                                                            Metro Style

                                                                                                                                                                                                                                                                                                            [ File Path: super/metro.html ]
                                                                                                                                                                                                                                                                                                              • 1, Explanation of Style Files

                                                                                                                                                                                                                                                                                                                • Please use style and image files of 'css/metroStyle'
                                                                                                                                                                                                                                                                                                                • Thanked rqx110 for this Demo. For reference only.
                                                                                                                                                                                                                                                                                                              ================================================ FILE: lib/zTree_v3/demo/en/super/oneclick.html ================================================ ZTREE DEMO - one click

                                                                                                                                                                                                                                                                                                              Click to Expand Node

                                                                                                                                                                                                                                                                                                              [ File Path: super/oneclick.html ]
                                                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                  • zTree not provide a default click to expand node feature, but can use the onClick callback functions to easily implement this feature.
                                                                                                                                                                                                                                                                                                                  • In order to avoid conflict with the double-clicking, I recommended to turn off double-clicking expand node function, please set setting.view.dblClickExpand = false
                                                                                                                                                                                                                                                                                                                  • You can hide all the +/- switch, please see the page source, see the css.
                                                                                                                                                                                                                                                                                                                  • If you do not show + / - switch, then please set 'setting.view.showLine = false' to hide line.
                                                                                                                                                                                                                                                                                                                ================================================ FILE: lib/zTree_v3/demo/en/super/oneroot.html ================================================ ZTREE DEMO - one root

                                                                                                                                                                                                                                                                                                                Freeze the Root Node

                                                                                                                                                                                                                                                                                                                [ File Path: demo/super/oneroot.html ]
                                                                                                                                                                                                                                                                                                                  • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                    • For only one root, and do not show +/- switch needs need to modify the css, and set the setting.
                                                                                                                                                                                                                                                                                                                    • zTree v3.x can be for a given level, set the style, check out the page source, see the css.
                                                                                                                                                                                                                                                                                                                    • Set setting.view.dblClickExpand to Function, you can turn off double-clicking for expand the root node.
                                                                                                                                                                                                                                                                                                                  ================================================ FILE: lib/zTree_v3/demo/en/super/rightClickMenu.html ================================================ ZTREE DEMO - select menu

                                                                                                                                                                                                                                                                                                                  Right-click Menu

                                                                                                                                                                                                                                                                                                                  [ File Path: super/rightClickMenu.html ]
                                                                                                                                                                                                                                                                                                                    • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                      • Use 'beforeRightClick / onRightClick' callback function achieve right-click menu.
                                                                                                                                                                                                                                                                                                                      • Demo's menu is ugly, you can use a custom menu fine style.
                                                                                                                                                                                                                                                                                                                    • Add Node
                                                                                                                                                                                                                                                                                                                    • Delete Node
                                                                                                                                                                                                                                                                                                                    • Check Node
                                                                                                                                                                                                                                                                                                                    • Uncheck Node
                                                                                                                                                                                                                                                                                                                    • Resume zTree
                                                                                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/super/select_menu.html ================================================ ZTREE DEMO - select menu

                                                                                                                                                                                                                                                                                                                    Drop-down Menu

                                                                                                                                                                                                                                                                                                                    [ File Path: super/select_menu.html ]
                                                                                                                                                                                                                                                                                                                    •   Press Ctrl-key or Cmd-key to select multiple cities
                                                                                                                                                                                                                                                                                                                    •   city:  select
                                                                                                                                                                                                                                                                                                                    • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                      • Achieve this drop-down menu, it is relatively easy, you only need to control zTree Hide / Show, and location.
                                                                                                                                                                                                                                                                                                                      • Use zTree v3.x, you can select multiple nodes, so the multi-selection is also easy.
                                                                                                                                                                                                                                                                                                                      • Use the configuration parameters setting, fully meet the needs of most of the functionality.
                                                                                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/super/select_menu_checkbox.html ================================================ ZTREE DEMO - checkbox select menu

                                                                                                                                                                                                                                                                                                                    Drop-down Menu with checkbox

                                                                                                                                                                                                                                                                                                                    [ File Path: super/select_menu_checkbox.html ]
                                                                                                                                                                                                                                                                                                                    •   Check the checkbox to select or click the node
                                                                                                                                                                                                                                                                                                                    •   Test:  select
                                                                                                                                                                                                                                                                                                                    • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                      • You can achieve multi-selected drop-down menu with checkbox.
                                                                                                                                                                                                                                                                                                                      • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/super/select_menu_radio.html ================================================ ZTREE DEMO - radio select menu

                                                                                                                                                                                                                                                                                                                    Drop-down Menu with radio

                                                                                                                                                                                                                                                                                                                    [ File Path: super/select_menu_radio.html ]
                                                                                                                                                                                                                                                                                                                    •   Check the radio to select or click the node
                                                                                                                                                                                                                                                                                                                    •   Test:  select
                                                                                                                                                                                                                                                                                                                    • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                      • You can achieve single-selected drop-down menu with radio.
                                                                                                                                                                                                                                                                                                                      • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                                    ================================================ FILE: lib/zTree_v3/demo/en/super/singlepath.html ================================================ ZTREE DEMO - single path

                                                                                                                                                                                                                                                                                                                    Keep Single Path

                                                                                                                                                                                                                                                                                                                    [ File Path: super/singlepath.html ]
                                                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                        • This Demo is the transformation from "Click to Expand Node" demo​​, tree only expand single path.
                                                                                                                                                                                                                                                                                                                        • Use 'setting.callback.beforeExpand / onExpand' callback function to achieve rules about expand
                                                                                                                                                                                                                                                                                                                      ================================================ FILE: lib/zTree_v3/demo/en/super/ztree.html ================================================ ZTREE DEMO - Simple Data

                                                                                                                                                                                                                                                                                                                      zTree Style

                                                                                                                                                                                                                                                                                                                      [ File Path: super/ztree.html ]
                                                                                                                                                                                                                                                                                                                        • 1, Explanation of zTree Style

                                                                                                                                                                                                                                                                                                                        • Mode:

                                                                                                                                                                                                                                                                                                                        ================================================ FILE: lib/zTree_v3/demo/js/fuzzysearch.js ================================================ /* * email: bigablecat@hotmail.com * Date: 2018-04-14 */ /** * @param zTreeId the ztree id used to get the ztree object * @param searchField selector of your input for fuzzy search * @param isHighLight whether highlight the match words, default true * @param isExpand whether to expand the node, default false * * @returns */ function fuzzySearch(zTreeId, searchField, isHighLight, isExpand){ var zTreeObj = $.fn.zTree.getZTreeObj(zTreeId);//get the ztree object by ztree id if(!zTreeObj){ alert("fail to get ztree object"); } var nameKey = zTreeObj.setting.data.key.name; //get the key of the node name isHighLight = isHighLight===false?false:true;//default true, only use false to disable highlight isExpand = isExpand?true:false; // not to expand in default zTreeObj.setting.view.nameIsHTML = isHighLight; //allow use html in node name for highlight use var metaChar = '[\\[\\]\\\\\^\\$\\.\\|\\?\\*\\+\\(\\)]'; //js meta characters var rexMeta = new RegExp(metaChar, 'gi');//regular expression to match meta characters // keywords filter function function ztreeFilter(zTreeObj,_keywords,callBackFunc) { if(!_keywords){ _keywords =''; //default blank for _keywords } // function to find the matching node function filterFunc(node) { if(node && node.oldname && node.oldname.length>0){ node[nameKey] = node.oldname; //recover oldname of the node if exist } zTreeObj.updateNode(node); //update node to for modifications take effect if (_keywords.length == 0) { //return true to show all nodes if the keyword is blank zTreeObj.showNode(node); zTreeObj.expandNode(node,isExpand); return true; } //transform node name and keywords to lowercase if (node[nameKey] && node[nameKey].toLowerCase().indexOf(_keywords.toLowerCase())!=-1) { if(isHighLight){ //highlight process //a new variable 'newKeywords' created to store the keywords information //keep the parameter '_keywords' as initial and it will be used in next node //process the meta characters in _keywords thus the RegExp can be correctly used in str.replace var newKeywords = _keywords.replace(rexMeta,function(matchStr){ //add escape character before meta characters return '\\' + matchStr; }); node.oldname = node[nameKey]; //store the old name var rexGlobal = new RegExp(newKeywords, 'gi');//'g' for global,'i' for ignore case //use replace(RegExp,replacement) since replace(/substr/g,replacement) cannot be used here node[nameKey] = node.oldname.replace(rexGlobal, function(originalText){ //highlight the matching words in node name var highLightText = '' + originalText +''; return highLightText; }); zTreeObj.updateNode(node); //update node for modifications take effect } zTreeObj.showNode(node);//show node with matching keywords return true; //return true and show this node } zTreeObj.hideNode(node); // hide node that not matched return false; //return false for node not matched } var nodesShow = zTreeObj.getNodesByFilter(filterFunc); //get all nodes that would be shown processShowNodes(nodesShow, _keywords);//nodes should be reprocessed to show correctly } /** * reprocess of nodes before showing */ function processShowNodes(nodesShow,_keywords){ if(nodesShow && nodesShow.length>0){ //process the ancient nodes if _keywords is not blank if(_keywords.length>0){ $.each(nodesShow, function(n,obj){ var pathOfOne = obj.getPath();//get all the ancient nodes including current node if(pathOfOne && pathOfOne.length>0){ //i < pathOfOne.length-1 process every node in path except self for(var i=0;i 0 && tId.length == 0) { tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; } } // event to node if (tId.length > 0) { node = data.getNodeCache(setting, tId); switch (nodeEventType) { case "switchNode" : var isParent = data.nodeIsParent(setting, node); if (!isParent) { nodeEventType = ""; } else if (tools.eqs(event.type, "click") || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { nodeEventCallback = handler.onSwitchNode; } else { nodeEventType = ""; } break; case "clickNode" : nodeEventCallback = handler.onClickNode; break; } } // event to zTree switch (treeEventType) { case "mousedown" : treeEventCallback = handler.onZTreeMousedown; break; case "mouseup" : treeEventCallback = handler.onZTreeMouseup; break; case "dblclick" : treeEventCallback = handler.onZTreeDblclick; break; case "contextmenu" : treeEventCallback = handler.onZTreeContextmenu; break; } var proxyResult = { stop: false, node: node, nodeEventType: nodeEventType, nodeEventCallback: nodeEventCallback, treeEventType: treeEventType, treeEventCallback: treeEventCallback }; return proxyResult }, //default init node of core _initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { if (!n) return; var r = data.getRoot(setting), children = data.nodeChildren(setting, n); n.level = level; n.tId = setting.treeId + "_" + (++r.zId); n.parentTId = parentNode ? parentNode.tId : null; n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open; var isParent = data.nodeIsParent(setting, n); if (tools.isArray(children)) { data.nodeIsParent(setting, n, true); n.zAsync = true; } else { isParent = data.nodeIsParent(setting, n, isParent); n.open = (isParent && !setting.async.enable) ? n.open : false; n.zAsync = !isParent; } n.isFirstNode = isFirstNode; n.isLastNode = isLastNode; n.getParentNode = function () { return data.getNodeCache(setting, n.parentTId); }; n.getPreNode = function () { return data.getPreNode(setting, n); }; n.getNextNode = function () { return data.getNextNode(setting, n); }; n.getIndex = function () { return data.getNodeIndex(setting, n); }; n.getPath = function () { return data.getNodePath(setting, n); }; n.isAjaxing = false; data.fixPIdKeyValue(setting, n); }, _init = { bind: [_bindEvent], unbind: [_unbindEvent], caches: [_initCache], nodes: [_initNode], proxys: [_eventProxy], roots: [_initRoot], beforeA: [], afterA: [], innerBeforeA: [], innerAfterA: [], zTreeTools: [] }, //method of operate data data = { addNodeCache: function (setting, node) { data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; }, getNodeCacheId: function (tId) { return tId.substring(tId.lastIndexOf("_") + 1); }, addAfterA: function (afterA) { _init.afterA.push(afterA); }, addBeforeA: function (beforeA) { _init.beforeA.push(beforeA); }, addInnerAfterA: function (innerAfterA) { _init.innerAfterA.push(innerAfterA); }, addInnerBeforeA: function (innerBeforeA) { _init.innerBeforeA.push(innerBeforeA); }, addInitBind: function (bindEvent) { _init.bind.push(bindEvent); }, addInitUnBind: function (unbindEvent) { _init.unbind.push(unbindEvent); }, addInitCache: function (initCache) { _init.caches.push(initCache); }, addInitNode: function (initNode) { _init.nodes.push(initNode); }, addInitProxy: function (initProxy, isFirst) { if (!!isFirst) { _init.proxys.splice(0, 0, initProxy); } else { _init.proxys.push(initProxy); } }, addInitRoot: function (initRoot) { _init.roots.push(initRoot); }, addNodesData: function (setting, parentNode, index, nodes) { var children = data.nodeChildren(setting, parentNode), params; if (!children) { children = data.nodeChildren(setting, parentNode, []); index = -1; } else if (index >= children.length) { index = -1; } if (children.length > 0 && index === 0) { children[0].isFirstNode = false; view.setNodeLineIcos(setting, children[0]); } else if (children.length > 0 && index < 0) { children[children.length - 1].isLastNode = false; view.setNodeLineIcos(setting, children[children.length - 1]); } data.nodeIsParent(setting, parentNode, true); if (index < 0) { data.nodeChildren(setting, parentNode, children.concat(nodes)); } else { params = [index, 0].concat(nodes); children.splice.apply(children, params); } }, addSelectedNode: function (setting, node) { var root = data.getRoot(setting); if (!data.isSelectedNode(setting, node)) { root.curSelectedList.push(node); } }, addCreatedNode: function (setting, node) { if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { var root = data.getRoot(setting); root.createdNodes.push(node); } }, addZTreeTools: function (zTreeTools) { _init.zTreeTools.push(zTreeTools); }, exSetting: function (s) { $.extend(true, _setting, s); }, fixPIdKeyValue: function (setting, node) { if (setting.data.simpleData.enable) { node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; } }, getAfterA: function (setting, node, array) { for (var i = 0, j = _init.afterA.length; i < j; i++) { _init.afterA[i].apply(this, arguments); } }, getBeforeA: function (setting, node, array) { for (var i = 0, j = _init.beforeA.length; i < j; i++) { _init.beforeA[i].apply(this, arguments); } }, getInnerAfterA: function (setting, node, array) { for (var i = 0, j = _init.innerAfterA.length; i < j; i++) { _init.innerAfterA[i].apply(this, arguments); } }, getInnerBeforeA: function (setting, node, array) { for (var i = 0, j = _init.innerBeforeA.length; i < j; i++) { _init.innerBeforeA[i].apply(this, arguments); } }, getCache: function (setting) { return caches[setting.treeId]; }, getNodeIndex: function (setting, node) { if (!node) return null; var p = node.parentTId ? node.getParentNode() : data.getRoot(setting), children = data.nodeChildren(setting, p); for (var i = 0, l = children.length - 1; i <= l; i++) { if (children[i] === node) { return i; } } return -1; }, getNextNode: function (setting, node) { if (!node) return null; var p = node.parentTId ? node.getParentNode() : data.getRoot(setting), children = data.nodeChildren(setting, p); for (var i = 0, l = children.length - 1; i <= l; i++) { if (children[i] === node) { return (i == l ? null : children[i + 1]); } } return null; }, getNodeByParam: function (setting, nodes, key, value) { if (!nodes || !key) return null; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (node[key] == value) { return nodes[i]; } var children = data.nodeChildren(setting, node); var tmp = data.getNodeByParam(setting, children, key, value); if (tmp) return tmp; } return null; }, getNodeCache: function (setting, tId) { if (!tId) return null; var n = caches[setting.treeId].nodes[data.getNodeCacheId(tId)]; return n ? n : null; }, getNodePath: function (setting, node) { if (!node) return null; var path; if (node.parentTId) { path = node.getParentNode().getPath(); } else { path = []; } if (path) { path.push(node); } return path; }, getNodes: function (setting) { return data.nodeChildren(setting, data.getRoot(setting)); }, getNodesByParam: function (setting, nodes, key, value) { if (!nodes || !key) return []; var result = []; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (node[key] == value) { result.push(node); } var children = data.nodeChildren(setting, node); result = result.concat(data.getNodesByParam(setting, children, key, value)); } return result; }, getNodesByParamFuzzy: function (setting, nodes, key, value) { if (!nodes || !key) return []; var result = []; value = value.toLowerCase(); for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (typeof node[key] == "string" && nodes[i][key].toLowerCase().indexOf(value) > -1) { result.push(node); } var children = data.nodeChildren(setting, node); result = result.concat(data.getNodesByParamFuzzy(setting, children, key, value)); } return result; }, getNodesByFilter: function (setting, nodes, filter, isSingle, invokeParam) { if (!nodes) return (isSingle ? null : []); var result = isSingle ? null : []; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (tools.apply(filter, [node, invokeParam], false)) { if (isSingle) { return node; } result.push(node); } var children = data.nodeChildren(setting, node); var tmpResult = data.getNodesByFilter(setting, children, filter, isSingle, invokeParam); if (isSingle && !!tmpResult) { return tmpResult; } result = isSingle ? tmpResult : result.concat(tmpResult); } return result; }, getPreNode: function (setting, node) { if (!node) return null; var p = node.parentTId ? node.getParentNode() : data.getRoot(setting), children = data.nodeChildren(setting, p); for (var i = 0, l = children.length; i < l; i++) { if (children[i] === node) { return (i == 0 ? null : children[i - 1]); } } return null; }, getRoot: function (setting) { return setting ? roots[setting.treeId] : null; }, getRoots: function () { return roots; }, getSetting: function (treeId) { return settings[treeId]; }, getSettings: function () { return settings; }, getZTreeTools: function (treeId) { var r = this.getRoot(this.getSetting(treeId)); return r ? r.treeTools : null; }, initCache: function (setting) { for (var i = 0, j = _init.caches.length; i < j; i++) { _init.caches[i].apply(this, arguments); } }, initNode: function (setting, level, node, parentNode, preNode, nextNode) { for (var i = 0, j = _init.nodes.length; i < j; i++) { _init.nodes[i].apply(this, arguments); } }, initRoot: function (setting) { for (var i = 0, j = _init.roots.length; i < j; i++) { _init.roots[i].apply(this, arguments); } }, isSelectedNode: function (setting, node) { var root = data.getRoot(setting); for (var i = 0, j = root.curSelectedList.length; i < j; i++) { if (node === root.curSelectedList[i]) return true; } return false; }, nodeChildren: function (setting, node, newChildren) { if (!node) { return null; } var key = setting.data.key.children; if (typeof newChildren !== 'undefined') { node[key] = newChildren; } return node[key]; }, nodeIsParent: function (setting, node, newIsParent) { if (!node) { return false; } var key = setting.data.key.isParent; if (typeof newIsParent !== 'undefined') { if (typeof newIsParent === "string") { newIsParent = tools.eqs(newIsParent, "true"); } newIsParent = !!newIsParent; node[key] = newIsParent; } else if (typeof node[key] == "string"){ node[key] = tools.eqs(node[key], "true"); } else { node[key] = !!node[key]; } return node[key]; }, nodeName: function (setting, node, newName) { var key = setting.data.key.name; if (typeof newName !== 'undefined') { node[key] = newName; } return "" + node[key]; }, nodeTitle: function (setting, node) { var t = setting.data.key.title === "" ? setting.data.key.name : setting.data.key.title; return "" + node[t]; }, removeNodeCache: function (setting, node) { var children = data.nodeChildren(setting, node); if (children) { for (var i = 0, l = children.length; i < l; i++) { data.removeNodeCache(setting, children[i]); } } data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = null; }, removeSelectedNode: function (setting, node) { var root = data.getRoot(setting); for (var i = 0, j = root.curSelectedList.length; i < j; i++) { if (node === root.curSelectedList[i] || !data.getNodeCache(setting, root.curSelectedList[i].tId)) { root.curSelectedList.splice(i, 1); setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, node]); i--; j--; } } }, setCache: function (setting, cache) { caches[setting.treeId] = cache; }, setRoot: function (setting, root) { roots[setting.treeId] = root; }, setZTreeTools: function (setting, zTreeTools) { for (var i = 0, j = _init.zTreeTools.length; i < j; i++) { _init.zTreeTools[i].apply(this, arguments); } }, transformToArrayFormat: function (setting, nodes) { if (!nodes) return []; var r = []; if (tools.isArray(nodes)) { for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; _do(node); } } else { _do(nodes); } return r; function _do(_node) { r.push(_node); var children = data.nodeChildren(setting, _node); if (children) { r = r.concat(data.transformToArrayFormat(setting, children)); } } }, transformTozTreeFormat: function (setting, sNodes) { var i, l, key = setting.data.simpleData.idKey, parentKey = setting.data.simpleData.pIdKey; if (!key || key == "" || !sNodes) return []; if (tools.isArray(sNodes)) { var r = []; var tmpMap = {}; for (i = 0, l = sNodes.length; i < l; i++) { tmpMap[sNodes[i][key]] = sNodes[i]; } for (i = 0, l = sNodes.length; i < l; i++) { var p = tmpMap[sNodes[i][parentKey]]; if (p && sNodes[i][key] != sNodes[i][parentKey]) { var children = data.nodeChildren(setting, p); if (!children) { children = data.nodeChildren(setting, p, []); } children.push(sNodes[i]); } else { r.push(sNodes[i]); } } return r; } else { return [sNodes]; } } }, //method of event proxy event = { bindEvent: function (setting) { for (var i = 0, j = _init.bind.length; i < j; i++) { _init.bind[i].apply(this, arguments); } }, unbindEvent: function (setting) { for (var i = 0, j = _init.unbind.length; i < j; i++) { _init.unbind[i].apply(this, arguments); } }, bindTree: function (setting) { var eventParam = { treeId: setting.treeId }, o = setting.treeObj; if (!setting.view.txtSelectedEnable) { // for can't select text o.bind('selectstart', handler.onSelectStart).css({ "-moz-user-select": "-moz-none" }); } o.bind('click', eventParam, event.proxy); o.bind('dblclick', eventParam, event.proxy); o.bind('mouseover', eventParam, event.proxy); o.bind('mouseout', eventParam, event.proxy); o.bind('mousedown', eventParam, event.proxy); o.bind('mouseup', eventParam, event.proxy); o.bind('contextmenu', eventParam, event.proxy); }, unbindTree: function (setting) { var o = setting.treeObj; o.unbind('selectstart', handler.onSelectStart) .unbind('click', event.proxy) .unbind('dblclick', event.proxy) .unbind('mouseover', event.proxy) .unbind('mouseout', event.proxy) .unbind('mousedown', event.proxy) .unbind('mouseup', event.proxy) .unbind('contextmenu', event.proxy); }, doProxy: function (e) { var results = []; for (var i = 0, j = _init.proxys.length; i < j; i++) { var proxyResult = _init.proxys[i].apply(this, arguments); results.push(proxyResult); if (proxyResult.stop) { break; } } return results; }, proxy: function (e) { var setting = data.getSetting(e.data.treeId); if (!tools.uCanDo(setting, e)) return true; var results = event.doProxy(e), r = true, x = false; for (var i = 0, l = results.length; i < l; i++) { var proxyResult = results[i]; if (proxyResult.nodeEventCallback) { x = true; r = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r; } if (proxyResult.treeEventCallback) { x = true; r = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r; } } return r; } }, //method of event handler handler = { onSwitchNode: function (event, node) { var setting = data.getSetting(event.data.treeId); if (node.open) { if (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false) return true; data.getRoot(setting).expandTriggerFlag = true; view.switchNode(setting, node); } else { if (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false) return true; data.getRoot(setting).expandTriggerFlag = true; view.switchNode(setting, node); } return true; }, onClickNode: function (event, node) { var setting = data.getSetting(event.data.treeId), clickFlag = ((setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey)) && data.isSelectedNode(setting, node)) ? 0 : (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey) && setting.view.selectedMulti) ? 2 : 1; if (tools.apply(setting.callback.beforeClick, [setting.treeId, node, clickFlag], true) == false) return true; if (clickFlag === 0) { view.cancelPreSelectedNode(setting, node); } else { view.selectNode(setting, node, clickFlag === 2); } setting.treeObj.trigger(consts.event.CLICK, [event, setting.treeId, node, clickFlag]); return true; }, onZTreeMousedown: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeMouseDown, [setting.treeId, node], true)) { tools.apply(setting.callback.onMouseDown, [event, setting.treeId, node]); } return true; }, onZTreeMouseup: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeMouseUp, [setting.treeId, node], true)) { tools.apply(setting.callback.onMouseUp, [event, setting.treeId, node]); } return true; }, onZTreeDblclick: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeDblClick, [setting.treeId, node], true)) { tools.apply(setting.callback.onDblClick, [event, setting.treeId, node]); } return true; }, onZTreeContextmenu: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeRightClick, [setting.treeId, node], true)) { tools.apply(setting.callback.onRightClick, [event, setting.treeId, node]); } return (typeof setting.callback.onRightClick) != "function"; }, onSelectStart: function (e) { var n = e.originalEvent.srcElement.nodeName.toLowerCase(); return (n === "input" || n === "textarea"); } }, //method of tools for zTree tools = { apply: function (fun, param, defaultValue) { if ((typeof fun) == "function") { return fun.apply(zt, param ? param : []); } return defaultValue; }, canAsync: function (setting, node) { var children = data.nodeChildren(setting, node); var isParent = data.nodeIsParent(setting, node); return (setting.async.enable && node && isParent && !(node.zAsync || (children && children.length > 0))); }, clone: function (obj) { if (obj === null) return null; var o = tools.isArray(obj) ? [] : {}; for (var i in obj) { o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? tools.clone(obj[i]) : obj[i]); } return o; }, eqs: function (str1, str2) { return str1.toLowerCase() === str2.toLowerCase(); }, isArray: function (arr) { return Object.prototype.toString.apply(arr) === "[object Array]"; }, isElement: function (o) { return ( typeof HTMLElement === "object" ? o instanceof HTMLElement : //DOM2 o && typeof o === "object" && o !== null && o.nodeType === 1 && typeof o.nodeName === "string" ); }, $: function (node, exp, setting) { if (!!exp && typeof exp != "string") { setting = exp; exp = ""; } if (typeof node == "string") { return $(node, setting ? setting.treeObj.get(0).ownerDocument : null); } else { return $("#" + node.tId + exp, setting ? setting.treeObj : null); } }, getMDom: function (setting, curDom, targetExpr) { if (!curDom) return null; while (curDom && curDom.id !== setting.treeId) { for (var i = 0, l = targetExpr.length; curDom.tagName && i < l; i++) { if (tools.eqs(curDom.tagName, targetExpr[i].tagName) && curDom.getAttribute(targetExpr[i].attrName) !== null) { return curDom; } } curDom = curDom.parentNode; } return null; }, getNodeMainDom: function (target) { return ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0)); }, isChildOrSelf: function (dom, parentId) { return ($(dom).closest("#" + parentId).length > 0); }, uCanDo: function (setting, e) { return true; } }, //method of operate ztree dom view = { addNodes: function (setting, parentNode, index, newNodes, isSilent) { var isParent = data.nodeIsParent(setting, parentNode); if (setting.data.keep.leaf && parentNode && !isParent) { return; } if (!tools.isArray(newNodes)) { newNodes = [newNodes]; } if (setting.data.simpleData.enable) { newNodes = data.transformTozTreeFormat(setting, newNodes); } if (parentNode) { var target_switchObj = $$(parentNode, consts.id.SWITCH, setting), target_icoObj = $$(parentNode, consts.id.ICON, setting), target_ulObj = $$(parentNode, consts.id.UL, setting); if (!parentNode.open) { view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE); view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE); parentNode.open = false; target_ulObj.css({ "display": "none" }); } data.addNodesData(setting, parentNode, index, newNodes); view.createNodes(setting, parentNode.level + 1, newNodes, parentNode, index); if (!isSilent) { view.expandCollapseParentNode(setting, parentNode, true); } } else { data.addNodesData(setting, data.getRoot(setting), index, newNodes); view.createNodes(setting, 0, newNodes, null, index); } }, appendNodes: function (setting, level, nodes, parentNode, index, initFlag, openFlag) { if (!nodes) return []; var html = []; var tmpPNode = (parentNode) ? parentNode : data.getRoot(setting), tmpPChild = data.nodeChildren(setting, tmpPNode), isFirstNode, isLastNode; if (!tmpPChild || index >= tmpPChild.length - nodes.length) { index = -1; } for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (initFlag) { isFirstNode = ((index === 0 || tmpPChild.length == nodes.length) && (i == 0)); isLastNode = (index < 0 && i == (nodes.length - 1)); data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag); data.addNodeCache(setting, node); } var isParent = data.nodeIsParent(setting, node); var childHtml = []; var children = data.nodeChildren(setting, node); if (children && children.length > 0) { //make child html first, because checkType childHtml = view.appendNodes(setting, level + 1, children, node, -1, initFlag, openFlag && node.open); } if (openFlag) { view.makeDOMNodeMainBefore(html, setting, node); view.makeDOMNodeLine(html, setting, node); data.getBeforeA(setting, node, html); view.makeDOMNodeNameBefore(html, setting, node); data.getInnerBeforeA(setting, node, html); view.makeDOMNodeIcon(html, setting, node); data.getInnerAfterA(setting, node, html); view.makeDOMNodeNameAfter(html, setting, node); data.getAfterA(setting, node, html); if (isParent && node.open) { view.makeUlHtml(setting, node, html, childHtml.join('')); } view.makeDOMNodeMainAfter(html, setting, node); data.addCreatedNode(setting, node); } } return html; }, appendParentULDom: function (setting, node) { var html = [], nObj = $$(node, setting); if (!nObj.get(0) && !!node.parentTId) { view.appendParentULDom(setting, node.getParentNode()); nObj = $$(node, setting); } var ulObj = $$(node, consts.id.UL, setting); if (ulObj.get(0)) { ulObj.remove(); } var children = data.nodeChildren(setting, node), childHtml = view.appendNodes(setting, node.level + 1, children, node, -1, false, true); view.makeUlHtml(setting, node, html, childHtml.join('')); nObj.append(html.join('')); }, asyncNode: function (setting, node, isSilent, callback) { var i, l; var isParent = data.nodeIsParent(setting, node); if (node && !isParent) { tools.apply(callback); return false; } else if (node && node.isAjaxing) { return false; } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { tools.apply(callback); return false; } if (node) { node.isAjaxing = true; var icoObj = $$(node, consts.id.ICON, setting); icoObj.attr({"style": "", "class": consts.className.BUTTON + " " + consts.className.ICO_LOADING}); } var tmpParam = {}; var autoParam = tools.apply(setting.async.autoParam, [setting.treeId, node], setting.async.autoParam); for (i = 0, l = autoParam.length; node && i < l; i++) { var pKey = autoParam[i].split("="), spKey = pKey; if (pKey.length > 1) { spKey = pKey[1]; pKey = pKey[0]; } tmpParam[spKey] = node[pKey]; } var otherParam = tools.apply(setting.async.otherParam, [setting.treeId, node], setting.async.otherParam); if (tools.isArray(otherParam)) { for (i = 0, l = otherParam.length; i < l; i += 2) { tmpParam[otherParam[i]] = otherParam[i + 1]; } } else { for (var p in otherParam) { tmpParam[p] = otherParam[p]; } } var _tmpV = data.getRoot(setting)._ver; $.ajax({ contentType: setting.async.contentType, cache: false, type: setting.async.type, url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), data: setting.async.contentType.indexOf('application/json') > -1 ? JSON.stringify(tmpParam) : tmpParam, dataType: setting.async.dataType, headers: setting.async.headers, xhrFields: setting.async.xhrFields, success: function (msg) { if (_tmpV != data.getRoot(setting)._ver) { return; } var newNodes = []; try { if (!msg || msg.length == 0) { newNodes = []; } else if (typeof msg == "string") { newNodes = eval("(" + msg + ")"); } else { newNodes = msg; } } catch (err) { newNodes = msg; } if (node) { node.isAjaxing = null; node.zAsync = true; } view.setNodeLineIcos(setting, node); if (newNodes && newNodes !== "") { newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); view.addNodes(setting, node, -1, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); } else { view.addNodes(setting, node, -1, [], !!isSilent); } setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); tools.apply(callback); }, error: function (XMLHttpRequest, textStatus, errorThrown) { if (_tmpV != data.getRoot(setting)._ver) { return; } if (node) node.isAjaxing = null; view.setNodeLineIcos(setting, node); setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); } }); return true; }, cancelPreSelectedNode: function (setting, node, excludeNode) { var list = data.getRoot(setting).curSelectedList, i, n; for (i = list.length - 1; i >= 0; i--) { n = list[i]; if (node === n || (!node && (!excludeNode || excludeNode !== n))) { $$(n, consts.id.A, setting).removeClass(consts.node.CURSELECTED); if (node) { data.removeSelectedNode(setting, node); break; } else { list.splice(i, 1); setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, n]); } } } }, createNodeCallback: function (setting) { if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { var root = data.getRoot(setting); while (root.createdNodes.length > 0) { var node = root.createdNodes.shift(); tools.apply(setting.view.addDiyDom, [setting.treeId, node]); if (!!setting.callback.onNodeCreated) { setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); } } } }, createNodes: function (setting, level, nodes, parentNode, index) { if (!nodes || nodes.length == 0) return; var root = data.getRoot(setting), openFlag = !parentNode || parentNode.open || !!$$(data.nodeChildren(setting, parentNode)[0], setting).get(0); root.createdNodes = []; var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, index, true, openFlag), parentObj, nextObj; if (!parentNode) { parentObj = setting.treeObj; //setting.treeObj.append(zTreeHtml.join('')); } else { var ulObj = $$(parentNode, consts.id.UL, setting); if (ulObj.get(0)) { parentObj = ulObj; //ulObj.append(zTreeHtml.join('')); } } if (parentObj) { if (index >= 0) { nextObj = parentObj.children()[index]; } if (index >= 0 && nextObj) { $(nextObj).before(zTreeHtml.join('')); } else { parentObj.append(zTreeHtml.join('')); } } view.createNodeCallback(setting); }, destroy: function (setting) { if (!setting) return; data.initCache(setting); data.initRoot(setting); event.unbindTree(setting); event.unbindEvent(setting); setting.treeObj.empty(); delete settings[setting.treeId]; }, expandCollapseNode: function (setting, node, expandFlag, animateFlag, callback) { var root = data.getRoot(setting); var tmpCb, _callback; if (!node) { tools.apply(callback, []); return; } var children = data.nodeChildren(setting, node); var isParent = data.nodeIsParent(setting, node); if (root.expandTriggerFlag) { _callback = callback; tmpCb = function () { if (_callback) _callback(); if (node.open) { setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); } else { setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); } }; callback = tmpCb; root.expandTriggerFlag = false; } if (!node.open && isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (children && children.length > 0 && !$$(children[0], setting).get(0)))) { view.appendParentULDom(setting, node); view.createNodeCallback(setting); } if (node.open == expandFlag) { tools.apply(callback, []); return; } var ulObj = $$(node, consts.id.UL, setting), switchObj = $$(node, consts.id.SWITCH, setting), icoObj = $$(node, consts.id.ICON, setting); if (isParent) { node.open = !node.open; if (node.iconOpen && node.iconClose) { icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); } if (node.open) { view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); view.replaceIcoClass(node, icoObj, consts.folder.OPEN); if (animateFlag == false || setting.view.expandSpeed == "") { ulObj.show(); tools.apply(callback, []); } else { if (children && children.length > 0) { ulObj.slideDown(setting.view.expandSpeed, callback); } else { ulObj.show(); tools.apply(callback, []); } } } else { view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); if (animateFlag == false || setting.view.expandSpeed == "" || !(children && children.length > 0)) { ulObj.hide(); tools.apply(callback, []); } else { ulObj.slideUp(setting.view.expandSpeed, callback); } } } else { tools.apply(callback, []); } }, expandCollapseParentNode: function (setting, node, expandFlag, animateFlag, callback) { if (!node) return; if (!node.parentTId) { view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); return; } else { view.expandCollapseNode(setting, node, expandFlag, animateFlag); } if (node.parentTId) { view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); } }, expandCollapseSonNode: function (setting, node, expandFlag, animateFlag, callback) { var root = data.getRoot(setting), treeNodes = (node) ? data.nodeChildren(setting, node) : data.nodeChildren(setting, root), selfAnimateSign = (node) ? false : animateFlag, expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; data.getRoot(setting).expandTriggerFlag = false; if (treeNodes) { for (var i = 0, l = treeNodes.length; i < l; i++) { if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); } } data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); }, isSelectedNode: function (setting, node) { if (!node) { return false; } var list = data.getRoot(setting).curSelectedList, i; for (i = list.length - 1; i >= 0; i--) { if (node === list[i]) { return true; } } return false; }, makeDOMNodeIcon: function (html, setting, node) { var nameStr = data.nodeName(setting, node), name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g, '&').replace(//g, '>'); html.push("", name, ""); }, makeDOMNodeLine: function (html, setting, node) { html.push(""); }, makeDOMNodeMainAfter: function (html, setting, node) { html.push(""); }, makeDOMNodeMainBefore: function (html, setting, node) { html.push("
                                                                                                                                                                                                                                                                                                                      • "); }, makeDOMNodeNameAfter: function (html, setting, node) { html.push(""); }, makeDOMNodeNameBefore: function (html, setting, node) { var title = data.nodeTitle(setting, node), url = view.makeNodeUrl(setting, node), fontcss = view.makeNodeFontCss(setting, node), fontStyle = []; for (var f in fontcss) { fontStyle.push(f, ":", fontcss[f], ";"); } html.push(" 0) ? "href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''), "'"); if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) { html.push("title='", title.replace(/'/g, "'").replace(//g, '>'), "'"); } html.push(">"); }, makeNodeFontCss: function (setting, node) { var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; }, makeNodeIcoClass: function (setting, node) { var icoCss = ["ico"]; if (!node.isAjaxing) { var isParent = data.nodeIsParent(setting, node); icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; if (isParent) { icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); } else { icoCss.push(consts.folder.DOCU); } } return consts.className.BUTTON + " " + icoCss.join('_'); }, makeNodeIcoStyle: function (setting, node) { var icoStyle = []; if (!node.isAjaxing) { var isParent = data.nodeIsParent(setting, node); var icon = (isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node[setting.data.key.icon]; if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { icoStyle.push("width:0px;height:0px;"); } } return icoStyle.join(''); }, makeNodeLineClass: function (setting, node) { var lineClass = []; if (setting.view.showLine) { if (node.level == 0 && node.isFirstNode && node.isLastNode) { lineClass.push(consts.line.ROOT); } else if (node.level == 0 && node.isFirstNode) { lineClass.push(consts.line.ROOTS); } else if (node.isLastNode) { lineClass.push(consts.line.BOTTOM); } else { lineClass.push(consts.line.CENTER); } } else { lineClass.push(consts.line.NOLINE); } if (data.nodeIsParent(setting, node)) { lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); } else { lineClass.push(consts.folder.DOCU); } return view.makeNodeLineClassEx(node) + lineClass.join('_'); }, makeNodeLineClassEx: function (node) { return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " "; }, makeNodeTarget: function (node) { return (node.target || "_blank"); }, makeNodeUrl: function (setting, node) { var urlKey = setting.data.key.url; return node[urlKey] ? node[urlKey] : null; }, makeUlHtml: function (setting, node, html, content) { html.push("
                                                                                                                                                                                                                                                                                                                          "); html.push(content); html.push("
                                                                                                                                                                                                                                                                                                                        "); }, makeUlLineClass: function (setting, node) { return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); }, removeChildNodes: function (setting, node) { if (!node) return; var nodes = data.nodeChildren(setting, node); if (!nodes) return; for (var i = 0, l = nodes.length; i < l; i++) { data.removeNodeCache(setting, nodes[i]); } data.removeSelectedNode(setting); delete node[setting.data.key.children]; if (!setting.data.keep.parent) { data.nodeIsParent(setting, node, false); node.open = false; var tmp_switchObj = $$(node, consts.id.SWITCH, setting), tmp_icoObj = $$(node, consts.id.ICON, setting); view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); $$(node, consts.id.UL, setting).remove(); } else { $$(node, consts.id.UL, setting).empty(); } }, scrollIntoView: function (setting, dom) { if (!dom) { return; } // support IE 7 if (typeof Element === 'undefined') { var contRect = setting.treeObj.get(0).getBoundingClientRect(), findMeRect = dom.getBoundingClientRect(); if (findMeRect.top < contRect.top || findMeRect.bottom > contRect.bottom || findMeRect.right > contRect.right || findMeRect.left < contRect.left) { dom.scrollIntoView(); } return; } // CC-BY jocki84@googlemail.com, https://gist.github.com/jocki84/6ffafd003387179a988e if (!Element.prototype.scrollIntoViewIfNeeded) { Element.prototype.scrollIntoViewIfNeeded = function (centerIfNeeded) { "use strict"; function makeRange(start, length) { return {"start": start, "length": length, "end": start + length}; } function coverRange(inner, outer) { if ( false === centerIfNeeded || (outer.start < inner.end && inner.start < outer.end) ) { return Math.max( inner.end - outer.length, Math.min(outer.start, inner.start) ); } return (inner.start + inner.end - outer.length) / 2; } function makePoint(x, y) { return { "x": x, "y": y, "translate": function translate(dX, dY) { return makePoint(x + dX, y + dY); } }; } function absolute(elem, pt) { while (elem) { pt = pt.translate(elem.offsetLeft, elem.offsetTop); elem = elem.offsetParent; } return pt; } var target = absolute(this, makePoint(0, 0)), extent = makePoint(this.offsetWidth, this.offsetHeight), elem = this.parentNode, origin; while (elem instanceof HTMLElement) { // Apply desired scroll amount. origin = absolute(elem, makePoint(elem.clientLeft, elem.clientTop)); elem.scrollLeft = coverRange( makeRange(target.x - origin.x, extent.x), makeRange(elem.scrollLeft, elem.clientWidth) ); elem.scrollTop = coverRange( makeRange(target.y - origin.y, extent.y), makeRange(elem.scrollTop, elem.clientHeight) ); // Determine actual scroll amount by reading back scroll properties. target = target.translate(-elem.scrollLeft, -elem.scrollTop); elem = elem.parentNode; } }; } dom.scrollIntoViewIfNeeded(); }, setFirstNode: function (setting, parentNode) { var children = data.nodeChildren(setting, parentNode); if (children.length > 0) { children[0].isFirstNode = true; } }, setLastNode: function (setting, parentNode) { var children = data.nodeChildren(setting, parentNode); if (children.length > 0) { children[children.length - 1].isLastNode = true; } }, removeNode: function (setting, node) { var root = data.getRoot(setting), parentNode = (node.parentTId) ? node.getParentNode() : root; node.isFirstNode = false; node.isLastNode = false; node.getPreNode = function () { return null; }; node.getNextNode = function () { return null; }; if (!data.getNodeCache(setting, node.tId)) { return; } $$(node, setting).remove(); data.removeNodeCache(setting, node); data.removeSelectedNode(setting, node); var children = data.nodeChildren(setting, parentNode); for (var i = 0, l = children.length; i < l; i++) { if (children[i].tId == node.tId) { children.splice(i, 1); break; } } view.setFirstNode(setting, parentNode); view.setLastNode(setting, parentNode); var tmp_ulObj, tmp_switchObj, tmp_icoObj, childLength = children.length; //repair nodes old parent if (!setting.data.keep.parent && childLength == 0) { //old parentNode has no child nodes data.nodeIsParent(setting, parentNode, false); parentNode.open = false; delete parentNode[setting.data.key.children]; tmp_ulObj = $$(parentNode, consts.id.UL, setting); tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting); tmp_icoObj = $$(parentNode, consts.id.ICON, setting); view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); tmp_ulObj.css("display", "none"); } else if (setting.view.showLine && childLength > 0) { //old parentNode has child nodes var newLast = children[childLength - 1]; tmp_ulObj = $$(newLast, consts.id.UL, setting); tmp_switchObj = $$(newLast, consts.id.SWITCH, setting); tmp_icoObj = $$(newLast, consts.id.ICON, setting); if (parentNode == root) { if (children.length == 1) { //node was root, and ztree has only one root after move node view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); } else { var tmp_first_switchObj = $$(children[0], consts.id.SWITCH, setting); view.replaceSwitchClass(children[0], tmp_first_switchObj, consts.line.ROOTS); view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); } } else { view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); } tmp_ulObj.removeClass(consts.line.LINE); } }, replaceIcoClass: function (node, obj, newName) { if (!obj || node.isAjaxing) return; var tmpName = obj.attr("class"); if (tmpName == undefined) return; var tmpList = tmpName.split("_"); switch (newName) { case consts.folder.OPEN: case consts.folder.CLOSE: case consts.folder.DOCU: tmpList[tmpList.length - 1] = newName; break; } obj.attr("class", tmpList.join("_")); }, replaceSwitchClass: function (node, obj, newName) { if (!obj) return; var tmpName = obj.attr("class"); if (tmpName == undefined) return; var tmpList = tmpName.split("_"); switch (newName) { case consts.line.ROOT: case consts.line.ROOTS: case consts.line.CENTER: case consts.line.BOTTOM: case consts.line.NOLINE: tmpList[0] = view.makeNodeLineClassEx(node) + newName; break; case consts.folder.OPEN: case consts.folder.CLOSE: case consts.folder.DOCU: tmpList[1] = newName; break; } obj.attr("class", tmpList.join("_")); if (newName !== consts.folder.DOCU) { obj.removeAttr("disabled"); } else { obj.attr("disabled", "disabled"); } }, selectNode: function (setting, node, addFlag) { if (!addFlag) { view.cancelPreSelectedNode(setting, null, node); } $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED); data.addSelectedNode(setting, node); setting.treeObj.trigger(consts.event.SELECTED, [setting.treeId, node]); }, setNodeFontCss: function (setting, treeNode) { var aObj = $$(treeNode, consts.id.A, setting), fontCss = view.makeNodeFontCss(setting, treeNode); if (fontCss) { aObj.css(fontCss); } }, setNodeLineIcos: function (setting, node) { if (!node) return; var switchObj = $$(node, consts.id.SWITCH, setting), ulObj = $$(node, consts.id.UL, setting), icoObj = $$(node, consts.id.ICON, setting), ulLine = view.makeUlLineClass(setting, node); if (ulLine.length == 0) { ulObj.removeClass(consts.line.LINE); } else { ulObj.addClass(ulLine); } switchObj.attr("class", view.makeNodeLineClass(setting, node)); if (data.nodeIsParent(setting, node)) { switchObj.removeAttr("disabled"); } else { switchObj.attr("disabled", "disabled"); } icoObj.removeAttr("style"); icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); icoObj.attr("class", view.makeNodeIcoClass(setting, node)); }, setNodeName: function (setting, node) { var title = data.nodeTitle(setting, node), nObj = $$(node, consts.id.SPAN, setting); nObj.empty(); if (setting.view.nameIsHTML) { nObj.html(data.nodeName(setting, node)); } else { nObj.text(data.nodeName(setting, node)); } if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { var aObj = $$(node, consts.id.A, setting); aObj.attr("title", !title ? "" : title); } }, setNodeTarget: function (setting, node) { var aObj = $$(node, consts.id.A, setting); aObj.attr("target", view.makeNodeTarget(node)); }, setNodeUrl: function (setting, node) { var aObj = $$(node, consts.id.A, setting), url = view.makeNodeUrl(setting, node); if (url == null || url.length == 0) { aObj.removeAttr("href"); } else { aObj.attr("href", url); } }, switchNode: function (setting, node) { if (node.open || !tools.canAsync(setting, node)) { view.expandCollapseNode(setting, node, !node.open); } else if (setting.async.enable) { if (!view.asyncNode(setting, node)) { view.expandCollapseNode(setting, node, !node.open); return; } } else if (node) { view.expandCollapseNode(setting, node, !node.open); } } }; // zTree defind $.fn.zTree = { consts: _consts, _z: { tools: tools, view: view, event: event, data: data }, getZTreeObj: function (treeId) { var o = data.getZTreeTools(treeId); return o ? o : null; }, destroy: function (treeId) { if (!!treeId && treeId.length > 0) { view.destroy(data.getSetting(treeId)); } else { for (var s in settings) { view.destroy(settings[s]); } } }, init: function (obj, zSetting, zNodes) { var setting = tools.clone(_setting); $.extend(true, setting, zSetting); setting.treeId = obj.attr("id"); setting.treeObj = obj; setting.treeObj.empty(); settings[setting.treeId] = setting; //For some older browser,(e.g., ie6) if (typeof document.body.style.maxHeight === "undefined") { setting.view.expandSpeed = ""; } data.initRoot(setting); var root = data.getRoot(setting); zNodes = zNodes ? tools.clone(tools.isArray(zNodes) ? zNodes : [zNodes]) : []; if (setting.data.simpleData.enable) { data.nodeChildren(setting, root, data.transformTozTreeFormat(setting, zNodes)); } else { data.nodeChildren(setting, root, zNodes); } data.initCache(setting); event.unbindTree(setting); event.bindTree(setting); event.unbindEvent(setting); event.bindEvent(setting); var zTreeTools = { setting: setting, addNodes: function (parentNode, index, newNodes, isSilent) { if (!parentNode) parentNode = null; var isParent = data.nodeIsParent(setting, parentNode); if (parentNode && !isParent && setting.data.keep.leaf) return null; var i = parseInt(index, 10); if (isNaN(i)) { isSilent = !!newNodes; newNodes = index; index = -1; } else { index = i; } if (!newNodes) return null; var xNewNodes = tools.clone(tools.isArray(newNodes) ? newNodes : [newNodes]); function addCallback() { view.addNodes(setting, parentNode, index, xNewNodes, (isSilent == true)); } if (tools.canAsync(setting, parentNode)) { view.asyncNode(setting, parentNode, isSilent, addCallback); } else { addCallback(); } return xNewNodes; }, cancelSelectedNode: function (node) { view.cancelPreSelectedNode(setting, node); }, destroy: function () { view.destroy(setting); }, expandAll: function (expandFlag) { expandFlag = !!expandFlag; view.expandCollapseSonNode(setting, null, expandFlag, true); return expandFlag; }, expandNode: function (node, expandFlag, sonSign, focus, callbackFlag) { if (!node || !data.nodeIsParent(setting, node)) return null; if (expandFlag !== true && expandFlag !== false) { expandFlag = !node.open; } callbackFlag = !!callbackFlag; if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { return null; } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { return null; } if (expandFlag && node.parentTId) { view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false); } if (expandFlag === node.open && !sonSign) { return null; } data.getRoot(setting).expandTriggerFlag = callbackFlag; if (!tools.canAsync(setting, node) && sonSign) { view.expandCollapseSonNode(setting, node, expandFlag, true, showNodeFocus); } else { node.open = !expandFlag; view.switchNode(this.setting, node); showNodeFocus(); } return expandFlag; function showNodeFocus() { var a = $$(node, setting).get(0); if (a && focus !== false) { view.scrollIntoView(setting, a); } } }, getNodes: function () { return data.getNodes(setting); }, getNodeByParam: function (key, value, parentNode) { if (!key) return null; return data.getNodeByParam(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), key, value); }, getNodeByTId: function (tId) { return data.getNodeCache(setting, tId); }, getNodesByParam: function (key, value, parentNode) { if (!key) return null; return data.getNodesByParam(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), key, value); }, getNodesByParamFuzzy: function (key, value, parentNode) { if (!key) return null; return data.getNodesByParamFuzzy(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), key, value); }, getNodesByFilter: function (filter, isSingle, parentNode, invokeParam) { isSingle = !!isSingle; if (!filter || (typeof filter != "function")) return (isSingle ? null : []); return data.getNodesByFilter(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), filter, isSingle, invokeParam); }, getNodeIndex: function (node) { if (!node) return null; var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); var children = data.nodeChildren(setting, parentNode); for (var i = 0, l = children.length; i < l; i++) { if (children[i] == node) return i; } return -1; }, getSelectedNodes: function () { var r = [], list = data.getRoot(setting).curSelectedList; for (var i = 0, l = list.length; i < l; i++) { r.push(list[i]); } return r; }, isSelectedNode: function (node) { return data.isSelectedNode(setting, node); }, reAsyncChildNodesPromise: function (parentNode, reloadType, isSilent) { var promise = new Promise(function (resolve, reject) { try { zTreeTools.reAsyncChildNodes(parentNode, reloadType, isSilent, function () { resolve(parentNode); }); } catch (e) { reject(e); } }); return promise; }, reAsyncChildNodes: function (parentNode, reloadType, isSilent, callback) { if (!this.setting.async.enable) return; var isRoot = !parentNode; if (isRoot) { parentNode = data.getRoot(setting); } if (reloadType == "refresh") { var children = data.nodeChildren(setting, parentNode); for (var i = 0, l = children ? children.length : 0; i < l; i++) { data.removeNodeCache(setting, children[i]); } data.removeSelectedNode(setting); data.nodeChildren(setting, parentNode, []); if (isRoot) { this.setting.treeObj.empty(); } else { var ulObj = $$(parentNode, consts.id.UL, setting); ulObj.empty(); } } view.asyncNode(this.setting, isRoot ? null : parentNode, !!isSilent, callback); }, refresh: function () { this.setting.treeObj.empty(); var root = data.getRoot(setting), nodes = data.nodeChildren(setting, root); data.initRoot(setting); data.nodeChildren(setting, root, nodes); data.initCache(setting); view.createNodes(setting, 0, data.nodeChildren(setting, root), null, -1); }, removeChildNodes: function (node) { if (!node) return null; var nodes = data.nodeChildren(setting, node); view.removeChildNodes(setting, node); return nodes ? nodes : null; }, removeNode: function (node, callbackFlag) { if (!node) return; callbackFlag = !!callbackFlag; if (callbackFlag && tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return; view.removeNode(setting, node); if (callbackFlag) { this.setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); } }, selectNode: function (node, addFlag, isSilent) { if (!node) return; if (tools.uCanDo(setting)) { addFlag = setting.view.selectedMulti && addFlag; if (node.parentTId) { view.expandCollapseParentNode(setting, node.getParentNode(), true, false, showNodeFocus); } else if (!isSilent) { try { $$(node, setting).focus().blur(); } catch (e) { } } view.selectNode(setting, node, addFlag); } function showNodeFocus() { if (isSilent) { return; } var a = $$(node, setting).get(0); view.scrollIntoView(setting, a); } }, transformTozTreeNodes: function (simpleNodes) { return data.transformTozTreeFormat(setting, simpleNodes); }, transformToArray: function (nodes) { return data.transformToArrayFormat(setting, nodes); }, updateNode: function (node, checkTypeFlag) { if (!node) return; var nObj = $$(node, setting); if (nObj.get(0) && tools.uCanDo(setting)) { view.setNodeName(setting, node); view.setNodeTarget(setting, node); view.setNodeUrl(setting, node); view.setNodeLineIcos(setting, node); view.setNodeFontCss(setting, node); } } }; root.treeTools = zTreeTools; data.setZTreeTools(setting, zTreeTools); var children = data.nodeChildren(setting, root); if (children && children.length > 0) { view.createNodes(setting, 0, children, null, -1); } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { view.asyncNode(setting); } return zTreeTools; } }; var zt = $.fn.zTree, $$ = tools.$, consts = zt.consts; })(jQuery); /* * JQuery zTree excheck v3.5.40 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2019-01-18 */ (function ($) { //default consts of excheck var _consts = { event: { CHECK: "ztree_check" }, id: { CHECK: "_check" }, checkbox: { STYLE: "checkbox", DEFAULT: "chk", DISABLED: "disable", FALSE: "false", TRUE: "true", FULL: "full", PART: "part", FOCUS: "focus" }, radio: { STYLE: "radio", TYPE_ALL: "all", TYPE_LEVEL: "level" } }, //default setting of excheck _setting = { check: { enable: false, autoCheckTrigger: false, chkStyle: _consts.checkbox.STYLE, nocheckInherit: false, chkDisabledInherit: false, radioType: _consts.radio.TYPE_LEVEL, chkboxType: { "Y": "ps", "N": "ps" } }, data: { key: { checked: "checked" } }, callback: { beforeCheck: null, onCheck: null } }, //default root of excheck _initRoot = function (setting) { var r = data.getRoot(setting); r.radioCheckedList = []; }, //default cache of excheck _initCache = function (treeId) { }, //default bind event of excheck _bindEvent = function (setting) { var o = setting.treeObj, c = consts.event; o.bind(c.CHECK, function (event, srcEvent, treeId, node) { event.srcEvent = srcEvent; tools.apply(setting.callback.onCheck, [event, treeId, node]); }); }, _unbindEvent = function (setting) { var o = setting.treeObj, c = consts.event; o.unbind(c.CHECK); }, //default event proxy of excheck _eventProxy = function (e) { var target = e.target, setting = data.getSetting(e.data.treeId), tId = "", node = null, nodeEventType = "", treeEventType = "", nodeEventCallback = null, treeEventCallback = null; if (tools.eqs(e.type, "mouseover")) { if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) { tId = tools.getNodeMainDom(target).id; nodeEventType = "mouseoverCheck"; } } else if (tools.eqs(e.type, "mouseout")) { if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) { tId = tools.getNodeMainDom(target).id; nodeEventType = "mouseoutCheck"; } } else if (tools.eqs(e.type, "click")) { if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) { tId = tools.getNodeMainDom(target).id; nodeEventType = "checkNode"; } } if (tId.length > 0) { node = data.getNodeCache(setting, tId); switch (nodeEventType) { case "checkNode" : nodeEventCallback = _handler.onCheckNode; break; case "mouseoverCheck" : nodeEventCallback = _handler.onMouseoverCheck; break; case "mouseoutCheck" : nodeEventCallback = _handler.onMouseoutCheck; break; } } var proxyResult = { stop: nodeEventType === "checkNode", node: node, nodeEventType: nodeEventType, nodeEventCallback: nodeEventCallback, treeEventType: treeEventType, treeEventCallback: treeEventCallback }; return proxyResult }, //default init node of excheck _initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { if (!n) return; var checked = data.nodeChecked(setting, n); n.checkedOld = checked; if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); n.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled); if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); n.halfCheck = !!n.halfCheck; n.check_Child_State = -1; n.check_Focus = false; n.getCheckStatus = function () { return data.getCheckStatus(setting, n); }; if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && checked) { var r = data.getRoot(setting); r.radioCheckedList.push(n); } }, //add dom for check _beforeA = function (setting, node, html) { if (setting.check.enable) { data.makeChkFlag(setting, node); html.push(""); } }, //update zTreeObj, add method of check _zTreeTools = function (setting, zTreeTools) { zTreeTools.checkNode = function (node, checked, checkTypeFlag, callbackFlag) { var nodeChecked = data.nodeChecked(setting, node); if (node.chkDisabled === true) return; if (checked !== true && checked !== false) { checked = !nodeChecked; } callbackFlag = !!callbackFlag; if (nodeChecked === checked && !checkTypeFlag) { return; } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) { return; } if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) { data.nodeChecked(setting, node, checked); var checkObj = $$(node, consts.id.CHECK, this.setting); if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); view.setChkClass(this.setting, checkObj, node); view.repairParentChkClassWithSelf(this.setting, node); if (callbackFlag) { this.setting.treeObj.trigger(consts.event.CHECK, [null, this.setting.treeId, node]); } } } zTreeTools.checkAllNodes = function (checked) { view.repairAllChk(this.setting, !!checked); } zTreeTools.getCheckedNodes = function (checked) { var checked = (checked !== false); var children = data.nodeChildren(setting, data.getRoot(this.setting)); return data.getTreeCheckedNodes(this.setting, children, checked); } zTreeTools.getChangeCheckedNodes = function () { var children = data.nodeChildren(setting, data.getRoot(this.setting)); return data.getTreeChangeCheckedNodes(this.setting, children); } zTreeTools.setChkDisabled = function (node, disabled, inheritParent, inheritChildren) { disabled = !!disabled; inheritParent = !!inheritParent; inheritChildren = !!inheritChildren; view.repairSonChkDisabled(this.setting, node, disabled, inheritChildren); view.repairParentChkDisabled(this.setting, node.getParentNode(), disabled, inheritParent); } var _updateNode = zTreeTools.updateNode; zTreeTools.updateNode = function (node, checkTypeFlag) { if (_updateNode) _updateNode.apply(zTreeTools, arguments); if (!node || !this.setting.check.enable) return; var nObj = $$(node, this.setting); if (nObj.get(0) && tools.uCanDo(this.setting)) { var checkObj = $$(node, consts.id.CHECK, this.setting); if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); view.setChkClass(this.setting, checkObj, node); view.repairParentChkClassWithSelf(this.setting, node); } } }, //method of operate data _data = { getRadioCheckedList: function (setting) { var checkedList = data.getRoot(setting).radioCheckedList; for (var i = 0, j = checkedList.length; i < j; i++) { if (!data.getNodeCache(setting, checkedList[i].tId)) { checkedList.splice(i, 1); i--; j--; } } return checkedList; }, getCheckStatus: function (setting, node) { if (!setting.check.enable || node.nocheck || node.chkDisabled) return null; var checked = data.nodeChecked(setting, node), r = { checked: checked, half: node.halfCheck ? node.halfCheck : (setting.check.chkStyle == consts.radio.STYLE ? (node.check_Child_State === 2) : (checked ? (node.check_Child_State > -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) }; return r; }, getTreeCheckedNodes: function (setting, nodes, checked, results) { if (!nodes) return []; var onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); results = !results ? [] : results; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; var children = data.nodeChildren(setting, node); var nodeChecked = data.nodeChecked(setting, node); if (node.nocheck !== true && node.chkDisabled !== true && nodeChecked == checked) { results.push(node); if (onlyOne) { break; } } data.getTreeCheckedNodes(setting, children, checked, results); if (onlyOne && results.length > 0) { break; } } return results; }, getTreeChangeCheckedNodes: function (setting, nodes, results) { if (!nodes) return []; results = !results ? [] : results; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; var children = data.nodeChildren(setting, node); var nodeChecked = data.nodeChecked(setting, node); if (node.nocheck !== true && node.chkDisabled !== true && nodeChecked != node.checkedOld) { results.push(node); } data.getTreeChangeCheckedNodes(setting, children, results); } return results; }, makeChkFlag: function (setting, node) { if (!node) return; var chkFlag = -1; var children = data.nodeChildren(setting, node); if (children) { for (var i = 0, l = children.length; i < l; i++) { var cNode = children[i]; var nodeChecked = data.nodeChecked(setting, cNode); var tmp = -1; if (setting.check.chkStyle == consts.radio.STYLE) { if (cNode.nocheck === true || cNode.chkDisabled === true) { tmp = cNode.check_Child_State; } else if (cNode.halfCheck === true) { tmp = 2; } else if (nodeChecked) { tmp = 2; } else { tmp = cNode.check_Child_State > 0 ? 2 : 0; } if (tmp == 2) { chkFlag = 2; break; } else if (tmp == 0) { chkFlag = 0; } } else if (setting.check.chkStyle == consts.checkbox.STYLE) { if (cNode.nocheck === true || cNode.chkDisabled === true) { tmp = cNode.check_Child_State; } else if (cNode.halfCheck === true) { tmp = 1; } else if (nodeChecked) { tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; } else { tmp = (cNode.check_Child_State > 0) ? 1 : 0; } if (tmp === 1) { chkFlag = 1; break; } else if (tmp === 2 && chkFlag > -1 && i > 0 && tmp !== chkFlag) { chkFlag = 1; break; } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { chkFlag = 1; break; } else if (tmp > -1) { chkFlag = tmp; } } } } node.check_Child_State = chkFlag; } }, //method of event proxy _event = {}, //method of event handler _handler = { onCheckNode: function (event, node) { if (node.chkDisabled === true) return false; var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; var nodeChecked = data.nodeChecked(setting, node); data.nodeChecked(setting, node, !nodeChecked); view.checkNodeRelation(setting, node); var checkObj = $$(node, consts.id.CHECK, setting); view.setChkClass(setting, checkObj, node); view.repairParentChkClassWithSelf(setting, node); setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); return true; }, onMouseoverCheck: function (event, node) { if (node.chkDisabled === true) return false; var setting = data.getSetting(event.data.treeId), checkObj = $$(node, consts.id.CHECK, setting); node.check_Focus = true; view.setChkClass(setting, checkObj, node); return true; }, onMouseoutCheck: function (event, node) { if (node.chkDisabled === true) return false; var setting = data.getSetting(event.data.treeId), checkObj = $$(node, consts.id.CHECK, setting); node.check_Focus = false; view.setChkClass(setting, checkObj, node); return true; } }, //method of tools for zTree _tools = {}, //method of operate ztree dom _view = { checkNodeRelation: function (setting, node) { var pNode, i, l, r = consts.radio; var nodeChecked = data.nodeChecked(setting, node); if (setting.check.chkStyle == r.STYLE) { var checkedList = data.getRadioCheckedList(setting); if (nodeChecked) { if (setting.check.radioType == r.TYPE_ALL) { for (i = checkedList.length - 1; i >= 0; i--) { pNode = checkedList[i]; var pNodeChecked = data.nodeChecked(setting, pNode); if (pNodeChecked && pNode != node) { data.nodeChecked(setting, pNode, false); checkedList.splice(i, 1); view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); if (pNode.parentTId != node.parentTId) { view.repairParentChkClassWithSelf(setting, pNode); } } } checkedList.push(node); } else { var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); var children = data.nodeChildren(setting, parentNode); for (i = 0, l = children.length; i < l; i++) { pNode = children[i]; var pNodeChecked = data.nodeChecked(setting, pNode); if (pNodeChecked && pNode != node) { data.nodeChecked(setting, pNode, false); view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); } } } } else if (setting.check.radioType == r.TYPE_ALL) { for (i = 0, l = checkedList.length; i < l; i++) { if (node == checkedList[i]) { checkedList.splice(i, 1); break; } } } } else { var children = data.nodeChildren(setting, node); if (nodeChecked && (!children || children.length == 0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { view.setSonNodeCheckBox(setting, node, true); } if (!nodeChecked && (!children || children.length == 0 || setting.check.chkboxType.N.indexOf("s") > -1)) { view.setSonNodeCheckBox(setting, node, false); } if (nodeChecked && setting.check.chkboxType.Y.indexOf("p") > -1) { view.setParentNodeCheckBox(setting, node, true); } if (!nodeChecked && setting.check.chkboxType.N.indexOf("p") > -1) { view.setParentNodeCheckBox(setting, node, false); } } }, makeChkClass: function (setting, node) { var c = consts.checkbox, r = consts.radio, fullStyle = ""; var nodeChecked = data.nodeChecked(setting, node); if (node.chkDisabled === true) { fullStyle = c.DISABLED; } else if (node.halfCheck) { fullStyle = c.PART; } else if (setting.check.chkStyle == r.STYLE) { fullStyle = (node.check_Child_State < 1) ? c.FULL : c.PART; } else { fullStyle = nodeChecked ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL : c.PART) : ((node.check_Child_State < 1) ? c.FULL : c.PART); } var chkName = setting.check.chkStyle + "_" + (nodeChecked ? c.TRUE : c.FALSE) + "_" + fullStyle; chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; return consts.className.BUTTON + " " + c.DEFAULT + " " + chkName; }, repairAllChk: function (setting, checked) { if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { var root = data.getRoot(setting); var children = data.nodeChildren(setting, root); for (var i = 0, l = children.length; i < l; i++) { var node = children[i]; if (node.nocheck !== true && node.chkDisabled !== true) { data.nodeChecked(setting, node, checked); } view.setSonNodeCheckBox(setting, node, checked); } } }, repairChkClass: function (setting, node) { if (!node) return; data.makeChkFlag(setting, node); if (node.nocheck !== true) { var checkObj = $$(node, consts.id.CHECK, setting); view.setChkClass(setting, checkObj, node); } }, repairParentChkClass: function (setting, node) { if (!node || !node.parentTId) return; var pNode = node.getParentNode(); view.repairChkClass(setting, pNode); view.repairParentChkClass(setting, pNode); }, repairParentChkClassWithSelf: function (setting, node) { if (!node) return; var children = data.nodeChildren(setting, node); if (children && children.length > 0) { view.repairParentChkClass(setting, children[0]); } else { view.repairParentChkClass(setting, node); } }, repairSonChkDisabled: function (setting, node, chkDisabled, inherit) { if (!node) return; if (node.chkDisabled != chkDisabled) { node.chkDisabled = chkDisabled; } view.repairChkClass(setting, node); var children = data.nodeChildren(setting, node); if (children && inherit) { for (var i = 0, l = children.length; i < l; i++) { var sNode = children[i]; view.repairSonChkDisabled(setting, sNode, chkDisabled, inherit); } } }, repairParentChkDisabled: function (setting, node, chkDisabled, inherit) { if (!node) return; if (node.chkDisabled != chkDisabled && inherit) { node.chkDisabled = chkDisabled; } view.repairChkClass(setting, node); view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit); }, setChkClass: function (setting, obj, node) { if (!obj) return; if (node.nocheck === true) { obj.hide(); } else { obj.show(); } obj.attr('class', view.makeChkClass(setting, node)); }, setParentNodeCheckBox: function (setting, node, value, srcNode) { var checkObj = $$(node, consts.id.CHECK, setting); if (!srcNode) srcNode = node; data.makeChkFlag(setting, node); if (node.nocheck !== true && node.chkDisabled !== true) { data.nodeChecked(setting, node, value); view.setChkClass(setting, checkObj, node); if (setting.check.autoCheckTrigger && node != srcNode) { setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); } } if (node.parentTId) { var pSign = true; if (!value) { var pNodes = data.nodeChildren(setting, node.getParentNode()); for (var i = 0, l = pNodes.length; i < l; i++) { var pNode = pNodes[i]; var nodeChecked = data.nodeChecked(setting, pNode); if ((pNode.nocheck !== true && pNode.chkDisabled !== true && nodeChecked) || ((pNode.nocheck === true || pNode.chkDisabled === true) && pNode.check_Child_State > 0)) { pSign = false; break; } } } if (pSign) { view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); } } }, setSonNodeCheckBox: function (setting, node, value, srcNode) { if (!node) return; var checkObj = $$(node, consts.id.CHECK, setting); if (!srcNode) srcNode = node; var hasDisable = false; var children = data.nodeChildren(setting, node); if (children) { for (var i = 0, l = children.length; i < l; i++) { var sNode = children[i]; view.setSonNodeCheckBox(setting, sNode, value, srcNode); if (sNode.chkDisabled === true) hasDisable = true; } } if (node != data.getRoot(setting) && node.chkDisabled !== true) { if (hasDisable && node.nocheck !== true) { data.makeChkFlag(setting, node); } if (node.nocheck !== true && node.chkDisabled !== true) { data.nodeChecked(setting, node, value); if (!hasDisable) node.check_Child_State = (children && children.length > 0) ? (value ? 2 : 0) : -1; } else { node.check_Child_State = -1; } view.setChkClass(setting, checkObj, node); if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true && node.chkDisabled !== true) { setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); } } } }, _z = { tools: _tools, view: _view, event: _event, data: _data }; $.extend(true, $.fn.zTree.consts, _consts); $.extend(true, $.fn.zTree._z, _z); var zt = $.fn.zTree, tools = zt._z.tools, consts = zt.consts, view = zt._z.view, data = zt._z.data, event = zt._z.event, $$ = tools.$; data.nodeChecked = function (setting, node, newChecked) { if (!node) { return false; } var key = setting.data.key.checked; if (typeof newChecked !== 'undefined') { if (typeof newChecked === "string") { newChecked = tools.eqs(newChecked, "true"); } newChecked = !!newChecked; node[key] = newChecked; } else if (typeof node[key] == "string"){ node[key] = tools.eqs(node[key], "true"); } else { node[key] = !!node[key]; } return node[key]; }; data.exSetting(_setting); data.addInitBind(_bindEvent); data.addInitUnBind(_unbindEvent); data.addInitCache(_initCache); data.addInitNode(_initNode); data.addInitProxy(_eventProxy, true); data.addInitRoot(_initRoot); data.addBeforeA(_beforeA); data.addZTreeTools(_zTreeTools); var _createNodes = view.createNodes; view.createNodes = function (setting, level, nodes, parentNode, index) { if (_createNodes) _createNodes.apply(view, arguments); if (!nodes) return; view.repairParentChkClassWithSelf(setting, parentNode); } var _removeNode = view.removeNode; view.removeNode = function (setting, node) { var parentNode = node.getParentNode(); if (_removeNode) _removeNode.apply(view, arguments); if (!node || !parentNode) return; view.repairChkClass(setting, parentNode); view.repairParentChkClass(setting, parentNode); } var _appendNodes = view.appendNodes; view.appendNodes = function (setting, level, nodes, parentNode, index, initFlag, openFlag) { var html = ""; if (_appendNodes) { html = _appendNodes.apply(view, arguments); } if (parentNode) { data.makeChkFlag(setting, parentNode); } return html; } })(jQuery); /* * JQuery zTree exedit v3.5.40 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2019-01-18 */ (function ($) { //default consts of exedit var _consts = { event: { DRAG: "ztree_drag", DROP: "ztree_drop", RENAME: "ztree_rename", DRAGMOVE: "ztree_dragmove" }, id: { EDIT: "_edit", INPUT: "_input", REMOVE: "_remove" }, move: { TYPE_INNER: "inner", TYPE_PREV: "prev", TYPE_NEXT: "next" }, node: { CURSELECTED_EDIT: "curSelectedNode_Edit", TMPTARGET_TREE: "tmpTargetzTree", TMPTARGET_NODE: "tmpTargetNode" } }, //default setting of exedit _setting = { edit: { enable: false, editNameSelectAll: false, showRemoveBtn: true, showRenameBtn: true, removeTitle: "remove", renameTitle: "rename", drag: { autoExpandTrigger: false, isCopy: true, isMove: true, prev: true, next: true, inner: true, minMoveSize: 5, borderMax: 10, borderMin: -5, maxShowNodeNum: 5, autoOpenTime: 500 } }, view: { addHoverDom: null, removeHoverDom: null }, callback: { beforeDrag: null, beforeDragOpen: null, beforeDrop: null, beforeEditName: null, beforeRename: null, onDrag: null, onDragMove: null, onDrop: null, onRename: null } }, //default root of exedit _initRoot = function (setting) { var r = data.getRoot(setting), rs = data.getRoots(); r.curEditNode = null; r.curEditInput = null; r.curHoverNode = null; r.dragFlag = 0; r.dragNodeShowBefore = []; r.dragMaskList = new Array(); rs.showHoverDom = true; }, //default cache of exedit _initCache = function (treeId) { }, //default bind event of exedit _bindEvent = function (setting) { var o = setting.treeObj; var c = consts.event; o.bind(c.RENAME, function (event, treeId, treeNode, isCancel) { tools.apply(setting.callback.onRename, [event, treeId, treeNode, isCancel]); }); o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); }); o.bind(c.DRAGMOVE, function (event, srcEvent, treeId, treeNodes) { tools.apply(setting.callback.onDragMove, [srcEvent, treeId, treeNodes]); }); o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); }); }, _unbindEvent = function (setting) { var o = setting.treeObj; var c = consts.event; o.unbind(c.RENAME); o.unbind(c.DRAG); o.unbind(c.DRAGMOVE); o.unbind(c.DROP); }, //default event proxy of exedit _eventProxy = function (e) { var target = e.target, setting = data.getSetting(e.data.treeId), relatedTarget = e.relatedTarget, tId = "", node = null, nodeEventType = "", treeEventType = "", nodeEventCallback = null, treeEventCallback = null, tmp = null; if (tools.eqs(e.type, "mouseover")) { tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; nodeEventType = "hoverOverNode"; } } else if (tools.eqs(e.type, "mouseout")) { tmp = tools.getMDom(setting, relatedTarget, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (!tmp) { tId = "remove"; nodeEventType = "hoverOutNode"; } } else if (tools.eqs(e.type, "mousedown")) { tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; nodeEventType = "mousedownNode"; } } if (tId.length > 0) { node = data.getNodeCache(setting, tId); switch (nodeEventType) { case "mousedownNode" : nodeEventCallback = _handler.onMousedownNode; break; case "hoverOverNode" : nodeEventCallback = _handler.onHoverOverNode; break; case "hoverOutNode" : nodeEventCallback = _handler.onHoverOutNode; break; } } var proxyResult = { stop: false, node: node, nodeEventType: nodeEventType, nodeEventCallback: nodeEventCallback, treeEventType: treeEventType, treeEventCallback: treeEventCallback }; return proxyResult }, //default init node of exedit _initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { if (!n) return; n.isHover = false; n.editNameFlag = false; }, //update zTreeObj, add method of edit _zTreeTools = function (setting, zTreeTools) { zTreeTools.cancelEditName = function (newName) { var root = data.getRoot(this.setting); if (!root.curEditNode) return; view.cancelCurEditNode(this.setting, newName ? newName : null, true); } zTreeTools.copyNode = function (targetNode, node, moveType, isSilent) { if (!node) return null; var isParent = data.nodeIsParent(setting, targetNode); if (targetNode && !isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; var _this = this, newNode = tools.clone(node); if (!targetNode) { targetNode = null; moveType = consts.move.TYPE_INNER; } if (moveType == consts.move.TYPE_INNER) { function copyCallback() { view.addNodes(_this.setting, targetNode, -1, [newNode], isSilent); } if (tools.canAsync(this.setting, targetNode)) { view.asyncNode(this.setting, targetNode, isSilent, copyCallback); } else { copyCallback(); } } else { view.addNodes(this.setting, targetNode.parentNode, -1, [newNode], isSilent); view.moveNode(this.setting, targetNode, newNode, moveType, false, isSilent); } return newNode; } zTreeTools.editName = function (node) { if (!node || !node.tId || node !== data.getNodeCache(this.setting, node.tId)) return; if (node.parentTId) view.expandCollapseParentNode(this.setting, node.getParentNode(), true); view.editNode(this.setting, node) } zTreeTools.moveNode = function (targetNode, node, moveType, isSilent) { if (!node) return node; var isParent = data.nodeIsParent(setting, targetNode); if (targetNode && !isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { return null; } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $$(node, this.setting).find("#" + targetNode.tId).length > 0)) { return null; } else if (!targetNode) { targetNode = null; } var _this = this; function moveCallback() { view.moveNode(_this.setting, targetNode, node, moveType, false, isSilent); } if (tools.canAsync(this.setting, targetNode) && moveType === consts.move.TYPE_INNER) { view.asyncNode(this.setting, targetNode, isSilent, moveCallback); } else { moveCallback(); } return node; } zTreeTools.setEditable = function (editable) { this.setting.edit.enable = editable; return this.refresh(); } }, //method of operate data _data = { setSonNodeLevel: function (setting, parentNode, node) { if (!node) return; var children = data.nodeChildren(setting, node); node.level = (parentNode) ? parentNode.level + 1 : 0; if (!children) return; for (var i = 0, l = children.length; i < l; i++) { if (children[i]) data.setSonNodeLevel(setting, node, children[i]); } } }, //method of event proxy _event = {}, //method of event handler _handler = { onHoverOverNode: function (event, node) { var setting = data.getSetting(event.data.treeId), root = data.getRoot(setting); if (root.curHoverNode != node) { _handler.onHoverOutNode(event); } root.curHoverNode = node; view.addHoverDom(setting, node); }, onHoverOutNode: function (event, node) { var setting = data.getSetting(event.data.treeId), root = data.getRoot(setting); if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { view.removeTreeDom(setting, root.curHoverNode); root.curHoverNode = null; } }, onMousedownNode: function (eventMouseDown, _node) { var i, l, setting = data.getSetting(eventMouseDown.data.treeId), root = data.getRoot(setting), roots = data.getRoots(); //right click can't drag & drop if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; //input of edit node name can't drag & drop var target = eventMouseDown.target, _nodes = data.getRoot(setting).curSelectedList, nodes = []; if (!data.isSelectedNode(setting, _node)) { nodes = [_node]; } else { for (i = 0, l = _nodes.length; i < l; i++) { if (_nodes[i].editNameFlag && tools.eqs(target.tagName, "input") && target.getAttribute("treeNode" + consts.id.INPUT) !== null) { return true; } nodes.push(_nodes[i]); if (nodes[0].parentTId !== _nodes[i].parentTId) { nodes = [_node]; break; } } } view.editNodeBlur = true; view.cancelCurEditNode(setting); var doc = $(setting.treeObj.get(0).ownerDocument), body = $(setting.treeObj.get(0).ownerDocument.body), curNode, tmpArrow, tmpTarget, isOtherTree = false, targetSetting = setting, sourceSetting = setting, preNode, nextNode, preTmpTargetNodeId = null, preTmpMoveType = null, tmpTargetNodeId = null, moveType = consts.move.TYPE_INNER, mouseDownX = eventMouseDown.clientX, mouseDownY = eventMouseDown.clientY, startTime = (new Date()).getTime(); if (tools.uCanDo(setting)) { doc.bind("mousemove", _docMouseMove); } function _docMouseMove(event) { //avoid start drag after click node if (root.dragFlag == 0 && Math.abs(mouseDownX - event.clientX) < setting.edit.drag.minMoveSize && Math.abs(mouseDownY - event.clientY) < setting.edit.drag.minMoveSize) { return true; } var i, l, tmpNode, tmpDom, tmpNodes; body.css("cursor", "pointer"); if (root.dragFlag == 0) { if (tools.apply(setting.callback.beforeDrag, [setting.treeId, nodes], true) == false) { _docMouseUp(event); return true; } for (i = 0, l = nodes.length; i < l; i++) { if (i == 0) { root.dragNodeShowBefore = []; } tmpNode = nodes[i]; if (data.nodeIsParent(setting, tmpNode) && tmpNode.open) { view.expandCollapseNode(setting, tmpNode, !tmpNode.open); root.dragNodeShowBefore[tmpNode.tId] = true; } else { root.dragNodeShowBefore[tmpNode.tId] = false; } } root.dragFlag = 1; roots.showHoverDom = false; tools.showIfameMask(setting, true); //sort var isOrder = true, lastIndex = -1; if (nodes.length > 1) { var pNodes = nodes[0].parentTId ? data.nodeChildren(setting, nodes[0].getParentNode()) : data.getNodes(setting); tmpNodes = []; for (i = 0, l = pNodes.length; i < l; i++) { if (root.dragNodeShowBefore[pNodes[i].tId] !== undefined) { if (isOrder && lastIndex > -1 && (lastIndex + 1) !== i) { isOrder = false; } tmpNodes.push(pNodes[i]); lastIndex = i; } if (nodes.length === tmpNodes.length) { nodes = tmpNodes; break; } } } if (isOrder) { preNode = nodes[0].getPreNode(); nextNode = nodes[nodes.length - 1].getNextNode(); } //set node in selected curNode = $$("
                                                                                                                                                                                                                                                                                                                          ", setting); for (i = 0, l = nodes.length; i < l; i++) { tmpNode = nodes[i]; tmpNode.editNameFlag = false; view.selectNode(setting, tmpNode, i > 0); view.removeTreeDom(setting, tmpNode); if (i > setting.edit.drag.maxShowNodeNum - 1) { continue; } tmpDom = $$("
                                                                                                                                                                                                                                                                                                                        • ", setting); tmpDom.append($$(tmpNode, consts.id.A, setting).clone()); tmpDom.css("padding", "0"); tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); curNode.append(tmpDom); if (i == setting.edit.drag.maxShowNodeNum - 1) { tmpDom = $$("
                                                                                                                                                                                                                                                                                                                        • ...
                                                                                                                                                                                                                                                                                                                        • ", setting); curNode.append(tmpDom); } } curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); curNode.addClass(setting.treeObj.attr("class")); curNode.appendTo(body); tmpArrow = $$("", setting); tmpArrow.attr("id", "zTreeMove_arrow_tmp"); tmpArrow.appendTo(body); setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); } if (root.dragFlag == 1) { if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft() + 2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); event.target = (xT.length > 0) ? xT.get(0) : event.target; } else if (tmpTarget) { tmpTarget.removeClass(consts.node.TMPTARGET_TREE); if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); } tmpTarget = null; tmpTargetNodeId = null; //judge drag & drop in multi ztree isOtherTree = false; targetSetting = setting; var settings = data.getSettings(); for (var s in settings) { if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length > 0)) { isOtherTree = true; targetSetting = settings[s]; } } var docScrollTop = doc.scrollTop(), docScrollLeft = doc.scrollLeft(), treeOffset = targetSetting.treeObj.offset(), scrollHeight = targetSetting.treeObj.get(0).scrollHeight, scrollWidth = targetSetting.treeObj.get(0).scrollWidth, dTop = (event.clientY + docScrollTop - treeOffset.top), dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), dLeft = (event.clientX + docScrollLeft - treeOffset.left), dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height() + 10) >= scrollHeight), isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width() + 10) >= scrollWidth); if (event.target && tools.isChildOrSelf(event.target, targetSetting.treeId)) { //get node
                                                                                                                                                                                                                                                                                                                        • dom var targetObj = event.target; while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { targetObj = targetObj.parentNode; } var canMove = true; //don't move to self or children of self for (i = 0, l = nodes.length; i < l; i++) { tmpNode = nodes[i]; if (targetObj.id === tmpNode.tId) { canMove = false; break; } else if ($$(tmpNode, setting).find("#" + targetObj.id).length > 0) { canMove = false; break; } } if (canMove && event.target && tools.isChildOrSelf(event.target, targetObj.id + consts.id.A)) { tmpTarget = $(targetObj); tmpTargetNodeId = targetObj.id; } } //the mouse must be in zTree tmpNode = nodes[0]; if (isTreeInner && tools.isChildOrSelf(event.target, targetSetting.treeId)) { //judge mouse move in root of ztree if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { tmpTarget = targetSetting.treeObj; } //auto scroll top if (isTop) { targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop() - 10); } else if (isBottom) { targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop() + 10); } if (isLeft) { targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft() - 10); } else if (isRight) { targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft() + 10); } //auto scroll left if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft() + tmpTarget.offset().left - targetSetting.treeObj.offset().left); } } curNode.css({ "top": (event.clientY + docScrollTop + 3) + "px", "left": (event.clientX + docScrollLeft + 3) + "px" }); var dX = 0; var dY = 0; if (tmpTarget && tmpTarget.attr("id") != targetSetting.treeId) { var tmpTargetNode = tmpTargetNodeId == null ? null : data.getNodeCache(targetSetting, tmpTargetNodeId), isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !data.nodeIsParent(setting, tmpTargetNode)) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); function clearMove() { tmpTarget = null; tmpTargetNodeId = ""; moveType = consts.move.TYPE_INNER; tmpArrow.css({ "display": "none" }); if (window.zTreeMoveTimer) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null } } if (!canPrev && !canNext && !canInner) { clearMove(); } else { var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), tmpTop = tmpTargetA.offset().top, tmpLeft = tmpTargetA.offset().left, prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1)) : -1, nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0)) : -1, dY_percent = (event.clientY + docScrollTop - tmpTop) / tmpTargetA.height(); if ((prevPercent == 1 || dY_percent <= prevPercent && dY_percent >= -.2) && canPrev) { dX = 1 - tmpArrow.width(); dY = tmpTop - tmpArrow.height() / 2; moveType = consts.move.TYPE_PREV; } else if ((nextPercent == 0 || dY_percent >= nextPercent && dY_percent <= 1.2) && canNext) { dX = 1 - tmpArrow.width(); dY = (tmpNextA == null || (data.nodeIsParent(setting, tmpTargetNode) && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height() / 2) : (tmpNextA.offset().top - tmpArrow.height() / 2); moveType = consts.move.TYPE_NEXT; } else if (canInner) { dX = 5 - tmpArrow.width(); dY = tmpTop; moveType = consts.move.TYPE_INNER; } else { clearMove(); } if (tmpTarget) { tmpArrow.css({ "display": "block", "top": dY + "px", "left": (tmpLeft + dX) + "px" }); tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { startTime = (new Date()).getTime(); } if (tmpTargetNode && data.nodeIsParent(setting, tmpTargetNode) && moveType == consts.move.TYPE_INNER) { var startTimer = true; if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null; } else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { startTimer = false; } if (startTimer) { window.zTreeMoveTimer = setTimeout(function () { if (moveType != consts.move.TYPE_INNER) return; if (tmpTargetNode && data.nodeIsParent(setting, tmpTargetNode) && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { view.switchNode(targetSetting, tmpTargetNode); if (targetSetting.edit.drag.autoExpandTrigger) { targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); } } }, targetSetting.edit.drag.autoOpenTime + 50); window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; } } } } } else { moveType = consts.move.TYPE_INNER; if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { tmpTarget.addClass(consts.node.TMPTARGET_TREE); } else { tmpTarget = null; } tmpArrow.css({ "display": "none" }); if (window.zTreeMoveTimer) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null; } } preTmpTargetNodeId = tmpTargetNodeId; preTmpMoveType = moveType; setting.treeObj.trigger(consts.event.DRAGMOVE, [event, setting.treeId, nodes]); } return false; } doc.bind("mouseup", _docMouseUp); function _docMouseUp(event) { if (window.zTreeMoveTimer) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null; } preTmpTargetNodeId = null; preTmpMoveType = null; doc.unbind("mousemove", _docMouseMove); doc.unbind("mouseup", _docMouseUp); doc.unbind("selectstart", _docSelect); body.css("cursor", ""); if (tmpTarget) { tmpTarget.removeClass(consts.node.TMPTARGET_TREE); if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); } tools.showIfameMask(setting, false); roots.showHoverDom = true; if (root.dragFlag == 0) return; root.dragFlag = 0; var i, l, tmpNode; for (i = 0, l = nodes.length; i < l; i++) { tmpNode = nodes[i]; if (data.nodeIsParent(setting, tmpNode) && root.dragNodeShowBefore[tmpNode.tId] && !tmpNode.open) { view.expandCollapseNode(setting, tmpNode, !tmpNode.open); delete root.dragNodeShowBefore[tmpNode.tId]; } } if (curNode) curNode.remove(); if (tmpArrow) tmpArrow.remove(); var isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy); if (!isCopy && tmpTarget && tmpTargetNodeId && nodes[0].parentTId && tmpTargetNodeId == nodes[0].parentTId && moveType == consts.move.TYPE_INNER) { tmpTarget = null; } if (tmpTarget) { var dragTargetNode = tmpTargetNodeId == null ? null : data.getNodeCache(targetSetting, tmpTargetNodeId); if (tools.apply(setting.callback.beforeDrop, [targetSetting.treeId, nodes, dragTargetNode, moveType, isCopy], true) == false) { view.selectNodes(sourceSetting, nodes); return; } var newNodes = isCopy ? tools.clone(nodes) : nodes; function dropCallback() { if (isOtherTree) { if (!isCopy) { for (var i = 0, l = nodes.length; i < l; i++) { view.removeNode(setting, nodes[i]); } } if (moveType == consts.move.TYPE_INNER) { view.addNodes(targetSetting, dragTargetNode, -1, newNodes); } else { view.addNodes(targetSetting, dragTargetNode.getParentNode(), moveType == consts.move.TYPE_PREV ? dragTargetNode.getIndex() : dragTargetNode.getIndex() + 1, newNodes); } } else { if (isCopy && moveType == consts.move.TYPE_INNER) { view.addNodes(targetSetting, dragTargetNode, -1, newNodes); } else if (isCopy) { view.addNodes(targetSetting, dragTargetNode.getParentNode(), moveType == consts.move.TYPE_PREV ? dragTargetNode.getIndex() : dragTargetNode.getIndex() + 1, newNodes); } else { if (moveType != consts.move.TYPE_NEXT) { for (i = 0, l = newNodes.length; i < l; i++) { view.moveNode(targetSetting, dragTargetNode, newNodes[i], moveType, false); } } else { for (i = -1, l = newNodes.length - 1; i < l; l--) { view.moveNode(targetSetting, dragTargetNode, newNodes[l], moveType, false); } } } } view.selectNodes(targetSetting, newNodes); var a = $$(newNodes[0], setting).get(0); view.scrollIntoView(setting, a); setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]); } if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) { view.asyncNode(targetSetting, dragTargetNode, false, dropCallback); } else { dropCallback(); } } else { view.selectNodes(sourceSetting, nodes); setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]); } } doc.bind("selectstart", _docSelect); function _docSelect() { return false; } // 2018-03-30 FireFox has fixed this issue. //Avoid FireFox's Bug //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error. // if(eventMouseDown.preventDefault) { // eventMouseDown.preventDefault(); // } return true; } }, //method of tools for zTree _tools = { getAbs: function (obj) { var oRect = obj.getBoundingClientRect(), scrollTop = document.body.scrollTop + document.documentElement.scrollTop, scrollLeft = document.body.scrollLeft + document.documentElement.scrollLeft; return [oRect.left + scrollLeft, oRect.top + scrollTop]; }, inputFocus: function (inputObj) { if (inputObj.get(0)) { inputObj.focus(); tools.setCursorPosition(inputObj.get(0), inputObj.val().length); } }, inputSelect: function (inputObj) { if (inputObj.get(0)) { inputObj.focus(); inputObj.select(); } }, setCursorPosition: function (obj, pos) { if (obj.setSelectionRange) { obj.focus(); obj.setSelectionRange(pos, pos); } else if (obj.createTextRange) { var range = obj.createTextRange(); range.collapse(true); range.moveEnd('character', pos); range.moveStart('character', pos); range.select(); } }, showIfameMask: function (setting, showSign) { var root = data.getRoot(setting); //clear full mask while (root.dragMaskList.length > 0) { root.dragMaskList[0].remove(); root.dragMaskList.shift(); } if (showSign) { //show mask var iframeList = $$("iframe", setting); for (var i = 0, l = iframeList.length; i < l; i++) { var obj = iframeList.get(i), r = tools.getAbs(obj), dragMask = $$("
                                                                                                                                                                                                                                                                                                                          ", setting); dragMask.appendTo($$("body", setting)); root.dragMaskList.push(dragMask); } } } }, //method of operate ztree dom _view = { addEditBtn: function (setting, node) { if (node.editNameFlag || $$(node, consts.id.EDIT, setting).length > 0) { return; } if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { return; } var aObj = $$(node, consts.id.A, setting), editStr = ""; aObj.append(editStr); $$(node, consts.id.EDIT, setting).bind('click', function () { if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; view.editNode(setting, node); return false; } ).show(); }, addRemoveBtn: function (setting, node) { if (node.editNameFlag || $$(node, consts.id.REMOVE, setting).length > 0) { return; } if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { return; } var aObj = $$(node, consts.id.A, setting), removeStr = ""; aObj.append(removeStr); $$(node, consts.id.REMOVE, setting).bind('click', function () { if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; view.removeNode(setting, node); setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); return false; } ).bind('mousedown', function (eventMouseDown) { return true; } ).show(); }, addHoverDom: function (setting, node) { if (data.getRoots().showHoverDom) { node.isHover = true; if (setting.edit.enable) { view.addEditBtn(setting, node); view.addRemoveBtn(setting, node); } tools.apply(setting.view.addHoverDom, [setting.treeId, node]); } }, cancelCurEditNode: function (setting, forceName, isCancel) { var root = data.getRoot(setting), node = root.curEditNode; if (node) { var inputObj = root.curEditInput, newName = forceName ? forceName : (isCancel ? data.nodeName(setting, node) : inputObj.val()); if (tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName, isCancel], true) === false) { return false; } data.nodeName(setting, node, newName); var aObj = $$(node, consts.id.A, setting); aObj.removeClass(consts.node.CURSELECTED_EDIT); inputObj.unbind(); view.setNodeName(setting, node); node.editNameFlag = false; root.curEditNode = null; root.curEditInput = null; view.selectNode(setting, node, false); setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node, isCancel]); } root.noSelection = true; return true; }, editNode: function (setting, node) { var root = data.getRoot(setting); view.editNodeBlur = false; if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { setTimeout(function () { tools.inputFocus(root.curEditInput); }, 0); return; } node.editNameFlag = true; view.removeTreeDom(setting, node); view.cancelCurEditNode(setting); view.selectNode(setting, node, false); $$(node, consts.id.SPAN, setting).html(""); var inputObj = $$(node, consts.id.INPUT, setting); inputObj.attr("value", data.nodeName(setting, node)); if (setting.edit.editNameSelectAll) { tools.inputSelect(inputObj); } else { tools.inputFocus(inputObj); } inputObj.bind('blur', function (event) { if (!view.editNodeBlur) { view.cancelCurEditNode(setting); } }).bind('keydown', function (event) { if (event.keyCode == "13") { view.editNodeBlur = true; view.cancelCurEditNode(setting); } else if (event.keyCode == "27") { view.cancelCurEditNode(setting, null, true); } }).bind('click', function (event) { return false; }).bind('dblclick', function (event) { return false; }); $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED_EDIT); root.curEditInput = inputObj; root.noSelection = false; root.curEditNode = node; }, moveNode: function (setting, targetNode, node, moveType, animateFlag, isSilent) { var root = data.getRoot(setting); if (targetNode == node) return; if (setting.data.keep.leaf && targetNode && !data.nodeIsParent(setting, targetNode) && moveType == consts.move.TYPE_INNER) return; var oldParentNode = (node.parentTId ? node.getParentNode() : root), targetNodeIsRoot = (targetNode === null || targetNode == root); if (targetNodeIsRoot && targetNode === null) targetNode = root; if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { moveType = consts.move.TYPE_INNER; } if (moveType == consts.move.TYPE_INNER) { if (targetNodeIsRoot) { //parentTId of root node is null node.parentTId = null; } else { if (!data.nodeIsParent(setting, targetNode)) { data.nodeIsParent(setting, targetNode, true); targetNode.open = !!targetNode.open; view.setNodeLineIcos(setting, targetNode); } node.parentTId = targetNode.tId; } } //move node Dom var targetObj, target_ulObj; if (targetNodeIsRoot) { targetObj = setting.treeObj; target_ulObj = targetObj; } else { if (!isSilent && moveType == consts.move.TYPE_INNER) { view.expandCollapseNode(setting, targetNode, true, false); } else if (!isSilent) { view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); } targetObj = $$(targetNode, setting); target_ulObj = $$(targetNode, consts.id.UL, setting); if (!!targetObj.get(0) && !target_ulObj.get(0)) { var ulstr = []; view.makeUlHtml(setting, targetNode, ulstr, ''); targetObj.append(ulstr.join('')); } target_ulObj = $$(targetNode, consts.id.UL, setting); } var nodeDom = $$(node, setting); if (!nodeDom.get(0)) { nodeDom = view.appendNodes(setting, node.level, [node], null, -1, false, true).join(''); } else if (!targetObj.get(0)) { nodeDom.remove(); } if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { target_ulObj.append(nodeDom); } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { targetObj.before(nodeDom); } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { targetObj.after(nodeDom); } //repair the data after move var i, l, tmpSrcIndex = -1, tmpTargetIndex = 0, oldNeighbor = null, newNeighbor = null, oldLevel = node.level; var oldChildren = data.nodeChildren(setting, oldParentNode); var targetParentChildren = data.nodeChildren(setting, targetParentNode); var targetChildren = data.nodeChildren(setting, targetNode); if (node.isFirstNode) { tmpSrcIndex = 0; if (oldChildren.length > 1) { oldNeighbor = oldChildren[1]; oldNeighbor.isFirstNode = true; } } else if (node.isLastNode) { tmpSrcIndex = oldChildren.length - 1; oldNeighbor = oldChildren[tmpSrcIndex - 1]; oldNeighbor.isLastNode = true; } else { for (i = 0, l = oldChildren.length; i < l; i++) { if (oldChildren[i].tId == node.tId) { tmpSrcIndex = i; break; } } } if (tmpSrcIndex >= 0) { oldChildren.splice(tmpSrcIndex, 1); } if (moveType != consts.move.TYPE_INNER) { for (i = 0, l = targetParentChildren.length; i < l; i++) { if (targetParentChildren[i].tId == targetNode.tId) tmpTargetIndex = i; } } if (moveType == consts.move.TYPE_INNER) { if (!targetChildren) { targetChildren = data.nodeChildren(setting, targetNode, []); } if (targetChildren.length > 0) { newNeighbor = targetChildren[targetChildren.length - 1]; newNeighbor.isLastNode = false; } targetChildren.splice(targetChildren.length, 0, node); node.isLastNode = true; node.isFirstNode = (targetChildren.length == 1); } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { targetParentChildren.splice(tmpTargetIndex, 0, node); newNeighbor = targetNode; newNeighbor.isFirstNode = false; node.parentTId = targetNode.parentTId; node.isFirstNode = true; node.isLastNode = false; } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { targetParentChildren.splice(tmpTargetIndex + 1, 0, node); newNeighbor = targetNode; newNeighbor.isLastNode = false; node.parentTId = targetNode.parentTId; node.isFirstNode = false; node.isLastNode = true; } else { if (moveType == consts.move.TYPE_PREV) { targetParentChildren.splice(tmpTargetIndex, 0, node); } else { targetParentChildren.splice(tmpTargetIndex + 1, 0, node); } node.parentTId = targetNode.parentTId; node.isFirstNode = false; node.isLastNode = false; } data.fixPIdKeyValue(setting, node); data.setSonNodeLevel(setting, node.getParentNode(), node); //repair node what been moved view.setNodeLineIcos(setting, node); view.repairNodeLevelClass(setting, node, oldLevel); //repair node's old parentNode dom if (!setting.data.keep.parent && oldChildren.length < 1) { //old parentNode has no child nodes data.nodeIsParent(setting, oldParentNode, false); oldParentNode.open = false; var tmp_ulObj = $$(oldParentNode, consts.id.UL, setting), tmp_switchObj = $$(oldParentNode, consts.id.SWITCH, setting), tmp_icoObj = $$(oldParentNode, consts.id.ICON, setting); view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); tmp_ulObj.css("display", "none"); } else if (oldNeighbor) { //old neigbor node view.setNodeLineIcos(setting, oldNeighbor); } //new neigbor node if (newNeighbor) { view.setNodeLineIcos(setting, newNeighbor); } //repair checkbox / radio if (!!setting.check && setting.check.enable && view.repairChkClass) { view.repairChkClass(setting, oldParentNode); view.repairParentChkClassWithSelf(setting, oldParentNode); if (oldParentNode != node.parent) view.repairParentChkClassWithSelf(setting, node); } //expand parents after move if (!isSilent) { view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); } }, removeEditBtn: function (setting, node) { $$(node, consts.id.EDIT, setting).unbind().remove(); }, removeRemoveBtn: function (setting, node) { $$(node, consts.id.REMOVE, setting).unbind().remove(); }, removeTreeDom: function (setting, node) { node.isHover = false; view.removeEditBtn(setting, node); view.removeRemoveBtn(setting, node); tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); }, repairNodeLevelClass: function (setting, node, oldLevel) { if (oldLevel === node.level) return; var liObj = $$(node, setting), aObj = $$(node, consts.id.A, setting), ulObj = $$(node, consts.id.UL, setting), oldClass = consts.className.LEVEL + oldLevel, newClass = consts.className.LEVEL + node.level; liObj.removeClass(oldClass); liObj.addClass(newClass); aObj.removeClass(oldClass); aObj.addClass(newClass); ulObj.removeClass(oldClass); ulObj.addClass(newClass); }, selectNodes: function (setting, nodes) { for (var i = 0, l = nodes.length; i < l; i++) { view.selectNode(setting, nodes[i], i > 0); } } }, _z = { tools: _tools, view: _view, event: _event, data: _data }; $.extend(true, $.fn.zTree.consts, _consts); $.extend(true, $.fn.zTree._z, _z); var zt = $.fn.zTree, tools = zt._z.tools, consts = zt.consts, view = zt._z.view, data = zt._z.data, event = zt._z.event, $$ = tools.$; data.exSetting(_setting); data.addInitBind(_bindEvent); data.addInitUnBind(_unbindEvent); data.addInitCache(_initCache); data.addInitNode(_initNode); data.addInitProxy(_eventProxy); data.addInitRoot(_initRoot); data.addZTreeTools(_zTreeTools); var _cancelPreSelectedNode = view.cancelPreSelectedNode; view.cancelPreSelectedNode = function (setting, node) { var list = data.getRoot(setting).curSelectedList; for (var i = 0, j = list.length; i < j; i++) { if (!node || node === list[i]) { view.removeTreeDom(setting, list[i]); if (node) break; } } if (_cancelPreSelectedNode) _cancelPreSelectedNode.apply(view, arguments); } var _createNodes = view.createNodes; view.createNodes = function (setting, level, nodes, parentNode, index) { if (_createNodes) { _createNodes.apply(view, arguments); } if (!nodes) return; if (view.repairParentChkClassWithSelf) { view.repairParentChkClassWithSelf(setting, parentNode); } } var _makeNodeUrl = view.makeNodeUrl; view.makeNodeUrl = function (setting, node) { return setting.edit.enable ? null : (_makeNodeUrl.apply(view, arguments)); } var _removeNode = view.removeNode; view.removeNode = function (setting, node) { var root = data.getRoot(setting); if (root.curEditNode === node) root.curEditNode = null; if (_removeNode) { _removeNode.apply(view, arguments); } } var _selectNode = view.selectNode; view.selectNode = function (setting, node, addFlag) { var root = data.getRoot(setting); if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { return false; } if (_selectNode) _selectNode.apply(view, arguments); view.addHoverDom(setting, node); return true; } var _uCanDo = tools.uCanDo; tools.uCanDo = function (setting, e) { var root = data.getRoot(setting); if (e && (tools.eqs(e.type, "mouseover") || tools.eqs(e.type, "mouseout") || tools.eqs(e.type, "mousedown") || tools.eqs(e.type, "mouseup"))) { return true; } if (root.curEditNode) { view.editNodeBlur = false; root.curEditInput.focus(); } return (!root.curEditNode) && (_uCanDo ? _uCanDo.apply(view, arguments) : true); } })(jQuery); ================================================ FILE: lib/zTree_v3/js/jquery.ztree.core.js ================================================ /* * JQuery zTree core v3.5.40 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2019-01-18 */ (function ($) { var settings = {}, roots = {}, caches = {}, //default consts of core _consts = { className: { BUTTON: "button", LEVEL: "level", ICO_LOADING: "ico_loading", SWITCH: "switch", NAME: 'node_name' }, event: { NODECREATED: "ztree_nodeCreated", CLICK: "ztree_click", EXPAND: "ztree_expand", COLLAPSE: "ztree_collapse", ASYNC_SUCCESS: "ztree_async_success", ASYNC_ERROR: "ztree_async_error", REMOVE: "ztree_remove", SELECTED: "ztree_selected", UNSELECTED: "ztree_unselected" }, id: { A: "_a", ICON: "_ico", SPAN: "_span", SWITCH: "_switch", UL: "_ul" }, line: { ROOT: "root", ROOTS: "roots", CENTER: "center", BOTTOM: "bottom", NOLINE: "noline", LINE: "line" }, folder: { OPEN: "open", CLOSE: "close", DOCU: "docu" }, node: { CURSELECTED: "curSelectedNode" } }, //default setting of core _setting = { treeId: "", treeObj: null, view: { addDiyDom: null, autoCancelSelected: true, dblClickExpand: true, expandSpeed: "fast", fontCss: {}, nameIsHTML: false, selectedMulti: true, showIcon: true, showLine: true, showTitle: true, txtSelectedEnable: false }, data: { key: { isParent: "isParent", children: "children", name: "name", title: "", url: "url", icon: "icon" }, simpleData: { enable: false, idKey: "id", pIdKey: "pId", rootPId: null }, keep: { parent: false, leaf: false } }, async: { enable: false, contentType: "application/x-www-form-urlencoded", type: "post", dataType: "text", headers: {}, xhrFields: {}, url: "", autoParam: [], otherParam: [], dataFilter: null }, callback: { beforeAsync: null, beforeClick: null, beforeDblClick: null, beforeRightClick: null, beforeMouseDown: null, beforeMouseUp: null, beforeExpand: null, beforeCollapse: null, beforeRemove: null, onAsyncError: null, onAsyncSuccess: null, onNodeCreated: null, onClick: null, onDblClick: null, onRightClick: null, onMouseDown: null, onMouseUp: null, onExpand: null, onCollapse: null, onRemove: null } }, //default root of core //zTree use root to save full data _initRoot = function (setting) { var r = data.getRoot(setting); if (!r) { r = {}; data.setRoot(setting, r); } data.nodeChildren(setting, r, []); r.expandTriggerFlag = false; r.curSelectedList = []; r.noSelection = true; r.createdNodes = []; r.zId = 0; r._ver = (new Date()).getTime(); }, //default cache of core _initCache = function (setting) { var c = data.getCache(setting); if (!c) { c = {}; data.setCache(setting, c); } c.nodes = []; c.doms = []; }, //default bindEvent of core _bindEvent = function (setting) { var o = setting.treeObj, c = consts.event; o.bind(c.NODECREATED, function (event, treeId, node) { tools.apply(setting.callback.onNodeCreated, [event, treeId, node]); }); o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) { tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]); }); o.bind(c.EXPAND, function (event, treeId, node) { tools.apply(setting.callback.onExpand, [event, treeId, node]); }); o.bind(c.COLLAPSE, function (event, treeId, node) { tools.apply(setting.callback.onCollapse, [event, treeId, node]); }); o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) { tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]); }); o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) { tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]); }); o.bind(c.REMOVE, function (event, treeId, treeNode) { tools.apply(setting.callback.onRemove, [event, treeId, treeNode]); }); o.bind(c.SELECTED, function (event, treeId, node) { tools.apply(setting.callback.onSelected, [treeId, node]); }); o.bind(c.UNSELECTED, function (event, treeId, node) { tools.apply(setting.callback.onUnSelected, [treeId, node]); }); }, _unbindEvent = function (setting) { var o = setting.treeObj, c = consts.event; o.unbind(c.NODECREATED) .unbind(c.CLICK) .unbind(c.EXPAND) .unbind(c.COLLAPSE) .unbind(c.ASYNC_SUCCESS) .unbind(c.ASYNC_ERROR) .unbind(c.REMOVE) .unbind(c.SELECTED) .unbind(c.UNSELECTED); }, //default event proxy of core _eventProxy = function (event) { var target = event.target, setting = data.getSetting(event.data.treeId), tId = "", node = null, nodeEventType = "", treeEventType = "", nodeEventCallback = null, treeEventCallback = null, tmp = null; if (tools.eqs(event.type, "mousedown")) { treeEventType = "mousedown"; } else if (tools.eqs(event.type, "mouseup")) { treeEventType = "mouseup"; } else if (tools.eqs(event.type, "contextmenu")) { treeEventType = "contextmenu"; } else if (tools.eqs(event.type, "click")) { if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.SWITCH) !== null) { tId = tools.getNodeMainDom(target).id; nodeEventType = "switchNode"; } else { tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; nodeEventType = "clickNode"; } } } else if (tools.eqs(event.type, "dblclick")) { treeEventType = "dblclick"; tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; nodeEventType = "switchNode"; } } if (treeEventType.length > 0 && tId.length == 0) { tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; } } // event to node if (tId.length > 0) { node = data.getNodeCache(setting, tId); switch (nodeEventType) { case "switchNode" : var isParent = data.nodeIsParent(setting, node); if (!isParent) { nodeEventType = ""; } else if (tools.eqs(event.type, "click") || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { nodeEventCallback = handler.onSwitchNode; } else { nodeEventType = ""; } break; case "clickNode" : nodeEventCallback = handler.onClickNode; break; } } // event to zTree switch (treeEventType) { case "mousedown" : treeEventCallback = handler.onZTreeMousedown; break; case "mouseup" : treeEventCallback = handler.onZTreeMouseup; break; case "dblclick" : treeEventCallback = handler.onZTreeDblclick; break; case "contextmenu" : treeEventCallback = handler.onZTreeContextmenu; break; } var proxyResult = { stop: false, node: node, nodeEventType: nodeEventType, nodeEventCallback: nodeEventCallback, treeEventType: treeEventType, treeEventCallback: treeEventCallback }; return proxyResult }, //default init node of core _initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { if (!n) return; var r = data.getRoot(setting), children = data.nodeChildren(setting, n); n.level = level; n.tId = setting.treeId + "_" + (++r.zId); n.parentTId = parentNode ? parentNode.tId : null; n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open; var isParent = data.nodeIsParent(setting, n); if (tools.isArray(children)) { data.nodeIsParent(setting, n, true); n.zAsync = true; } else { isParent = data.nodeIsParent(setting, n, isParent); n.open = (isParent && !setting.async.enable) ? n.open : false; n.zAsync = !isParent; } n.isFirstNode = isFirstNode; n.isLastNode = isLastNode; n.getParentNode = function () { return data.getNodeCache(setting, n.parentTId); }; n.getPreNode = function () { return data.getPreNode(setting, n); }; n.getNextNode = function () { return data.getNextNode(setting, n); }; n.getIndex = function () { return data.getNodeIndex(setting, n); }; n.getPath = function () { return data.getNodePath(setting, n); }; n.isAjaxing = false; data.fixPIdKeyValue(setting, n); }, _init = { bind: [_bindEvent], unbind: [_unbindEvent], caches: [_initCache], nodes: [_initNode], proxys: [_eventProxy], roots: [_initRoot], beforeA: [], afterA: [], innerBeforeA: [], innerAfterA: [], zTreeTools: [] }, //method of operate data data = { addNodeCache: function (setting, node) { data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; }, getNodeCacheId: function (tId) { return tId.substring(tId.lastIndexOf("_") + 1); }, addAfterA: function (afterA) { _init.afterA.push(afterA); }, addBeforeA: function (beforeA) { _init.beforeA.push(beforeA); }, addInnerAfterA: function (innerAfterA) { _init.innerAfterA.push(innerAfterA); }, addInnerBeforeA: function (innerBeforeA) { _init.innerBeforeA.push(innerBeforeA); }, addInitBind: function (bindEvent) { _init.bind.push(bindEvent); }, addInitUnBind: function (unbindEvent) { _init.unbind.push(unbindEvent); }, addInitCache: function (initCache) { _init.caches.push(initCache); }, addInitNode: function (initNode) { _init.nodes.push(initNode); }, addInitProxy: function (initProxy, isFirst) { if (!!isFirst) { _init.proxys.splice(0, 0, initProxy); } else { _init.proxys.push(initProxy); } }, addInitRoot: function (initRoot) { _init.roots.push(initRoot); }, addNodesData: function (setting, parentNode, index, nodes) { var children = data.nodeChildren(setting, parentNode), params; if (!children) { children = data.nodeChildren(setting, parentNode, []); index = -1; } else if (index >= children.length) { index = -1; } if (children.length > 0 && index === 0) { children[0].isFirstNode = false; view.setNodeLineIcos(setting, children[0]); } else if (children.length > 0 && index < 0) { children[children.length - 1].isLastNode = false; view.setNodeLineIcos(setting, children[children.length - 1]); } data.nodeIsParent(setting, parentNode, true); if (index < 0) { data.nodeChildren(setting, parentNode, children.concat(nodes)); } else { params = [index, 0].concat(nodes); children.splice.apply(children, params); } }, addSelectedNode: function (setting, node) { var root = data.getRoot(setting); if (!data.isSelectedNode(setting, node)) { root.curSelectedList.push(node); } }, addCreatedNode: function (setting, node) { if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { var root = data.getRoot(setting); root.createdNodes.push(node); } }, addZTreeTools: function (zTreeTools) { _init.zTreeTools.push(zTreeTools); }, exSetting: function (s) { $.extend(true, _setting, s); }, fixPIdKeyValue: function (setting, node) { if (setting.data.simpleData.enable) { node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; } }, getAfterA: function (setting, node, array) { for (var i = 0, j = _init.afterA.length; i < j; i++) { _init.afterA[i].apply(this, arguments); } }, getBeforeA: function (setting, node, array) { for (var i = 0, j = _init.beforeA.length; i < j; i++) { _init.beforeA[i].apply(this, arguments); } }, getInnerAfterA: function (setting, node, array) { for (var i = 0, j = _init.innerAfterA.length; i < j; i++) { _init.innerAfterA[i].apply(this, arguments); } }, getInnerBeforeA: function (setting, node, array) { for (var i = 0, j = _init.innerBeforeA.length; i < j; i++) { _init.innerBeforeA[i].apply(this, arguments); } }, getCache: function (setting) { return caches[setting.treeId]; }, getNodeIndex: function (setting, node) { if (!node) return null; var p = node.parentTId ? node.getParentNode() : data.getRoot(setting), children = data.nodeChildren(setting, p); for (var i = 0, l = children.length - 1; i <= l; i++) { if (children[i] === node) { return i; } } return -1; }, getNextNode: function (setting, node) { if (!node) return null; var p = node.parentTId ? node.getParentNode() : data.getRoot(setting), children = data.nodeChildren(setting, p); for (var i = 0, l = children.length - 1; i <= l; i++) { if (children[i] === node) { return (i == l ? null : children[i + 1]); } } return null; }, getNodeByParam: function (setting, nodes, key, value) { if (!nodes || !key) return null; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (node[key] == value) { return nodes[i]; } var children = data.nodeChildren(setting, node); var tmp = data.getNodeByParam(setting, children, key, value); if (tmp) return tmp; } return null; }, getNodeCache: function (setting, tId) { if (!tId) return null; var n = caches[setting.treeId].nodes[data.getNodeCacheId(tId)]; return n ? n : null; }, getNodePath: function (setting, node) { if (!node) return null; var path; if (node.parentTId) { path = node.getParentNode().getPath(); } else { path = []; } if (path) { path.push(node); } return path; }, getNodes: function (setting) { return data.nodeChildren(setting, data.getRoot(setting)); }, getNodesByParam: function (setting, nodes, key, value) { if (!nodes || !key) return []; var result = []; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (node[key] == value) { result.push(node); } var children = data.nodeChildren(setting, node); result = result.concat(data.getNodesByParam(setting, children, key, value)); } return result; }, getNodesByParamFuzzy: function (setting, nodes, key, value) { if (!nodes || !key) return []; var result = []; value = value.toLowerCase(); for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (typeof node[key] == "string" && nodes[i][key].toLowerCase().indexOf(value) > -1) { result.push(node); } var children = data.nodeChildren(setting, node); result = result.concat(data.getNodesByParamFuzzy(setting, children, key, value)); } return result; }, getNodesByFilter: function (setting, nodes, filter, isSingle, invokeParam) { if (!nodes) return (isSingle ? null : []); var result = isSingle ? null : []; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (tools.apply(filter, [node, invokeParam], false)) { if (isSingle) { return node; } result.push(node); } var children = data.nodeChildren(setting, node); var tmpResult = data.getNodesByFilter(setting, children, filter, isSingle, invokeParam); if (isSingle && !!tmpResult) { return tmpResult; } result = isSingle ? tmpResult : result.concat(tmpResult); } return result; }, getPreNode: function (setting, node) { if (!node) return null; var p = node.parentTId ? node.getParentNode() : data.getRoot(setting), children = data.nodeChildren(setting, p); for (var i = 0, l = children.length; i < l; i++) { if (children[i] === node) { return (i == 0 ? null : children[i - 1]); } } return null; }, getRoot: function (setting) { return setting ? roots[setting.treeId] : null; }, getRoots: function () { return roots; }, getSetting: function (treeId) { return settings[treeId]; }, getSettings: function () { return settings; }, getZTreeTools: function (treeId) { var r = this.getRoot(this.getSetting(treeId)); return r ? r.treeTools : null; }, initCache: function (setting) { for (var i = 0, j = _init.caches.length; i < j; i++) { _init.caches[i].apply(this, arguments); } }, initNode: function (setting, level, node, parentNode, preNode, nextNode) { for (var i = 0, j = _init.nodes.length; i < j; i++) { _init.nodes[i].apply(this, arguments); } }, initRoot: function (setting) { for (var i = 0, j = _init.roots.length; i < j; i++) { _init.roots[i].apply(this, arguments); } }, isSelectedNode: function (setting, node) { var root = data.getRoot(setting); for (var i = 0, j = root.curSelectedList.length; i < j; i++) { if (node === root.curSelectedList[i]) return true; } return false; }, nodeChildren: function (setting, node, newChildren) { if (!node) { return null; } var key = setting.data.key.children; if (typeof newChildren !== 'undefined') { node[key] = newChildren; } return node[key]; }, nodeIsParent: function (setting, node, newIsParent) { if (!node) { return false; } var key = setting.data.key.isParent; if (typeof newIsParent !== 'undefined') { if (typeof newIsParent === "string") { newIsParent = tools.eqs(newIsParent, "true"); } newIsParent = !!newIsParent; node[key] = newIsParent; } else if (typeof node[key] == "string"){ node[key] = tools.eqs(node[key], "true"); } else { node[key] = !!node[key]; } return node[key]; }, nodeName: function (setting, node, newName) { var key = setting.data.key.name; if (typeof newName !== 'undefined') { node[key] = newName; } return "" + node[key]; }, nodeTitle: function (setting, node) { var t = setting.data.key.title === "" ? setting.data.key.name : setting.data.key.title; return "" + node[t]; }, removeNodeCache: function (setting, node) { var children = data.nodeChildren(setting, node); if (children) { for (var i = 0, l = children.length; i < l; i++) { data.removeNodeCache(setting, children[i]); } } data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = null; }, removeSelectedNode: function (setting, node) { var root = data.getRoot(setting); for (var i = 0, j = root.curSelectedList.length; i < j; i++) { if (node === root.curSelectedList[i] || !data.getNodeCache(setting, root.curSelectedList[i].tId)) { root.curSelectedList.splice(i, 1); setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, node]); i--; j--; } } }, setCache: function (setting, cache) { caches[setting.treeId] = cache; }, setRoot: function (setting, root) { roots[setting.treeId] = root; }, setZTreeTools: function (setting, zTreeTools) { for (var i = 0, j = _init.zTreeTools.length; i < j; i++) { _init.zTreeTools[i].apply(this, arguments); } }, transformToArrayFormat: function (setting, nodes) { if (!nodes) return []; var r = []; if (tools.isArray(nodes)) { for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; _do(node); } } else { _do(nodes); } return r; function _do(_node) { r.push(_node); var children = data.nodeChildren(setting, _node); if (children) { r = r.concat(data.transformToArrayFormat(setting, children)); } } }, transformTozTreeFormat: function (setting, sNodes) { var i, l, key = setting.data.simpleData.idKey, parentKey = setting.data.simpleData.pIdKey; if (!key || key == "" || !sNodes) return []; if (tools.isArray(sNodes)) { var r = []; var tmpMap = {}; for (i = 0, l = sNodes.length; i < l; i++) { tmpMap[sNodes[i][key]] = sNodes[i]; } for (i = 0, l = sNodes.length; i < l; i++) { var p = tmpMap[sNodes[i][parentKey]]; if (p && sNodes[i][key] != sNodes[i][parentKey]) { var children = data.nodeChildren(setting, p); if (!children) { children = data.nodeChildren(setting, p, []); } children.push(sNodes[i]); } else { r.push(sNodes[i]); } } return r; } else { return [sNodes]; } } }, //method of event proxy event = { bindEvent: function (setting) { for (var i = 0, j = _init.bind.length; i < j; i++) { _init.bind[i].apply(this, arguments); } }, unbindEvent: function (setting) { for (var i = 0, j = _init.unbind.length; i < j; i++) { _init.unbind[i].apply(this, arguments); } }, bindTree: function (setting) { var eventParam = { treeId: setting.treeId }, o = setting.treeObj; if (!setting.view.txtSelectedEnable) { // for can't select text o.bind('selectstart', handler.onSelectStart).css({ "-moz-user-select": "-moz-none" }); } o.bind('click', eventParam, event.proxy); o.bind('dblclick', eventParam, event.proxy); o.bind('mouseover', eventParam, event.proxy); o.bind('mouseout', eventParam, event.proxy); o.bind('mousedown', eventParam, event.proxy); o.bind('mouseup', eventParam, event.proxy); o.bind('contextmenu', eventParam, event.proxy); }, unbindTree: function (setting) { var o = setting.treeObj; o.unbind('selectstart', handler.onSelectStart) .unbind('click', event.proxy) .unbind('dblclick', event.proxy) .unbind('mouseover', event.proxy) .unbind('mouseout', event.proxy) .unbind('mousedown', event.proxy) .unbind('mouseup', event.proxy) .unbind('contextmenu', event.proxy); }, doProxy: function (e) { var results = []; for (var i = 0, j = _init.proxys.length; i < j; i++) { var proxyResult = _init.proxys[i].apply(this, arguments); results.push(proxyResult); if (proxyResult.stop) { break; } } return results; }, proxy: function (e) { var setting = data.getSetting(e.data.treeId); if (!tools.uCanDo(setting, e)) return true; var results = event.doProxy(e), r = true, x = false; for (var i = 0, l = results.length; i < l; i++) { var proxyResult = results[i]; if (proxyResult.nodeEventCallback) { x = true; r = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r; } if (proxyResult.treeEventCallback) { x = true; r = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r; } } return r; } }, //method of event handler handler = { onSwitchNode: function (event, node) { var setting = data.getSetting(event.data.treeId); if (node.open) { if (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false) return true; data.getRoot(setting).expandTriggerFlag = true; view.switchNode(setting, node); } else { if (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false) return true; data.getRoot(setting).expandTriggerFlag = true; view.switchNode(setting, node); } return true; }, onClickNode: function (event, node) { var setting = data.getSetting(event.data.treeId), clickFlag = ((setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey)) && data.isSelectedNode(setting, node)) ? 0 : (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey) && setting.view.selectedMulti) ? 2 : 1; if (tools.apply(setting.callback.beforeClick, [setting.treeId, node, clickFlag], true) == false) return true; if (clickFlag === 0) { view.cancelPreSelectedNode(setting, node); } else { view.selectNode(setting, node, clickFlag === 2); } setting.treeObj.trigger(consts.event.CLICK, [event, setting.treeId, node, clickFlag]); return true; }, onZTreeMousedown: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeMouseDown, [setting.treeId, node], true)) { tools.apply(setting.callback.onMouseDown, [event, setting.treeId, node]); } return true; }, onZTreeMouseup: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeMouseUp, [setting.treeId, node], true)) { tools.apply(setting.callback.onMouseUp, [event, setting.treeId, node]); } return true; }, onZTreeDblclick: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeDblClick, [setting.treeId, node], true)) { tools.apply(setting.callback.onDblClick, [event, setting.treeId, node]); } return true; }, onZTreeContextmenu: function (event, node) { var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeRightClick, [setting.treeId, node], true)) { tools.apply(setting.callback.onRightClick, [event, setting.treeId, node]); } return (typeof setting.callback.onRightClick) != "function"; }, onSelectStart: function (e) { var n = e.originalEvent.srcElement.nodeName.toLowerCase(); return (n === "input" || n === "textarea"); } }, //method of tools for zTree tools = { apply: function (fun, param, defaultValue) { if ((typeof fun) == "function") { return fun.apply(zt, param ? param : []); } return defaultValue; }, canAsync: function (setting, node) { var children = data.nodeChildren(setting, node); var isParent = data.nodeIsParent(setting, node); return (setting.async.enable && node && isParent && !(node.zAsync || (children && children.length > 0))); }, clone: function (obj) { if (obj === null) return null; var o = tools.isArray(obj) ? [] : {}; for (var i in obj) { o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? tools.clone(obj[i]) : obj[i]); } return o; }, eqs: function (str1, str2) { return str1.toLowerCase() === str2.toLowerCase(); }, isArray: function (arr) { return Object.prototype.toString.apply(arr) === "[object Array]"; }, isElement: function (o) { return ( typeof HTMLElement === "object" ? o instanceof HTMLElement : //DOM2 o && typeof o === "object" && o !== null && o.nodeType === 1 && typeof o.nodeName === "string" ); }, $: function (node, exp, setting) { if (!!exp && typeof exp != "string") { setting = exp; exp = ""; } if (typeof node == "string") { return $(node, setting ? setting.treeObj.get(0).ownerDocument : null); } else { return $("#" + node.tId + exp, setting ? setting.treeObj : null); } }, getMDom: function (setting, curDom, targetExpr) { if (!curDom) return null; while (curDom && curDom.id !== setting.treeId) { for (var i = 0, l = targetExpr.length; curDom.tagName && i < l; i++) { if (tools.eqs(curDom.tagName, targetExpr[i].tagName) && curDom.getAttribute(targetExpr[i].attrName) !== null) { return curDom; } } curDom = curDom.parentNode; } return null; }, getNodeMainDom: function (target) { return ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0)); }, isChildOrSelf: function (dom, parentId) { return ($(dom).closest("#" + parentId).length > 0); }, uCanDo: function (setting, e) { return true; } }, //method of operate ztree dom view = { addNodes: function (setting, parentNode, index, newNodes, isSilent) { var isParent = data.nodeIsParent(setting, parentNode); if (setting.data.keep.leaf && parentNode && !isParent) { return; } if (!tools.isArray(newNodes)) { newNodes = [newNodes]; } if (setting.data.simpleData.enable) { newNodes = data.transformTozTreeFormat(setting, newNodes); } if (parentNode) { var target_switchObj = $$(parentNode, consts.id.SWITCH, setting), target_icoObj = $$(parentNode, consts.id.ICON, setting), target_ulObj = $$(parentNode, consts.id.UL, setting); if (!parentNode.open) { view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE); view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE); parentNode.open = false; target_ulObj.css({ "display": "none" }); } data.addNodesData(setting, parentNode, index, newNodes); view.createNodes(setting, parentNode.level + 1, newNodes, parentNode, index); if (!isSilent) { view.expandCollapseParentNode(setting, parentNode, true); } } else { data.addNodesData(setting, data.getRoot(setting), index, newNodes); view.createNodes(setting, 0, newNodes, null, index); } }, appendNodes: function (setting, level, nodes, parentNode, index, initFlag, openFlag) { if (!nodes) return []; var html = []; var tmpPNode = (parentNode) ? parentNode : data.getRoot(setting), tmpPChild = data.nodeChildren(setting, tmpPNode), isFirstNode, isLastNode; if (!tmpPChild || index >= tmpPChild.length - nodes.length) { index = -1; } for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; if (initFlag) { isFirstNode = ((index === 0 || tmpPChild.length == nodes.length) && (i == 0)); isLastNode = (index < 0 && i == (nodes.length - 1)); data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag); data.addNodeCache(setting, node); } var isParent = data.nodeIsParent(setting, node); var childHtml = []; var children = data.nodeChildren(setting, node); if (children && children.length > 0) { //make child html first, because checkType childHtml = view.appendNodes(setting, level + 1, children, node, -1, initFlag, openFlag && node.open); } if (openFlag) { view.makeDOMNodeMainBefore(html, setting, node); view.makeDOMNodeLine(html, setting, node); data.getBeforeA(setting, node, html); view.makeDOMNodeNameBefore(html, setting, node); data.getInnerBeforeA(setting, node, html); view.makeDOMNodeIcon(html, setting, node); data.getInnerAfterA(setting, node, html); view.makeDOMNodeNameAfter(html, setting, node); data.getAfterA(setting, node, html); if (isParent && node.open) { view.makeUlHtml(setting, node, html, childHtml.join('')); } view.makeDOMNodeMainAfter(html, setting, node); data.addCreatedNode(setting, node); } } return html; }, appendParentULDom: function (setting, node) { var html = [], nObj = $$(node, setting); if (!nObj.get(0) && !!node.parentTId) { view.appendParentULDom(setting, node.getParentNode()); nObj = $$(node, setting); } var ulObj = $$(node, consts.id.UL, setting); if (ulObj.get(0)) { ulObj.remove(); } var children = data.nodeChildren(setting, node), childHtml = view.appendNodes(setting, node.level + 1, children, node, -1, false, true); view.makeUlHtml(setting, node, html, childHtml.join('')); nObj.append(html.join('')); }, asyncNode: function (setting, node, isSilent, callback) { var i, l; var isParent = data.nodeIsParent(setting, node); if (node && !isParent) { tools.apply(callback); return false; } else if (node && node.isAjaxing) { return false; } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { tools.apply(callback); return false; } if (node) { node.isAjaxing = true; var icoObj = $$(node, consts.id.ICON, setting); icoObj.attr({"style": "", "class": consts.className.BUTTON + " " + consts.className.ICO_LOADING}); } var tmpParam = {}; var autoParam = tools.apply(setting.async.autoParam, [setting.treeId, node], setting.async.autoParam); for (i = 0, l = autoParam.length; node && i < l; i++) { var pKey = autoParam[i].split("="), spKey = pKey; if (pKey.length > 1) { spKey = pKey[1]; pKey = pKey[0]; } tmpParam[spKey] = node[pKey]; } var otherParam = tools.apply(setting.async.otherParam, [setting.treeId, node], setting.async.otherParam); if (tools.isArray(otherParam)) { for (i = 0, l = otherParam.length; i < l; i += 2) { tmpParam[otherParam[i]] = otherParam[i + 1]; } } else { for (var p in otherParam) { tmpParam[p] = otherParam[p]; } } var _tmpV = data.getRoot(setting)._ver; $.ajax({ contentType: setting.async.contentType, cache: false, type: setting.async.type, url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), data: setting.async.contentType.indexOf('application/json') > -1 ? JSON.stringify(tmpParam) : tmpParam, dataType: setting.async.dataType, headers: setting.async.headers, xhrFields: setting.async.xhrFields, success: function (msg) { if (_tmpV != data.getRoot(setting)._ver) { return; } var newNodes = []; try { if (!msg || msg.length == 0) { newNodes = []; } else if (typeof msg == "string") { newNodes = eval("(" + msg + ")"); } else { newNodes = msg; } } catch (err) { newNodes = msg; } if (node) { node.isAjaxing = null; node.zAsync = true; } view.setNodeLineIcos(setting, node); if (newNodes && newNodes !== "") { newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); view.addNodes(setting, node, -1, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); } else { view.addNodes(setting, node, -1, [], !!isSilent); } setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); tools.apply(callback); }, error: function (XMLHttpRequest, textStatus, errorThrown) { if (_tmpV != data.getRoot(setting)._ver) { return; } if (node) node.isAjaxing = null; view.setNodeLineIcos(setting, node); setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); } }); return true; }, cancelPreSelectedNode: function (setting, node, excludeNode) { var list = data.getRoot(setting).curSelectedList, i, n; for (i = list.length - 1; i >= 0; i--) { n = list[i]; if (node === n || (!node && (!excludeNode || excludeNode !== n))) { $$(n, consts.id.A, setting).removeClass(consts.node.CURSELECTED); if (node) { data.removeSelectedNode(setting, node); break; } else { list.splice(i, 1); setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, n]); } } } }, createNodeCallback: function (setting) { if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { var root = data.getRoot(setting); while (root.createdNodes.length > 0) { var node = root.createdNodes.shift(); tools.apply(setting.view.addDiyDom, [setting.treeId, node]); if (!!setting.callback.onNodeCreated) { setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); } } } }, createNodes: function (setting, level, nodes, parentNode, index) { if (!nodes || nodes.length == 0) return; var root = data.getRoot(setting), openFlag = !parentNode || parentNode.open || !!$$(data.nodeChildren(setting, parentNode)[0], setting).get(0); root.createdNodes = []; var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, index, true, openFlag), parentObj, nextObj; if (!parentNode) { parentObj = setting.treeObj; //setting.treeObj.append(zTreeHtml.join('')); } else { var ulObj = $$(parentNode, consts.id.UL, setting); if (ulObj.get(0)) { parentObj = ulObj; //ulObj.append(zTreeHtml.join('')); } } if (parentObj) { if (index >= 0) { nextObj = parentObj.children()[index]; } if (index >= 0 && nextObj) { $(nextObj).before(zTreeHtml.join('')); } else { parentObj.append(zTreeHtml.join('')); } } view.createNodeCallback(setting); }, destroy: function (setting) { if (!setting) return; data.initCache(setting); data.initRoot(setting); event.unbindTree(setting); event.unbindEvent(setting); setting.treeObj.empty(); delete settings[setting.treeId]; }, expandCollapseNode: function (setting, node, expandFlag, animateFlag, callback) { var root = data.getRoot(setting); var tmpCb, _callback; if (!node) { tools.apply(callback, []); return; } var children = data.nodeChildren(setting, node); var isParent = data.nodeIsParent(setting, node); if (root.expandTriggerFlag) { _callback = callback; tmpCb = function () { if (_callback) _callback(); if (node.open) { setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); } else { setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); } }; callback = tmpCb; root.expandTriggerFlag = false; } if (!node.open && isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (children && children.length > 0 && !$$(children[0], setting).get(0)))) { view.appendParentULDom(setting, node); view.createNodeCallback(setting); } if (node.open == expandFlag) { tools.apply(callback, []); return; } var ulObj = $$(node, consts.id.UL, setting), switchObj = $$(node, consts.id.SWITCH, setting), icoObj = $$(node, consts.id.ICON, setting); if (isParent) { node.open = !node.open; if (node.iconOpen && node.iconClose) { icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); } if (node.open) { view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); view.replaceIcoClass(node, icoObj, consts.folder.OPEN); if (animateFlag == false || setting.view.expandSpeed == "") { ulObj.show(); tools.apply(callback, []); } else { if (children && children.length > 0) { ulObj.slideDown(setting.view.expandSpeed, callback); } else { ulObj.show(); tools.apply(callback, []); } } } else { view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); if (animateFlag == false || setting.view.expandSpeed == "" || !(children && children.length > 0)) { ulObj.hide(); tools.apply(callback, []); } else { ulObj.slideUp(setting.view.expandSpeed, callback); } } } else { tools.apply(callback, []); } }, expandCollapseParentNode: function (setting, node, expandFlag, animateFlag, callback) { if (!node) return; if (!node.parentTId) { view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); return; } else { view.expandCollapseNode(setting, node, expandFlag, animateFlag); } if (node.parentTId) { view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); } }, expandCollapseSonNode: function (setting, node, expandFlag, animateFlag, callback) { var root = data.getRoot(setting), treeNodes = (node) ? data.nodeChildren(setting, node) : data.nodeChildren(setting, root), selfAnimateSign = (node) ? false : animateFlag, expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; data.getRoot(setting).expandTriggerFlag = false; if (treeNodes) { for (var i = 0, l = treeNodes.length; i < l; i++) { if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); } } data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); }, isSelectedNode: function (setting, node) { if (!node) { return false; } var list = data.getRoot(setting).curSelectedList, i; for (i = list.length - 1; i >= 0; i--) { if (node === list[i]) { return true; } } return false; }, makeDOMNodeIcon: function (html, setting, node) { var nameStr = data.nodeName(setting, node), name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g, '&').replace(//g, '>'); html.push("", name, ""); }, makeDOMNodeLine: function (html, setting, node) { html.push(""); }, makeDOMNodeMainAfter: function (html, setting, node) { html.push("
                                                                                                                                                                                                                                                                                                                        • "); }, makeDOMNodeMainBefore: function (html, setting, node) { html.push("
                                                                                                                                                                                                                                                                                                                        • "); }, makeDOMNodeNameAfter: function (html, setting, node) { html.push(""); }, makeDOMNodeNameBefore: function (html, setting, node) { var title = data.nodeTitle(setting, node), url = view.makeNodeUrl(setting, node), fontcss = view.makeNodeFontCss(setting, node), fontStyle = []; for (var f in fontcss) { fontStyle.push(f, ":", fontcss[f], ";"); } html.push(" 0) ? "href='" + url + "'" : ""), " target='", view.makeNodeTarget(node), "' style='", fontStyle.join(''), "'"); if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) { html.push("title='", title.replace(/'/g, "'").replace(//g, '>'), "'"); } html.push(">"); }, makeNodeFontCss: function (setting, node) { var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; }, makeNodeIcoClass: function (setting, node) { var icoCss = ["ico"]; if (!node.isAjaxing) { var isParent = data.nodeIsParent(setting, node); icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; if (isParent) { icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); } else { icoCss.push(consts.folder.DOCU); } } return consts.className.BUTTON + " " + icoCss.join('_'); }, makeNodeIcoStyle: function (setting, node) { var icoStyle = []; if (!node.isAjaxing) { var isParent = data.nodeIsParent(setting, node); var icon = (isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node[setting.data.key.icon]; if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { icoStyle.push("width:0px;height:0px;"); } } return icoStyle.join(''); }, makeNodeLineClass: function (setting, node) { var lineClass = []; if (setting.view.showLine) { if (node.level == 0 && node.isFirstNode && node.isLastNode) { lineClass.push(consts.line.ROOT); } else if (node.level == 0 && node.isFirstNode) { lineClass.push(consts.line.ROOTS); } else if (node.isLastNode) { lineClass.push(consts.line.BOTTOM); } else { lineClass.push(consts.line.CENTER); } } else { lineClass.push(consts.line.NOLINE); } if (data.nodeIsParent(setting, node)) { lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); } else { lineClass.push(consts.folder.DOCU); } return view.makeNodeLineClassEx(node) + lineClass.join('_'); }, makeNodeLineClassEx: function (node) { return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " "; }, makeNodeTarget: function (node) { return (node.target || "_blank"); }, makeNodeUrl: function (setting, node) { var urlKey = setting.data.key.url; return node[urlKey] ? node[urlKey] : null; }, makeUlHtml: function (setting, node, html, content) { html.push("
                                                                                                                                                                                                                                                                                                                            "); html.push(content); html.push("
                                                                                                                                                                                                                                                                                                                          "); }, makeUlLineClass: function (setting, node) { return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); }, removeChildNodes: function (setting, node) { if (!node) return; var nodes = data.nodeChildren(setting, node); if (!nodes) return; for (var i = 0, l = nodes.length; i < l; i++) { data.removeNodeCache(setting, nodes[i]); } data.removeSelectedNode(setting); delete node[setting.data.key.children]; if (!setting.data.keep.parent) { data.nodeIsParent(setting, node, false); node.open = false; var tmp_switchObj = $$(node, consts.id.SWITCH, setting), tmp_icoObj = $$(node, consts.id.ICON, setting); view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); $$(node, consts.id.UL, setting).remove(); } else { $$(node, consts.id.UL, setting).empty(); } }, scrollIntoView: function (setting, dom) { if (!dom) { return; } // support IE 7 if (typeof Element === 'undefined') { var contRect = setting.treeObj.get(0).getBoundingClientRect(), findMeRect = dom.getBoundingClientRect(); if (findMeRect.top < contRect.top || findMeRect.bottom > contRect.bottom || findMeRect.right > contRect.right || findMeRect.left < contRect.left) { dom.scrollIntoView(); } return; } // CC-BY jocki84@googlemail.com, https://gist.github.com/jocki84/6ffafd003387179a988e if (!Element.prototype.scrollIntoViewIfNeeded) { Element.prototype.scrollIntoViewIfNeeded = function (centerIfNeeded) { "use strict"; function makeRange(start, length) { return {"start": start, "length": length, "end": start + length}; } function coverRange(inner, outer) { if ( false === centerIfNeeded || (outer.start < inner.end && inner.start < outer.end) ) { return Math.max( inner.end - outer.length, Math.min(outer.start, inner.start) ); } return (inner.start + inner.end - outer.length) / 2; } function makePoint(x, y) { return { "x": x, "y": y, "translate": function translate(dX, dY) { return makePoint(x + dX, y + dY); } }; } function absolute(elem, pt) { while (elem) { pt = pt.translate(elem.offsetLeft, elem.offsetTop); elem = elem.offsetParent; } return pt; } var target = absolute(this, makePoint(0, 0)), extent = makePoint(this.offsetWidth, this.offsetHeight), elem = this.parentNode, origin; while (elem instanceof HTMLElement) { // Apply desired scroll amount. origin = absolute(elem, makePoint(elem.clientLeft, elem.clientTop)); elem.scrollLeft = coverRange( makeRange(target.x - origin.x, extent.x), makeRange(elem.scrollLeft, elem.clientWidth) ); elem.scrollTop = coverRange( makeRange(target.y - origin.y, extent.y), makeRange(elem.scrollTop, elem.clientHeight) ); // Determine actual scroll amount by reading back scroll properties. target = target.translate(-elem.scrollLeft, -elem.scrollTop); elem = elem.parentNode; } }; } dom.scrollIntoViewIfNeeded(); }, setFirstNode: function (setting, parentNode) { var children = data.nodeChildren(setting, parentNode); if (children.length > 0) { children[0].isFirstNode = true; } }, setLastNode: function (setting, parentNode) { var children = data.nodeChildren(setting, parentNode); if (children.length > 0) { children[children.length - 1].isLastNode = true; } }, removeNode: function (setting, node) { var root = data.getRoot(setting), parentNode = (node.parentTId) ? node.getParentNode() : root; node.isFirstNode = false; node.isLastNode = false; node.getPreNode = function () { return null; }; node.getNextNode = function () { return null; }; if (!data.getNodeCache(setting, node.tId)) { return; } $$(node, setting).remove(); data.removeNodeCache(setting, node); data.removeSelectedNode(setting, node); var children = data.nodeChildren(setting, parentNode); for (var i = 0, l = children.length; i < l; i++) { if (children[i].tId == node.tId) { children.splice(i, 1); break; } } view.setFirstNode(setting, parentNode); view.setLastNode(setting, parentNode); var tmp_ulObj, tmp_switchObj, tmp_icoObj, childLength = children.length; //repair nodes old parent if (!setting.data.keep.parent && childLength == 0) { //old parentNode has no child nodes data.nodeIsParent(setting, parentNode, false); parentNode.open = false; delete parentNode[setting.data.key.children]; tmp_ulObj = $$(parentNode, consts.id.UL, setting); tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting); tmp_icoObj = $$(parentNode, consts.id.ICON, setting); view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); tmp_ulObj.css("display", "none"); } else if (setting.view.showLine && childLength > 0) { //old parentNode has child nodes var newLast = children[childLength - 1]; tmp_ulObj = $$(newLast, consts.id.UL, setting); tmp_switchObj = $$(newLast, consts.id.SWITCH, setting); tmp_icoObj = $$(newLast, consts.id.ICON, setting); if (parentNode == root) { if (children.length == 1) { //node was root, and ztree has only one root after move node view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); } else { var tmp_first_switchObj = $$(children[0], consts.id.SWITCH, setting); view.replaceSwitchClass(children[0], tmp_first_switchObj, consts.line.ROOTS); view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); } } else { view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); } tmp_ulObj.removeClass(consts.line.LINE); } }, replaceIcoClass: function (node, obj, newName) { if (!obj || node.isAjaxing) return; var tmpName = obj.attr("class"); if (tmpName == undefined) return; var tmpList = tmpName.split("_"); switch (newName) { case consts.folder.OPEN: case consts.folder.CLOSE: case consts.folder.DOCU: tmpList[tmpList.length - 1] = newName; break; } obj.attr("class", tmpList.join("_")); }, replaceSwitchClass: function (node, obj, newName) { if (!obj) return; var tmpName = obj.attr("class"); if (tmpName == undefined) return; var tmpList = tmpName.split("_"); switch (newName) { case consts.line.ROOT: case consts.line.ROOTS: case consts.line.CENTER: case consts.line.BOTTOM: case consts.line.NOLINE: tmpList[0] = view.makeNodeLineClassEx(node) + newName; break; case consts.folder.OPEN: case consts.folder.CLOSE: case consts.folder.DOCU: tmpList[1] = newName; break; } obj.attr("class", tmpList.join("_")); if (newName !== consts.folder.DOCU) { obj.removeAttr("disabled"); } else { obj.attr("disabled", "disabled"); } }, selectNode: function (setting, node, addFlag) { if (!addFlag) { view.cancelPreSelectedNode(setting, null, node); } $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED); data.addSelectedNode(setting, node); setting.treeObj.trigger(consts.event.SELECTED, [setting.treeId, node]); }, setNodeFontCss: function (setting, treeNode) { var aObj = $$(treeNode, consts.id.A, setting), fontCss = view.makeNodeFontCss(setting, treeNode); if (fontCss) { aObj.css(fontCss); } }, setNodeLineIcos: function (setting, node) { if (!node) return; var switchObj = $$(node, consts.id.SWITCH, setting), ulObj = $$(node, consts.id.UL, setting), icoObj = $$(node, consts.id.ICON, setting), ulLine = view.makeUlLineClass(setting, node); if (ulLine.length == 0) { ulObj.removeClass(consts.line.LINE); } else { ulObj.addClass(ulLine); } switchObj.attr("class", view.makeNodeLineClass(setting, node)); if (data.nodeIsParent(setting, node)) { switchObj.removeAttr("disabled"); } else { switchObj.attr("disabled", "disabled"); } icoObj.removeAttr("style"); icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); icoObj.attr("class", view.makeNodeIcoClass(setting, node)); }, setNodeName: function (setting, node) { var title = data.nodeTitle(setting, node), nObj = $$(node, consts.id.SPAN, setting); nObj.empty(); if (setting.view.nameIsHTML) { nObj.html(data.nodeName(setting, node)); } else { nObj.text(data.nodeName(setting, node)); } if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { var aObj = $$(node, consts.id.A, setting); aObj.attr("title", !title ? "" : title); } }, setNodeTarget: function (setting, node) { var aObj = $$(node, consts.id.A, setting); aObj.attr("target", view.makeNodeTarget(node)); }, setNodeUrl: function (setting, node) { var aObj = $$(node, consts.id.A, setting), url = view.makeNodeUrl(setting, node); if (url == null || url.length == 0) { aObj.removeAttr("href"); } else { aObj.attr("href", url); } }, switchNode: function (setting, node) { if (node.open || !tools.canAsync(setting, node)) { view.expandCollapseNode(setting, node, !node.open); } else if (setting.async.enable) { if (!view.asyncNode(setting, node)) { view.expandCollapseNode(setting, node, !node.open); return; } } else if (node) { view.expandCollapseNode(setting, node, !node.open); } } }; // zTree defind $.fn.zTree = { consts: _consts, _z: { tools: tools, view: view, event: event, data: data }, getZTreeObj: function (treeId) { var o = data.getZTreeTools(treeId); return o ? o : null; }, destroy: function (treeId) { if (!!treeId && treeId.length > 0) { view.destroy(data.getSetting(treeId)); } else { for (var s in settings) { view.destroy(settings[s]); } } }, init: function (obj, zSetting, zNodes) { var setting = tools.clone(_setting); $.extend(true, setting, zSetting); setting.treeId = obj.attr("id"); setting.treeObj = obj; setting.treeObj.empty(); settings[setting.treeId] = setting; //For some older browser,(e.g., ie6) if (typeof document.body.style.maxHeight === "undefined") { setting.view.expandSpeed = ""; } data.initRoot(setting); var root = data.getRoot(setting); zNodes = zNodes ? tools.clone(tools.isArray(zNodes) ? zNodes : [zNodes]) : []; if (setting.data.simpleData.enable) { data.nodeChildren(setting, root, data.transformTozTreeFormat(setting, zNodes)); } else { data.nodeChildren(setting, root, zNodes); } data.initCache(setting); event.unbindTree(setting); event.bindTree(setting); event.unbindEvent(setting); event.bindEvent(setting); var zTreeTools = { setting: setting, addNodes: function (parentNode, index, newNodes, isSilent) { if (!parentNode) parentNode = null; var isParent = data.nodeIsParent(setting, parentNode); if (parentNode && !isParent && setting.data.keep.leaf) return null; var i = parseInt(index, 10); if (isNaN(i)) { isSilent = !!newNodes; newNodes = index; index = -1; } else { index = i; } if (!newNodes) return null; var xNewNodes = tools.clone(tools.isArray(newNodes) ? newNodes : [newNodes]); function addCallback() { view.addNodes(setting, parentNode, index, xNewNodes, (isSilent == true)); } if (tools.canAsync(setting, parentNode)) { view.asyncNode(setting, parentNode, isSilent, addCallback); } else { addCallback(); } return xNewNodes; }, cancelSelectedNode: function (node) { view.cancelPreSelectedNode(setting, node); }, destroy: function () { view.destroy(setting); }, expandAll: function (expandFlag) { expandFlag = !!expandFlag; view.expandCollapseSonNode(setting, null, expandFlag, true); return expandFlag; }, expandNode: function (node, expandFlag, sonSign, focus, callbackFlag) { if (!node || !data.nodeIsParent(setting, node)) return null; if (expandFlag !== true && expandFlag !== false) { expandFlag = !node.open; } callbackFlag = !!callbackFlag; if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { return null; } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { return null; } if (expandFlag && node.parentTId) { view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false); } if (expandFlag === node.open && !sonSign) { return null; } data.getRoot(setting).expandTriggerFlag = callbackFlag; if (!tools.canAsync(setting, node) && sonSign) { view.expandCollapseSonNode(setting, node, expandFlag, true, showNodeFocus); } else { node.open = !expandFlag; view.switchNode(this.setting, node); showNodeFocus(); } return expandFlag; function showNodeFocus() { var a = $$(node, setting).get(0); if (a && focus !== false) { view.scrollIntoView(setting, a); } } }, getNodes: function () { return data.getNodes(setting); }, getNodeByParam: function (key, value, parentNode) { if (!key) return null; return data.getNodeByParam(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), key, value); }, getNodeByTId: function (tId) { return data.getNodeCache(setting, tId); }, getNodesByParam: function (key, value, parentNode) { if (!key) return null; return data.getNodesByParam(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), key, value); }, getNodesByParamFuzzy: function (key, value, parentNode) { if (!key) return null; return data.getNodesByParamFuzzy(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), key, value); }, getNodesByFilter: function (filter, isSingle, parentNode, invokeParam) { isSingle = !!isSingle; if (!filter || (typeof filter != "function")) return (isSingle ? null : []); return data.getNodesByFilter(setting, parentNode ? data.nodeChildren(setting, parentNode) : data.getNodes(setting), filter, isSingle, invokeParam); }, getNodeIndex: function (node) { if (!node) return null; var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); var children = data.nodeChildren(setting, parentNode); for (var i = 0, l = children.length; i < l; i++) { if (children[i] == node) return i; } return -1; }, getSelectedNodes: function () { var r = [], list = data.getRoot(setting).curSelectedList; for (var i = 0, l = list.length; i < l; i++) { r.push(list[i]); } return r; }, isSelectedNode: function (node) { return data.isSelectedNode(setting, node); }, reAsyncChildNodesPromise: function (parentNode, reloadType, isSilent) { var promise = new Promise(function (resolve, reject) { try { zTreeTools.reAsyncChildNodes(parentNode, reloadType, isSilent, function () { resolve(parentNode); }); } catch (e) { reject(e); } }); return promise; }, reAsyncChildNodes: function (parentNode, reloadType, isSilent, callback) { if (!this.setting.async.enable) return; var isRoot = !parentNode; if (isRoot) { parentNode = data.getRoot(setting); } if (reloadType == "refresh") { var children = data.nodeChildren(setting, parentNode); for (var i = 0, l = children ? children.length : 0; i < l; i++) { data.removeNodeCache(setting, children[i]); } data.removeSelectedNode(setting); data.nodeChildren(setting, parentNode, []); if (isRoot) { this.setting.treeObj.empty(); } else { var ulObj = $$(parentNode, consts.id.UL, setting); ulObj.empty(); } } view.asyncNode(this.setting, isRoot ? null : parentNode, !!isSilent, callback); }, refresh: function () { this.setting.treeObj.empty(); var root = data.getRoot(setting), nodes = data.nodeChildren(setting, root); data.initRoot(setting); data.nodeChildren(setting, root, nodes); data.initCache(setting); view.createNodes(setting, 0, data.nodeChildren(setting, root), null, -1); }, removeChildNodes: function (node) { if (!node) return null; var nodes = data.nodeChildren(setting, node); view.removeChildNodes(setting, node); return nodes ? nodes : null; }, removeNode: function (node, callbackFlag) { if (!node) return; callbackFlag = !!callbackFlag; if (callbackFlag && tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return; view.removeNode(setting, node); if (callbackFlag) { this.setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); } }, selectNode: function (node, addFlag, isSilent) { if (!node) return; if (tools.uCanDo(setting)) { addFlag = setting.view.selectedMulti && addFlag; if (node.parentTId) { view.expandCollapseParentNode(setting, node.getParentNode(), true, false, showNodeFocus); } else if (!isSilent) { try { $$(node, setting).focus().blur(); } catch (e) { } } view.selectNode(setting, node, addFlag); } function showNodeFocus() { if (isSilent) { return; } var a = $$(node, setting).get(0); view.scrollIntoView(setting, a); } }, transformTozTreeNodes: function (simpleNodes) { return data.transformTozTreeFormat(setting, simpleNodes); }, transformToArray: function (nodes) { return data.transformToArrayFormat(setting, nodes); }, updateNode: function (node, checkTypeFlag) { if (!node) return; var nObj = $$(node, setting); if (nObj.get(0) && tools.uCanDo(setting)) { view.setNodeName(setting, node); view.setNodeTarget(setting, node); view.setNodeUrl(setting, node); view.setNodeLineIcos(setting, node); view.setNodeFontCss(setting, node); } } }; root.treeTools = zTreeTools; data.setZTreeTools(setting, zTreeTools); var children = data.nodeChildren(setting, root); if (children && children.length > 0) { view.createNodes(setting, 0, children, null, -1); } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { view.asyncNode(setting); } return zTreeTools; } }; var zt = $.fn.zTree, $$ = tools.$, consts = zt.consts; })(jQuery); ================================================ FILE: lib/zTree_v3/js/jquery.ztree.excheck.js ================================================ /* * JQuery zTree excheck v3.5.40 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2019-01-18 */ (function ($) { //default consts of excheck var _consts = { event: { CHECK: "ztree_check" }, id: { CHECK: "_check" }, checkbox: { STYLE: "checkbox", DEFAULT: "chk", DISABLED: "disable", FALSE: "false", TRUE: "true", FULL: "full", PART: "part", FOCUS: "focus" }, radio: { STYLE: "radio", TYPE_ALL: "all", TYPE_LEVEL: "level" } }, //default setting of excheck _setting = { check: { enable: false, autoCheckTrigger: false, chkStyle: _consts.checkbox.STYLE, nocheckInherit: false, chkDisabledInherit: false, radioType: _consts.radio.TYPE_LEVEL, chkboxType: { "Y": "ps", "N": "ps" } }, data: { key: { checked: "checked" } }, callback: { beforeCheck: null, onCheck: null } }, //default root of excheck _initRoot = function (setting) { var r = data.getRoot(setting); r.radioCheckedList = []; }, //default cache of excheck _initCache = function (treeId) { }, //default bind event of excheck _bindEvent = function (setting) { var o = setting.treeObj, c = consts.event; o.bind(c.CHECK, function (event, srcEvent, treeId, node) { event.srcEvent = srcEvent; tools.apply(setting.callback.onCheck, [event, treeId, node]); }); }, _unbindEvent = function (setting) { var o = setting.treeObj, c = consts.event; o.unbind(c.CHECK); }, //default event proxy of excheck _eventProxy = function (e) { var target = e.target, setting = data.getSetting(e.data.treeId), tId = "", node = null, nodeEventType = "", treeEventType = "", nodeEventCallback = null, treeEventCallback = null; if (tools.eqs(e.type, "mouseover")) { if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) { tId = tools.getNodeMainDom(target).id; nodeEventType = "mouseoverCheck"; } } else if (tools.eqs(e.type, "mouseout")) { if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) { tId = tools.getNodeMainDom(target).id; nodeEventType = "mouseoutCheck"; } } else if (tools.eqs(e.type, "click")) { if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) { tId = tools.getNodeMainDom(target).id; nodeEventType = "checkNode"; } } if (tId.length > 0) { node = data.getNodeCache(setting, tId); switch (nodeEventType) { case "checkNode" : nodeEventCallback = _handler.onCheckNode; break; case "mouseoverCheck" : nodeEventCallback = _handler.onMouseoverCheck; break; case "mouseoutCheck" : nodeEventCallback = _handler.onMouseoutCheck; break; } } var proxyResult = { stop: nodeEventType === "checkNode", node: node, nodeEventType: nodeEventType, nodeEventCallback: nodeEventCallback, treeEventType: treeEventType, treeEventCallback: treeEventCallback }; return proxyResult }, //default init node of excheck _initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { if (!n) return; var checked = data.nodeChecked(setting, n); n.checkedOld = checked; if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); n.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled); if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); n.halfCheck = !!n.halfCheck; n.check_Child_State = -1; n.check_Focus = false; n.getCheckStatus = function () { return data.getCheckStatus(setting, n); }; if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && checked) { var r = data.getRoot(setting); r.radioCheckedList.push(n); } }, //add dom for check _beforeA = function (setting, node, html) { if (setting.check.enable) { data.makeChkFlag(setting, node); html.push(""); } }, //update zTreeObj, add method of check _zTreeTools = function (setting, zTreeTools) { zTreeTools.checkNode = function (node, checked, checkTypeFlag, callbackFlag) { var nodeChecked = data.nodeChecked(setting, node); if (node.chkDisabled === true) return; if (checked !== true && checked !== false) { checked = !nodeChecked; } callbackFlag = !!callbackFlag; if (nodeChecked === checked && !checkTypeFlag) { return; } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) { return; } if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) { data.nodeChecked(setting, node, checked); var checkObj = $$(node, consts.id.CHECK, this.setting); if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); view.setChkClass(this.setting, checkObj, node); view.repairParentChkClassWithSelf(this.setting, node); if (callbackFlag) { this.setting.treeObj.trigger(consts.event.CHECK, [null, this.setting.treeId, node]); } } } zTreeTools.checkAllNodes = function (checked) { view.repairAllChk(this.setting, !!checked); } zTreeTools.getCheckedNodes = function (checked) { var checked = (checked !== false); var children = data.nodeChildren(setting, data.getRoot(this.setting)); return data.getTreeCheckedNodes(this.setting, children, checked); } zTreeTools.getChangeCheckedNodes = function () { var children = data.nodeChildren(setting, data.getRoot(this.setting)); return data.getTreeChangeCheckedNodes(this.setting, children); } zTreeTools.setChkDisabled = function (node, disabled, inheritParent, inheritChildren) { disabled = !!disabled; inheritParent = !!inheritParent; inheritChildren = !!inheritChildren; view.repairSonChkDisabled(this.setting, node, disabled, inheritChildren); view.repairParentChkDisabled(this.setting, node.getParentNode(), disabled, inheritParent); } var _updateNode = zTreeTools.updateNode; zTreeTools.updateNode = function (node, checkTypeFlag) { if (_updateNode) _updateNode.apply(zTreeTools, arguments); if (!node || !this.setting.check.enable) return; var nObj = $$(node, this.setting); if (nObj.get(0) && tools.uCanDo(this.setting)) { var checkObj = $$(node, consts.id.CHECK, this.setting); if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); view.setChkClass(this.setting, checkObj, node); view.repairParentChkClassWithSelf(this.setting, node); } } }, //method of operate data _data = { getRadioCheckedList: function (setting) { var checkedList = data.getRoot(setting).radioCheckedList; for (var i = 0, j = checkedList.length; i < j; i++) { if (!data.getNodeCache(setting, checkedList[i].tId)) { checkedList.splice(i, 1); i--; j--; } } return checkedList; }, getCheckStatus: function (setting, node) { if (!setting.check.enable || node.nocheck || node.chkDisabled) return null; var checked = data.nodeChecked(setting, node), r = { checked: checked, half: node.halfCheck ? node.halfCheck : (setting.check.chkStyle == consts.radio.STYLE ? (node.check_Child_State === 2) : (checked ? (node.check_Child_State > -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) }; return r; }, getTreeCheckedNodes: function (setting, nodes, checked, results) { if (!nodes) return []; var onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); results = !results ? [] : results; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; var children = data.nodeChildren(setting, node); var nodeChecked = data.nodeChecked(setting, node); if (node.nocheck !== true && node.chkDisabled !== true && nodeChecked == checked) { results.push(node); if (onlyOne) { break; } } data.getTreeCheckedNodes(setting, children, checked, results); if (onlyOne && results.length > 0) { break; } } return results; }, getTreeChangeCheckedNodes: function (setting, nodes, results) { if (!nodes) return []; results = !results ? [] : results; for (var i = 0, l = nodes.length; i < l; i++) { var node = nodes[i]; var children = data.nodeChildren(setting, node); var nodeChecked = data.nodeChecked(setting, node); if (node.nocheck !== true && node.chkDisabled !== true && nodeChecked != node.checkedOld) { results.push(node); } data.getTreeChangeCheckedNodes(setting, children, results); } return results; }, makeChkFlag: function (setting, node) { if (!node) return; var chkFlag = -1; var children = data.nodeChildren(setting, node); if (children) { for (var i = 0, l = children.length; i < l; i++) { var cNode = children[i]; var nodeChecked = data.nodeChecked(setting, cNode); var tmp = -1; if (setting.check.chkStyle == consts.radio.STYLE) { if (cNode.nocheck === true || cNode.chkDisabled === true) { tmp = cNode.check_Child_State; } else if (cNode.halfCheck === true) { tmp = 2; } else if (nodeChecked) { tmp = 2; } else { tmp = cNode.check_Child_State > 0 ? 2 : 0; } if (tmp == 2) { chkFlag = 2; break; } else if (tmp == 0) { chkFlag = 0; } } else if (setting.check.chkStyle == consts.checkbox.STYLE) { if (cNode.nocheck === true || cNode.chkDisabled === true) { tmp = cNode.check_Child_State; } else if (cNode.halfCheck === true) { tmp = 1; } else if (nodeChecked) { tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; } else { tmp = (cNode.check_Child_State > 0) ? 1 : 0; } if (tmp === 1) { chkFlag = 1; break; } else if (tmp === 2 && chkFlag > -1 && i > 0 && tmp !== chkFlag) { chkFlag = 1; break; } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { chkFlag = 1; break; } else if (tmp > -1) { chkFlag = tmp; } } } } node.check_Child_State = chkFlag; } }, //method of event proxy _event = {}, //method of event handler _handler = { onCheckNode: function (event, node) { if (node.chkDisabled === true) return false; var setting = data.getSetting(event.data.treeId); if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; var nodeChecked = data.nodeChecked(setting, node); data.nodeChecked(setting, node, !nodeChecked); view.checkNodeRelation(setting, node); var checkObj = $$(node, consts.id.CHECK, setting); view.setChkClass(setting, checkObj, node); view.repairParentChkClassWithSelf(setting, node); setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); return true; }, onMouseoverCheck: function (event, node) { if (node.chkDisabled === true) return false; var setting = data.getSetting(event.data.treeId), checkObj = $$(node, consts.id.CHECK, setting); node.check_Focus = true; view.setChkClass(setting, checkObj, node); return true; }, onMouseoutCheck: function (event, node) { if (node.chkDisabled === true) return false; var setting = data.getSetting(event.data.treeId), checkObj = $$(node, consts.id.CHECK, setting); node.check_Focus = false; view.setChkClass(setting, checkObj, node); return true; } }, //method of tools for zTree _tools = {}, //method of operate ztree dom _view = { checkNodeRelation: function (setting, node) { var pNode, i, l, r = consts.radio; var nodeChecked = data.nodeChecked(setting, node); if (setting.check.chkStyle == r.STYLE) { var checkedList = data.getRadioCheckedList(setting); if (nodeChecked) { if (setting.check.radioType == r.TYPE_ALL) { for (i = checkedList.length - 1; i >= 0; i--) { pNode = checkedList[i]; var pNodeChecked = data.nodeChecked(setting, pNode); if (pNodeChecked && pNode != node) { data.nodeChecked(setting, pNode, false); checkedList.splice(i, 1); view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); if (pNode.parentTId != node.parentTId) { view.repairParentChkClassWithSelf(setting, pNode); } } } checkedList.push(node); } else { var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); var children = data.nodeChildren(setting, parentNode); for (i = 0, l = children.length; i < l; i++) { pNode = children[i]; var pNodeChecked = data.nodeChecked(setting, pNode); if (pNodeChecked && pNode != node) { data.nodeChecked(setting, pNode, false); view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); } } } } else if (setting.check.radioType == r.TYPE_ALL) { for (i = 0, l = checkedList.length; i < l; i++) { if (node == checkedList[i]) { checkedList.splice(i, 1); break; } } } } else { var children = data.nodeChildren(setting, node); if (nodeChecked && (!children || children.length == 0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { view.setSonNodeCheckBox(setting, node, true); } if (!nodeChecked && (!children || children.length == 0 || setting.check.chkboxType.N.indexOf("s") > -1)) { view.setSonNodeCheckBox(setting, node, false); } if (nodeChecked && setting.check.chkboxType.Y.indexOf("p") > -1) { view.setParentNodeCheckBox(setting, node, true); } if (!nodeChecked && setting.check.chkboxType.N.indexOf("p") > -1) { view.setParentNodeCheckBox(setting, node, false); } } }, makeChkClass: function (setting, node) { var c = consts.checkbox, r = consts.radio, fullStyle = ""; var nodeChecked = data.nodeChecked(setting, node); if (node.chkDisabled === true) { fullStyle = c.DISABLED; } else if (node.halfCheck) { fullStyle = c.PART; } else if (setting.check.chkStyle == r.STYLE) { fullStyle = (node.check_Child_State < 1) ? c.FULL : c.PART; } else { fullStyle = nodeChecked ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL : c.PART) : ((node.check_Child_State < 1) ? c.FULL : c.PART); } var chkName = setting.check.chkStyle + "_" + (nodeChecked ? c.TRUE : c.FALSE) + "_" + fullStyle; chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; return consts.className.BUTTON + " " + c.DEFAULT + " " + chkName; }, repairAllChk: function (setting, checked) { if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { var root = data.getRoot(setting); var children = data.nodeChildren(setting, root); for (var i = 0, l = children.length; i < l; i++) { var node = children[i]; if (node.nocheck !== true && node.chkDisabled !== true) { data.nodeChecked(setting, node, checked); } view.setSonNodeCheckBox(setting, node, checked); } } }, repairChkClass: function (setting, node) { if (!node) return; data.makeChkFlag(setting, node); if (node.nocheck !== true) { var checkObj = $$(node, consts.id.CHECK, setting); view.setChkClass(setting, checkObj, node); } }, repairParentChkClass: function (setting, node) { if (!node || !node.parentTId) return; var pNode = node.getParentNode(); view.repairChkClass(setting, pNode); view.repairParentChkClass(setting, pNode); }, repairParentChkClassWithSelf: function (setting, node) { if (!node) return; var children = data.nodeChildren(setting, node); if (children && children.length > 0) { view.repairParentChkClass(setting, children[0]); } else { view.repairParentChkClass(setting, node); } }, repairSonChkDisabled: function (setting, node, chkDisabled, inherit) { if (!node) return; if (node.chkDisabled != chkDisabled) { node.chkDisabled = chkDisabled; } view.repairChkClass(setting, node); var children = data.nodeChildren(setting, node); if (children && inherit) { for (var i = 0, l = children.length; i < l; i++) { var sNode = children[i]; view.repairSonChkDisabled(setting, sNode, chkDisabled, inherit); } } }, repairParentChkDisabled: function (setting, node, chkDisabled, inherit) { if (!node) return; if (node.chkDisabled != chkDisabled && inherit) { node.chkDisabled = chkDisabled; } view.repairChkClass(setting, node); view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit); }, setChkClass: function (setting, obj, node) { if (!obj) return; if (node.nocheck === true) { obj.hide(); } else { obj.show(); } obj.attr('class', view.makeChkClass(setting, node)); }, setParentNodeCheckBox: function (setting, node, value, srcNode) { var checkObj = $$(node, consts.id.CHECK, setting); if (!srcNode) srcNode = node; data.makeChkFlag(setting, node); if (node.nocheck !== true && node.chkDisabled !== true) { data.nodeChecked(setting, node, value); view.setChkClass(setting, checkObj, node); if (setting.check.autoCheckTrigger && node != srcNode) { setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); } } if (node.parentTId) { var pSign = true; if (!value) { var pNodes = data.nodeChildren(setting, node.getParentNode()); for (var i = 0, l = pNodes.length; i < l; i++) { var pNode = pNodes[i]; var nodeChecked = data.nodeChecked(setting, pNode); if ((pNode.nocheck !== true && pNode.chkDisabled !== true && nodeChecked) || ((pNode.nocheck === true || pNode.chkDisabled === true) && pNode.check_Child_State > 0)) { pSign = false; break; } } } if (pSign) { view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); } } }, setSonNodeCheckBox: function (setting, node, value, srcNode) { if (!node) return; var checkObj = $$(node, consts.id.CHECK, setting); if (!srcNode) srcNode = node; var hasDisable = false; var children = data.nodeChildren(setting, node); if (children) { for (var i = 0, l = children.length; i < l; i++) { var sNode = children[i]; view.setSonNodeCheckBox(setting, sNode, value, srcNode); if (sNode.chkDisabled === true) hasDisable = true; } } if (node != data.getRoot(setting) && node.chkDisabled !== true) { if (hasDisable && node.nocheck !== true) { data.makeChkFlag(setting, node); } if (node.nocheck !== true && node.chkDisabled !== true) { data.nodeChecked(setting, node, value); if (!hasDisable) node.check_Child_State = (children && children.length > 0) ? (value ? 2 : 0) : -1; } else { node.check_Child_State = -1; } view.setChkClass(setting, checkObj, node); if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true && node.chkDisabled !== true) { setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); } } } }, _z = { tools: _tools, view: _view, event: _event, data: _data }; $.extend(true, $.fn.zTree.consts, _consts); $.extend(true, $.fn.zTree._z, _z); var zt = $.fn.zTree, tools = zt._z.tools, consts = zt.consts, view = zt._z.view, data = zt._z.data, event = zt._z.event, $$ = tools.$; data.nodeChecked = function (setting, node, newChecked) { if (!node) { return false; } var key = setting.data.key.checked; if (typeof newChecked !== 'undefined') { if (typeof newChecked === "string") { newChecked = tools.eqs(newChecked, "true"); } newChecked = !!newChecked; node[key] = newChecked; } else if (typeof node[key] == "string"){ node[key] = tools.eqs(node[key], "true"); } else { node[key] = !!node[key]; } return node[key]; }; data.exSetting(_setting); data.addInitBind(_bindEvent); data.addInitUnBind(_unbindEvent); data.addInitCache(_initCache); data.addInitNode(_initNode); data.addInitProxy(_eventProxy, true); data.addInitRoot(_initRoot); data.addBeforeA(_beforeA); data.addZTreeTools(_zTreeTools); var _createNodes = view.createNodes; view.createNodes = function (setting, level, nodes, parentNode, index) { if (_createNodes) _createNodes.apply(view, arguments); if (!nodes) return; view.repairParentChkClassWithSelf(setting, parentNode); } var _removeNode = view.removeNode; view.removeNode = function (setting, node) { var parentNode = node.getParentNode(); if (_removeNode) _removeNode.apply(view, arguments); if (!node || !parentNode) return; view.repairChkClass(setting, parentNode); view.repairParentChkClass(setting, parentNode); } var _appendNodes = view.appendNodes; view.appendNodes = function (setting, level, nodes, parentNode, index, initFlag, openFlag) { var html = ""; if (_appendNodes) { html = _appendNodes.apply(view, arguments); } if (parentNode) { data.makeChkFlag(setting, parentNode); } return html; } })(jQuery); ================================================ FILE: lib/zTree_v3/js/jquery.ztree.exedit.js ================================================ /* * JQuery zTree exedit v3.5.40 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2019-01-18 */ (function ($) { //default consts of exedit var _consts = { event: { DRAG: "ztree_drag", DROP: "ztree_drop", RENAME: "ztree_rename", DRAGMOVE: "ztree_dragmove" }, id: { EDIT: "_edit", INPUT: "_input", REMOVE: "_remove" }, move: { TYPE_INNER: "inner", TYPE_PREV: "prev", TYPE_NEXT: "next" }, node: { CURSELECTED_EDIT: "curSelectedNode_Edit", TMPTARGET_TREE: "tmpTargetzTree", TMPTARGET_NODE: "tmpTargetNode" } }, //default setting of exedit _setting = { edit: { enable: false, editNameSelectAll: false, showRemoveBtn: true, showRenameBtn: true, removeTitle: "remove", renameTitle: "rename", drag: { autoExpandTrigger: false, isCopy: true, isMove: true, prev: true, next: true, inner: true, minMoveSize: 5, borderMax: 10, borderMin: -5, maxShowNodeNum: 5, autoOpenTime: 500 } }, view: { addHoverDom: null, removeHoverDom: null }, callback: { beforeDrag: null, beforeDragOpen: null, beforeDrop: null, beforeEditName: null, beforeRename: null, onDrag: null, onDragMove: null, onDrop: null, onRename: null } }, //default root of exedit _initRoot = function (setting) { var r = data.getRoot(setting), rs = data.getRoots(); r.curEditNode = null; r.curEditInput = null; r.curHoverNode = null; r.dragFlag = 0; r.dragNodeShowBefore = []; r.dragMaskList = new Array(); rs.showHoverDom = true; }, //default cache of exedit _initCache = function (treeId) { }, //default bind event of exedit _bindEvent = function (setting) { var o = setting.treeObj; var c = consts.event; o.bind(c.RENAME, function (event, treeId, treeNode, isCancel) { tools.apply(setting.callback.onRename, [event, treeId, treeNode, isCancel]); }); o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); }); o.bind(c.DRAGMOVE, function (event, srcEvent, treeId, treeNodes) { tools.apply(setting.callback.onDragMove, [srcEvent, treeId, treeNodes]); }); o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); }); }, _unbindEvent = function (setting) { var o = setting.treeObj; var c = consts.event; o.unbind(c.RENAME); o.unbind(c.DRAG); o.unbind(c.DRAGMOVE); o.unbind(c.DROP); }, //default event proxy of exedit _eventProxy = function (e) { var target = e.target, setting = data.getSetting(e.data.treeId), relatedTarget = e.relatedTarget, tId = "", node = null, nodeEventType = "", treeEventType = "", nodeEventCallback = null, treeEventCallback = null, tmp = null; if (tools.eqs(e.type, "mouseover")) { tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; nodeEventType = "hoverOverNode"; } } else if (tools.eqs(e.type, "mouseout")) { tmp = tools.getMDom(setting, relatedTarget, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (!tmp) { tId = "remove"; nodeEventType = "hoverOutNode"; } } else if (tools.eqs(e.type, "mousedown")) { tmp = tools.getMDom(setting, target, [{tagName: "a", attrName: "treeNode" + consts.id.A}]); if (tmp) { tId = tools.getNodeMainDom(tmp).id; nodeEventType = "mousedownNode"; } } if (tId.length > 0) { node = data.getNodeCache(setting, tId); switch (nodeEventType) { case "mousedownNode" : nodeEventCallback = _handler.onMousedownNode; break; case "hoverOverNode" : nodeEventCallback = _handler.onHoverOverNode; break; case "hoverOutNode" : nodeEventCallback = _handler.onHoverOutNode; break; } } var proxyResult = { stop: false, node: node, nodeEventType: nodeEventType, nodeEventCallback: nodeEventCallback, treeEventType: treeEventType, treeEventCallback: treeEventCallback }; return proxyResult }, //default init node of exedit _initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { if (!n) return; n.isHover = false; n.editNameFlag = false; }, //update zTreeObj, add method of edit _zTreeTools = function (setting, zTreeTools) { zTreeTools.cancelEditName = function (newName) { var root = data.getRoot(this.setting); if (!root.curEditNode) return; view.cancelCurEditNode(this.setting, newName ? newName : null, true); } zTreeTools.copyNode = function (targetNode, node, moveType, isSilent) { if (!node) return null; var isParent = data.nodeIsParent(setting, targetNode); if (targetNode && !isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; var _this = this, newNode = tools.clone(node); if (!targetNode) { targetNode = null; moveType = consts.move.TYPE_INNER; } if (moveType == consts.move.TYPE_INNER) { function copyCallback() { view.addNodes(_this.setting, targetNode, -1, [newNode], isSilent); } if (tools.canAsync(this.setting, targetNode)) { view.asyncNode(this.setting, targetNode, isSilent, copyCallback); } else { copyCallback(); } } else { view.addNodes(this.setting, targetNode.parentNode, -1, [newNode], isSilent); view.moveNode(this.setting, targetNode, newNode, moveType, false, isSilent); } return newNode; } zTreeTools.editName = function (node) { if (!node || !node.tId || node !== data.getNodeCache(this.setting, node.tId)) return; if (node.parentTId) view.expandCollapseParentNode(this.setting, node.getParentNode(), true); view.editNode(this.setting, node) } zTreeTools.moveNode = function (targetNode, node, moveType, isSilent) { if (!node) return node; var isParent = data.nodeIsParent(setting, targetNode); if (targetNode && !isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { return null; } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $$(node, this.setting).find("#" + targetNode.tId).length > 0)) { return null; } else if (!targetNode) { targetNode = null; } var _this = this; function moveCallback() { view.moveNode(_this.setting, targetNode, node, moveType, false, isSilent); } if (tools.canAsync(this.setting, targetNode) && moveType === consts.move.TYPE_INNER) { view.asyncNode(this.setting, targetNode, isSilent, moveCallback); } else { moveCallback(); } return node; } zTreeTools.setEditable = function (editable) { this.setting.edit.enable = editable; return this.refresh(); } }, //method of operate data _data = { setSonNodeLevel: function (setting, parentNode, node) { if (!node) return; var children = data.nodeChildren(setting, node); node.level = (parentNode) ? parentNode.level + 1 : 0; if (!children) return; for (var i = 0, l = children.length; i < l; i++) { if (children[i]) data.setSonNodeLevel(setting, node, children[i]); } } }, //method of event proxy _event = {}, //method of event handler _handler = { onHoverOverNode: function (event, node) { var setting = data.getSetting(event.data.treeId), root = data.getRoot(setting); if (root.curHoverNode != node) { _handler.onHoverOutNode(event); } root.curHoverNode = node; view.addHoverDom(setting, node); }, onHoverOutNode: function (event, node) { var setting = data.getSetting(event.data.treeId), root = data.getRoot(setting); if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { view.removeTreeDom(setting, root.curHoverNode); root.curHoverNode = null; } }, onMousedownNode: function (eventMouseDown, _node) { var i, l, setting = data.getSetting(eventMouseDown.data.treeId), root = data.getRoot(setting), roots = data.getRoots(); //right click can't drag & drop if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; //input of edit node name can't drag & drop var target = eventMouseDown.target, _nodes = data.getRoot(setting).curSelectedList, nodes = []; if (!data.isSelectedNode(setting, _node)) { nodes = [_node]; } else { for (i = 0, l = _nodes.length; i < l; i++) { if (_nodes[i].editNameFlag && tools.eqs(target.tagName, "input") && target.getAttribute("treeNode" + consts.id.INPUT) !== null) { return true; } nodes.push(_nodes[i]); if (nodes[0].parentTId !== _nodes[i].parentTId) { nodes = [_node]; break; } } } view.editNodeBlur = true; view.cancelCurEditNode(setting); var doc = $(setting.treeObj.get(0).ownerDocument), body = $(setting.treeObj.get(0).ownerDocument.body), curNode, tmpArrow, tmpTarget, isOtherTree = false, targetSetting = setting, sourceSetting = setting, preNode, nextNode, preTmpTargetNodeId = null, preTmpMoveType = null, tmpTargetNodeId = null, moveType = consts.move.TYPE_INNER, mouseDownX = eventMouseDown.clientX, mouseDownY = eventMouseDown.clientY, startTime = (new Date()).getTime(); if (tools.uCanDo(setting)) { doc.bind("mousemove", _docMouseMove); } function _docMouseMove(event) { //avoid start drag after click node if (root.dragFlag == 0 && Math.abs(mouseDownX - event.clientX) < setting.edit.drag.minMoveSize && Math.abs(mouseDownY - event.clientY) < setting.edit.drag.minMoveSize) { return true; } var i, l, tmpNode, tmpDom, tmpNodes; body.css("cursor", "pointer"); if (root.dragFlag == 0) { if (tools.apply(setting.callback.beforeDrag, [setting.treeId, nodes], true) == false) { _docMouseUp(event); return true; } for (i = 0, l = nodes.length; i < l; i++) { if (i == 0) { root.dragNodeShowBefore = []; } tmpNode = nodes[i]; if (data.nodeIsParent(setting, tmpNode) && tmpNode.open) { view.expandCollapseNode(setting, tmpNode, !tmpNode.open); root.dragNodeShowBefore[tmpNode.tId] = true; } else { root.dragNodeShowBefore[tmpNode.tId] = false; } } root.dragFlag = 1; roots.showHoverDom = false; tools.showIfameMask(setting, true); //sort var isOrder = true, lastIndex = -1; if (nodes.length > 1) { var pNodes = nodes[0].parentTId ? data.nodeChildren(setting, nodes[0].getParentNode()) : data.getNodes(setting); tmpNodes = []; for (i = 0, l = pNodes.length; i < l; i++) { if (root.dragNodeShowBefore[pNodes[i].tId] !== undefined) { if (isOrder && lastIndex > -1 && (lastIndex + 1) !== i) { isOrder = false; } tmpNodes.push(pNodes[i]); lastIndex = i; } if (nodes.length === tmpNodes.length) { nodes = tmpNodes; break; } } } if (isOrder) { preNode = nodes[0].getPreNode(); nextNode = nodes[nodes.length - 1].getNextNode(); } //set node in selected curNode = $$("
                                                                                                                                                                                                                                                                                                                            ", setting); for (i = 0, l = nodes.length; i < l; i++) { tmpNode = nodes[i]; tmpNode.editNameFlag = false; view.selectNode(setting, tmpNode, i > 0); view.removeTreeDom(setting, tmpNode); if (i > setting.edit.drag.maxShowNodeNum - 1) { continue; } tmpDom = $$("
                                                                                                                                                                                                                                                                                                                          • ", setting); tmpDom.append($$(tmpNode, consts.id.A, setting).clone()); tmpDom.css("padding", "0"); tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); curNode.append(tmpDom); if (i == setting.edit.drag.maxShowNodeNum - 1) { tmpDom = $$("
                                                                                                                                                                                                                                                                                                                          • ...
                                                                                                                                                                                                                                                                                                                          • ", setting); curNode.append(tmpDom); } } curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); curNode.addClass(setting.treeObj.attr("class")); curNode.appendTo(body); tmpArrow = $$("", setting); tmpArrow.attr("id", "zTreeMove_arrow_tmp"); tmpArrow.appendTo(body); setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); } if (root.dragFlag == 1) { if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft() + 2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); event.target = (xT.length > 0) ? xT.get(0) : event.target; } else if (tmpTarget) { tmpTarget.removeClass(consts.node.TMPTARGET_TREE); if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); } tmpTarget = null; tmpTargetNodeId = null; //judge drag & drop in multi ztree isOtherTree = false; targetSetting = setting; var settings = data.getSettings(); for (var s in settings) { if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length > 0)) { isOtherTree = true; targetSetting = settings[s]; } } var docScrollTop = doc.scrollTop(), docScrollLeft = doc.scrollLeft(), treeOffset = targetSetting.treeObj.offset(), scrollHeight = targetSetting.treeObj.get(0).scrollHeight, scrollWidth = targetSetting.treeObj.get(0).scrollWidth, dTop = (event.clientY + docScrollTop - treeOffset.top), dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), dLeft = (event.clientX + docScrollLeft - treeOffset.left), dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height() + 10) >= scrollHeight), isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width() + 10) >= scrollWidth); if (event.target && tools.isChildOrSelf(event.target, targetSetting.treeId)) { //get node
                                                                                                                                                                                                                                                                                                                          • dom var targetObj = event.target; while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { targetObj = targetObj.parentNode; } var canMove = true; //don't move to self or children of self for (i = 0, l = nodes.length; i < l; i++) { tmpNode = nodes[i]; if (targetObj.id === tmpNode.tId) { canMove = false; break; } else if ($$(tmpNode, setting).find("#" + targetObj.id).length > 0) { canMove = false; break; } } if (canMove && event.target && tools.isChildOrSelf(event.target, targetObj.id + consts.id.A)) { tmpTarget = $(targetObj); tmpTargetNodeId = targetObj.id; } } //the mouse must be in zTree tmpNode = nodes[0]; if (isTreeInner && tools.isChildOrSelf(event.target, targetSetting.treeId)) { //judge mouse move in root of ztree if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { tmpTarget = targetSetting.treeObj; } //auto scroll top if (isTop) { targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop() - 10); } else if (isBottom) { targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop() + 10); } if (isLeft) { targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft() - 10); } else if (isRight) { targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft() + 10); } //auto scroll left if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft() + tmpTarget.offset().left - targetSetting.treeObj.offset().left); } } curNode.css({ "top": (event.clientY + docScrollTop + 3) + "px", "left": (event.clientX + docScrollLeft + 3) + "px" }); var dX = 0; var dY = 0; if (tmpTarget && tmpTarget.attr("id") != targetSetting.treeId) { var tmpTargetNode = tmpTargetNodeId == null ? null : data.getNodeCache(targetSetting, tmpTargetNodeId), isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !data.nodeIsParent(setting, tmpTargetNode)) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); function clearMove() { tmpTarget = null; tmpTargetNodeId = ""; moveType = consts.move.TYPE_INNER; tmpArrow.css({ "display": "none" }); if (window.zTreeMoveTimer) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null } } if (!canPrev && !canNext && !canInner) { clearMove(); } else { var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), tmpTop = tmpTargetA.offset().top, tmpLeft = tmpTargetA.offset().left, prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1)) : -1, nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0)) : -1, dY_percent = (event.clientY + docScrollTop - tmpTop) / tmpTargetA.height(); if ((prevPercent == 1 || dY_percent <= prevPercent && dY_percent >= -.2) && canPrev) { dX = 1 - tmpArrow.width(); dY = tmpTop - tmpArrow.height() / 2; moveType = consts.move.TYPE_PREV; } else if ((nextPercent == 0 || dY_percent >= nextPercent && dY_percent <= 1.2) && canNext) { dX = 1 - tmpArrow.width(); dY = (tmpNextA == null || (data.nodeIsParent(setting, tmpTargetNode) && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height() / 2) : (tmpNextA.offset().top - tmpArrow.height() / 2); moveType = consts.move.TYPE_NEXT; } else if (canInner) { dX = 5 - tmpArrow.width(); dY = tmpTop; moveType = consts.move.TYPE_INNER; } else { clearMove(); } if (tmpTarget) { tmpArrow.css({ "display": "block", "top": dY + "px", "left": (tmpLeft + dX) + "px" }); tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { startTime = (new Date()).getTime(); } if (tmpTargetNode && data.nodeIsParent(setting, tmpTargetNode) && moveType == consts.move.TYPE_INNER) { var startTimer = true; if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null; } else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { startTimer = false; } if (startTimer) { window.zTreeMoveTimer = setTimeout(function () { if (moveType != consts.move.TYPE_INNER) return; if (tmpTargetNode && data.nodeIsParent(setting, tmpTargetNode) && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { view.switchNode(targetSetting, tmpTargetNode); if (targetSetting.edit.drag.autoExpandTrigger) { targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); } } }, targetSetting.edit.drag.autoOpenTime + 50); window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; } } } } } else { moveType = consts.move.TYPE_INNER; if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { tmpTarget.addClass(consts.node.TMPTARGET_TREE); } else { tmpTarget = null; } tmpArrow.css({ "display": "none" }); if (window.zTreeMoveTimer) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null; } } preTmpTargetNodeId = tmpTargetNodeId; preTmpMoveType = moveType; setting.treeObj.trigger(consts.event.DRAGMOVE, [event, setting.treeId, nodes]); } return false; } doc.bind("mouseup", _docMouseUp); function _docMouseUp(event) { if (window.zTreeMoveTimer) { clearTimeout(window.zTreeMoveTimer); window.zTreeMoveTargetNodeTId = null; } preTmpTargetNodeId = null; preTmpMoveType = null; doc.unbind("mousemove", _docMouseMove); doc.unbind("mouseup", _docMouseUp); doc.unbind("selectstart", _docSelect); body.css("cursor", ""); if (tmpTarget) { tmpTarget.removeClass(consts.node.TMPTARGET_TREE); if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); } tools.showIfameMask(setting, false); roots.showHoverDom = true; if (root.dragFlag == 0) return; root.dragFlag = 0; var i, l, tmpNode; for (i = 0, l = nodes.length; i < l; i++) { tmpNode = nodes[i]; if (data.nodeIsParent(setting, tmpNode) && root.dragNodeShowBefore[tmpNode.tId] && !tmpNode.open) { view.expandCollapseNode(setting, tmpNode, !tmpNode.open); delete root.dragNodeShowBefore[tmpNode.tId]; } } if (curNode) curNode.remove(); if (tmpArrow) tmpArrow.remove(); var isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy); if (!isCopy && tmpTarget && tmpTargetNodeId && nodes[0].parentTId && tmpTargetNodeId == nodes[0].parentTId && moveType == consts.move.TYPE_INNER) { tmpTarget = null; } if (tmpTarget) { var dragTargetNode = tmpTargetNodeId == null ? null : data.getNodeCache(targetSetting, tmpTargetNodeId); if (tools.apply(setting.callback.beforeDrop, [targetSetting.treeId, nodes, dragTargetNode, moveType, isCopy], true) == false) { view.selectNodes(sourceSetting, nodes); return; } var newNodes = isCopy ? tools.clone(nodes) : nodes; function dropCallback() { if (isOtherTree) { if (!isCopy) { for (var i = 0, l = nodes.length; i < l; i++) { view.removeNode(setting, nodes[i]); } } if (moveType == consts.move.TYPE_INNER) { view.addNodes(targetSetting, dragTargetNode, -1, newNodes); } else { view.addNodes(targetSetting, dragTargetNode.getParentNode(), moveType == consts.move.TYPE_PREV ? dragTargetNode.getIndex() : dragTargetNode.getIndex() + 1, newNodes); } } else { if (isCopy && moveType == consts.move.TYPE_INNER) { view.addNodes(targetSetting, dragTargetNode, -1, newNodes); } else if (isCopy) { view.addNodes(targetSetting, dragTargetNode.getParentNode(), moveType == consts.move.TYPE_PREV ? dragTargetNode.getIndex() : dragTargetNode.getIndex() + 1, newNodes); } else { if (moveType != consts.move.TYPE_NEXT) { for (i = 0, l = newNodes.length; i < l; i++) { view.moveNode(targetSetting, dragTargetNode, newNodes[i], moveType, false); } } else { for (i = -1, l = newNodes.length - 1; i < l; l--) { view.moveNode(targetSetting, dragTargetNode, newNodes[l], moveType, false); } } } } view.selectNodes(targetSetting, newNodes); var a = $$(newNodes[0], setting).get(0); view.scrollIntoView(setting, a); setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]); } if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) { view.asyncNode(targetSetting, dragTargetNode, false, dropCallback); } else { dropCallback(); } } else { view.selectNodes(sourceSetting, nodes); setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]); } } doc.bind("selectstart", _docSelect); function _docSelect() { return false; } // 2018-03-30 FireFox has fixed this issue. //Avoid FireFox's Bug //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error. // if(eventMouseDown.preventDefault) { // eventMouseDown.preventDefault(); // } return true; } }, //method of tools for zTree _tools = { getAbs: function (obj) { var oRect = obj.getBoundingClientRect(), scrollTop = document.body.scrollTop + document.documentElement.scrollTop, scrollLeft = document.body.scrollLeft + document.documentElement.scrollLeft; return [oRect.left + scrollLeft, oRect.top + scrollTop]; }, inputFocus: function (inputObj) { if (inputObj.get(0)) { inputObj.focus(); tools.setCursorPosition(inputObj.get(0), inputObj.val().length); } }, inputSelect: function (inputObj) { if (inputObj.get(0)) { inputObj.focus(); inputObj.select(); } }, setCursorPosition: function (obj, pos) { if (obj.setSelectionRange) { obj.focus(); obj.setSelectionRange(pos, pos); } else if (obj.createTextRange) { var range = obj.createTextRange(); range.collapse(true); range.moveEnd('character', pos); range.moveStart('character', pos); range.select(); } }, showIfameMask: function (setting, showSign) { var root = data.getRoot(setting); //clear full mask while (root.dragMaskList.length > 0) { root.dragMaskList[0].remove(); root.dragMaskList.shift(); } if (showSign) { //show mask var iframeList = $$("iframe", setting); for (var i = 0, l = iframeList.length; i < l; i++) { var obj = iframeList.get(i), r = tools.getAbs(obj), dragMask = $$("
                                                                                                                                                                                                                                                                                                                            ", setting); dragMask.appendTo($$("body", setting)); root.dragMaskList.push(dragMask); } } } }, //method of operate ztree dom _view = { addEditBtn: function (setting, node) { if (node.editNameFlag || $$(node, consts.id.EDIT, setting).length > 0) { return; } if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { return; } var aObj = $$(node, consts.id.A, setting), editStr = ""; aObj.append(editStr); $$(node, consts.id.EDIT, setting).bind('click', function () { if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; view.editNode(setting, node); return false; } ).show(); }, addRemoveBtn: function (setting, node) { if (node.editNameFlag || $$(node, consts.id.REMOVE, setting).length > 0) { return; } if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { return; } var aObj = $$(node, consts.id.A, setting), removeStr = ""; aObj.append(removeStr); $$(node, consts.id.REMOVE, setting).bind('click', function () { if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; view.removeNode(setting, node); setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); return false; } ).bind('mousedown', function (eventMouseDown) { return true; } ).show(); }, addHoverDom: function (setting, node) { if (data.getRoots().showHoverDom) { node.isHover = true; if (setting.edit.enable) { view.addEditBtn(setting, node); view.addRemoveBtn(setting, node); } tools.apply(setting.view.addHoverDom, [setting.treeId, node]); } }, cancelCurEditNode: function (setting, forceName, isCancel) { var root = data.getRoot(setting), node = root.curEditNode; if (node) { var inputObj = root.curEditInput, newName = forceName ? forceName : (isCancel ? data.nodeName(setting, node) : inputObj.val()); if (tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName, isCancel], true) === false) { return false; } data.nodeName(setting, node, newName); var aObj = $$(node, consts.id.A, setting); aObj.removeClass(consts.node.CURSELECTED_EDIT); inputObj.unbind(); view.setNodeName(setting, node); node.editNameFlag = false; root.curEditNode = null; root.curEditInput = null; view.selectNode(setting, node, false); setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node, isCancel]); } root.noSelection = true; return true; }, editNode: function (setting, node) { var root = data.getRoot(setting); view.editNodeBlur = false; if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { setTimeout(function () { tools.inputFocus(root.curEditInput); }, 0); return; } node.editNameFlag = true; view.removeTreeDom(setting, node); view.cancelCurEditNode(setting); view.selectNode(setting, node, false); $$(node, consts.id.SPAN, setting).html(""); var inputObj = $$(node, consts.id.INPUT, setting); inputObj.attr("value", data.nodeName(setting, node)); if (setting.edit.editNameSelectAll) { tools.inputSelect(inputObj); } else { tools.inputFocus(inputObj); } inputObj.bind('blur', function (event) { if (!view.editNodeBlur) { view.cancelCurEditNode(setting); } }).bind('keydown', function (event) { if (event.keyCode == "13") { view.editNodeBlur = true; view.cancelCurEditNode(setting); } else if (event.keyCode == "27") { view.cancelCurEditNode(setting, null, true); } }).bind('click', function (event) { return false; }).bind('dblclick', function (event) { return false; }); $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED_EDIT); root.curEditInput = inputObj; root.noSelection = false; root.curEditNode = node; }, moveNode: function (setting, targetNode, node, moveType, animateFlag, isSilent) { var root = data.getRoot(setting); if (targetNode == node) return; if (setting.data.keep.leaf && targetNode && !data.nodeIsParent(setting, targetNode) && moveType == consts.move.TYPE_INNER) return; var oldParentNode = (node.parentTId ? node.getParentNode() : root), targetNodeIsRoot = (targetNode === null || targetNode == root); if (targetNodeIsRoot && targetNode === null) targetNode = root; if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { moveType = consts.move.TYPE_INNER; } if (moveType == consts.move.TYPE_INNER) { if (targetNodeIsRoot) { //parentTId of root node is null node.parentTId = null; } else { if (!data.nodeIsParent(setting, targetNode)) { data.nodeIsParent(setting, targetNode, true); targetNode.open = !!targetNode.open; view.setNodeLineIcos(setting, targetNode); } node.parentTId = targetNode.tId; } } //move node Dom var targetObj, target_ulObj; if (targetNodeIsRoot) { targetObj = setting.treeObj; target_ulObj = targetObj; } else { if (!isSilent && moveType == consts.move.TYPE_INNER) { view.expandCollapseNode(setting, targetNode, true, false); } else if (!isSilent) { view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); } targetObj = $$(targetNode, setting); target_ulObj = $$(targetNode, consts.id.UL, setting); if (!!targetObj.get(0) && !target_ulObj.get(0)) { var ulstr = []; view.makeUlHtml(setting, targetNode, ulstr, ''); targetObj.append(ulstr.join('')); } target_ulObj = $$(targetNode, consts.id.UL, setting); } var nodeDom = $$(node, setting); if (!nodeDom.get(0)) { nodeDom = view.appendNodes(setting, node.level, [node], null, -1, false, true).join(''); } else if (!targetObj.get(0)) { nodeDom.remove(); } if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { target_ulObj.append(nodeDom); } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { targetObj.before(nodeDom); } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { targetObj.after(nodeDom); } //repair the data after move var i, l, tmpSrcIndex = -1, tmpTargetIndex = 0, oldNeighbor = null, newNeighbor = null, oldLevel = node.level; var oldChildren = data.nodeChildren(setting, oldParentNode); var targetParentChildren = data.nodeChildren(setting, targetParentNode); var targetChildren = data.nodeChildren(setting, targetNode); if (node.isFirstNode) { tmpSrcIndex = 0; if (oldChildren.length > 1) { oldNeighbor = oldChildren[1]; oldNeighbor.isFirstNode = true; } } else if (node.isLastNode) { tmpSrcIndex = oldChildren.length - 1; oldNeighbor = oldChildren[tmpSrcIndex - 1]; oldNeighbor.isLastNode = true; } else { for (i = 0, l = oldChildren.length; i < l; i++) { if (oldChildren[i].tId == node.tId) { tmpSrcIndex = i; break; } } } if (tmpSrcIndex >= 0) { oldChildren.splice(tmpSrcIndex, 1); } if (moveType != consts.move.TYPE_INNER) { for (i = 0, l = targetParentChildren.length; i < l; i++) { if (targetParentChildren[i].tId == targetNode.tId) tmpTargetIndex = i; } } if (moveType == consts.move.TYPE_INNER) { if (!targetChildren) { targetChildren = data.nodeChildren(setting, targetNode, []); } if (targetChildren.length > 0) { newNeighbor = targetChildren[targetChildren.length - 1]; newNeighbor.isLastNode = false; } targetChildren.splice(targetChildren.length, 0, node); node.isLastNode = true; node.isFirstNode = (targetChildren.length == 1); } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { targetParentChildren.splice(tmpTargetIndex, 0, node); newNeighbor = targetNode; newNeighbor.isFirstNode = false; node.parentTId = targetNode.parentTId; node.isFirstNode = true; node.isLastNode = false; } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { targetParentChildren.splice(tmpTargetIndex + 1, 0, node); newNeighbor = targetNode; newNeighbor.isLastNode = false; node.parentTId = targetNode.parentTId; node.isFirstNode = false; node.isLastNode = true; } else { if (moveType == consts.move.TYPE_PREV) { targetParentChildren.splice(tmpTargetIndex, 0, node); } else { targetParentChildren.splice(tmpTargetIndex + 1, 0, node); } node.parentTId = targetNode.parentTId; node.isFirstNode = false; node.isLastNode = false; } data.fixPIdKeyValue(setting, node); data.setSonNodeLevel(setting, node.getParentNode(), node); //repair node what been moved view.setNodeLineIcos(setting, node); view.repairNodeLevelClass(setting, node, oldLevel); //repair node's old parentNode dom if (!setting.data.keep.parent && oldChildren.length < 1) { //old parentNode has no child nodes data.nodeIsParent(setting, oldParentNode, false); oldParentNode.open = false; var tmp_ulObj = $$(oldParentNode, consts.id.UL, setting), tmp_switchObj = $$(oldParentNode, consts.id.SWITCH, setting), tmp_icoObj = $$(oldParentNode, consts.id.ICON, setting); view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); tmp_ulObj.css("display", "none"); } else if (oldNeighbor) { //old neigbor node view.setNodeLineIcos(setting, oldNeighbor); } //new neigbor node if (newNeighbor) { view.setNodeLineIcos(setting, newNeighbor); } //repair checkbox / radio if (!!setting.check && setting.check.enable && view.repairChkClass) { view.repairChkClass(setting, oldParentNode); view.repairParentChkClassWithSelf(setting, oldParentNode); if (oldParentNode != node.parent) view.repairParentChkClassWithSelf(setting, node); } //expand parents after move if (!isSilent) { view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); } }, removeEditBtn: function (setting, node) { $$(node, consts.id.EDIT, setting).unbind().remove(); }, removeRemoveBtn: function (setting, node) { $$(node, consts.id.REMOVE, setting).unbind().remove(); }, removeTreeDom: function (setting, node) { node.isHover = false; view.removeEditBtn(setting, node); view.removeRemoveBtn(setting, node); tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); }, repairNodeLevelClass: function (setting, node, oldLevel) { if (oldLevel === node.level) return; var liObj = $$(node, setting), aObj = $$(node, consts.id.A, setting), ulObj = $$(node, consts.id.UL, setting), oldClass = consts.className.LEVEL + oldLevel, newClass = consts.className.LEVEL + node.level; liObj.removeClass(oldClass); liObj.addClass(newClass); aObj.removeClass(oldClass); aObj.addClass(newClass); ulObj.removeClass(oldClass); ulObj.addClass(newClass); }, selectNodes: function (setting, nodes) { for (var i = 0, l = nodes.length; i < l; i++) { view.selectNode(setting, nodes[i], i > 0); } } }, _z = { tools: _tools, view: _view, event: _event, data: _data }; $.extend(true, $.fn.zTree.consts, _consts); $.extend(true, $.fn.zTree._z, _z); var zt = $.fn.zTree, tools = zt._z.tools, consts = zt.consts, view = zt._z.view, data = zt._z.data, event = zt._z.event, $$ = tools.$; data.exSetting(_setting); data.addInitBind(_bindEvent); data.addInitUnBind(_unbindEvent); data.addInitCache(_initCache); data.addInitNode(_initNode); data.addInitProxy(_eventProxy); data.addInitRoot(_initRoot); data.addZTreeTools(_zTreeTools); var _cancelPreSelectedNode = view.cancelPreSelectedNode; view.cancelPreSelectedNode = function (setting, node) { var list = data.getRoot(setting).curSelectedList; for (var i = 0, j = list.length; i < j; i++) { if (!node || node === list[i]) { view.removeTreeDom(setting, list[i]); if (node) break; } } if (_cancelPreSelectedNode) _cancelPreSelectedNode.apply(view, arguments); } var _createNodes = view.createNodes; view.createNodes = function (setting, level, nodes, parentNode, index) { if (_createNodes) { _createNodes.apply(view, arguments); } if (!nodes) return; if (view.repairParentChkClassWithSelf) { view.repairParentChkClassWithSelf(setting, parentNode); } } var _makeNodeUrl = view.makeNodeUrl; view.makeNodeUrl = function (setting, node) { return setting.edit.enable ? null : (_makeNodeUrl.apply(view, arguments)); } var _removeNode = view.removeNode; view.removeNode = function (setting, node) { var root = data.getRoot(setting); if (root.curEditNode === node) root.curEditNode = null; if (_removeNode) { _removeNode.apply(view, arguments); } } var _selectNode = view.selectNode; view.selectNode = function (setting, node, addFlag) { var root = data.getRoot(setting); if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { return false; } if (_selectNode) _selectNode.apply(view, arguments); view.addHoverDom(setting, node); return true; } var _uCanDo = tools.uCanDo; tools.uCanDo = function (setting, e) { var root = data.getRoot(setting); if (e && (tools.eqs(e.type, "mouseover") || tools.eqs(e.type, "mouseout") || tools.eqs(e.type, "mousedown") || tools.eqs(e.type, "mouseup"))) { return true; } if (root.curEditNode) { view.editNodeBlur = false; root.curEditInput.focus(); } return (!root.curEditNode) && (_uCanDo ? _uCanDo.apply(view, arguments) : true); } })(jQuery); ================================================ FILE: lib/zTree_v3/js/jquery.ztree.exhide.js ================================================ /* * JQuery zTree exHideNodes v3.5.40 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2019-01-18 */ (function ($) { var _setting = { data: { key: { isHidden: "isHidden" } } }; //default init node of exLib var _initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { var isHidden = data.isHidden(setting, n); data.isHidden(setting, n, isHidden); data.initHideForExCheck(setting, n); }, //add dom for check _beforeA = function (setting, node, html) { }, //update zTreeObj, add method of exLib _zTreeTools = function (setting, zTreeTools) { zTreeTools.showNodes = function (nodes, options) { view.showNodes(setting, nodes, options); } zTreeTools.showNode = function (node, options) { if (!node) { return; } view.showNodes(setting, [node], options); } zTreeTools.hideNodes = function (nodes, options) { view.hideNodes(setting, nodes, options); } zTreeTools.hideNode = function (node, options) { if (!node) { return; } view.hideNodes(setting, [node], options); } var _checkNode = zTreeTools.checkNode; if (_checkNode) { zTreeTools.checkNode = function (node, checked, checkTypeFlag, callbackFlag) { if (!!node && !!data.isHidden(setting, node)) { return; } _checkNode.apply(zTreeTools, arguments); } } }, //method of operate data _data = { initHideForExCheck: function (setting, n) { var isHidden = data.isHidden(setting, n); if (isHidden && setting.check && setting.check.enable) { if (typeof n._nocheck == "undefined") { n._nocheck = !!n.nocheck n.nocheck = true; } n.check_Child_State = -1; if (view.repairParentChkClassWithSelf) { view.repairParentChkClassWithSelf(setting, n); } } }, initShowForExCheck: function (setting, n) { var isHidden = data.isHidden(setting, n); if (!isHidden && setting.check && setting.check.enable) { if (typeof n._nocheck != "undefined") { n.nocheck = n._nocheck; delete n._nocheck; } if (view.setChkClass) { var checkObj = $$(n, consts.id.CHECK, setting); view.setChkClass(setting, checkObj, n); } if (view.repairParentChkClassWithSelf) { view.repairParentChkClassWithSelf(setting, n); } } } }, //method of operate ztree dom _view = { clearOldFirstNode: function (setting, node) { var n = node.getNextNode(); while (!!n) { if (n.isFirstNode) { n.isFirstNode = false; view.setNodeLineIcos(setting, n); break; } if (n.isLastNode) { break; } n = n.getNextNode(); } }, clearOldLastNode: function (setting, node, openFlag) { var n = node.getPreNode(); while (!!n) { if (n.isLastNode) { n.isLastNode = false; if (openFlag) { view.setNodeLineIcos(setting, n); } break; } if (n.isFirstNode) { break; } n = n.getPreNode(); } }, makeDOMNodeMainBefore: function (html, setting, node) { var isHidden = data.isHidden(setting, node); html.push("
                                                                                                                                                                                                                                                                                                                          • "); }, showNode: function (setting, node, options) { data.isHidden(setting, node, false); data.initShowForExCheck(setting, node); $$(node, setting).show(); }, showNodes: function (setting, nodes, options) { if (!nodes || nodes.length == 0) { return; } var pList = {}, i, j; for (i = 0, j = nodes.length; i < j; i++) { var n = nodes[i]; if (!pList[n.parentTId]) { var pn = n.getParentNode(); pList[n.parentTId] = (pn === null) ? data.getRoot(setting) : n.getParentNode(); } view.showNode(setting, n, options); } for (var tId in pList) { var children = data.nodeChildren(setting, pList[tId]); view.setFirstNodeForShow(setting, children); view.setLastNodeForShow(setting, children); } }, hideNode: function (setting, node, options) { data.isHidden(setting, node, true); node.isFirstNode = false; node.isLastNode = false; data.initHideForExCheck(setting, node); view.cancelPreSelectedNode(setting, node); $$(node, setting).hide(); }, hideNodes: function (setting, nodes, options) { if (!nodes || nodes.length == 0) { return; } var pList = {}, i, j; for (i = 0, j = nodes.length; i < j; i++) { var n = nodes[i]; if ((n.isFirstNode || n.isLastNode) && !pList[n.parentTId]) { var pn = n.getParentNode(); pList[n.parentTId] = (pn === null) ? data.getRoot(setting) : n.getParentNode(); } view.hideNode(setting, n, options); } for (var tId in pList) { var children = data.nodeChildren(setting, pList[tId]); view.setFirstNodeForHide(setting, children); view.setLastNodeForHide(setting, children); } }, setFirstNode: function (setting, parentNode) { var children = data.nodeChildren(setting, parentNode); var isHidden = data.isHidden(setting, children[0], false); if (children.length > 0 && !isHidden) { children[0].isFirstNode = true; } else if (children.length > 0) { view.setFirstNodeForHide(setting, children); } }, setLastNode: function (setting, parentNode) { var children = data.nodeChildren(setting, parentNode); var isHidden = data.isHidden(setting, children[0]); if (children.length > 0 && !isHidden) { children[children.length - 1].isLastNode = true; } else if (children.length > 0) { view.setLastNodeForHide(setting, children); } }, setFirstNodeForHide: function (setting, nodes) { var n, i, j; for (i = 0, j = nodes.length; i < j; i++) { n = nodes[i]; if (n.isFirstNode) { break; } var isHidden = data.isHidden(setting, n); if (!isHidden && !n.isFirstNode) { n.isFirstNode = true; view.setNodeLineIcos(setting, n); break; } else { n = null; } } return n; }, setFirstNodeForShow: function (setting, nodes) { var n, i, j, first, old; for (i = 0, j = nodes.length; i < j; i++) { n = nodes[i]; var isHidden = data.isHidden(setting, n); if (!first && !isHidden && n.isFirstNode) { first = n; break; } else if (!first && !isHidden && !n.isFirstNode) { n.isFirstNode = true; first = n; view.setNodeLineIcos(setting, n); } else if (first && n.isFirstNode) { n.isFirstNode = false; old = n; view.setNodeLineIcos(setting, n); break; } else { n = null; } } return {"new": first, "old": old}; }, setLastNodeForHide: function (setting, nodes) { var n, i; for (i = nodes.length - 1; i >= 0; i--) { n = nodes[i]; if (n.isLastNode) { break; } var isHidden = data.isHidden(setting, n); if (!isHidden && !n.isLastNode) { n.isLastNode = true; view.setNodeLineIcos(setting, n); break; } else { n = null; } } return n; }, setLastNodeForShow: function (setting, nodes) { var n, i, j, last, old; for (i = nodes.length - 1; i >= 0; i--) { n = nodes[i]; var isHidden = data.isHidden(setting, n); if (!last && !isHidden && n.isLastNode) { last = n; break; } else if (!last && !isHidden && !n.isLastNode) { n.isLastNode = true; last = n; view.setNodeLineIcos(setting, n); } else if (last && n.isLastNode) { n.isLastNode = false; old = n; view.setNodeLineIcos(setting, n); break; } else { n = null; } } return {"new": last, "old": old}; } }, _z = { view: _view, data: _data }; $.extend(true, $.fn.zTree._z, _z); var zt = $.fn.zTree, tools = zt._z.tools, consts = zt.consts, view = zt._z.view, data = zt._z.data, event = zt._z.event, $$ = tools.$; data.isHidden = function (setting, node, newIsHidden) { if (!node) { return false; } var key = setting.data.key.isHidden; if (typeof newIsHidden !== 'undefined') { if (typeof newIsHidden === "string") { newIsHidden = tools.eqs(newIsHidden, "true"); } newIsHidden = !!newIsHidden; node[key] = newIsHidden; } else if (typeof node[key] == "string"){ node[key] = tools.eqs(node[key], "true"); } else { node[key] = !!node[key]; } return node[key]; }; data.exSetting(_setting); data.addInitNode(_initNode); data.addBeforeA(_beforeA); data.addZTreeTools(_zTreeTools); // Override method in core var _dInitNode = data.initNode; data.initNode = function (setting, level, node, parentNode, isFirstNode, isLastNode, openFlag) { var tmpPNode = (parentNode) ? parentNode : data.getRoot(setting), children = tmpPNode[setting.data.key.children]; data.tmpHideFirstNode = view.setFirstNodeForHide(setting, children); data.tmpHideLastNode = view.setLastNodeForHide(setting, children); if (openFlag) { view.setNodeLineIcos(setting, data.tmpHideFirstNode); view.setNodeLineIcos(setting, data.tmpHideLastNode); } isFirstNode = (data.tmpHideFirstNode === node); isLastNode = (data.tmpHideLastNode === node); if (_dInitNode) _dInitNode.apply(data, arguments); if (openFlag && isLastNode) { view.clearOldLastNode(setting, node, openFlag); } }; var _makeChkFlag = data.makeChkFlag; if (!!_makeChkFlag) { data.makeChkFlag = function (setting, node) { if (!!node && !!data.isHidden(setting, node)) { return; } _makeChkFlag.apply(data, arguments); } } var _getTreeCheckedNodes = data.getTreeCheckedNodes; if (!!_getTreeCheckedNodes) { data.getTreeCheckedNodes = function (setting, nodes, checked, results) { if (!!nodes && nodes.length > 0) { var p = nodes[0].getParentNode(); if (!!p && !!data.isHidden(setting, p)) { return []; } } return _getTreeCheckedNodes.apply(data, arguments); } } var _getTreeChangeCheckedNodes = data.getTreeChangeCheckedNodes; if (!!_getTreeChangeCheckedNodes) { data.getTreeChangeCheckedNodes = function (setting, nodes, results) { if (!!nodes && nodes.length > 0) { var p = nodes[0].getParentNode(); if (!!p && !!data.isHidden(setting, p)) { return []; } } return _getTreeChangeCheckedNodes.apply(data, arguments); } } var _expandCollapseSonNode = view.expandCollapseSonNode; if (!!_expandCollapseSonNode) { view.expandCollapseSonNode = function (setting, node, expandFlag, animateFlag, callback) { if (!!node && !!data.isHidden(setting, node)) { return; } _expandCollapseSonNode.apply(view, arguments); } } var _setSonNodeCheckBox = view.setSonNodeCheckBox; if (!!_setSonNodeCheckBox) { view.setSonNodeCheckBox = function (setting, node, value, srcNode) { if (!!node && !!data.isHidden(setting, node)) { return; } _setSonNodeCheckBox.apply(view, arguments); } } var _repairParentChkClassWithSelf = view.repairParentChkClassWithSelf; if (!!_repairParentChkClassWithSelf) { view.repairParentChkClassWithSelf = function (setting, node) { if (!!node && !!data.isHidden(setting, node)) { return; } _repairParentChkClassWithSelf.apply(view, arguments); } } })(jQuery); ================================================ FILE: lib/zTree_v3/log v3.x.txt ================================================ =ZTree v3.x (JQuery Tree插件) 更新日志= 为了更好的优化及扩展zTree, 因此决定升级为v3.x,并且对之前的v2.x不兼容,会有很多结构上的修改,对此深感无奈与抱歉,请大家谅解。 具体修改内容可参考: * [http://www.treejs.cn/v3/api.php zTree v3.x API 文档] * [http://www.treejs.cn/v3/demo.php#_101 zTree v3.x Demo 演示] * [http://www.treejs.cn/v3/faq.php#_101 zTree v3.x 常见问题] *2019.01.18* v3.5.40 * [修改] fuzzySearch.js Thanks @yigger *2019.01.17* v3.5.39 * [修改] data.nodeChecked & data.isHidden & data.nodeIsParent 的 返回值规范为 boolean Thanks @xinhochen & @田biubiu & @FelixFly *2019.01.08* v3.5.38 * [修改] data.nodeChecked & data.isHidden 的 返回值规范为 boolean Thanks @xinhochen *2018.12.10* v3.5.37 * [修改] fuzzySearch.js & Demo Thanks @SadWood & @JerryWang24 *2018.08.21* v3.5.37 * [修改] 替换 scrollIntoViewIfNeeded 方法 Thanks @jocki84 * [修改] 部分 API 文字错误 *2018.06.26* v3.5.36 * [增加] setting.async.headers & setting.async.xhrFields *2018.04.24* v3.5.35 * [增加] Demo:模糊搜索(Fuzzy Search) Thanks @bigablecat *2018.03.30* v3.5.35 * [修改] 关闭拖拽方法内的 eventMouseDown.preventDefault(); 避免影响 zTree 外部的事件 Thanks @heyusysu *2018.02.12* v3.5.34 * [修改] nodeChecked 方法内的错误 Thanks @勇哥 *2018.01.30* v3.5.33 * [修改] nodeIsParent 方法内的错误 Thanks @netmou *2018.01.06* v3.5.32 * [修改] setting.async.autoParam / otherParam 支持 function * [修改] isParent / isHidden 允许自定义属性名称 setting.data.key.isParent / isHidden *2017.12.28* v3.5.31 * [修改] 初始化节点数据的规则,支持 treeNode { name: "Node2", children: []}, 情况下自动设置为 isParent = true *2017.11.11* v3.5.30 * [修改] scrollIntoViewIfNeeded 方法对 IE7 的兼容 *2017.06.23* v3.5.29 * [修改] 拖拽操作后 body.css("cursor", "auto"); 修改为 body.css("cursor", "");(感谢 Jim) *2017.06.19* v3.5.29 * [增加] reAsyncChildNodesPromise(parentNode, reloadType, isSilent) 方法支持 ES6 Promise * [修改] reAsyncChildNodes 方法增加 callback 参数 *2017.01.20* v3.5.28 * [修改] scrollIntoViewIfNeeded 方法对 IE8 的兼容 *2016.12.27* v3.5.27 * [修改] addNodes 方法设置 index 参数后,导致 treeNode.isLastNode 错误 *2016.11.03* v3.5.26 * [修改] 使用 scrollIntoViewIfNeeded 替代 scrollIntoView,兼容各种浏览器 *2016.09.27* v3.5.25 * [修改] ajax 异步加载支持 contentType = 'application/json' *2016.06.06* v3.5.24 * [修改] selectNode 方法中 某些情况下,isSilent 参数无效 * [修改] 数据中 id = 'length'时, 导致 transformTozTreeFormat() 方法异常 *2016.04.08* v3.5.23 * [修改] expandCollapseNode 方法被 gulp 压缩后,在 IE8 上会导致溢出 *2016.04.06* v3.5.23 * [修改] 替换 arguments.callee 避免 'use strict' 严格模式下报错 *2016.04.01* v3.5.23 * [修改] selectNode 方法 增加 isSilent 参数,可以禁止 选中节点时,自动滚动到视图 *2016.03.01* v3.5.22 * [修改] metro Demo 的样式错误 * [修改] 增加 的 padding 后, 导致 setting.edit.drag.inner 无效 *2016.02.17* v3.5.21 * [修改] zTree js 文件名 (为了便于发布到 https://cdnjs.com/) *2016.01.20* v3.5.20 * [修改] checkAllNodes() 方法不处理 (chkDisabled = true) 的父节点的子节点的 bug *2015.12.04* v3.5.19.3 * [修改] 为避免定位节点时抢焦点, 使用 scrollIntoView 方法替换之前的 focus 方法(对于IE6等旧浏览器仍然使用 focus方法) *2015.11.15* v3.5.19.2 * [增加] 给节点名称的 span 标签增加 class,便于用户设置 css *2015.10.26* v3.5.19.1 * [修改] addNodes 新方法 导致 拖拽节点时报错 * [增加] treeNode.getIndex 方法,可以快速获取 节点在 子节点中的位置 * [增加] treeNode.getPath 方法,可以快速获取 节点的所有父节点 *2015.10.22* v3.5.19 * [修改] addNodes 方法支持直接添加新节点到任意位置 addNodes(parentNode, index, newNodes, isSilent) * [修改] selectstart 事件未解绑导致的内存泄漏 *2015.08.26* v3.5.18 * [修改] onSelected/onUnSelected 回调参数,由 (event, treeId, node) 修改为 (treeId, node);另外 删除 已选择的节点时,也会触发 onUnSelected 回调 * [增加] Allow nodes to specify their own icon using an 'icon' property of the 'setting.data.key' * [增加] metro 风格 demo * [增加] awesome 风格 demo * [增加] 回调 onSelected / onUnSelected *2015.02.15* v3.5.17 * [修改] excheck 扩展中 removeClass 与 jQueryUI 1.9 冲突的问题,目前放弃 removeClass 方法 * [修改] 优化 exhide 扩展包初始化效率,避免数据多时 ie8 假死的 bug(感谢:https://github.com/sarxos) * [修改] 若干 Demo & API 的小错误 * [修改] 异步加载 低版本 IE 缓存严重的问题 * [修改] 在 onRename 回调中使用 updateNode 方法无效的问题 *2014.03.09* v3.5.16 * [增加] onDragMove 回调,便于控制 zTree 节点与其他 DOM 的拖拽操作。(感谢 yumi301) * [增加] 针对 Mac 系统 Cmd 键的支持, Cmd 键 + 左键 也可以多选节点 * [修改] 使用 destory 方法销毁树以后,依然可以从 getZTreeObj 方法中获取到 zTree 对象的 bug。 * [修改] onCheck 回调的 event,恢复为 zTree 自身的 event 事件,同时利用 srcEvent 传递原始 event 对象。(感谢 yumi301) * [修改] 拖拽多个节点时,超出 maxShowNodeNum 设置个数的节点会失去 被选择状态的 bug * [修改] excheck & exedit 扩展包的 zTree 方法中 setting 数据错误导致 checkNode、updateNode 等方法操作 radio 失效的 bug * [修改] 不加载 exedit 扩展包时,使用 removeNode 方法无法触发 beforeRemove 和 onRemove 回调的 bug *2013.10.19* v3.5.15 * [增加] setting.view.txtSelectedEnable 属性,满足部分项目中客户对于可以选择节点文本信息的强烈欲望。 * [修改] exhide 扩展包导致操作子节点后 isLastNode 属性异常 的bug * [修改] 使用 cancelEditName 方法时,beforeRename & onRename 的 isCancel 始终为 false 的bug * [修改] 编辑状态, beforeRename 回调 return false 时,提示信息导致 input 失去焦点后, 当树再次得到焦点时,让 input 自动获取焦点 * [修改] 判断拖拽到节点的 标签中自定义的无 id 组件判断错误的bug * [修改] async_edit.html demo 中 添加按钮 显示的 bug * [修改] 当没有开启异步加载模式下,对于没有子节点的父节点,即使设置 open=true 在初始化时也不会设置为展开状态的bug (对于异步加载模式下依然会强行设置为折叠状态) *2013.06.28* v3.5.14 * [修改] 拖拽节点时 iframe 遮罩异常的bug * [修改] 清空子节点后重新添加子节点无法显示的bug *2013.06.02* v3.5.13 * [增加] beforeRename & onRename 增加 isCancel 参数,可以监控用户 ESC 取消编辑的事件 * [修改] 初始化时 radioType="all", 父节点未展开 且 子节点有被勾选,点击其他 radio 时,不会取消勾选该子节点的bug * [修改] 多棵树拖拽时,拖拽无效后会导致目标书已选择的节点清空的 bug。 * [修改] 多棵树拖拽时,会触发 addHoverDom 的bug。 * [修改] 多棵树拖拽时,由于 beforeDrog 或 prev / inner / next 返回 false 后未触发原始节点的 addHoverDom 的bug * [修改] 异步加载时,对于未加载子节点的父节点使用 expandNode 方法时, sonSign 设置为 true后,导致异步加载的节点无法正常显示的bug * [修改] 一次性加载全部数据,如果父节点 A 未展开,但下一级的父节点 A1 设置了 open=true 的时候,使用 expandAll 方法导致 A1 的下一级父节点出现重复的 bug * [修改] 增加对 iframe 的支持,可以只在主页面加载 zTree 的 js,在 iframe 内创建树 [https://github.com/zTree/zTree_v3/issues/7 Issue Info] * [修改] 引入 exhide 扩展包 导致页面上同时加载多棵树时,根节点 的 连接线图标出现异常 的 bug [http://tieba.baidu.com/p/2277416574] * [修改] excheck & exedit 扩展包中事件代理获取节点 tId 的方法,保证适当修改 DOM 结构也能得到 tId *2013.03.11* v3.5.12 * [修改] 由于 jquery 1.9 中移除 event.srcElement 导致的 js 报错的bug。 * [修改] 在异步加载模式下,使用 moveNode 方法,且 moveType != "inner" 时,也会导致 targetNode 自动加载子节点的 bug * [修改] 对已经显示的节点(nocheck=true)使用 showNodes 或 showNode 方法后,导致勾选框出现的bug。 * [修改] 对已经隐藏的节点(nocheck=false)使用 hideNodes 或 hideNode 方法后,导致勾选框消失的bug。 * [修改] getNodesByParamFuzzy 支持 大小写模糊。 * [修改] className 结构,提取 _consts.className.BUTTON / LEVEL / ICO_LOADING / SWITCH,便于快速修改 css 冲突。 例如:与 WordPress 产生冲突后,直接修改 core 中的 "button" 和 "level" 即可。 Issue: https://github.com/zTree/zTree_v3/issues/2 *2013.01.28* v3.5.02 * [增加] setting.check.chkDisabledInherit 属性,用于设置 chkDisabled 在初始化时子节点是否可以继承父节点的 chkDisabled 属性 * [删除] 内部 noSel 方法,使用 selectstart事件 和 "-moz-user-select"样式 处理禁止 节点文字被选择的功能 * [修改] 不兼容 jQuery 1.9 的bug * [修改] onDrop 的触发规则,保证异步加载模式下,可以在延迟加载结束后触发,避免 onDrop 中被拖拽的节点是已经更新后的数据。 * [修改] setChkDisabled 方法,增加 inheritParent, inheritChildren 参数设置是否让父子节点继承 disabled * [修改] 异步加载时 拼接参数的方法,由 string 修改为 json 对象 * [修正] 1-2-3 3级节点时,如果 2级节点 全部设置为 nocheck 或 chkDisabled后,勾选3级节点时,1级节点的半勾选状态错误的 bug * [修改] Demo: checkbox_nocheck.html & checkbox_chkDisabled.html; * [修改] Demo: edit_super.html,增加 showRenameBtn & showRemoveBtn 的演示 * [修改] Demo: asyncForAll, 将 post 修改为 get;为了避免由于 IE10 的 bug 造成的客户端 以及 服务端崩溃 IE10 ajax Post 无法提交参数的bug (http://bugs.jquery.com/ticket/12790) *2012.12.21* v3.5.01 * [优化] clone 方法 * [修正] 对于初始化无 children 属性的父节点进行 reAsyncChildNodes 操作时出错的 bug * [修正] beforeRename 回调中使用 cancelEditName 方法后,再 return false 导致无法重新进行编辑的 bug * [修正] exedit 扩展包让 setting.data.key.url 失效的 bug * [修正] setting.check.autoCheckTrigger 设置为 true 时,onCheck 回调缺少 event 参数的 bug * [修正] singlepath.html Demo 中的 bug *2012.11.20* v3.5 * [优化] 原先的 clone 方法 (特别感谢:愚人码头) * [修改] 隐藏父节点后,使用 expandAll 方法导致 父节点展开的 bug * [修改] 使用 jQuery v1.7 以上时,设置 zTree 容器 ul 隐藏(visibility: hidden;)后, 调用 selectNode 导致 IE 浏览器报错 Can't move focus 的 bug * [修改] 正在异步加载时,执行 destory 或 init 方法后,异步加载的节点影响新树的 bug * [修改] 方法 reAsyncChildNodes 在 refresh 的时候未清空内部 cache 导致内存泄露 的 bug * [修改] 批量节点拖拽到其他父节点内(inner)时,导致顺序反转 的 bug * [修改] 对于 使用 html格式的 节点无法触发 双击事件 的 bug * [修改] onCheck 回调中的 event ,保证与触发事件中的 event 一致 * [修改] 异步加载时,在 onNodeCreated 中执行 selectNode 后,导致节点折叠的 bug * [修改] API 中 dataFilter 的参数名称 childNodes -> responseData * [修改] API 中 iconSkin 的 举例内容 * [修改] API 中 chkDisabled 的说明 * [修改] Demo 中 index.html 内的 loadReady 重复绑定问题 *2012.09.03* v3.4 * [增加] Demo —— OutLook 样式的左侧菜单 * [增加] 清空 zTree 的方法 $.fn.zTree.destory(treeId) & zTree.destory() * [修改] core核心文件内 _eventProxy 方法中获取 tId 的方法,提高 DOM 的灵活性 * [修改] 初始化时 多层父节点的 checkbox 半选状态计算错误的 bug * [修改] 同时选中父、子节点后,利用 getSelectedNodes 获取选中节点并利用 removeNode 删除时报错的 bug * [修改] treeNode.chkDisabled / nocheck 属性,支持字符串格式的 "false"/"true" * [修改] 异步加载模式下无法利用 server 返回 xml 并且 在 dataFilter 中继续处理的 bug * [修改] title 只允许设置为 string 类型值的问题。 修正后允许设置为 number 类型的值 * [修改] zId 计数规则 & Cache 保存,减少 IE9 的 bug 造成的内存泄漏 * [修改] API 页面搜索功能导致 IE 崩溃的 bug *2012.07.16* v3.3 * [增加] 扩展库 exhide -- 节点隐藏功能 * [修改] getNodesByFilter 方法,添加 invokeParam 自定义参数 * [修改] 拖拽中测试代码未删除,导致出现黄颜色的 iframe 遮罩层的 bug * [修改] 延迟加载方法 对于使用 expandAll 进行全部展开时,导致 onNodeCreated 回调 和 addDiyDom 方法触发过早的 bug * [修改] 使用 moveNode 移动尚未生成 DOM 的节点时,视图会出现异常的 bug * [修改] 删除节点后,相关节点的 isFirstNode 属性未重置的 bug * [修改] getPreNode(),getNextNode() 方法在对于特殊情况时计算错误的 bug * [修改] 设置 title 之后,如果重新将 title 内容设置为空后,会导致无法更新 title 的 bug * [修改] 针对 setting.check.chkStyle=="radio" && setting.check.radioType=="all" 的情况时,getTreeCheckedNodes方法优化,找到一个结果就 break * [修改] zTreeObj.getCheckedNodes(false) 在 radioType = "all" 时计算错误的 bug * [修改] 完善 API 中 beforeDrop / onDrop 的关于 treeId 的说明 *2012.05.13* v3.2 * [增加] setting.data.key.url 允许修改 treeNode.url 属性 * [增加] getNodesByFilter(filter, isSingle) 方法 * [增加] "与其他 DOM 拖拽互动" 的 Demo (http://www.treejs.cn/v3/demo.php#_511) * [增加] "异步加载模式下全部展开" 的 Demo (http://www.treejs.cn/v3/demo.php#_512) * [修改] 代码结构,将 addNodes、removeNode、removeChildNodes 方法 和 beforeRemove、onRemove 回调 转移到 core 内 * [修改] IE7的环境下无子节点的父节点反复展开出现多余空行的 bug * [修改] 异步加载时,如果出现网络异常等,会导致 图标显示错误的 bug * [修改] dataFilter中 return null 导致异常 的 bug * [修改] removeChildNodes 方法清空子节点后,无法正常添加节点的 bug * [修改] moveNode 后节点中的自定义元素的事件丢失的 bug * [修改] moveNode 方法中设置 isSilent = true 时,如果移动到已展开的 父节点后,出现异常的 bug * [修改] onClick/onDrag/onDrop 回调中 event 不是原始 event 的 bug * [修改] onDrop 回调中 当拖拽无效时,无法获得 treeNodes 的 bug * [修改] onDrop 无法判断拖拽是 移动还是复制的问题 * [修改] 未开启异步加载模式时,拖拽节点到子节点为空的父节点内时 出现异常 的 bug * [修改] 拖拽过程中,反复在 父节点图标上划动时,会出现停顿的 bug (需要css 结构—— button -> span.button) * [修改] 拖拽操作时箭头 与 targetNode 背景之间的细节现实问题,便于用户拖拽时更容易区分 prev、next 和 inner 操作 * [修改] 拖拽操作时IE6/7 下 在 节点 右侧 10px 内会导致 targetNode = root 的 bug * [修改] 编辑模式下 默认的编辑按钮、删除按钮点击后,如果相应的 before 回调 return false 时会触发 onClick 回调的 bug *2012.02.14* v3.1 * [增加] ajax 的参数 setting.async.contentType ,让提交参数适用于 json 数据提交 (主要适用于 .Net 的开发)。 * [增加] setting.edit.editNameSelectAll, 用于设定编辑节点名称时初次显示 input 后 text 内容为全选 * [修改] 异步加载 规则,不再仅仅依靠父节点的子节点数来判定,增加内部属性 zAsync,保证默认状态下父节点及时无子节点也只能异步加载一次,除非使用 reAsyncChildNodes 方法强行控制异步加载。 * [修改] 放大浏览器后导致 界面出现多余连接线的bug (需要更新:icon 图标和 css ) * [修改] 在编辑状态,如果节点名超过编辑框宽度,左右键在框内不起作用的bug(IE 6 7 8 出现) CSS 中 filter:alpha(opacity=80) 造成的,应该是 ie 的 bug,需要更新 css 文件 * [修改] title 设置后,如果属性不存在,则默认为 title 为空,便于数据容错和用户灵活使用 * [修改] editName 方法如果针对尚未展开的 父节点,会导致该父节点自动展开的 bug * [修改] title 中存在标签时导致 title 显示异常的bug(例如:蓝色字22%"'``) *2012.01.10* v3.0 * [增加] setting.check.autoCheckTrigger 默认值 false,可以设置联动选中时是否触发事件回调函数 * [增加] setting.callback.beforeEditName 回调函数,以保证用户可以捕获点击编辑按钮的事件 * [增加] treeNode.chkDisabled 属性,显示 checkbox 但是用户无法修改 checkbox 状态,并且该 checkbox 会影响父节点的 checkbox 的半选状态 * [增加] setting.check.nocheckInherit 属性,用户设置子节点继承 nocheck 属性,用于批量初始化节点,不适用于已经显示的节点 * [增加] setting.edit.drag.autoExpandTrigger 默认值 false,可以设置自动展开、折叠操作时是否触发事件回调函数 * [增加] setting.view.nameIsHTML 默认值 false,允许用户对 name 设置 DOM 对象 * [增加] treeNode.click 属性的说明文档 * [增加] treeObj.setChkDisabled 方法用于设置 checkbox / radio disabled 状态 * [增加] treeNode.halfCheck 属性,用于强制设定节点的半选状态 * [修改] 异步加载 & 编辑功能 共存时,拖拽节点 或 增加节点 导致 ie 上报错的 bug (apply 方法引起) * [修改] zTreeStyle 样式冲突 * [修改] setting.data.key.title 默认值设置为 "",初始化时自动赋值为 setting.data.key.name 这样可避免希望 title 与 name 一致的用户反复设置参数 * [修改] 点击叶子节点的连接线会触发 expand 事件的 bug * [修改] IE 下 点击叶子节点连线会出现虚线框的 bug * [修改] updateNode 导致 checkbox 半选状态错误的 bug * [修改] checkNode 方法实现 toggle 操作, 取消 expandAll 方法的 toggle 操作 * [修改] zTree 内鼠标移动会抢页面上 input 内的焦点的 bug * [修改] beforeRename / onRename 的触发方式——即使名称内容未改变也会触发,便于用户配合 beforeEditName 捕获编辑状态的结束,赋予用户更多调整规则的权利 * [修改] 与 easyUI 共存时无法拖拽的bug * [修改] beforeRename 在 Firefox 下如果利用 alert,会触发两次的 bug * [修改] checkNode/expandNode/removeNode 方法,默认不触发回调函数,恢复 v2.6 的默认状态,同时增加 callbackFlag 参数,设置为 true 时,可以触发回调函数 * [修改] IE9下“根据参数查找节点”的Demo 报错:行14 重新声明常量属性(Demo 自身的问题,定义了history变量) * [修改] 初始化 zTree 时 onNodeCreated 事件回调函数中无法 用 getZTreeObj 获取 zTree 对象的 bug * [修改] setting.edit.drag.prev / next / inner 参数,增加被拖拽的节点集合 * [修改] 异步加载模式下,otherParam 使用Array数组会出错的 bug。例如: ["id", "1", "name", "test"] * [修改] FireFox 下多棵树拖拽异常的 bug * [修改] exedit 中调用 excheck库的方法时没有进行容错处理,导致如果只加入 exedit 而没有 excheck的时候,会出现 js 错误 * [修改] 显示 checkbox 的 zTree 在编辑模式下,移动节点不会更新父节点半选状态的 bug * [修改] treeNode.childs --> children; treeObject.removeChilds --> removeChildNodes; setting.data.key.childs --> children(英文不好惹的祸!抱歉了!) * [修改] onRemove 回调中得到的 treeNode 还可以查找 preNode、nextNode 的bug。 修正后,getPreNode 和 getNextNode 都返回 null; 为了便于查找父节点,getParentNode 仍保留 * [修改] 简单数据模式下,如果 id 与 pId 的值相同会导致该节点无法正常加载的 bug * [修改] 移动或删除中间节点会导致最后一个节点连接线图标变小的 bug *2011.09.05* v3.0 beta * [修改] zTree 的 js 代码架构全面修改,并且拆分 * [修改] zTree 的 css 样式全面修改,对浏览器可以更好地兼容,同时解决了以前1个像素差的问题 * [优化] 采用延迟加载技术,一次性加载大数据量的节点性能飞速提升 * [增加] 支持多节点同时选中、拖拽 * [增加] checkNode、checkAllNodes 等多种方法 * [增加] IE6 自动取消动画展开、折叠的功能 * [修正] 异步加载 & 编辑模式 能够更完美的共存 * [修正] setting 配置更加合理,并且增加了若干项配置参数 * [修正] treeNode 节点数据的属性更加合理,并且增加了一些方法 * [修正] 拖拽操作更加灵活方便,更容易制定自己的规则 * [修正] 其他若干修改,详细对比请参考 url:[http://www.treejs.cn/v3/faq.php#_101 zTree v3.0 常见问题] ================================================ FILE: pages/map/map1.html ================================================ 柱状图
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/map/map2.html ================================================ 折线图
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/map/map3.html ================================================ 折线堆叠图
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/map/map4.html ================================================ 饼图
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/map/map5.html ================================================ 环形图
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/map/map6.html ================================================ 热力图
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/member/permission-add.html ================================================ 添加权限
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/member/permission-edit.html ================================================ 添加权限
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/member/permission.html ================================================ 权限列表
                                                                                                                                                                                                                                                                                                                            共有数据:
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/member/role-add.html ================================================ 添加角色
                                                                                                                                                                                                                                                                                                                            ================================================ FILE: pages/member/role-edit.html ================================================ 编辑角色
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/member/role.html ================================================ 角色列表 ================================================ FILE: pages/member/user-add.html ================================================ 添加用户
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/member/user-center.html ================================================ 个人中心
                                                                                                                                                                                                                                                                                                                              设置我的资料
                                                                                                                                                                                                                                                                                                                              用户名不可进行修改
                                                                                                                                                                                                                                                                                                                              图片最大为100KB
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/member/user-edit.html ================================================ 编辑用户
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/member/user-info.html ================================================ user-info

                                                                                                                                                                                                                                                                                                                              user-info

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/member/user-notify.html ================================================ 消息中心
                                                                                                                                                                                                                                                                                                                              • 全部消息
                                                                                                                                                                                                                                                                                                                              • 通知6
                                                                                                                                                                                                                                                                                                                              • 私信
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/member/user-pwd.html ================================================ 修改密码
                                                                                                                                                                                                                                                                                                                              修改我的密码
                                                                                                                                                                                                                                                                                                                              6到16个字符
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/member/user.html ================================================ 用户列表 ================================================ FILE: pages/often/article-add.html ================================================ 添加文章
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/often/article-edit.html ================================================ 编辑文章
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/often/article.html ================================================ 文章列表 ================================================ FILE: pages/often/download.html ================================================ 下载列表

                                                                                                                                                                                                                                                                                                                              下载列表

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/often/image.html ================================================ 图片列表 ================================================ FILE: pages/often/link.html ================================================ 链接列表

                                                                                                                                                                                                                                                                                                                              链接列表

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/often/message.html ================================================ 留言列表 ================================================ FILE: pages/often/process.html ================================================ Title

                                                                                                                                                                                                                                                                                                                              流程列表

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/often/product.html ================================================ 产品列表

                                                                                                                                                                                                                                                                                                                              产品列表

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/other/403.html ================================================ 403

                                                                                                                                                                                                                                                                                                                              哦豁,403错误!

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/other/404.html ================================================ 404

                                                                                                                                                                                                                                                                                                                              哦豁,404错误!

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/other/500.html ================================================ 500

                                                                                                                                                                                                                                                                                                                              哦豁,500错误!

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/other/donate.html ================================================ 捐赠页面
                                                                                                                                                                                                                                                                                                                              ID 用户 金额 时间 渠道
                                                                                                                                                                                                                                                                                                                              001 *明 ¥3.80 2018-07-16
                                                                                                                                                                                                                                                                                                                              002 *东 ¥6.80 2018-08-05
                                                                                                                                                                                                                                                                                                                              003 ** ¥0.01 2018-08-08
                                                                                                                                                                                                                                                                                                                              004 *棣 ¥8.80 2018-08-09
                                                                                                                                                                                                                                                                                                                              005 ** ¥0.01 2018-08-11
                                                                                                                                                                                                                                                                                                                              006 *你 ¥1.00 2018-08-22
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/other/login.html ================================================ ok-admin v1.0 | 很赞的后台模版 ================================================ FILE: pages/system/alertSkin.html ================================================ 编辑用户
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/system/system-log-detail.html ================================================ 日志详情

                                                                                                                                                                                                                                                                                                                              日志详情

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/system/system-log.html ================================================ 系统日志 ================================================ FILE: pages/system/system-setting.html ================================================ ================================================ FILE: pages/system/system-shield.html ================================================ 屏蔽词

                                                                                                                                                                                                                                                                                                                              屏蔽词

                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/test/okLayer.html ================================================ okLayer测试 ================================================ FILE: pages/test/okProgress.html ================================================ okProgress测试 ================================================ FILE: pages/test/okutils.html ================================================ okutils测试 ================================================ FILE: pages/use/demo.html ================================================ demo ================================================ FILE: pages/use/use-okLayer.html ================================================ okLayer使用

                                                                                                                                                                                                                                                                                                                              okLayer.tableCheck()
                                                                                                                                                                                                                                                                                                                              // 对表格进行批量操作时的预检查
                                                                                                                                                                                                                                                                                                                              okLayer.tableCheck(table)
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              okLayer.tableOperationMsg()
                                                                                                                                                                                                                                                                                                                              // 对表格操作后的提示信息
                                                                                                                                                                                                                                                                                                                              okLayer.tableOperationMsg("批量启用成功");
                                                                                                                                                                                                                                                                                                                              okLayer.tableOperationMsg("批量停用成功");
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              okLayer.confirm()
                                                                                                                                                                                                                                                                                                                              okLayer.confirm("确定要批量删除吗?", function (index) {
                                                                                                                                                                                                                                                                                                                                  layer.close(index);
                                                                                                                                                                                                                                                                                                                                  // 代码逻辑
                                                                                                                                                                                                                                                                                                                              });
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              okLayer.open()
                                                                                                                                                                                                                                                                                                                              /**
                                                                                                                                                                                                                                                                                                                               * 弹窗打开窗口页面
                                                                                                                                                                                                                                                                                                                               * @param title 标题
                                                                                                                                                                                                                                                                                                                               * @param content 内容url
                                                                                                                                                                                                                                                                                                                               * @param width 弹窗宽度
                                                                                                                                                                                                                                                                                                                               * @param height 弹窗高度
                                                                                                                                                                                                                                                                                                                               * @param successFunction 弹出后回调函数
                                                                                                                                                                                                                                                                                                                               * @param endFunction 销毁后回调函数
                                                                                                                                                                                                                                                                                                                               */
                                                                                                                                                                                                                                                                                                                              okLayer.open("添加用户", "user-add.html", "90%", "90%", function(layero, index) {}, function() {})
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/use/use-okMenu.html ================================================ okMenu使用

                                                                                                                                                                                                                                                                                                                              菜单树json串
                                                                                                                                                                                                                                                                                                                              {
                                                                                                                                                                                                                                                                                                                                "status": 1000,
                                                                                                                                                                                                                                                                                                                                "msg": "操作成功",
                                                                                                                                                                                                                                                                                                                                "data": {
                                                                                                                                                                                                                                                                                                                                    "title": "多级菜单",
                                                                                                                                                                                                                                                                                                                                    "path": "",
                                                                                                                                                                                                                                                                                                                                    "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                    "icon": "",
                                                                                                                                                                                                                                                                                                                                    "spread": false,
                                                                                                                                                                                                                                                                                                                                    "children": [
                                                                                                                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                                                                                                                        "title": "购物网站",
                                                                                                                                                                                                                                                                                                                                        "path": "",
                                                                                                                                                                                                                                                                                                                                        "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                        "icon": "",
                                                                                                                                                                                                                                                                                                                                        "spread": false,
                                                                                                                                                                                                                                                                                                                                        "children": [
                                                                                                                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                                                                                                                            "title": "苏宁",
                                                                                                                                                                                                                                                                                                                                            "path": "https://www.suning.com",
                                                                                                                                                                                                                                                                                                                                            "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                            "icon": "",
                                                                                                                                                                                                                                                                                                                                            "spread": false
                                                                                                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                                                                                                                            "title": "京东",
                                                                                                                                                                                                                                                                                                                                            "path": "https://www.jd.com",
                                                                                                                                                                                                                                                                                                                                            "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                            "icon": "",
                                                                                                                                                                                                                                                                                                                                            "spread": false
                                                                                                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                                                                                                                            "title": "阿里",
                                                                                                                                                                                                                                                                                                                                            "path": "",
                                                                                                                                                                                                                                                                                                                                            "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                            "icon": "",
                                                                                                                                                                                                                                                                                                                                            "spread": false,
                                                                                                                                                                                                                                                                                                                                            "children": [
                                                                                                                                                                                                                                                                                                                                              {
                                                                                                                                                                                                                                                                                                                                                "title": "淘宝",
                                                                                                                                                                                                                                                                                                                                                "path": "https://www.taobao.com",
                                                                                                                                                                                                                                                                                                                                                "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                                "icon": "",
                                                                                                                                                                                                                                                                                                                                                "spread": false
                                                                                                                                                                                                                                                                                                                                              },
                                                                                                                                                                                                                                                                                                                                              {
                                                                                                                                                                                                                                                                                                                                                "title": "天猫",
                                                                                                                                                                                                                                                                                                                                                "path": "https://www.tmall.com",
                                                                                                                                                                                                                                                                                                                                                "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                                "icon": "",
                                                                                                                                                                                                                                                                                                                                                "spread": false
                                                                                                                                                                                                                                                                                                                                              },
                                                                                                                                                                                                                                                                                                                                              {
                                                                                                                                                                                                                                                                                                                                                "title": "聚划算",
                                                                                                                                                                                                                                                                                                                                                "path": "https://ju.taobao.com",
                                                                                                                                                                                                                                                                                                                                                "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                                "icon": "",
                                                                                                                                                                                                                                                                                                                                                "spread": false
                                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                                            ]
                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                        ]
                                                                                                                                                                                                                                                                                                                                      },
                                                                                                                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                                                                                                                        "title": "新浪微博",
                                                                                                                                                                                                                                                                                                                                        "path": "https://www.sina.com.cn",
                                                                                                                                                                                                                                                                                                                                        "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                        "icon": "",
                                                                                                                                                                                                                                                                                                                                        "spread": false
                                                                                                                                                                                                                                                                                                                                      },
                                                                                                                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                                                                                                                        "title": "搜索引擎",
                                                                                                                                                                                                                                                                                                                                        "path": "",
                                                                                                                                                                                                                                                                                                                                        "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                        "icon": "",
                                                                                                                                                                                                                                                                                                                                        "spread": false,
                                                                                                                                                                                                                                                                                                                                        "children": [
                                                                                                                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                                                                                                                            "title": "百度",
                                                                                                                                                                                                                                                                                                                                            "path": "https://www.baidu.com",
                                                                                                                                                                                                                                                                                                                                            "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                            "icon": "",
                                                                                                                                                                                                                                                                                                                                            "spread": false
                                                                                                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                                                                                                                            "title": "谷歌",
                                                                                                                                                                                                                                                                                                                                            "path": "https://www.google.com",
                                                                                                                                                                                                                                                                                                                                            "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                            "icon": "",
                                                                                                                                                                                                                                                                                                                                            "spread": false
                                                                                                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                                                                                                                            "title": "360搜索",
                                                                                                                                                                                                                                                                                                                                            "path": "https://www.so.com",
                                                                                                                                                                                                                                                                                                                                            "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                            "icon": "",
                                                                                                                                                                                                                                                                                                                                            "spread": false
                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                        ]
                                                                                                                                                                                                                                                                                                                                      },
                                                                                                                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                                                                                                                        "title": "搜狐",
                                                                                                                                                                                                                                                                                                                                        "path": "http://www.sohu.com",
                                                                                                                                                                                                                                                                                                                                        "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                        "icon": "",
                                                                                                                                                                                                                                                                                                                                        "spread": false
                                                                                                                                                                                                                                                                                                                                      },
                                                                                                                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                                                                                                                        "title": "网易",
                                                                                                                                                                                                                                                                                                                                        "path": "https://www.163.com",
                                                                                                                                                                                                                                                                                                                                        "font": "layui-icon",
                                                                                                                                                                                                                                                                                                                                        "icon": "",
                                                                                                                                                                                                                                                                                                                                        "spread": false
                                                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                                                    ]
                                                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              调用生成菜单树
                                                                                                                                                                                                                                                                                                                              // 生成左侧菜单树
                                                                                                                                                                                                                                                                                                                              okMenu.generatorMenu("data/menu.json", "get");
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/use/use-okTab-sub.html ================================================ 子页面

                                                                                                                                                                                                                                                                                                                              使用方法1:用按钮点击打开
                                                                                                                                                                                                                                                                                                                              /**
                                                                                                                                                                                                                                                                                                                               * 添加tab
                                                                                                                                                                                                                                                                                                                               * @param title 标题
                                                                                                                                                                                                                                                                                                                               * @param path 路径
                                                                                                                                                                                                                                                                                                                               */
                                                                                                                                                                                                                                                                                                                              okTab.tabAdd("ok-tool", "http://www.xlbweb.cn")
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/use/use-okTab.html ================================================ okTab使用

                                                                                                                                                                                                                                                                                                                              使用方法1:在index.html左侧中添加
                                                                                                                                                                                                                                                                                                                            • XX管理
                                                                                                                                                                                                                                                                                                                              xx列表
                                                                                                                                                                                                                                                                                                                            • 使用方法2:在index.html顶部中添加
                                                                                                                                                                                                                                                                                                                              个人中心
                                                                                                                                                                                                                                                                                                                              基本资料
                                                                                                                                                                                                                                                                                                                              安全设置
                                                                                                                                                                                                                                                                                                                              锁定账户
                                                                                                                                                                                                                                                                                                                              使用方法3:用按钮点击打开
                                                                                                                                                                                                                                                                                                                              /**
                                                                                                                                                                                                                                                                                                                               * 添加tab
                                                                                                                                                                                                                                                                                                                               * @param title 标题
                                                                                                                                                                                                                                                                                                                               * @param path 路径
                                                                                                                                                                                                                                                                                                                               */
                                                                                                                                                                                                                                                                                                                              okTab.tabAdd("ok-tool", "http://www.xlbweb.cn")
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/use/use-okUtils.html ================================================ okUtils使用

                                                                                                                                                                                                                                                                                                                              okUtils.ajax()
                                                                                                                                                                                                                                                                                                                              /**
                                                                                                                                                                                                                                                                                                                               * 弹窗打开窗口页面
                                                                                                                                                                                                                                                                                                                               * @param url 请求url
                                                                                                                                                                                                                                                                                                                               * @param type 请求类型
                                                                                                                                                                                                                                                                                                                               * @param param 请求参数
                                                                                                                                                                                                                                                                                                                               */
                                                                                                                                                                                                                                                                                                                              okUtils.ajax("/user/batchDel", "post", {idsStr: idsStr}).done(function (response) {
                                                                                                                                                                                                                                                                                                                                  console.log(response)
                                                                                                                                                                                                                                                                                                                                  okLayer.tableOperationMsg("批量删除成功");
                                                                                                                                                                                                                                                                                                                              }).fail(function (error) {
                                                                                                                                                                                                                                                                                                                                  console.log(error)
                                                                                                                                                                                                                                                                                                                              });
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              okUtils.table.xxx()
                                                                                                                                                                                                                                                                                                                              // 做批量操作时,table行数据检查
                                                                                                                                                                                                                                                                                                                              okUtils.table.batchCheck(table)
                                                                                                                                                                                                                                                                                                                              // table页面操作执行成功后的提示
                                                                                                                                                                                                                                                                                                                              okUtils.table.successMsg()
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              okUtils.isNum()
                                                                                                                                                                                                                                                                                                                              // 判断是否为一个正常的数字
                                                                                                                                                                                                                                                                                                                              okUtils.isNum()
                                                                                                                                                                                                                                                                                                                              // 判断一个数字是否包括在某个范围
                                                                                                                                                                                                                                                                                                                              okUtils.isNum(num, begin, end)
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              okUtils.date.xxx()
                                                                                                                                                                                                                                                                                                                              // 格式化日期时间
                                                                                                                                                                                                                                                                                                                              okUtils.dateFormat(date, fmt)
                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/use/use-tab.html ================================================ Tab使用

                                                                                                                                                                                                                                                                                                                              使用方法1:在index.html左侧中添加
                                                                                                                                                                                                                                                                                                                            • XX管理
                                                                                                                                                                                                                                                                                                                              // tab-id不可和其它菜单重复
                                                                                                                                                                                                                                                                                                                              xx列表
                                                                                                                                                                                                                                                                                                                            • 使用方法2:在index.html顶部中添加
                                                                                                                                                                                                                                                                                                                              个人中心
                                                                                                                                                                                                                                                                                                                              基本资料
                                                                                                                                                                                                                                                                                                                              安全设置
                                                                                                                                                                                                                                                                                                                              锁定账户
                                                                                                                                                                                                                                                                                                                              使用方法3:用按钮点击打开
                                                                                                                                                                                                                                                                                                                              /**
                                                                                                                                                                                                                                                                                                                               * 添加tab
                                                                                                                                                                                                                                                                                                                               * @param title 标题
                                                                                                                                                                                                                                                                                                                               * @param path 路径
                                                                                                                                                                                                                                                                                                                               * @param tabId tabId必须唯一
                                                                                                                                                                                                                                                                                                                               */
                                                                                                                                                                                                                                                                                                                              tabAdd("百度", "http://www.xlbweb.cn", "11-1")
                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                              ================================================ FILE: pages/welcome.html ================================================ ok-admin v1.0 | 很赞的后台模版
                                                                                                                                                                                                                                                                                                                              欢迎管理员:bobi!当前时间:
                                                                                                                                                                                                                                                                                                                              数据统计
                                                                                                                                                                                                                                                                                                                              100 用户总数
                                                                                                                                                                                                                                                                                                                              100 文章总数
                                                                                                                                                                                                                                                                                                                              100 评论总数
                                                                                                                                                                                                                                                                                                                              100 商品总数
                                                                                                                                                                                                                                                                                                                              100 角色总数
                                                                                                                                                                                                                                                                                                                              100 页面总数
                                                                                                                                                                                                                                                                                                                              系统基本参数
                                                                                                                                                                                                                                                                                                                              本机IP地址 1.1.1.1
                                                                                                                                                                                                                                                                                                                              ok-admin v1.0 服务器地址 http://ok-admin-v1.xlbweb.cn
                                                                                                                                                                                                                                                                                                                              ok-admin v2.0 服务器地址 http://ok-admin.xlbweb.cn
                                                                                                                                                                                                                                                                                                                              操作系统 CentOS
                                                                                                                                                                                                                                                                                                                              运行环境 JDK 1.8.0_171
                                                                                                                                                                                                                                                                                                                              数据库版本 MySQL 5.7
                                                                                                                                                                                                                                                                                                                              最大上传限制 5M
                                                                                                                                                                                                                                                                                                                              当前用户权限 超级管理员
                                                                                                                                                                                                                                                                                                                              剩余空间 888888M
                                                                                                                                                                                                                                                                                                                              作者信息
                                                                                                                                                                                                                                                                                                                              开发者 bobi - bobi1234@foxmail.com
                                                                                                                                                                                                                                                                                                                              下载地址1 Gitee     目前正在不间断迭代开发中,请大家多多 Star ,您的鼓励就是我开发的动力,O(∩_∩)O谢谢~
                                                                                                                                                                                                                                                                                                                              下载地址2 Github   目前正在不间断迭代开发中,请大家多多 Star ,您的鼓励就是我开发的动力,O(∩_∩)O谢谢~
                                                                                                                                                                                                                                                                                                                              更新日志
                                                                                                                                                                                                                                                                                                                              • 6月15日

                                                                                                                                                                                                                                                                                                                                ok-admin大体架构成型。
                                                                                                                                                                                                                                                                                                                                不枉近半个月日日夜夜与之为伴。
                                                                                                                                                                                                                                                                                                                                无论它能走多远,抑或如何支撑?至少我曾倾注全心,无怨无悔

                                                                                                                                                                                                                                                                                                                              • 5月13日

                                                                                                                                                                                                                                                                                                                                毕业答辩结束,至此感觉大学,就这样结束了。送两句话给自己:

                                                                                                                                                                                                                                                                                                                                • 但行好事 莫问前程
                                                                                                                                                                                                                                                                                                                                • 纵有疾风起 人生不言弃
                                                                                                                                                                                                                                                                                                                              • 5月4日

                                                                                                                                                                                                                                                                                                                                正在准备毕业答辩
                                                                                                                                                                                                                                                                                                                                常常在想,要是有一个满足我项目所有基础页面的CMS该多好
                                                                                                                                                                                                                                                                                                                                今天,初始化项目

                                                                                                                                                                                                                                                                                                                              • 过去