From 722ad719726720f2195a5b8c0e7cec4c4258987c Mon Sep 17 00:00:00 2001 From: dntzhang Date: Sat, 16 May 2020 13:10:39 +0800 Subject: [PATCH] publish(@omiu/tree) --- components/tree/package.json | 6 +- components/tree/scripts/rollup.config.iife.js | 38 ++ components/tree/scripts/rollup.config.js | 2 +- components/tree/scripts/rollup.end.js | 12 +- components/tree/src/index.esm.js | 2 +- components/tree/src/index.js | 447 +++++------------- components/tree/src/index.js.map | 2 +- 7 files changed, 170 insertions(+), 339 deletions(-) create mode 100644 components/tree/scripts/rollup.config.iife.js diff --git a/components/tree/package.json b/components/tree/package.json index 919581552..eefc2b637 100644 --- a/components/tree/package.json +++ b/components/tree/package.json @@ -1,6 +1,6 @@ { "name": "@omiu/tree", - "version": "0.0.5", + "version": "0.0.6", "description": "Components that show tree nested data structures.", "docsExtend": { "cnName": "树形控件", @@ -15,7 +15,7 @@ "scripts": { "docs": "node ./scripts/docs-gen.js", "start": "node ./scripts/webpack.build.js -- demo", - "build": "node ./scripts/webpack.build.js -- build && rollup -c scripts/rollup.config.js && node ./scripts/rollup.end.js" + "build": "rollup -c scripts/rollup.config.iife.js && rollup -c scripts/rollup.config.js && node ./scripts/rollup.end.js" }, "typings": "./dist/index.d.ts", "repository": { @@ -96,6 +96,8 @@ }, "dependencies": { "@omiu/common": "latest", + "babel-core": "^6.26.3", + "babel-preset-es2015": "^6.24.1", "omi": "latest" } } diff --git a/components/tree/scripts/rollup.config.iife.js b/components/tree/scripts/rollup.config.iife.js new file mode 100644 index 000000000..4e95c2dff --- /dev/null +++ b/components/tree/scripts/rollup.config.iife.js @@ -0,0 +1,38 @@ +import nodeResolve from "rollup-plugin-node-resolve"; + +import typescript from 'rollup-plugin-typescript'; +import scss from 'rollup-plugin-scss' +import commonjs from '@rollup/plugin-commonjs'; +const fs = require('fs') +const license = require("rollup-plugin-license"); +const pkg = require("../package.json"); +const licensePlugin = license({ + banner: `${pkg.name} v${pkg.version} http://omijs.org\r\nFront End Cross-Frameworks Framework.\r\nBy dntzhang https://github.com/dntzhang \r\n Github: https://github.com/Tencent/omi\r\n MIT Licensed.` +}); + +export default { + input: "src/index.tsx", + output: { + format: "iife", + file: "./src/index.js", + // name: pkg.name, + sourcemap: true, + strict: true + }, + plugins: [ + nodeResolve({ + main: true + }), + scss({ + //output: false, + output: function (styles, styleNodes) { + fs.writeFileSync('./src/index.css', styles) + }, + }), + typescript(), + commonjs(), + + licensePlugin + ], + external: ['omi'] +}; diff --git a/components/tree/scripts/rollup.config.js b/components/tree/scripts/rollup.config.js index 1829eeeb9..fda8654a5 100644 --- a/components/tree/scripts/rollup.config.js +++ b/components/tree/scripts/rollup.config.js @@ -21,7 +21,7 @@ export default { }, plugins: [ nodeResolve({ - main: true + main: true }), scss({ //output: false, diff --git a/components/tree/scripts/rollup.end.js b/components/tree/scripts/rollup.end.js index 14327af1a..90899517d 100644 --- a/components/tree/scripts/rollup.end.js +++ b/components/tree/scripts/rollup.end.js @@ -1,16 +1,24 @@ const fs = require('fs') const css = fs.readFileSync('./src/index.css') +const babel = require("babel-core"); -const js = fs.readFileSync('./src/index.esm.js', 'utf-8') +let js = fs.readFileSync('./src/index.esm.js', 'utf-8') fs.writeFileSync('./src/index.esm.js', -js.replace(`var css = /*#__PURE__*/Object.freeze({ + js.replace(`var css = /*#__PURE__*/Object.freeze({ __proto__: null });`, ` var css = \`${css}\` `) ) +js = fs.readFileSync('./src/index.js', 'utf-8') + +fs.writeFileSync('./src/index.js', js.replace(`var css = /*#__PURE__*/Object.freeze({ + __proto__: null + });`, babel.transform(`var css = \`${css.toString()}\``, { + presets: ['es2015'] +}).code)) diff --git a/components/tree/src/index.esm.js b/components/tree/src/index.esm.js index 7f1dc2648..70c2f0676 100644 --- a/components/tree/src/index.esm.js +++ b/components/tree/src/index.esm.js @@ -1,5 +1,5 @@ /** - * @omiu/tree v0.0.5 http://omijs.org + * @omiu/tree v0.0.6 http://omijs.org * Front End Cross-Frameworks Framework. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi diff --git a/components/tree/src/index.js b/components/tree/src/index.js index a3bf24dab..2289bf169 100644 --- a/components/tree/src/index.js +++ b/components/tree/src/index.js @@ -1,350 +1,133 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("omi")); - else if(typeof define === 'function' && define.amd) - define(["omi"], factory); - else if(typeof exports === 'object') - exports["OTree"] = factory(require("omi")); - else - root["OTree"] = factory(root["Omi"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_omi__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./src/index.tsx"); -/******/ }) -/************************************************************************/ -/******/ ({ +/** + * @omiu/tree v0.0.6 http://omijs.org + * Front End Cross-Frameworks Framework. + * By dntzhang https://github.com/dntzhang + * Github: https://github.com/Tencent/omi + * MIT Licensed. + */ -/***/ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.1@resolve-url-loader/index.js!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js?!./src/index.scss": -/*!****************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/_css-loader@1.0.1@css-loader!./node_modules/_resolve-url-loader@3.1.1@resolve-url-loader!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--4-3!./src/index.scss ***! - \****************************************************************************************************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +(function (omi) { + 'use strict'; -exports = module.exports = __webpack_require__(/*! ../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js")(false); -// imports + /*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. -// module -exports.push([module.i, ":host {\n display: block; }\n\n.o-fade-in-enter,\n.o-fade-in-leave-active,\n.o-fade-in-linear-enter,\n.o-fade-in-linear-leave,\n.o-fade-in-linear-leave-active,\n.fade-in-linear-enter,\n.fade-in-linear-leave,\n.fade-in-linear-leave-active {\n opacity: 0; }\n\n.o-checkbox,\n.o-checkbox__input {\n display: inline-block;\n position: relative; }\n\n.fade-in-linear-enter-active,\n.fade-in-linear-leave-active {\n -webkit-transition: opacity .2s linear;\n transition: opacity .2s linear; }\n\n.o-fade-in-linear-enter-active,\n.o-fade-in-linear-leave-active {\n -webkit-transition: opacity .2s linear;\n transition: opacity .2s linear; }\n\n.o-fade-in-enter-active,\n.o-fade-in-leave-active {\n -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\n\n.o-zoom-in-center-enter-active,\n.o-zoom-in-center-leave-active {\n -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\n\n.o-zoom-in-center-enter,\n.o-zoom-in-center-leave-active {\n opacity: 0;\n -webkit-transform: scaleX(0);\n transform: scaleX(0); }\n\n.o-zoom-in-top-enter-active,\n.o-zoom-in-top-leave-active {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n -webkit-transform-origin: center top;\n transform-origin: center top; }\n\n.o-zoom-in-top-enter,\n.o-zoom-in-top-leave-active {\n opacity: 0;\n -webkit-transform: scaleY(0);\n transform: scaleY(0); }\n\n.o-zoom-in-bottom-enter-active,\n.o-zoom-in-bottom-leave-active {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n -webkit-transform-origin: center bottom;\n transform-origin: center bottom; }\n\n.o-zoom-in-bottom-enter,\n.o-zoom-in-bottom-leave-active {\n opacity: 0;\n -webkit-transform: scaleY(0);\n transform: scaleY(0); }\n\n.o-zoom-in-left-enter-active,\n.o-zoom-in-left-leave-active {\n opacity: 1;\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n -webkit-transform-origin: top left;\n transform-origin: top left; }\n\n.o-zoom-in-left-enter,\n.o-zoom-in-left-leave-active {\n opacity: 0;\n -webkit-transform: scale(0.45, 0.45);\n transform: scale(0.45, 0.45); }\n\n.collapse-transition {\n -webkit-transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out;\n transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out; }\n\n.horizontal-collapse-transition {\n -webkit-transition: .3s width ease-in-out, .3s padding-left ease-in-out, .3s padding-right ease-in-out;\n transition: .3s width ease-in-out, .3s padding-left ease-in-out, .3s padding-right ease-in-out; }\n\n.o-list-enter-active,\n.o-list-leave-active {\n -webkit-transition: all 1s;\n transition: all 1s; }\n\n.o-list-enter,\n.o-list-leave-active {\n opacity: 0;\n -webkit-transform: translateY(-30px);\n transform: translateY(-30px); }\n\n.o-opacity-transition {\n -webkit-transition: opacity 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n transition: opacity 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\n\n.o-checkbox {\n color: #606266;\n font-weight: 500;\n font-size: 14px;\n cursor: pointer;\n white-space: nowrap;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n margin-right: 30px; }\n\n.o-checkbox.is-bordered {\n padding: 9px 20px 9px 10px;\n border-radius: 4px;\n border: 1px solid #DCDFE6;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n line-height: normal;\n height: 40px; }\n\n.o-checkbox.is-bordered.is-checked {\n border-color: #409EFF; }\n\n.o-checkbox.is-bordered.is-disabled {\n border-color: #EBEEF5;\n cursor: not-allowed; }\n\n.o-checkbox.is-bordered + .o-checkbox.is-bordered {\n margin-left: 10px; }\n\n.o-checkbox.is-bordered.o-checkbox--medium {\n padding: 7px 20px 7px 10px;\n border-radius: 4px;\n height: 36px; }\n\n.o-checkbox.is-bordered.o-checkbox--medium .o-checkbox__label {\n line-height: 17px;\n font-size: 14px; }\n\n.o-checkbox.is-bordered.o-checkbox--medium .o-checkbox__inner {\n height: 14px;\n width: 14px; }\n\n.o-checkbox.is-bordered.o-checkbox--small {\n padding: 5px 15px 5px 10px;\n border-radius: 3px;\n height: 32px; }\n\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__label {\n line-height: 15px;\n font-size: 12px; }\n\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__inner {\n height: 12px;\n width: 12px; }\n\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__inner::after {\n height: 6px;\n width: 2px; }\n\n.o-checkbox.is-bordered.o-checkbox--mini {\n padding: 3px 15px 3px 10px;\n border-radius: 3px;\n height: 28px; }\n\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__label {\n line-height: 12px;\n font-size: 12px; }\n\n.o-checkbox-button__inner,\n.o-checkbox__input {\n line-height: 1;\n vertical-align: middle;\n white-space: nowrap;\n outline: 0; }\n\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__inner {\n height: 12px;\n width: 12px; }\n\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__inner::after {\n height: 6px;\n width: 2px; }\n\n.o-checkbox__input {\n cursor: pointer; }\n\n.o-checkbox__input.is-disabled .o-checkbox__inner {\n background-color: #edf2fc;\n border-color: #DCDFE6;\n cursor: not-allowed; }\n\n.o-checkbox__input.is-disabled .o-checkbox__inner::after {\n cursor: not-allowed;\n border-color: #C0C4CC; }\n\n.o-checkbox__input.is-disabled .o-checkbox__inner + .o-checkbox__label {\n cursor: not-allowed; }\n\n.o-checkbox__input.is-disabled.is-checked .o-checkbox__inner {\n background-color: #F2F6FC;\n border-color: #DCDFE6; }\n\n.o-checkbox__input.is-disabled.is-checked .o-checkbox__inner::after {\n border-color: #C0C4CC; }\n\n.o-checkbox__input.is-disabled.is-indeterminate .o-checkbox__inner {\n background-color: #F2F6FC;\n border-color: #DCDFE6; }\n\n.o-checkbox__input.is-disabled.is-indeterminate .o-checkbox__inner::before {\n background-color: #C0C4CC;\n border-color: #C0C4CC; }\n\n.o-checkbox__input.is-checked .o-checkbox__inner,\n.o-checkbox__input.is-indeterminate .o-checkbox__inner {\n background-color: #409EFF;\n border-color: #409EFF; }\n\n.o-checkbox__input.is-disabled + span.o-checkbox__label {\n color: #C0C4CC;\n cursor: not-allowed; }\n\n.o-checkbox__input.is-checked .o-checkbox__inner::after {\n -webkit-transform: rotate(45deg) scaleY(1);\n transform: rotate(45deg) scaleY(1); }\n\n.o-checkbox__input.is-checked + .o-checkbox__label {\n color: #409EFF; }\n\n.o-checkbox__input.is-focus .o-checkbox__inner {\n border-color: #409EFF; }\n\n.o-checkbox__input.is-indeterminate .o-checkbox__inner::before {\n content: '';\n position: absolute;\n display: block;\n background-color: #FFF;\n height: 2px;\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n left: 0;\n right: 0;\n top: 5px; }\n\n.o-checkbox__input.is-indeterminate .o-checkbox__inner::after {\n display: none; }\n\n.o-checkbox__inner {\n display: inline-block;\n position: relative;\n border: 1px solid #DCDFE6;\n border-radius: 2px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n background-color: #FFF;\n z-index: 1;\n -webkit-transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);\n transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46); }\n\n.o-checkbox__inner:hover {\n border-color: #409EFF; }\n\n.o-checkbox__inner::after {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n content: \"\";\n border: 1px solid #FFF;\n border-left: 0;\n border-top: 0;\n height: 7px;\n left: 4px;\n position: absolute;\n top: 1px;\n -webkit-transform: rotate(45deg) scaleY(0);\n transform: rotate(45deg) scaleY(0);\n width: 3px;\n -webkit-transition: -webkit-transform .15s ease-in .05s;\n transition: -webkit-transform .15s ease-in .05s;\n transition: transform .15s ease-in .05s;\n transition: transform .15s ease-in .05s, -webkit-transform .15s ease-in .05s;\n -webkit-transform-origin: center;\n transform-origin: center; }\n\n.o-checkbox__original {\n opacity: 0;\n outline: 0;\n position: absolute;\n margin: 0;\n width: 0;\n height: 0;\n z-index: -1; }\n\n.o-checkbox-button,\n.o-checkbox-button__inner {\n display: inline-block;\n position: relative; }\n\n.o-checkbox__label {\n display: inline-block;\n padding-left: 10px;\n line-height: 19px;\n font-size: 14px; }\n\n.o-checkbox:last-of-type {\n margin-right: 0; }\n\n.o-checkbox-button__inner {\n font-weight: 500;\n cursor: pointer;\n background: #FFF;\n border: 1px solid #DCDFE6;\n border-left: 0;\n color: #606266;\n -webkit-appearance: none;\n text-align: center;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n padding: 12px 20px;\n font-size: 14px;\n border-radius: 0; }\n\n.o-checkbox-button__inner.is-round {\n padding: 12px 20px; }\n\n.o-checkbox-button__inner:hover {\n color: #409EFF; }\n\n.o-checkbox-button__inner [class*=el-icon-] {\n line-height: .9; }\n\n.o-checkbox-button__inner [class*=el-icon-] + span {\n margin-left: 5px; }\n\n.o-checkbox-button__original {\n opacity: 0;\n outline: 0;\n position: absolute;\n margin: 0;\n z-index: -1; }\n\n.o-checkbox-button.is-checked .o-checkbox-button__inner {\n color: #FFF;\n background-color: #409EFF;\n border-color: #409EFF;\n -webkit-box-shadow: -1px 0 0 0 #8cc5ff;\n box-shadow: -1px 0 0 0 #8cc5ff; }\n\n.o-checkbox-button.is-checked:first-child .o-checkbox-button__inner {\n border-left-color: #409EFF; }\n\n.o-checkbox-button.is-disabled .o-checkbox-button__inner {\n color: #C0C4CC;\n cursor: not-allowed;\n background-image: none;\n background-color: #FFF;\n border-color: #EBEEF5;\n -webkit-box-shadow: none;\n box-shadow: none; }\n\n.o-checkbox-button.is-disabled:first-child .o-checkbox-button__inner {\n border-left-color: #EBEEF5; }\n\n.o-checkbox-button:first-child .o-checkbox-button__inner {\n border-left: 1px solid #DCDFE6;\n border-radius: 4px 0 0 4px;\n -webkit-box-shadow: none !important;\n box-shadow: none !important; }\n\n.o-checkbox-button.is-focus .o-checkbox-button__inner {\n border-color: #409EFF; }\n\n.o-checkbox-button:last-child .o-checkbox-button__inner {\n border-radius: 0 4px 4px 0; }\n\n.o-checkbox-button--medium .o-checkbox-button__inner {\n padding: 10px 20px;\n font-size: 14px;\n border-radius: 0; }\n\n.o-checkbox-button--medium .o-checkbox-button__inner.is-round {\n padding: 10px 20px; }\n\n.o-checkbox-button--small .o-checkbox-button__inner {\n padding: 9px 15px;\n font-size: 12px;\n border-radius: 0; }\n\n.o-checkbox-button--small .o-checkbox-button__inner.is-round {\n padding: 9px 15px; }\n\n.o-checkbox-button--mini .o-checkbox-button__inner {\n padding: 7px 15px;\n font-size: 12px;\n border-radius: 0; }\n\n.o-checkbox-button--mini .o-checkbox-button__inner.is-round {\n padding: 7px 15px; }\n\n.o-checkbox-group {\n font-size: 0; }\n\n.o-tree {\n position: relative;\n cursor: default;\n background: #FFF;\n color: #606266; }\n\n.o-tree__empty-block {\n position: relative;\n min-height: 60px;\n text-align: center;\n width: 100%;\n height: 100%; }\n\n.o-tree__empty-text {\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n color: #909399;\n font-size: 14px; }\n\n.o-tree__drop-indicator {\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n background-color: #409EFF; }\n\n.o-tree-node {\n white-space: nowrap;\n outline: 0;\n position: relative; }\n\n.o-tree-node:focus > .o-tree-node__content {\n background-color: #F5F7FA; }\n\n.o-tree-node.is-drop-inner > .o-tree-node__content .o-tree-node__label {\n background-color: #409EFF;\n color: #fff; }\n\n.o-tree-node__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 26px;\n cursor: pointer; }\n\n.o-tree-node__content > .o-tree-node__expand-icon {\n padding: 6px; }\n\n.o-tree-node__content > label.o-checkbox {\n margin-right: 8px; }\n\n.o-tree-node__content:hover {\n background-color: #F5F7FA; }\n\n.o-tree.is-dragging .o-tree-node__content {\n cursor: move; }\n\n.o-tree.is-dragging .o-tree-node__content * {\n pointer-events: none; }\n\n.o-tree.is-dragging.is-drop-not-allow .o-tree-node__content {\n cursor: not-allowed; }\n\n.o-tree-node__expand-icon {\n cursor: pointer;\n color: #C0C4CC;\n font-size: 12px;\n -webkit-transform: rotate(-90deg);\n transform: rotate(-90deg); }\n\n.o-tree-node__expand-icon.expanded {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n\n.o-tree-node__expand-icon.is-leaf {\n color: transparent;\n cursor: default;\n width: 12px;\n height: 12px; }\n\n.o-tree-node__label {\n font-size: 14px; }\n\n.o-tree-node__loading-icon {\n margin-right: 8px;\n font-size: 14px;\n color: #C0C4CC; }\n\n.o-tree-node > .o-tree-node__children {\n overflow: hidden;\n background-color: transparent; }\n\n.o-tree-node.is-expanded > .o-tree-node__children {\n display: block; }\n\n.o-tree-node.is-current > .o-tree-node__content {\n background-color: rgba(7, 193, 96, 0.241);\n background-color: var(--o-primary-fade-more, rgba(7, 193, 96, 0.241)); }\n\n.sign {\n position: absolute;\n font-size: 10px;\n top: 4px;\n right: 4px; }\n", ""]); + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ + /* global Reflect, Promise */ -// exports - - -/***/ }), - -/***/ "./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js": -/*!*******************************************************************!*\ - !*** ./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js ***! - \*******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -// css base code, injected by the css-loader -module.exports = function(useSourceMap) { - var list = []; - - // return the list of modules as css string - list.toString = function toString() { - return this.map(function (item) { - var content = cssWithMappingToString(item, useSourceMap); - if(item[2]) { - return "@media " + item[2] + "{" + content + "}"; - } else { - return content; - } - }).join(""); - }; - - // import a list of modules into the list - list.i = function(modules, mediaQuery) { - if(typeof modules === "string") - modules = [[null, modules, ""]]; - var alreadyImportedModules = {}; - for(var i = 0; i < this.length; i++) { - var id = this[i][0]; - if(typeof id === "number") - alreadyImportedModules[id] = true; - } - for(i = 0; i < modules.length; i++) { - var item = modules[i]; - // skip already imported module - // this implementation is not 100% perfect for weird media query combinations - // when a module is imported multiple times with different media queries. - // I hope this will never occur (Hey this way we have smaller bundles) - if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { - if(mediaQuery && !item[2]) { - item[2] = mediaQuery; - } else if(mediaQuery) { - item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; - } - list.push(item); - } - } - }; - return list; -}; - -function cssWithMappingToString(item, useSourceMap) { - var content = item[1] || ''; - var cssMapping = item[3]; - if (!cssMapping) { - return content; - } - - if (useSourceMap && typeof btoa === 'function') { - var sourceMapping = toComment(cssMapping); - var sourceURLs = cssMapping.sources.map(function (source) { - return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' - }); - - return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); - } - - return [content].join('\n'); -} - -// Adapted from convert-source-map (MIT) -function toComment(sourceMap) { - // eslint-disable-next-line no-undef - var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); - var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; - - return '/*# ' + data + ' */'; -} - - -/***/ }), - -/***/ "./src/index.scss": -/*!************************!*\ - !*** ./src/index.scss ***! - \************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - - - var result = __webpack_require__(/*! !../node_modules/_css-loader@1.0.1@css-loader!../node_modules/_resolve-url-loader@3.1.1@resolve-url-loader!../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--4-3!./index.scss */ "./node_modules/_css-loader@1.0.1@css-loader/index.js!./node_modules/_resolve-url-loader@3.1.1@resolve-url-loader/index.js!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js?!./src/index.scss"); - - if (typeof result === "string") { - module.exports = result; - } else { - module.exports = result.toString(); - } - - -/***/ }), - -/***/ "./src/index.tsx": -/*!***********************!*\ - !*** ./src/index.tsx ***! - \***********************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { + var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; - return function (d, b) { + + function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var omi_1 = __webpack_require__(/*! omi */ "omi"); -var css = __webpack_require__(/*! ./index.scss */ "./src/index.scss"); -var Tree = /** @class */ (function (_super) { - __extends(Tree, _super); - function Tree() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.onNodeClick = function (evt, node) { - evt.stopPropagation(); - node.expanded = !node.expanded; - if (_this.prevSelectedNode) { - _this.prevSelectedNode.selected = false; - } - node.selected = true; - _this.forceUpdate(); - _this.fire('node-click', node); - }; - _this.onNodeArrowClick = function (node) { - _this.fire('node-arrow-click', node); - _this.fire('node-click', node); - }; - _this.onContextMenu = function (evt, node) { - evt.stopPropagation(); - evt.preventDefault(); - _this.fire('context-menu', { - evt: evt, - node: node - }); - }; - return _this; } - Tree.prototype.renderNode = function (node, level) { - var _this = this; - if (node.selected) { - this.prevSelectedNode = node; + + var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + }; + + function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + } + + "use strict"; + +var css = ":host {\n display: block; }\n\n.o-fade-in-enter,\n.o-fade-in-leave-active,\n.o-fade-in-linear-enter,\n.o-fade-in-linear-leave,\n.o-fade-in-linear-leave-active,\n.fade-in-linear-enter,\n.fade-in-linear-leave,\n.fade-in-linear-leave-active {\n opacity: 0; }\n\n.o-checkbox,\n.o-checkbox__input {\n display: inline-block;\n position: relative; }\n\n.fade-in-linear-enter-active,\n.fade-in-linear-leave-active {\n -webkit-transition: opacity .2s linear;\n transition: opacity .2s linear; }\n\n.o-fade-in-linear-enter-active,\n.o-fade-in-linear-leave-active {\n -webkit-transition: opacity .2s linear;\n transition: opacity .2s linear; }\n\n.o-fade-in-enter-active,\n.o-fade-in-leave-active {\n -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\n\n.o-zoom-in-center-enter-active,\n.o-zoom-in-center-leave-active {\n -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\n\n.o-zoom-in-center-enter,\n.o-zoom-in-center-leave-active {\n opacity: 0;\n -webkit-transform: scaleX(0);\n transform: scaleX(0); }\n\n.o-zoom-in-top-enter-active,\n.o-zoom-in-top-leave-active {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n -webkit-transform-origin: center top;\n transform-origin: center top; }\n\n.o-zoom-in-top-enter,\n.o-zoom-in-top-leave-active {\n opacity: 0;\n -webkit-transform: scaleY(0);\n transform: scaleY(0); }\n\n.o-zoom-in-bottom-enter-active,\n.o-zoom-in-bottom-leave-active {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n -webkit-transform-origin: center bottom;\n transform-origin: center bottom; }\n\n.o-zoom-in-bottom-enter,\n.o-zoom-in-bottom-leave-active {\n opacity: 0;\n -webkit-transform: scaleY(0);\n transform: scaleY(0); }\n\n.o-zoom-in-left-enter-active,\n.o-zoom-in-left-leave-active {\n opacity: 1;\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n -webkit-transform-origin: top left;\n transform-origin: top left; }\n\n.o-zoom-in-left-enter,\n.o-zoom-in-left-leave-active {\n opacity: 0;\n -webkit-transform: scale(0.45, 0.45);\n transform: scale(0.45, 0.45); }\n\n.collapse-transition {\n -webkit-transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out;\n transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out; }\n\n.horizontal-collapse-transition {\n -webkit-transition: .3s width ease-in-out, .3s padding-left ease-in-out, .3s padding-right ease-in-out;\n transition: .3s width ease-in-out, .3s padding-left ease-in-out, .3s padding-right ease-in-out; }\n\n.o-list-enter-active,\n.o-list-leave-active {\n -webkit-transition: all 1s;\n transition: all 1s; }\n\n.o-list-enter,\n.o-list-leave-active {\n opacity: 0;\n -webkit-transform: translateY(-30px);\n transform: translateY(-30px); }\n\n.o-opacity-transition {\n -webkit-transition: opacity 0.3s cubic-bezier(0.55, 0, 0.1, 1);\n transition: opacity 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\n\n.o-checkbox {\n color: #606266;\n font-weight: 500;\n font-size: 14px;\n cursor: pointer;\n white-space: nowrap;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n margin-right: 30px; }\n\n.o-checkbox.is-bordered {\n padding: 9px 20px 9px 10px;\n border-radius: 4px;\n border: 1px solid #DCDFE6;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n line-height: normal;\n height: 40px; }\n\n.o-checkbox.is-bordered.is-checked {\n border-color: #409EFF; }\n\n.o-checkbox.is-bordered.is-disabled {\n border-color: #EBEEF5;\n cursor: not-allowed; }\n\n.o-checkbox.is-bordered + .o-checkbox.is-bordered {\n margin-left: 10px; }\n\n.o-checkbox.is-bordered.o-checkbox--medium {\n padding: 7px 20px 7px 10px;\n border-radius: 4px;\n height: 36px; }\n\n.o-checkbox.is-bordered.o-checkbox--medium .o-checkbox__label {\n line-height: 17px;\n font-size: 14px; }\n\n.o-checkbox.is-bordered.o-checkbox--medium .o-checkbox__inner {\n height: 14px;\n width: 14px; }\n\n.o-checkbox.is-bordered.o-checkbox--small {\n padding: 5px 15px 5px 10px;\n border-radius: 3px;\n height: 32px; }\n\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__label {\n line-height: 15px;\n font-size: 12px; }\n\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__inner {\n height: 12px;\n width: 12px; }\n\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__inner::after {\n height: 6px;\n width: 2px; }\n\n.o-checkbox.is-bordered.o-checkbox--mini {\n padding: 3px 15px 3px 10px;\n border-radius: 3px;\n height: 28px; }\n\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__label {\n line-height: 12px;\n font-size: 12px; }\n\n.o-checkbox-button__inner,\n.o-checkbox__input {\n line-height: 1;\n vertical-align: middle;\n white-space: nowrap;\n outline: 0; }\n\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__inner {\n height: 12px;\n width: 12px; }\n\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__inner::after {\n height: 6px;\n width: 2px; }\n\n.o-checkbox__input {\n cursor: pointer; }\n\n.o-checkbox__input.is-disabled .o-checkbox__inner {\n background-color: #edf2fc;\n border-color: #DCDFE6;\n cursor: not-allowed; }\n\n.o-checkbox__input.is-disabled .o-checkbox__inner::after {\n cursor: not-allowed;\n border-color: #C0C4CC; }\n\n.o-checkbox__input.is-disabled .o-checkbox__inner + .o-checkbox__label {\n cursor: not-allowed; }\n\n.o-checkbox__input.is-disabled.is-checked .o-checkbox__inner {\n background-color: #F2F6FC;\n border-color: #DCDFE6; }\n\n.o-checkbox__input.is-disabled.is-checked .o-checkbox__inner::after {\n border-color: #C0C4CC; }\n\n.o-checkbox__input.is-disabled.is-indeterminate .o-checkbox__inner {\n background-color: #F2F6FC;\n border-color: #DCDFE6; }\n\n.o-checkbox__input.is-disabled.is-indeterminate .o-checkbox__inner::before {\n background-color: #C0C4CC;\n border-color: #C0C4CC; }\n\n.o-checkbox__input.is-checked .o-checkbox__inner,\n.o-checkbox__input.is-indeterminate .o-checkbox__inner {\n background-color: #409EFF;\n border-color: #409EFF; }\n\n.o-checkbox__input.is-disabled + span.o-checkbox__label {\n color: #C0C4CC;\n cursor: not-allowed; }\n\n.o-checkbox__input.is-checked .o-checkbox__inner::after {\n -webkit-transform: rotate(45deg) scaleY(1);\n transform: rotate(45deg) scaleY(1); }\n\n.o-checkbox__input.is-checked + .o-checkbox__label {\n color: #409EFF; }\n\n.o-checkbox__input.is-focus .o-checkbox__inner {\n border-color: #409EFF; }\n\n.o-checkbox__input.is-indeterminate .o-checkbox__inner::before {\n content: '';\n position: absolute;\n display: block;\n background-color: #FFF;\n height: 2px;\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n left: 0;\n right: 0;\n top: 5px; }\n\n.o-checkbox__input.is-indeterminate .o-checkbox__inner::after {\n display: none; }\n\n.o-checkbox__inner {\n display: inline-block;\n position: relative;\n border: 1px solid #DCDFE6;\n border-radius: 2px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n background-color: #FFF;\n z-index: 1;\n -webkit-transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);\n transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46); }\n\n.o-checkbox__inner:hover {\n border-color: #409EFF; }\n\n.o-checkbox__inner::after {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n content: \"\";\n border: 1px solid #FFF;\n border-left: 0;\n border-top: 0;\n height: 7px;\n left: 4px;\n position: absolute;\n top: 1px;\n -webkit-transform: rotate(45deg) scaleY(0);\n transform: rotate(45deg) scaleY(0);\n width: 3px;\n -webkit-transition: -webkit-transform .15s ease-in .05s;\n transition: -webkit-transform .15s ease-in .05s;\n transition: transform .15s ease-in .05s;\n transition: transform .15s ease-in .05s, -webkit-transform .15s ease-in .05s;\n -webkit-transform-origin: center;\n transform-origin: center; }\n\n.o-checkbox__original {\n opacity: 0;\n outline: 0;\n position: absolute;\n margin: 0;\n width: 0;\n height: 0;\n z-index: -1; }\n\n.o-checkbox-button,\n.o-checkbox-button__inner {\n display: inline-block;\n position: relative; }\n\n.o-checkbox__label {\n display: inline-block;\n padding-left: 10px;\n line-height: 19px;\n font-size: 14px; }\n\n.o-checkbox:last-of-type {\n margin-right: 0; }\n\n.o-checkbox-button__inner {\n font-weight: 500;\n cursor: pointer;\n background: #FFF;\n border: 1px solid #DCDFE6;\n border-left: 0;\n color: #606266;\n -webkit-appearance: none;\n text-align: center;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n padding: 12px 20px;\n font-size: 14px;\n border-radius: 0; }\n\n.o-checkbox-button__inner.is-round {\n padding: 12px 20px; }\n\n.o-checkbox-button__inner:hover {\n color: #409EFF; }\n\n.o-checkbox-button__inner [class*=el-icon-] {\n line-height: .9; }\n\n.o-checkbox-button__inner [class*=el-icon-] + span {\n margin-left: 5px; }\n\n.o-checkbox-button__original {\n opacity: 0;\n outline: 0;\n position: absolute;\n margin: 0;\n z-index: -1; }\n\n.o-checkbox-button.is-checked .o-checkbox-button__inner {\n color: #FFF;\n background-color: #409EFF;\n border-color: #409EFF;\n -webkit-box-shadow: -1px 0 0 0 #8cc5ff;\n box-shadow: -1px 0 0 0 #8cc5ff; }\n\n.o-checkbox-button.is-checked:first-child .o-checkbox-button__inner {\n border-left-color: #409EFF; }\n\n.o-checkbox-button.is-disabled .o-checkbox-button__inner {\n color: #C0C4CC;\n cursor: not-allowed;\n background-image: none;\n background-color: #FFF;\n border-color: #EBEEF5;\n -webkit-box-shadow: none;\n box-shadow: none; }\n\n.o-checkbox-button.is-disabled:first-child .o-checkbox-button__inner {\n border-left-color: #EBEEF5; }\n\n.o-checkbox-button:first-child .o-checkbox-button__inner {\n border-left: 1px solid #DCDFE6;\n border-radius: 4px 0 0 4px;\n -webkit-box-shadow: none !important;\n box-shadow: none !important; }\n\n.o-checkbox-button.is-focus .o-checkbox-button__inner {\n border-color: #409EFF; }\n\n.o-checkbox-button:last-child .o-checkbox-button__inner {\n border-radius: 0 4px 4px 0; }\n\n.o-checkbox-button--medium .o-checkbox-button__inner {\n padding: 10px 20px;\n font-size: 14px;\n border-radius: 0; }\n\n.o-checkbox-button--medium .o-checkbox-button__inner.is-round {\n padding: 10px 20px; }\n\n.o-checkbox-button--small .o-checkbox-button__inner {\n padding: 9px 15px;\n font-size: 12px;\n border-radius: 0; }\n\n.o-checkbox-button--small .o-checkbox-button__inner.is-round {\n padding: 9px 15px; }\n\n.o-checkbox-button--mini .o-checkbox-button__inner {\n padding: 7px 15px;\n font-size: 12px;\n border-radius: 0; }\n\n.o-checkbox-button--mini .o-checkbox-button__inner.is-round {\n padding: 7px 15px; }\n\n.o-checkbox-group {\n font-size: 0; }\n\n.o-tree {\n position: relative;\n cursor: default;\n background: #FFF;\n color: #606266; }\n\n.o-tree__empty-block {\n position: relative;\n min-height: 60px;\n text-align: center;\n width: 100%;\n height: 100%; }\n\n.o-tree__empty-text {\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n color: #909399;\n font-size: 14px; }\n\n.o-tree__drop-indicator {\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n background-color: #409EFF; }\n\n.o-tree-node {\n white-space: nowrap;\n outline: 0;\n position: relative; }\n\n.o-tree-node:focus > .o-tree-node__content {\n background-color: #F5F7FA; }\n\n.o-tree-node.is-drop-inner > .o-tree-node__content .o-tree-node__label {\n background-color: #409EFF;\n color: #fff; }\n\n.o-tree-node__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 26px;\n cursor: pointer; }\n\n.o-tree-node__content > .o-tree-node__expand-icon {\n padding: 6px; }\n\n.o-tree-node__content > label.o-checkbox {\n margin-right: 8px; }\n\n.o-tree-node__content:hover {\n background-color: #F5F7FA; }\n\n.o-tree.is-dragging .o-tree-node__content {\n cursor: move; }\n\n.o-tree.is-dragging .o-tree-node__content * {\n pointer-events: none; }\n\n.o-tree.is-dragging.is-drop-not-allow .o-tree-node__content {\n cursor: not-allowed; }\n\n.o-tree-node__expand-icon {\n cursor: pointer;\n color: #C0C4CC;\n font-size: 12px;\n -webkit-transform: rotate(-90deg);\n transform: rotate(-90deg); }\n\n.o-tree-node__expand-icon.expanded {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n\n.o-tree-node__expand-icon.is-leaf {\n color: transparent;\n cursor: default;\n width: 12px;\n height: 12px; }\n\n.o-tree-node__label {\n font-size: 14px; }\n\n.o-tree-node__loading-icon {\n margin-right: 8px;\n font-size: 14px;\n color: #C0C4CC; }\n\n.o-tree-node > .o-tree-node__children {\n overflow: hidden;\n background-color: transparent; }\n\n.o-tree-node.is-expanded > .o-tree-node__children {\n display: block; }\n\n.o-tree-node.is-current > .o-tree-node__content {\n background-color: rgba(7, 193, 96, 0.241);\n background-color: var(--o-primary-fade-more, rgba(7, 193, 96, 0.241)); }\n\n.sign {\n position: absolute;\n font-size: 10px;\n top: 4px;\n right: 4px; }\n"; + + var Tree = /** @class */ (function (_super) { + __extends(Tree, _super); + function Tree() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.onNodeClick = function (evt, node) { + evt.stopPropagation(); + node.expanded = !node.expanded; + if (_this.prevSelectedNode) { + _this.prevSelectedNode.selected = false; + } + node.selected = true; + _this.forceUpdate(); + _this.fire('node-click', node); + }; + _this.onNodeArrowClick = function (node) { + _this.fire('node-arrow-click', node); + _this.fire('node-click', node); + }; + _this.onContextMenu = function (evt, node) { + evt.stopPropagation(); + evt.preventDefault(); + _this.fire('context-menu', { + evt: evt, + node: node + }); + }; + return _this; } - this._tempTagName = 'o-icon-' + node.icon; - return omi_1.h("div", __assign({ role: "treeitem", onContextMenu: function (evt) { _this.onContextMenu(evt, node); }, onClick: function (evt) { _this.onNodeClick(evt, node); } }, omi_1.extractClass({}, 'o-tree-node', { - 'is-expanded': node.expanded, - 'is-current': node.selected - })), - omi_1.h("div", { class: "o-tree-node__content", style: "padding-left: " + level * 18 + "px;" }, - (node.children && node.children.length > 0) ? omi_1.h("svg", __assign({ onClick: function (_) { return _this.onNodeArrowClick(node); }, viewBox: "0 0 1024 1024" }, omi_1.extractClass({}, 'o-tree-node__expand-icon', { - 'expanded': node.expanded, - }), { "data-icon": "caret-down", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", focusable: "false" }), - omi_1.h("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" })) : omi_1.h("span", { class: "is-leaf o-tree-node__expand-icon" }), - omi_1.h("span", { style: node.color && { color: node.color }, class: "o-tree-node__label" }, - node.icon && omi_1.h(this._tempTagName, null), - node.label)), - node.expanded && node.children && node.children.length > 0 && omi_1.h("div", { role: "group", class: "o-tree-node__children", style: "", "aria-expanded": "true", "data-old-padding-top": "", "data-old-padding-bottom": "", "data-old-overflow": "" }, node.children.map(function (child) { - return _this.renderNode(child, level + 1); + Tree.prototype.renderNode = function (node, level) { + var _this = this; + if (node.selected) { + this.prevSelectedNode = node; + } + this._tempTagName = 'o-icon-' + node.icon; + return omi.h("div", __assign({ role: "treeitem", onContextMenu: function (evt) { _this.onContextMenu(evt, node); }, onClick: function (evt) { _this.onNodeClick(evt, node); } }, omi.extractClass({}, 'o-tree-node', { + 'is-expanded': node.expanded, + 'is-current': node.selected })), - node.sign && omi_1.h("span", { style: node.color && { color: node.color }, class: "sign" }, node.sign)); - }; - Tree.prototype.render = function (props) { - var _this = this; - return (omi_1.h("div", { role: "tree", class: "o-tree" }, props.data.map(function (node) { - return _this.renderNode(node, 0); - }))); - }; - Tree.css = css; - Tree.propTypes = { - data: Object - }; - Tree = __decorate([ - omi_1.tag('o-tree') - ], Tree); + omi.h("div", { class: "o-tree-node__content", style: "padding-left: " + level * 18 + "px;" }, + (node.children && node.children.length > 0) ? omi.h("svg", __assign({ onClick: function (_) { return _this.onNodeArrowClick(node); }, viewBox: "0 0 1024 1024" }, omi.extractClass({}, 'o-tree-node__expand-icon', { + 'expanded': node.expanded, + }), { "data-icon": "caret-down", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", focusable: "false" }), + omi.h("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" })) : omi.h("span", { class: "is-leaf o-tree-node__expand-icon" }), + omi.h("span", { style: node.color && { color: node.color }, class: "o-tree-node__label" }, + node.icon && omi.h(this._tempTagName, null), + node.label)), + node.expanded && node.children && node.children.length > 0 && omi.h("div", { role: "group", class: "o-tree-node__children", style: "", "aria-expanded": "true", "data-old-padding-top": "", "data-old-padding-bottom": "", "data-old-overflow": "" }, node.children.map(function (child) { + return _this.renderNode(child, level + 1); + })), + node.sign && omi.h("span", { style: node.color && { color: node.color }, class: "sign" }, node.sign)); + }; + Tree.prototype.render = function (props) { + var _this = this; + return (omi.h("div", { role: "tree", class: "o-tree" }, props.data.map(function (node) { + return _this.renderNode(node, 0); + }))); + }; + Tree.css = css; + Tree.propTypes = { + data: Object + }; + Tree = __decorate([ + omi.tag('o-tree') + ], Tree); + return Tree; + }(omi.WeElement)); + return Tree; -}(omi_1.WeElement)); -exports.default = Tree; - -/***/ }), - -/***/ "omi": -/*!******************************************************************************!*\ - !*** external {"commonjs":"omi","commonjs2":"omi","amd":"omi","root":"Omi"} ***! - \******************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_omi__; - -/***/ }) - -/******/ })["default"]; -}); -//# sourceMappingURL=index.js.map \ No newline at end of file +}(omi)); +//# sourceMappingURL=index.js.map diff --git a/components/tree/src/index.js.map b/components/tree/src/index.js.map index a9b4f5c8a..eff674f4c 100644 --- a/components/tree/src/index.js.map +++ b/components/tree/src/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://OTree/webpack/universalModuleDefinition","webpack://OTree/webpack/bootstrap","webpack://OTree/./src/index.scss","webpack://OTree/./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js","webpack://OTree/./src/index.scss?56db","webpack://OTree/./src/index.tsx","webpack://OTree/external {\"commonjs\":\"omi\",\"commonjs2\":\"omi\",\"amd\":\"omi\",\"root\":\"Omi\"}"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;Q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;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,QAAQ;AACpD;AACA;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,gBAAK;AACzB,UAAU,mBAAO,CAAC,sCAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,kDAAkD,gCAAgC,EAAE,2BAA2B,8BAA8B,EAAE,EAAE,uBAAuB;AAChN;AACA;AACA,SAAS;AACT,4BAA4B,2EAA2E,GAAG;AAC1G,uFAAuF,wBAAwB,qCAAqC,EAAE,4BAA4B,uBAAuB;AACzM;AACA,iBAAiB,IAAI,0HAA0H;AAC/I,qCAAqC,0HAA0H,sBAAsB,4CAA4C;AACjO,iCAAiC,uBAAuB,oBAAoB,+BAA+B;AAC3G;AACA;AACA,0FAA0F,wKAAwK;AAClQ;AACA,aAAa;AACb,0CAA0C,uBAAuB,oBAAoB,iBAAiB;AACtG;AACA;AACA;AACA,gCAAgC,gCAAgC;AAChE;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;;;;ACpGA,iD","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"omi\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"omi\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"OTree\"] = factory(require(\"omi\"));\n\telse\n\t\troot[\"OTree\"] = factory(root[\"Omi\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_omi__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.tsx\");\n","exports = module.exports = require(\"../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \":host {\\n display: block; }\\n\\n.o-fade-in-enter,\\n.o-fade-in-leave-active,\\n.o-fade-in-linear-enter,\\n.o-fade-in-linear-leave,\\n.o-fade-in-linear-leave-active,\\n.fade-in-linear-enter,\\n.fade-in-linear-leave,\\n.fade-in-linear-leave-active {\\n opacity: 0; }\\n\\n.o-checkbox,\\n.o-checkbox__input {\\n display: inline-block;\\n position: relative; }\\n\\n.fade-in-linear-enter-active,\\n.fade-in-linear-leave-active {\\n -webkit-transition: opacity .2s linear;\\n transition: opacity .2s linear; }\\n\\n.o-fade-in-linear-enter-active,\\n.o-fade-in-linear-leave-active {\\n -webkit-transition: opacity .2s linear;\\n transition: opacity .2s linear; }\\n\\n.o-fade-in-enter-active,\\n.o-fade-in-leave-active {\\n -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\\n\\n.o-zoom-in-center-enter-active,\\n.o-zoom-in-center-leave-active {\\n -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);\\n transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\\n\\n.o-zoom-in-center-enter,\\n.o-zoom-in-center-leave-active {\\n opacity: 0;\\n -webkit-transform: scaleX(0);\\n transform: scaleX(0); }\\n\\n.o-zoom-in-top-enter-active,\\n.o-zoom-in-top-leave-active {\\n opacity: 1;\\n -webkit-transform: scaleY(1);\\n transform: scaleY(1);\\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n -webkit-transform-origin: center top;\\n transform-origin: center top; }\\n\\n.o-zoom-in-top-enter,\\n.o-zoom-in-top-leave-active {\\n opacity: 0;\\n -webkit-transform: scaleY(0);\\n transform: scaleY(0); }\\n\\n.o-zoom-in-bottom-enter-active,\\n.o-zoom-in-bottom-leave-active {\\n opacity: 1;\\n -webkit-transform: scaleY(1);\\n transform: scaleY(1);\\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n -webkit-transform-origin: center bottom;\\n transform-origin: center bottom; }\\n\\n.o-zoom-in-bottom-enter,\\n.o-zoom-in-bottom-leave-active {\\n opacity: 0;\\n -webkit-transform: scaleY(0);\\n transform: scaleY(0); }\\n\\n.o-zoom-in-left-enter-active,\\n.o-zoom-in-left-leave-active {\\n opacity: 1;\\n -webkit-transform: scale(1, 1);\\n transform: scale(1, 1);\\n -webkit-transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);\\n -webkit-transform-origin: top left;\\n transform-origin: top left; }\\n\\n.o-zoom-in-left-enter,\\n.o-zoom-in-left-leave-active {\\n opacity: 0;\\n -webkit-transform: scale(0.45, 0.45);\\n transform: scale(0.45, 0.45); }\\n\\n.collapse-transition {\\n -webkit-transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out;\\n transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out; }\\n\\n.horizontal-collapse-transition {\\n -webkit-transition: .3s width ease-in-out, .3s padding-left ease-in-out, .3s padding-right ease-in-out;\\n transition: .3s width ease-in-out, .3s padding-left ease-in-out, .3s padding-right ease-in-out; }\\n\\n.o-list-enter-active,\\n.o-list-leave-active {\\n -webkit-transition: all 1s;\\n transition: all 1s; }\\n\\n.o-list-enter,\\n.o-list-leave-active {\\n opacity: 0;\\n -webkit-transform: translateY(-30px);\\n transform: translateY(-30px); }\\n\\n.o-opacity-transition {\\n -webkit-transition: opacity 0.3s cubic-bezier(0.55, 0, 0.1, 1);\\n transition: opacity 0.3s cubic-bezier(0.55, 0, 0.1, 1); }\\n\\n.o-checkbox {\\n color: #606266;\\n font-weight: 500;\\n font-size: 14px;\\n cursor: pointer;\\n white-space: nowrap;\\n -webkit-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n margin-right: 30px; }\\n\\n.o-checkbox.is-bordered {\\n padding: 9px 20px 9px 10px;\\n border-radius: 4px;\\n border: 1px solid #DCDFE6;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n line-height: normal;\\n height: 40px; }\\n\\n.o-checkbox.is-bordered.is-checked {\\n border-color: #409EFF; }\\n\\n.o-checkbox.is-bordered.is-disabled {\\n border-color: #EBEEF5;\\n cursor: not-allowed; }\\n\\n.o-checkbox.is-bordered + .o-checkbox.is-bordered {\\n margin-left: 10px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--medium {\\n padding: 7px 20px 7px 10px;\\n border-radius: 4px;\\n height: 36px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--medium .o-checkbox__label {\\n line-height: 17px;\\n font-size: 14px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--medium .o-checkbox__inner {\\n height: 14px;\\n width: 14px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--small {\\n padding: 5px 15px 5px 10px;\\n border-radius: 3px;\\n height: 32px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__label {\\n line-height: 15px;\\n font-size: 12px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__inner {\\n height: 12px;\\n width: 12px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--small .o-checkbox__inner::after {\\n height: 6px;\\n width: 2px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--mini {\\n padding: 3px 15px 3px 10px;\\n border-radius: 3px;\\n height: 28px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__label {\\n line-height: 12px;\\n font-size: 12px; }\\n\\n.o-checkbox-button__inner,\\n.o-checkbox__input {\\n line-height: 1;\\n vertical-align: middle;\\n white-space: nowrap;\\n outline: 0; }\\n\\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__inner {\\n height: 12px;\\n width: 12px; }\\n\\n.o-checkbox.is-bordered.o-checkbox--mini .o-checkbox__inner::after {\\n height: 6px;\\n width: 2px; }\\n\\n.o-checkbox__input {\\n cursor: pointer; }\\n\\n.o-checkbox__input.is-disabled .o-checkbox__inner {\\n background-color: #edf2fc;\\n border-color: #DCDFE6;\\n cursor: not-allowed; }\\n\\n.o-checkbox__input.is-disabled .o-checkbox__inner::after {\\n cursor: not-allowed;\\n border-color: #C0C4CC; }\\n\\n.o-checkbox__input.is-disabled .o-checkbox__inner + .o-checkbox__label {\\n cursor: not-allowed; }\\n\\n.o-checkbox__input.is-disabled.is-checked .o-checkbox__inner {\\n background-color: #F2F6FC;\\n border-color: #DCDFE6; }\\n\\n.o-checkbox__input.is-disabled.is-checked .o-checkbox__inner::after {\\n border-color: #C0C4CC; }\\n\\n.o-checkbox__input.is-disabled.is-indeterminate .o-checkbox__inner {\\n background-color: #F2F6FC;\\n border-color: #DCDFE6; }\\n\\n.o-checkbox__input.is-disabled.is-indeterminate .o-checkbox__inner::before {\\n background-color: #C0C4CC;\\n border-color: #C0C4CC; }\\n\\n.o-checkbox__input.is-checked .o-checkbox__inner,\\n.o-checkbox__input.is-indeterminate .o-checkbox__inner {\\n background-color: #409EFF;\\n border-color: #409EFF; }\\n\\n.o-checkbox__input.is-disabled + span.o-checkbox__label {\\n color: #C0C4CC;\\n cursor: not-allowed; }\\n\\n.o-checkbox__input.is-checked .o-checkbox__inner::after {\\n -webkit-transform: rotate(45deg) scaleY(1);\\n transform: rotate(45deg) scaleY(1); }\\n\\n.o-checkbox__input.is-checked + .o-checkbox__label {\\n color: #409EFF; }\\n\\n.o-checkbox__input.is-focus .o-checkbox__inner {\\n border-color: #409EFF; }\\n\\n.o-checkbox__input.is-indeterminate .o-checkbox__inner::before {\\n content: '';\\n position: absolute;\\n display: block;\\n background-color: #FFF;\\n height: 2px;\\n -webkit-transform: scale(0.5);\\n transform: scale(0.5);\\n left: 0;\\n right: 0;\\n top: 5px; }\\n\\n.o-checkbox__input.is-indeterminate .o-checkbox__inner::after {\\n display: none; }\\n\\n.o-checkbox__inner {\\n display: inline-block;\\n position: relative;\\n border: 1px solid #DCDFE6;\\n border-radius: 2px;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n width: 14px;\\n height: 14px;\\n background-color: #FFF;\\n z-index: 1;\\n -webkit-transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);\\n transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46); }\\n\\n.o-checkbox__inner:hover {\\n border-color: #409EFF; }\\n\\n.o-checkbox__inner::after {\\n -webkit-box-sizing: content-box;\\n box-sizing: content-box;\\n content: \\\"\\\";\\n border: 1px solid #FFF;\\n border-left: 0;\\n border-top: 0;\\n height: 7px;\\n left: 4px;\\n position: absolute;\\n top: 1px;\\n -webkit-transform: rotate(45deg) scaleY(0);\\n transform: rotate(45deg) scaleY(0);\\n width: 3px;\\n -webkit-transition: -webkit-transform .15s ease-in .05s;\\n transition: -webkit-transform .15s ease-in .05s;\\n transition: transform .15s ease-in .05s;\\n transition: transform .15s ease-in .05s, -webkit-transform .15s ease-in .05s;\\n -webkit-transform-origin: center;\\n transform-origin: center; }\\n\\n.o-checkbox__original {\\n opacity: 0;\\n outline: 0;\\n position: absolute;\\n margin: 0;\\n width: 0;\\n height: 0;\\n z-index: -1; }\\n\\n.o-checkbox-button,\\n.o-checkbox-button__inner {\\n display: inline-block;\\n position: relative; }\\n\\n.o-checkbox__label {\\n display: inline-block;\\n padding-left: 10px;\\n line-height: 19px;\\n font-size: 14px; }\\n\\n.o-checkbox:last-of-type {\\n margin-right: 0; }\\n\\n.o-checkbox-button__inner {\\n font-weight: 500;\\n cursor: pointer;\\n background: #FFF;\\n border: 1px solid #DCDFE6;\\n border-left: 0;\\n color: #606266;\\n -webkit-appearance: none;\\n text-align: center;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n margin: 0;\\n -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\\n -moz-user-select: none;\\n -webkit-user-select: none;\\n -ms-user-select: none;\\n padding: 12px 20px;\\n font-size: 14px;\\n border-radius: 0; }\\n\\n.o-checkbox-button__inner.is-round {\\n padding: 12px 20px; }\\n\\n.o-checkbox-button__inner:hover {\\n color: #409EFF; }\\n\\n.o-checkbox-button__inner [class*=el-icon-] {\\n line-height: .9; }\\n\\n.o-checkbox-button__inner [class*=el-icon-] + span {\\n margin-left: 5px; }\\n\\n.o-checkbox-button__original {\\n opacity: 0;\\n outline: 0;\\n position: absolute;\\n margin: 0;\\n z-index: -1; }\\n\\n.o-checkbox-button.is-checked .o-checkbox-button__inner {\\n color: #FFF;\\n background-color: #409EFF;\\n border-color: #409EFF;\\n -webkit-box-shadow: -1px 0 0 0 #8cc5ff;\\n box-shadow: -1px 0 0 0 #8cc5ff; }\\n\\n.o-checkbox-button.is-checked:first-child .o-checkbox-button__inner {\\n border-left-color: #409EFF; }\\n\\n.o-checkbox-button.is-disabled .o-checkbox-button__inner {\\n color: #C0C4CC;\\n cursor: not-allowed;\\n background-image: none;\\n background-color: #FFF;\\n border-color: #EBEEF5;\\n -webkit-box-shadow: none;\\n box-shadow: none; }\\n\\n.o-checkbox-button.is-disabled:first-child .o-checkbox-button__inner {\\n border-left-color: #EBEEF5; }\\n\\n.o-checkbox-button:first-child .o-checkbox-button__inner {\\n border-left: 1px solid #DCDFE6;\\n border-radius: 4px 0 0 4px;\\n -webkit-box-shadow: none !important;\\n box-shadow: none !important; }\\n\\n.o-checkbox-button.is-focus .o-checkbox-button__inner {\\n border-color: #409EFF; }\\n\\n.o-checkbox-button:last-child .o-checkbox-button__inner {\\n border-radius: 0 4px 4px 0; }\\n\\n.o-checkbox-button--medium .o-checkbox-button__inner {\\n padding: 10px 20px;\\n font-size: 14px;\\n border-radius: 0; }\\n\\n.o-checkbox-button--medium .o-checkbox-button__inner.is-round {\\n padding: 10px 20px; }\\n\\n.o-checkbox-button--small .o-checkbox-button__inner {\\n padding: 9px 15px;\\n font-size: 12px;\\n border-radius: 0; }\\n\\n.o-checkbox-button--small .o-checkbox-button__inner.is-round {\\n padding: 9px 15px; }\\n\\n.o-checkbox-button--mini .o-checkbox-button__inner {\\n padding: 7px 15px;\\n font-size: 12px;\\n border-radius: 0; }\\n\\n.o-checkbox-button--mini .o-checkbox-button__inner.is-round {\\n padding: 7px 15px; }\\n\\n.o-checkbox-group {\\n font-size: 0; }\\n\\n.o-tree {\\n position: relative;\\n cursor: default;\\n background: #FFF;\\n color: #606266; }\\n\\n.o-tree__empty-block {\\n position: relative;\\n min-height: 60px;\\n text-align: center;\\n width: 100%;\\n height: 100%; }\\n\\n.o-tree__empty-text {\\n position: absolute;\\n left: 50%;\\n top: 50%;\\n -webkit-transform: translate(-50%, -50%);\\n transform: translate(-50%, -50%);\\n color: #909399;\\n font-size: 14px; }\\n\\n.o-tree__drop-indicator {\\n position: absolute;\\n left: 0;\\n right: 0;\\n height: 1px;\\n background-color: #409EFF; }\\n\\n.o-tree-node {\\n white-space: nowrap;\\n outline: 0;\\n position: relative; }\\n\\n.o-tree-node:focus > .o-tree-node__content {\\n background-color: #F5F7FA; }\\n\\n.o-tree-node.is-drop-inner > .o-tree-node__content .o-tree-node__label {\\n background-color: #409EFF;\\n color: #fff; }\\n\\n.o-tree-node__content {\\n display: -webkit-box;\\n display: -ms-flexbox;\\n display: flex;\\n -webkit-box-align: center;\\n -ms-flex-align: center;\\n align-items: center;\\n height: 26px;\\n cursor: pointer; }\\n\\n.o-tree-node__content > .o-tree-node__expand-icon {\\n padding: 6px; }\\n\\n.o-tree-node__content > label.o-checkbox {\\n margin-right: 8px; }\\n\\n.o-tree-node__content:hover {\\n background-color: #F5F7FA; }\\n\\n.o-tree.is-dragging .o-tree-node__content {\\n cursor: move; }\\n\\n.o-tree.is-dragging .o-tree-node__content * {\\n pointer-events: none; }\\n\\n.o-tree.is-dragging.is-drop-not-allow .o-tree-node__content {\\n cursor: not-allowed; }\\n\\n.o-tree-node__expand-icon {\\n cursor: pointer;\\n color: #C0C4CC;\\n font-size: 12px;\\n -webkit-transform: rotate(-90deg);\\n transform: rotate(-90deg); }\\n\\n.o-tree-node__expand-icon.expanded {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg); }\\n\\n.o-tree-node__expand-icon.is-leaf {\\n color: transparent;\\n cursor: default;\\n width: 12px;\\n height: 12px; }\\n\\n.o-tree-node__label {\\n font-size: 14px; }\\n\\n.o-tree-node__loading-icon {\\n margin-right: 8px;\\n font-size: 14px;\\n color: #C0C4CC; }\\n\\n.o-tree-node > .o-tree-node__children {\\n overflow: hidden;\\n background-color: transparent; }\\n\\n.o-tree-node.is-expanded > .o-tree-node__children {\\n display: block; }\\n\\n.o-tree-node.is-current > .o-tree-node__content {\\n background-color: rgba(7, 193, 96, 0.241);\\n background-color: var(--o-primary-fade-more, rgba(7, 193, 96, 0.241)); }\\n\\n.sign {\\n position: absolute;\\n font-size: 10px;\\n top: 4px;\\n right: 4px; }\\n\", \"\"]);\n\n// exports\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n","\n var result = require(\"!!../node_modules/_css-loader@1.0.1@css-loader/index.js!../node_modules/_resolve-url-loader@3.1.1@resolve-url-loader/index.js!../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--4-3!./index.scss\");\n\n if (typeof result === \"string\") {\n module.exports = result;\n } else {\n module.exports = result.toString();\n }\n ","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = require(\"omi\");\nvar css = require(\"./index.scss\");\nvar Tree = /** @class */ (function (_super) {\n __extends(Tree, _super);\n function Tree() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.onNodeClick = function (evt, node) {\n evt.stopPropagation();\n node.expanded = !node.expanded;\n if (_this.prevSelectedNode) {\n _this.prevSelectedNode.selected = false;\n }\n node.selected = true;\n _this.forceUpdate();\n _this.fire('node-click', node);\n };\n _this.onNodeArrowClick = function (node) {\n _this.fire('node-arrow-click', node);\n _this.fire('node-click', node);\n };\n _this.onContextMenu = function (evt, node) {\n evt.stopPropagation();\n evt.preventDefault();\n _this.fire('context-menu', {\n evt: evt,\n node: node\n });\n };\n return _this;\n }\n Tree.prototype.renderNode = function (node, level) {\n var _this = this;\n if (node.selected) {\n this.prevSelectedNode = node;\n }\n this._tempTagName = 'o-icon-' + node.icon;\n return omi_1.h(\"div\", __assign({ role: \"treeitem\", onContextMenu: function (evt) { _this.onContextMenu(evt, node); }, onClick: function (evt) { _this.onNodeClick(evt, node); } }, omi_1.extractClass({}, 'o-tree-node', {\n 'is-expanded': node.expanded,\n 'is-current': node.selected\n })),\n omi_1.h(\"div\", { class: \"o-tree-node__content\", style: \"padding-left: \" + level * 18 + \"px;\" },\n (node.children && node.children.length > 0) ? omi_1.h(\"svg\", __assign({ onClick: function (_) { return _this.onNodeArrowClick(node); }, viewBox: \"0 0 1024 1024\" }, omi_1.extractClass({}, 'o-tree-node__expand-icon', {\n 'expanded': node.expanded,\n }), { \"data-icon\": \"caret-down\", width: \"1em\", height: \"1em\", fill: \"currentColor\", \"aria-hidden\": \"true\", focusable: \"false\" }),\n omi_1.h(\"path\", { d: \"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z\" })) : omi_1.h(\"span\", { class: \"is-leaf o-tree-node__expand-icon\" }),\n omi_1.h(\"span\", { style: node.color && { color: node.color }, class: \"o-tree-node__label\" },\n node.icon && omi_1.h(this._tempTagName, null),\n node.label)),\n node.expanded && node.children && node.children.length > 0 && omi_1.h(\"div\", { role: \"group\", class: \"o-tree-node__children\", style: \"\", \"aria-expanded\": \"true\", \"data-old-padding-top\": \"\", \"data-old-padding-bottom\": \"\", \"data-old-overflow\": \"\" }, node.children.map(function (child) {\n return _this.renderNode(child, level + 1);\n })),\n node.sign && omi_1.h(\"span\", { style: node.color && { color: node.color }, class: \"sign\" }, node.sign));\n };\n Tree.prototype.render = function (props) {\n var _this = this;\n return (omi_1.h(\"div\", { role: \"tree\", class: \"o-tree\" }, props.data.map(function (node) {\n return _this.renderNode(node, 0);\n })));\n };\n Tree.css = css;\n Tree.propTypes = {\n data: Object\n };\n Tree = __decorate([\n omi_1.tag('o-tree')\n ], Tree);\n return Tree;\n}(omi_1.WeElement));\nexports.default = Tree;\n","module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../node_modules/_tslib@1.11.1@tslib/tslib.es6.js","index.tsx"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { tag, WeElement, h, extractClass } from 'omi'\nimport * as css from './index.scss'\n\ninterface Props {\n data?: object\n}\n\n\n\n@tag('o-tree')\nexport default class Tree extends WeElement{\n static css = css\n\n static propTypes = {\n data: Object\n }\n\n onNodeClick = (evt, node) => {\n evt.stopPropagation()\n node.expanded = !node.expanded\n if (this.prevSelectedNode) {\n this.prevSelectedNode.selected = false\n }\n node.selected = true\n this.forceUpdate()\n this.fire('node-click', node)\n }\n\n _tempTagName: string\n prevSelectedNode\n\n onNodeArrowClick = (node) => {\n this.fire('node-arrow-click', node)\n this.fire('node-click', node)\n }\n\n onContextMenu = (evt, node) => {\n evt.stopPropagation()\n evt.preventDefault()\n this.fire('context-menu', {\n evt,\n node\n })\n }\n\n renderNode(node, level) {\n if (node.selected) {\n this.prevSelectedNode = node\n }\n this._tempTagName = 'o-icon-' + node.icon\n return
{ this.onContextMenu(evt, node) }} onClick={(evt) => { this.onNodeClick(evt, node) }}\n {...extractClass({}, 'o-tree-node', {\n 'is-expanded': node.expanded,\n 'is-current': node.selected\n })}>\n
\n {(node.children && node.children.length > 0) ? this.onNodeArrowClick(node)} viewBox=\"0 0 1024 1024\" {...extractClass({}, 'o-tree-node__expand-icon', {\n 'expanded': node.expanded,\n })} data-icon=\"caret-down\" width=\"1em\" height=\"1em\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\">\n \n : }\n {node.icon && }{node.label}\n
\n {node.expanded && node.children && node.children.length > 0 &&
\n {node.children.map(child => {\n return this.renderNode(child, level + 1)\n })}\n
}\n {node.sign && {node.sign}}\n
\n }\n\n render(props) {\n\n return (\n
\n {props.data.map(node => {\n return this.renderNode(node, 0)\n })}\n
\n )\n }\n}\n"],"names":["h","extractClass","tag","WeElement"],"mappings":";;;;;;;;;;;IAAA;IACA;IACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,C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