@opentinyvue/vue-renderless 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +16 -0
- package/action-menu/index.js +59 -0
- package/action-menu/vue.js +38 -0
- package/action-sheet/index.js +96 -0
- package/action-sheet/vue.js +66 -0
- package/alert/index.js +83 -0
- package/alert/vue.js +54 -0
- package/amount/index.js +306 -0
- package/amount/vue.js +208 -0
- package/anchor/index.js +192 -0
- package/anchor/vue.js +68 -0
- package/area/index.js +102 -0
- package/area/vue.js +32 -0
- package/async-flowchart/index.js +79 -0
- package/async-flowchart/vue.js +40 -0
- package/autocomplete/index.js +183 -0
- package/autocomplete/vue.js +151 -0
- package/autonavi-map/index.js +18 -0
- package/avatar/index.js +30 -0
- package/avatar/vue.js +22 -0
- package/badge/index.js +25 -0
- package/badge/vue.js +24 -0
- package/baidu-map/index.js +18 -0
- package/base-select/index.js +1450 -0
- package/base-select/vue.js +555 -0
- package/breadcrumb/index.js +15 -0
- package/breadcrumb/vue.js +22 -0
- package/breadcrumb-item/index.js +21 -0
- package/breadcrumb-item/vue.js +21 -0
- package/bulletin-board/index.js +25 -0
- package/bulletin-board/vue.js +30 -0
- package/button/index.js +27 -0
- package/button/vue.js +37 -0
- package/button-group/index.js +38 -0
- package/button-group/vue.js +39 -0
- package/calendar/index.js +160 -0
- package/calendar/vue.js +113 -0
- package/calendar-bar/index.js +509 -0
- package/calendar-bar/vue.js +161 -0
- package/calendar-view/index.js +606 -0
- package/calendar-view/vue.js +305 -0
- package/card/index.js +99 -0
- package/card/vue.js +72 -0
- package/card-group/vue.js +19 -0
- package/card-template/index.js +31 -0
- package/card-template/vue.js +22 -0
- package/carousel/index.js +289 -0
- package/carousel/vue.js +199 -0
- package/carousel-item/index.js +97 -0
- package/carousel-item/vue.js +74 -0
- package/cascader/index.js +546 -0
- package/cascader/vue.js +260 -0
- package/cascader-menu/index.js +42 -0
- package/cascader-menu/vue.js +26 -0
- package/cascader-mobile/index.js +316 -0
- package/cascader-mobile/vue.js +109 -0
- package/cascader-node/index.js +58 -0
- package/cascader-node/vue.js +41 -0
- package/cascader-panel/index.js +301 -0
- package/cascader-panel/node.js +136 -0
- package/cascader-panel/store.js +72 -0
- package/cascader-panel/vue.js +157 -0
- package/cascader-select/column-index.js +158 -0
- package/cascader-select/column.js +123 -0
- package/cascader-select/index.js +48 -0
- package/cascader-select/usePicker.js +252 -0
- package/cascader-select/useTouch.js +65 -0
- package/cascader-select/vue.js +64 -0
- package/cascader-view/index.js +363 -0
- package/cascader-view/vue.js +130 -0
- package/cell/vue.js +17 -0
- package/chart-bar/index.js +222 -0
- package/chart-boxplot/index.js +130 -0
- package/chart-candle/index.js +183 -0
- package/chart-core/deps/constants.js +131 -0
- package/chart-core/deps/numerify.js +244 -0
- package/chart-core/deps/utils.js +202 -0
- package/chart-core/index.js +473 -0
- package/chart-core/modules/animation.js +12 -0
- package/chart-core/modules/extend.js +48 -0
- package/chart-core/modules/mark.js +11 -0
- package/chart-core/vue.js +93 -0
- package/chart-funnel/index.js +76 -0
- package/chart-gauge/index.js +81 -0
- package/chart-graph/index.js +27 -0
- package/chart-heatmap/index.js +168 -0
- package/chart-line/index.js +166 -0
- package/chart-liquidfill/index.js +54 -0
- package/chart-map/index.js +118 -0
- package/chart-pie/index.js +146 -0
- package/chart-radar/index.js +105 -0
- package/chart-sankey/index.js +80 -0
- package/chart-scatter/index.js +173 -0
- package/chart-sunburst/index.js +28 -0
- package/chart-tree/index.js +65 -0
- package/chart-waterfall/index.js +99 -0
- package/chart-wordcloud/index.js +60 -0
- package/checkbox/index.js +147 -0
- package/checkbox/vue.js +120 -0
- package/checkbox-button/index.js +68 -0
- package/checkbox-button/vue.js +79 -0
- package/checkbox-group/index.js +7 -0
- package/checkbox-group/vue.js +29 -0
- package/chunk-G2ADBYYC.js +37 -0
- package/col/index.js +104 -0
- package/col/vue.js +25 -0
- package/collapse/index.js +36 -0
- package/collapse/vue.js +27 -0
- package/collapse-item/index.js +42 -0
- package/collapse-item/vue.js +40 -0
- package/color-picker/index.js +30 -0
- package/color-picker/utils/color.js +377 -0
- package/color-picker/utils/hsv-to-rgb.js +59 -0
- package/color-picker/vue.js +71 -0
- package/color-select-panel/alpha-select/index.js +71 -0
- package/color-select-panel/alpha-select/vue.js +43 -0
- package/color-select-panel/hue-select/index.js +57 -0
- package/color-select-panel/hue-select/vue.js +40 -0
- package/color-select-panel/index.js +243 -0
- package/color-select-panel/sv-select/index.js +68 -0
- package/color-select-panel/sv-select/vue.js +32 -0
- package/color-select-panel/utils/color.js +365 -0
- package/color-select-panel/utils/getClientXY.js +54 -0
- package/color-select-panel/utils/use-drag.js +38 -0
- package/color-select-panel/vue.js +63 -0
- package/column-list-group/index.js +0 -0
- package/column-list-group/vue.js +14 -0
- package/column-list-item/index.js +80 -0
- package/column-list-item/vue.js +55 -0
- package/common/array.js +115 -0
- package/common/bigInt.js +315 -0
- package/common/browser.js +81 -0
- package/common/calendar/calendar.js +97 -0
- package/common/dataset/index.js +99 -0
- package/common/date.js +354 -0
- package/common/decimal.js +155 -0
- package/common/deps/ResizeObserver.js +456 -0
- package/common/deps/after-leave.js +27 -0
- package/common/deps/clickoutside.js +75 -0
- package/common/deps/date-util.js +255 -0
- package/common/deps/date.js +286 -0
- package/common/deps/debounce.js +8 -0
- package/common/deps/dom.js +217 -0
- package/common/deps/eSpaceCtrl.js +304 -0
- package/common/deps/fastdom/async.js +41 -0
- package/common/deps/fastdom/index.js +9 -0
- package/common/deps/fastdom/sandbox.js +53 -0
- package/common/deps/fastdom/singleton.js +88 -0
- package/common/deps/fullscreen/apis.js +143 -0
- package/common/deps/fullscreen/screenfull.js +165 -0
- package/common/deps/infinite-scroll.js +176 -0
- package/common/deps/memorize.js +124 -0
- package/common/deps/observe-visibility.js +106 -0
- package/common/deps/popper.js +613 -0
- package/common/deps/popup-manager.js +205 -0
- package/common/deps/repeat-click.js +29 -0
- package/common/deps/resize-event.js +39 -0
- package/common/deps/scroll-into-view.js +29 -0
- package/common/deps/scrollbar-width.js +33 -0
- package/common/deps/throttle.js +45 -0
- package/common/deps/touch-emulator.js +103 -0
- package/common/deps/touch.js +37 -0
- package/common/deps/tree-model/node.js +475 -0
- package/common/deps/tree-model/tree-store.js +312 -0
- package/common/deps/tree-model/util.js +24 -0
- package/common/deps/upload-ajax.js +81 -0
- package/common/deps/useEventListener.js +54 -0
- package/common/deps/useInstanceSlots.js +22 -0
- package/common/deps/useRect.js +25 -0
- package/common/deps/useRelation.js +89 -0
- package/common/deps/useTouch.js +68 -0
- package/common/deps/useUserAgent.js +16 -0
- package/common/deps/useWindowSize.js +23 -0
- package/common/deps/vue-emitter.js +34 -0
- package/common/deps/vue-popper.js +177 -0
- package/common/deps/vue-popup.js +138 -0
- package/common/event.js +46 -0
- package/common/form/const.js +10 -0
- package/common/function.js +28 -0
- package/common/global.js +11 -0
- package/common/index.js +259 -0
- package/common/object.js +227 -0
- package/common/prop-util.js +43 -0
- package/common/runtime.js +79 -0
- package/common/string.js +417 -0
- package/common/type.js +66 -0
- package/common/validate/index.js +10 -0
- package/common/validate/messages.js +65 -0
- package/common/validate/rules/enum.js +12 -0
- package/common/validate/rules/index.js +18 -0
- package/common/validate/rules/pattern.js +20 -0
- package/common/validate/rules/range.js +52 -0
- package/common/validate/rules/required.js +11 -0
- package/common/validate/rules/type.js +100 -0
- package/common/validate/rules/whitespace.js +10 -0
- package/common/validate/schema.js +290 -0
- package/common/validate/util.js +211 -0
- package/common/validate/validations/array.js +22 -0
- package/common/validate/validations/date.js +31 -0
- package/common/validate/validations/enum.js +22 -0
- package/common/validate/validations/float.js +22 -0
- package/common/validate/validations/index.js +46 -0
- package/common/validate/validations/integer.js +22 -0
- package/common/validate/validations/method.js +21 -0
- package/common/validate/validations/number.js +25 -0
- package/common/validate/validations/pattern.js +21 -0
- package/common/validate/validations/required.js +11 -0
- package/common/validate/validations/string.js +33 -0
- package/common/validate/validations/type.js +29 -0
- package/company/index.js +41 -0
- package/company/vue.js +29 -0
- package/container/index.js +100 -0
- package/container/vue.js +47 -0
- package/country/index.js +40 -0
- package/country/vue.js +30 -0
- package/crop/index.js +170 -0
- package/crop/vue.js +183 -0
- package/currency/index.js +127 -0
- package/currency/vue.js +46 -0
- package/date-panel/index.js +485 -0
- package/date-panel/vue.js +221 -0
- package/date-picker/index.js +267 -0
- package/date-picker/vue.js +123 -0
- package/date-picker-mobile/index.js +308 -0
- package/date-picker-mobile/vue.js +111 -0
- package/date-picker-mobile/year-month.js +53 -0
- package/date-range/index.js +443 -0
- package/date-range/vue.js +195 -0
- package/date-table/index.js +362 -0
- package/date-table/vue.js +77 -0
- package/dept/index.js +230 -0
- package/dept/vue.js +102 -0
- package/dialog-box/index.js +283 -0
- package/dialog-box/vue.js +184 -0
- package/dialog-select/index.js +475 -0
- package/dialog-select/vue.js +143 -0
- package/divider/index.js +47 -0
- package/divider/vue.js +30 -0
- package/drawer/index.js +143 -0
- package/drawer/vue.js +67 -0
- package/drop-roles/index.js +54 -0
- package/drop-roles/vue.js +30 -0
- package/drop-times/index.js +22 -0
- package/drop-times/vue.js +24 -0
- package/dropdown/index.js +228 -0
- package/dropdown/vue.js +77 -0
- package/dropdown-item/index.js +138 -0
- package/dropdown-item/mf.js +76 -0
- package/dropdown-item/vue.js +116 -0
- package/dropdown-menu/index.js +178 -0
- package/dropdown-menu/vue.js +66 -0
- package/dynamic-scroller/index.js +117 -0
- package/dynamic-scroller/vue.js +88 -0
- package/dynamic-scroller-item/index.js +147 -0
- package/dynamic-scroller-item/vue.js +92 -0
- package/espace/index.js +110 -0
- package/espace/vue.js +38 -0
- package/exception/index.js +5 -0
- package/exception/vue.js +17 -0
- package/fall-menu/index.js +100 -0
- package/fall-menu/vue.js +79 -0
- package/file-upload/index.js +2208 -0
- package/file-upload/vue.js +339 -0
- package/filter/index.js +132 -0
- package/filter/tag-group.js +43 -0
- package/filter/vue.js +71 -0
- package/filter-bar/index.js +9 -0
- package/filter-bar/vue.js +16 -0
- package/filter-box/index.js +18 -0
- package/filter-box/vue.js +22 -0
- package/filter-panel/index.js +42 -0
- package/filter-panel/vue.js +33 -0
- package/float-button/index.js +42 -0
- package/float-button/vue.js +101 -0
- package/floatbar/index.js +13 -0
- package/floatbar/vue.js +14 -0
- package/floating-button/index.js +119 -0
- package/floating-button/vue.js +53 -0
- package/flowchart/index.js +1252 -0
- package/flowchart/node.js +61 -0
- package/flowchart/vue.js +109 -0
- package/fluent-editor/index.js +702 -0
- package/fluent-editor/options.js +300 -0
- package/fluent-editor/vue.js +192 -0
- package/form/index.js +209 -0
- package/form/vue.js +104 -0
- package/form-item/index.js +403 -0
- package/form-item/vue.js +166 -0
- package/fullscreen/index.js +113 -0
- package/fullscreen/vue.js +65 -0
- package/grid/core/index.js +7 -0
- package/grid/core/interceptor.js +43 -0
- package/grid/core/storeMap.js +23 -0
- package/grid/plugins/export.js +141 -0
- package/grid/plugins/exportExcel.js +502 -0
- package/grid/plugins/header.js +59 -0
- package/grid/plugins/resize.js +65 -0
- package/grid/static/array/arrayEach.js +16 -0
- package/grid/static/array/arrayIndexOf.js +15 -0
- package/grid/static/array/eachTree.js +28 -0
- package/grid/static/array/every.js +6 -0
- package/grid/static/array/filterTree.js +21 -0
- package/grid/static/array/find.js +7 -0
- package/grid/static/array/findTree.js +35 -0
- package/grid/static/array/helperCreateIterateHandle.js +51 -0
- package/grid/static/array/helperCreateTreeFunc.js +20 -0
- package/grid/static/array/includes.js +7 -0
- package/grid/static/array/lastArrayEach.js +10 -0
- package/grid/static/array/map.js +24 -0
- package/grid/static/array/mapTree.js +29 -0
- package/grid/static/array/slice.js +14 -0
- package/grid/static/array/sortBy.js +67 -0
- package/grid/static/array/sum.js +29 -0
- package/grid/static/array/toArray.js +7 -0
- package/grid/static/array/toTreeArray.js +22 -0
- package/grid/static/base/clear.js +48 -0
- package/grid/static/base/clone.js +12 -0
- package/grid/static/base/destructuring.js +22 -0
- package/grid/static/base/each.js +13 -0
- package/grid/static/base/eqNull.js +8 -0
- package/grid/static/base/findIndexOf.js +14 -0
- package/grid/static/base/get.js +46 -0
- package/grid/static/base/has.js +61 -0
- package/grid/static/base/hasOwnProp.js +6 -0
- package/grid/static/base/helperCreateGetObjects.js +30 -0
- package/grid/static/base/helperCreateInInObjectString.js +11 -0
- package/grid/static/base/helperCreateInTypeof.js +9 -0
- package/grid/static/base/helperCreateIndexOf.js +22 -0
- package/grid/static/base/helperCreateiterateIndexOf.js +22 -0
- package/grid/static/base/helperDefaultCompare.js +8 -0
- package/grid/static/base/helperDeleteProperty.js +12 -0
- package/grid/static/base/helperEqualCompare.js +58 -0
- package/grid/static/base/helperGetHGSKeys.js +9 -0
- package/grid/static/base/indexOf.js +7 -0
- package/grid/static/base/isArray.js +7 -0
- package/grid/static/base/isBoolean.js +6 -0
- package/grid/static/base/isDate.js +7 -0
- package/grid/static/base/isEmpty.js +12 -0
- package/grid/static/base/isEqual.js +11 -0
- package/grid/static/base/isFunction.js +6 -0
- package/grid/static/base/isNaN.js +7 -0
- package/grid/static/base/isNull.js +6 -0
- package/grid/static/base/isNumber.js +6 -0
- package/grid/static/base/isObject.js +6 -0
- package/grid/static/base/isPlainObject.js +6 -0
- package/grid/static/base/isRegExp.js +7 -0
- package/grid/static/base/isSet.js +7 -0
- package/grid/static/base/isString.js +6 -0
- package/grid/static/base/isUndefined.js +6 -0
- package/grid/static/base/keys.js +7 -0
- package/grid/static/base/lastEach.js +13 -0
- package/grid/static/base/remove.js +44 -0
- package/grid/static/base/set.js +47 -0
- package/grid/static/base/toJSONString.js +6 -0
- package/grid/static/base/toStringJSON.js +18 -0
- package/grid/static/base/uniqueId.js +7 -0
- package/grid/static/browse/browse.js +57 -0
- package/grid/static/function/property.js +7 -0
- package/grid/static/function/throttle.js +47 -0
- package/grid/static/index.js +111 -0
- package/grid/static/number/helperCreateToNumber.js +14 -0
- package/grid/static/number/toNumber.js +7 -0
- package/grid/static/object/assign.js +41 -0
- package/grid/static/object/extend.js +7 -0
- package/grid/static/object/lastObjectEach.js +12 -0
- package/grid/static/object/objectEach.js +15 -0
- package/grid/static/object/objectMap.js +24 -0
- package/grid/static/object/values.js +17 -0
- package/grid/static/static/staticDocument.js +7 -0
- package/grid/static/static/staticHGKeyRE.js +6 -0
- package/grid/static/static/staticParseInt.js +6 -0
- package/grid/static/static/staticStrUndefined.js +6 -0
- package/grid/static/static/staticWindow.js +7 -0
- package/grid/static/string/template.js +14 -0
- package/grid/static/string/toString.js +16 -0
- package/grid/utils/column.js +73 -0
- package/grid/utils/common.js +136 -0
- package/grid/utils/dom.js +224 -0
- package/grid/utils/event.js +40 -0
- package/grid/utils/index.js +8 -0
- package/grid-select/index.js +82 -0
- package/grid-select/vue.js +30 -0
- package/guide/index.js +185 -0
- package/guide/vue.js +38 -0
- package/hrapprover/index.js +95 -0
- package/hrapprover/vue.js +57 -0
- package/image/index.js +135 -0
- package/image/vue.js +111 -0
- package/image-viewer/index.js +681 -0
- package/image-viewer/vue.js +237 -0
- package/index-bar/index.js +66 -0
- package/index-bar/vue.js +73 -0
- package/index-bar-anchor/vue.js +16 -0
- package/input/index.js +413 -0
- package/input/vue.js +353 -0
- package/ip-address/index.js +271 -0
- package/ip-address/vue.js +143 -0
- package/label/index.js +56 -0
- package/label/vue.js +26 -0
- package/layout/vue.js +7 -0
- package/link/index.js +9 -0
- package/link/vue.js +20 -0
- package/link-menu/index.js +104 -0
- package/link-menu/vue.js +95 -0
- package/list/index.js +13 -0
- package/list/vue.js +17 -0
- package/load-list/index.js +43 -0
- package/load-list/vue.js +69 -0
- package/loading/index.js +30 -0
- package/loading/vue.js +32 -0
- package/locales/index.js +82 -0
- package/locales/vue.js +28 -0
- package/logon-user/index.js +20 -0
- package/logon-user/vue.js +19 -0
- package/logout/index.js +84 -0
- package/logout/vue.js +18 -0
- package/mask/index.js +13 -0
- package/mask/vue.js +18 -0
- package/menu/index.js +140 -0
- package/menu/vue.js +99 -0
- package/menu-node/index.js +12 -0
- package/menu-node/vue.js +42 -0
- package/milestone/index.js +123 -0
- package/milestone/vue.js +46 -0
- package/mind-map/index.js +47 -0
- package/mind-map/vue.js +53 -0
- package/mini-picker/index.js +165 -0
- package/mini-picker/vue.js +122 -0
- package/modal/index.js +716 -0
- package/modal/vue.js +122 -0
- package/month-range/index.js +134 -0
- package/month-range/vue.js +88 -0
- package/month-table/index.js +194 -0
- package/month-table/vue.js +50 -0
- package/multi-select/index.js +394 -0
- package/multi-select/vue.js +113 -0
- package/multi-select-item/index.js +23 -0
- package/multi-select-item/vue.js +31 -0
- package/nav-menu/index.js +508 -0
- package/nav-menu/vue.js +153 -0
- package/notify/index.js +69 -0
- package/notify/vue.js +63 -0
- package/numeric/index.js +397 -0
- package/numeric/vue.js +153 -0
- package/option/index.js +67 -0
- package/option/vue.js +132 -0
- package/option-group/index.js +28 -0
- package/option-group/vue.js +45 -0
- package/package.json +41 -0
- package/pager/index.js +409 -0
- package/pager/vue.js +155 -0
- package/pager-item/index.js +107 -0
- package/pager-item/vue.js +44 -0
- package/panel/index.js +24 -0
- package/panel/vue.js +20 -0
- package/picker/index.js +1119 -0
- package/picker/mb.js +47 -0
- package/picker/timezone.js +1174 -0
- package/picker/vue.js +291 -0
- package/picker-column/index.js +215 -0
- package/picker-column/vue.js +104 -0
- package/pop-upload/index.js +174 -0
- package/pop-upload/vue.js +165 -0
- package/popconfirm/index.js +38 -0
- package/popconfirm/vue.js +35 -0
- package/popeditor/index.js +709 -0
- package/popeditor/vue.js +223 -0
- package/popover/index.js +207 -0
- package/popover/vue.js +165 -0
- package/popup/index.js +101 -0
- package/popup/vue.js +69 -0
- package/progress/index.js +151 -0
- package/progress/vue.js +87 -0
- package/pull-refresh/index.js +123 -0
- package/pull-refresh/vue.js +76 -0
- package/pull-refresh-mobile-first/index.js +243 -0
- package/pull-refresh-mobile-first/vue.js +116 -0
- package/qr-code/index.js +54 -0
- package/qr-code/vue.js +31 -0
- package/quarter-panel/index.js +61 -0
- package/quarter-panel/vue.js +46 -0
- package/query-builder/index.js +9 -0
- package/query-builder/vue.js +18 -0
- package/radio/index.js +74 -0
- package/radio/vue.js +56 -0
- package/radio-button/index.js +61 -0
- package/radio-button/vue.js +60 -0
- package/radio-group/index.js +49 -0
- package/radio-group/vue.js +34 -0
- package/rate/index.js +223 -0
- package/rate/vue.js +131 -0
- package/record/index.js +300 -0
- package/record/vue.js +61 -0
- package/recycle-scroller/index.js +486 -0
- package/recycle-scroller/vue.js +141 -0
- package/rich-text/clipboard.js +54 -0
- package/rich-text/index.js +205 -0
- package/rich-text/module/file-upload.js +107 -0
- package/rich-text/module/image-drop.js +63 -0
- package/rich-text/module/image-upload.js +89 -0
- package/rich-text/options.js +141 -0
- package/rich-text/table-module.js +383 -0
- package/rich-text/vue.js +104 -0
- package/rich-text-editor/index.js +234 -0
- package/rich-text-editor/vue.js +297 -0
- package/river/index.js +371 -0
- package/river/river.js +352 -0
- package/river/vue.js +77 -0
- package/roles/index.js +58 -0
- package/roles/vue.js +27 -0
- package/row/index.js +18 -0
- package/row/vue.js +25 -0
- package/scroll-text/index.js +19 -0
- package/scroll-text/vue.js +22 -0
- package/scrollbar/index.js +99 -0
- package/scrollbar/vue-bar.js +42 -0
- package/scrollbar/vue.js +35 -0
- package/search/index.js +97 -0
- package/search/vue.js +99 -0
- package/select/index.js +1847 -0
- package/select/vue.js +642 -0
- package/select-dropdown/index.js +76 -0
- package/select-dropdown/vue.js +146 -0
- package/select-mobile/index.js +124 -0
- package/select-mobile/vue.js +67 -0
- package/select-view/index.js +156 -0
- package/select-view/vue.js +79 -0
- package/selected-box/index.js +220 -0
- package/selected-box/vue.js +102 -0
- package/signature/index.js +241 -0
- package/signature/vue.js +88 -0
- package/skeleton/index.js +14 -0
- package/skeleton/vue.js +15 -0
- package/skeleton-item/vue.js +15 -0
- package/slider/index.js +527 -0
- package/slider/vue.js +200 -0
- package/slider-button/index.js +50 -0
- package/slider-button/vue.js +41 -0
- package/slider-button-group/index.js +52 -0
- package/slider-button-group/slide-button.js +142 -0
- package/slider-button-group/vue.js +71 -0
- package/split/index.js +135 -0
- package/split/vue.js +95 -0
- package/standard-list-item/index.js +38 -0
- package/standard-list-item/vue.js +24 -0
- package/statistic/index.js +32 -0
- package/statistic/vue.js +20 -0
- package/steps/index.js +61 -0
- package/steps/slide-bar.js +129 -0
- package/steps/vue.js +35 -0
- package/sticky/index.js +89 -0
- package/sticky/vue.js +74 -0
- package/switch/index.js +36 -0
- package/switch/vue.js +42 -0
- package/tab-bar/index.js +57 -0
- package/tab-bar/vue.js +19 -0
- package/tab-dropdown/index.js +12 -0
- package/tab-dropdown/vue.js +20 -0
- package/tab-item/index.js +22 -0
- package/tab-item/vue.js +30 -0
- package/tab-item-mf/index.js +0 -0
- package/tab-item-mf/vue.js +27 -0
- package/tab-nav/index.js +348 -0
- package/tab-nav/vue.js +105 -0
- package/tabbar/index.js +61 -0
- package/tabbar/vue.js +62 -0
- package/tabbar-item/index.js +48 -0
- package/tabbar-item/vue.js +34 -0
- package/table/index.js +77 -0
- package/table/vue.js +42 -0
- package/tabs/index.js +213 -0
- package/tabs/vue.js +116 -0
- package/tabs-mf/index.js +286 -0
- package/tabs-mf/vue-bar.js +50 -0
- package/tabs-mf/vue-nav-item.js +23 -0
- package/tabs-mf/vue-nav.js +44 -0
- package/tabs-mf/vue-swipe.js +20 -0
- package/tabs-mf/vue.js +100 -0
- package/tabs-mf/wheel.js +77 -0
- package/tag/index.js +20 -0
- package/tag/vue.js +24 -0
- package/tag-group/index.js +38 -0
- package/tag-group/vue.js +36 -0
- package/tall-storage/index.js +141 -0
- package/tall-storage/vue-storage-box.js +19 -0
- package/tall-storage/vue.js +30 -0
- package/text-popup/index.js +55 -0
- package/text-popup/vue.js +32 -0
- package/time/index.js +89 -0
- package/time/vue.js +87 -0
- package/time-line/index.js +91 -0
- package/time-line/vue.js +52 -0
- package/time-line-new/index.js +53 -0
- package/time-line-new/vue.js +41 -0
- package/time-panel/index.js +133 -0
- package/time-panel/scrollIntoView.js +25 -0
- package/time-panel/vue.js +82 -0
- package/time-picker-mobile/index.js +58 -0
- package/time-picker-mobile/vue.js +42 -0
- package/time-range/index.js +147 -0
- package/time-range/vue.js +90 -0
- package/time-spinner/index.js +221 -0
- package/time-spinner/vue.js +111 -0
- package/timeline-item/index.js +92 -0
- package/timeline-item/vue.js +55 -0
- package/toast/index.js +7 -0
- package/toast/vue.js +19 -0
- package/toggle-menu/index.js +85 -0
- package/toggle-menu/vue.js +86 -0
- package/tooltip/index.js +175 -0
- package/tooltip/vue.js +123 -0
- package/top-box/index.js +48 -0
- package/top-box/vue.js +61 -0
- package/transfer/index.js +219 -0
- package/transfer/vue.js +64 -0
- package/transfer-panel/index.js +275 -0
- package/transfer-panel/vue.js +152 -0
- package/tree/index.js +796 -0
- package/tree/vue.js +288 -0
- package/tree-menu/index.js +170 -0
- package/tree-menu/vue.js +117 -0
- package/tree-node/index.js +279 -0
- package/tree-node/vue.js +150 -0
- package/tree-select/index.js +118 -0
- package/tree-select/vue.js +35 -0
- package/types/action-menu.type.d.ts +129 -0
- package/types/action-sheet.type.d.ts +119 -0
- package/types/alert.type.d.ts +134 -0
- package/types/amount.type.d.ts +169 -0
- package/types/anchor.type.d.ts +91 -0
- package/types/area.type.d.ts +135 -0
- package/types/async-flowchart.type.d.ts +72 -0
- package/types/autocomplete.type.d.ts +204 -0
- package/types/autonavi-map.type.d.ts +2 -0
- package/types/avatar.type.d.ts +2 -0
- package/types/badge.type.d.ts +84 -0
- package/types/baidu-map.type.d.ts +2 -0
- package/types/breadcrumb-item.type.d.ts +33 -0
- package/types/breadcrumb.type.d.ts +59 -0
- package/types/bulletin-board.type.d.ts +2 -0
- package/types/button-group.type.d.ts +90 -0
- package/types/button.type.d.ts +120 -0
- package/types/calendar-bar.type.d.ts +2 -0
- package/types/calendar.type.d.ts +2 -0
- package/types/card-group.type.d.ts +2 -0
- package/types/card-template.type.d.ts +2 -0
- package/types/card.type.d.ts +2 -0
- package/types/carousel-item.type.d.ts +2 -0
- package/types/carousel.type.d.ts +2 -0
- package/types/cascader-menu.type.d.ts +48 -0
- package/types/cascader-mobile.type.d.ts +2 -0
- package/types/cascader-node.type.d.ts +56 -0
- package/types/cascader-panel.type-8f58e628.d.ts +241 -0
- package/types/cascader-panel.type.d.ts +3 -0
- package/types/cascader-select.type.d.ts +2 -0
- package/types/cascader.type.d.ts +330 -0
- package/types/cell.type.d.ts +2 -0
- package/types/chart-bar.type.d.ts +2 -0
- package/types/chart-boxplot.type.d.ts +2 -0
- package/types/chart-candle.type.d.ts +2 -0
- package/types/chart-core.type.d.ts +2 -0
- package/types/chart-funnel.type.d.ts +2 -0
- package/types/chart-gauge.type.d.ts +2 -0
- package/types/chart-graph.type.d.ts +2 -0
- package/types/chart-heatmap.type.d.ts +2 -0
- package/types/chart-line.type.d.ts +2 -0
- package/types/chart-liquidfill.type.d.ts +2 -0
- package/types/chart-map.type.d.ts +2 -0
- package/types/chart-pie.type.d.ts +2 -0
- package/types/chart-radar.type.d.ts +2 -0
- package/types/chart-sankey.type.d.ts +2 -0
- package/types/chart-scatter.type.d.ts +2 -0
- package/types/chart-sunburst.type.d.ts +2 -0
- package/types/chart-tree.type.d.ts +2 -0
- package/types/chart-waterfall.type.d.ts +2 -0
- package/types/chart-wordcloud.type.d.ts +2 -0
- package/types/checkbox-button.type.d.ts +2 -0
- package/types/checkbox-group.type.d.ts +2 -0
- package/types/checkbox.type.d.ts +169 -0
- package/types/col.type.d.ts +2 -0
- package/types/collapse-item.type.d.ts +63 -0
- package/types/collapse.type.d.ts +73 -0
- package/types/color-picker.type.d.ts +5 -0
- package/types/color-select-panel.type.d.ts +27 -0
- package/types/column-list-group.type.d.ts +2 -0
- package/types/column-list-item.type.d.ts +2 -0
- package/types/common.type.d.ts +2 -0
- package/types/company.type.d.ts +2 -0
- package/types/container.type.d.ts +2 -0
- package/types/country.type.d.ts +2 -0
- package/types/credit-card-form.type.d.ts +2 -0
- package/types/credit-card.type.d.ts +2 -0
- package/types/crop.type.d.ts +2 -0
- package/types/currency.type.d.ts +2 -0
- package/types/date-panel.type.d.ts +2 -0
- package/types/date-picker-mobile.type.d.ts +2 -0
- package/types/date-picker.type.d.ts +256 -0
- package/types/date-range.type.d.ts +2 -0
- package/types/date-table.type.d.ts +151 -0
- package/types/dept.type.d.ts +2 -0
- package/types/detail-page.type.d.ts +2 -0
- package/types/dialog-box.type.d.ts +270 -0
- package/types/dialog-select.type.d.ts +2 -0
- package/types/divider.type.d.ts +94 -0
- package/types/drawer.type.d.ts +146 -0
- package/types/drop-roles.type.d.ts +2 -0
- package/types/drop-times.type.d.ts +2 -0
- package/types/dropdown-item.type-c9badbc1.d.ts +336 -0
- package/types/dropdown-item.type.d.ts +4 -0
- package/types/dropdown-menu.type.d.ts +4 -0
- package/types/dropdown.type.d.ts +145 -0
- package/types/dynamic-scroller-item.type.d.ts +2 -0
- package/types/dynamic-scroller.type.d.ts +2 -0
- package/types/espace.type.d.ts +2 -0
- package/types/exception.type.d.ts +2 -0
- package/types/fall-menu.type.d.ts +96 -0
- package/types/file-upload.type.d.ts +3 -0
- package/types/filter-bar.type.d.ts +2 -0
- package/types/filter-box.type.d.ts +2 -0
- package/types/filter-panel.type.d.ts +2 -0
- package/types/filter.type.d.ts +2 -0
- package/types/float-button.type.d.ts +123 -0
- package/types/floatbar.type.d.ts +45 -0
- package/types/floating-button.type.d.ts +2 -0
- package/types/flowchart.type.d.ts +2 -0
- package/types/form-item.type.d.ts +3 -0
- package/types/form.type-4e0ec0a1.d.ts +421 -0
- package/types/form.type.d.ts +3 -0
- package/types/fullscreen.type.d.ts +2 -0
- package/types/grid.type.d.ts +2 -0
- package/types/guide.type.d.ts +2 -0
- package/types/hrapprover.type.d.ts +2 -0
- package/types/image-viewer.type.d.ts +2 -0
- package/types/image.type.d.ts +184 -0
- package/types/index-a975a7a2.d.ts +54 -0
- package/types/index-bar-anchor.type.d.ts +2 -0
- package/types/index-bar.type.d.ts +2 -0
- package/types/input.type.d.ts +330 -0
- package/types/ip-address.type.d.ts +156 -0
- package/types/label.type.d.ts +81 -0
- package/types/layout.type.d.ts +2 -0
- package/types/link-menu.type.d.ts +2 -0
- package/types/link.type.d.ts +48 -0
- package/types/list.type.d.ts +2 -0
- package/types/load-list.type.d.ts +58 -0
- package/types/loading.type.d.ts +97 -0
- package/types/locales.type.d.ts +2 -0
- package/types/logon-user.type.d.ts +2 -0
- package/types/logout.type.d.ts +2 -0
- package/types/milestone.type.d.ts +170 -0
- package/types/mind-map.type.d.ts +20 -0
- package/types/mini-picker.type.d.ts +2 -0
- package/types/modal.type.d.ts +292 -0
- package/types/month-range.type.d.ts +2 -0
- package/types/month-table.type.d.ts +2 -0
- package/types/multi-select.type.d.ts +2 -0
- package/types/nav-menu.type.d.ts +125 -0
- package/types/notify.type.d.ts +2 -0
- package/types/numeric.type.d.ts +312 -0
- package/types/option-group.type.d.ts +2 -0
- package/types/option.type.d.ts +2 -0
- package/types/pager-item.type.d.ts +2 -0
- package/types/pager.type.d.ts +180 -0
- package/types/panel.type.d.ts +2 -0
- package/types/picker-column.type.d.ts +2 -0
- package/types/picker.type.d.ts +216 -0
- package/types/pop-upload.type.d.ts +2 -0
- package/types/popconfirm.type.d.ts +95 -0
- package/types/popeditor.type.d.ts +279 -0
- package/types/popover.type.d.ts +164 -0
- package/types/popup.type.d.ts +2 -0
- package/types/progress.type.d.ts +218 -0
- package/types/pull-refresh.type.d.ts +2 -0
- package/types/query-builder.type.d.ts +2 -0
- package/types/radio-button.type.d.ts +90 -0
- package/types/radio-group.type.d.ts +71 -0
- package/types/radio.type.d.ts +99 -0
- package/types/rate.type.d.ts +237 -0
- package/types/record.type.d.ts +2 -0
- package/types/recycle-scroller.type.d.ts +2 -0
- package/types/river.type.d.ts +2 -0
- package/types/roles.type.d.ts +2 -0
- package/types/row.type.d.ts +2 -0
- package/types/scroll-text.type.d.ts +2 -0
- package/types/scrollbar.type.d.ts +2 -0
- package/types/search.type.d.ts +129 -0
- package/types/select-dropdown.type.d.ts +2 -0
- package/types/select-mobile.type.d.ts +2 -0
- package/types/select-view.type.d.ts +2 -0
- package/types/select.type.d.ts +2 -0
- package/types/selected-box.type.d.ts +2 -0
- package/types/shared.type.d.ts +178 -0
- package/types/skeleton-item.type.d.ts +38 -0
- package/types/skeleton.type.d.ts +45 -0
- package/types/slide-bar.type.d.ts +2 -0
- package/types/slider-button-group.type.d.ts +2 -0
- package/types/slider-button.type.d.ts +2 -0
- package/types/slider.type.d.ts +246 -0
- package/types/split.type.d.ts +2 -0
- package/types/standard-list-item.type.d.ts +2 -0
- package/types/statistic.type.d.ts +52 -0
- package/types/steps.type.d.ts +95 -0
- package/types/switch.type.d.ts +117 -0
- package/types/tab-bar.type.d.ts +43 -0
- package/types/tab-dropdown.type.d.ts +2 -0
- package/types/tab-item-mf.type.d.ts +2 -0
- package/types/tab-item.type.d.ts +70 -0
- package/types/tab-nav.type.d.ts +112 -0
- package/types/tabbar-item.type.d.ts +2 -0
- package/types/tabbar.type.d.ts +2 -0
- package/types/table.type.d.ts +2 -0
- package/types/tabs-mf.type.d.ts +2 -0
- package/types/tabs.type.d.ts +161 -0
- package/types/tag-group.type.d.ts +65 -0
- package/types/tag.type.d.ts +67 -0
- package/types/tall-storage.type.d.ts +2 -0
- package/types/text-popup.type.d.ts +2 -0
- package/types/time-line.type-9fb16096.d.ts +327 -0
- package/types/time-line.type.d.ts +4 -0
- package/types/time-panel.type.d.ts +2 -0
- package/types/time-picker-mobile.type.d.ts +2 -0
- package/types/time-range.type.d.ts +2 -0
- package/types/time-spinner.type.d.ts +2 -0
- package/types/time.type.d.ts +2 -0
- package/types/timeline-item.type.d.ts +4 -0
- package/types/toast.type.d.ts +63 -0
- package/types/toggle-menu.type.d.ts +2 -0
- package/types/tooltip.type.d.ts +185 -0
- package/types/top-box.type.d.ts +2 -0
- package/types/transfer-panel.type.d.ts +2 -0
- package/types/transfer.type.d.ts +186 -0
- package/types/tree-menu.type.d.ts +242 -0
- package/types/tree-node.type.d.ts +2 -0
- package/types/tree.type.d.ts +2 -0
- package/types/upload-dragger.type.d.ts +50 -0
- package/types/upload-list.type-eaf82b7a.d.ts +1213 -0
- package/types/upload-list.type.d.ts +3 -0
- package/types/upload.type.d.ts +3 -0
- package/types/user-account.type.d.ts +2 -0
- package/types/user-contact.type.d.ts +128 -0
- package/types/user-head-group.type.d.ts +2 -0
- package/types/user-head.type.d.ts +151 -0
- package/types/user-link.type.d.ts +2 -0
- package/types/user.type.d.ts +2 -0
- package/types/watermark.type.d.ts +33 -0
- package/types/wheel.type.d.ts +2 -0
- package/types/wizard.type.d.ts +96 -0
- package/types/year-range.type.d.ts +2 -0
- package/types/year-table.type.d.ts +2 -0
- package/upload/index.js +405 -0
- package/upload/vue.js +81 -0
- package/upload-dragger/index.js +72 -0
- package/upload-dragger/vue.js +26 -0
- package/upload-list/index.js +256 -0
- package/upload-list/vue.js +128 -0
- package/user/index.js +532 -0
- package/user/vue.js +76 -0
- package/user-account/index.js +18 -0
- package/user-account/vue.js +22 -0
- package/user-contact/index.js +57 -0
- package/user-contact/vue.js +29 -0
- package/user-head/index.js +73 -0
- package/user-head/vue.js +39 -0
- package/user-head-group/index.js +20 -0
- package/user-head-group/vue.js +30 -0
- package/user-link/index.js +42 -0
- package/user-link/vue.js +42 -0
- package/virtual-scroll-box/index.js +294 -0
- package/virtual-scroll-box/vue.js +43 -0
- package/virtual-tree/index.js +168 -0
- package/virtual-tree/vue.js +53 -0
- package/watermark/index.js +213 -0
- package/watermark/vue.js +27 -0
- package/wheel/index.js +165 -0
- package/wheel/vue.js +79 -0
- package/wizard/index.js +107 -0
- package/wizard/vue.js +48 -0
- package/year-range/index.js +125 -0
- package/year-range/vue.js +88 -0
- package/year-table/index.js +185 -0
- package/year-table/vue.js +43 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import "../../chunk-G2ADBYYC.js";
|
|
2
|
+
import { hasOwn, isNull } from "../type";
|
|
3
|
+
import globalConfig from "../global";
|
|
4
|
+
const isServer = typeof window === "undefined";
|
|
5
|
+
const SPECIAL_CHARS_REGEXP = /([:\-_]+(.))/g;
|
|
6
|
+
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
7
|
+
const camelCase = (name) => name.replace(SPECIAL_CHARS_REGEXP, (_, separator, letter, offset) => offset ? letter.toUpperCase() : letter).replace(MOZ_HACK_REGEXP, "Moz$1");
|
|
8
|
+
const on = (el, event, handler, options = false) => {
|
|
9
|
+
if (el && event && handler) {
|
|
10
|
+
el.addEventListener(event, handler, options);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const off = (el, event, handler, options = false) => {
|
|
14
|
+
if (el && event) {
|
|
15
|
+
el.removeEventListener(event, handler, options);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const once = (el, event, fn) => {
|
|
19
|
+
const listener = function() {
|
|
20
|
+
if (fn) {
|
|
21
|
+
fn.apply(this, arguments);
|
|
22
|
+
}
|
|
23
|
+
off(el, event, listener);
|
|
24
|
+
};
|
|
25
|
+
on(el, event, listener);
|
|
26
|
+
};
|
|
27
|
+
const hasClass = (el, clazz) => {
|
|
28
|
+
if (!el || !clazz) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (clazz.includes(" ")) {
|
|
32
|
+
throw new Error("className should not contain space.");
|
|
33
|
+
}
|
|
34
|
+
if (el.classList) {
|
|
35
|
+
return el.classList.contains(clazz);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const addClass = (el, clazz = "") => {
|
|
39
|
+
if (!el) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const classes = clazz.split(" ").filter((name) => name);
|
|
43
|
+
classes.forEach((clsName) => el.classList.add(clsName));
|
|
44
|
+
};
|
|
45
|
+
const removeClass = (el, clazz) => {
|
|
46
|
+
if (!el || !clazz) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const classes = clazz.split(" ").filter((name) => name);
|
|
50
|
+
classes.forEach((clsName) => el.classList.remove(clsName));
|
|
51
|
+
};
|
|
52
|
+
const getStyle = (el, styleName) => {
|
|
53
|
+
if (isServer) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (!el || !styleName) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
styleName = camelCase(styleName);
|
|
60
|
+
if (styleName === "float") {
|
|
61
|
+
styleName = "cssFloat";
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
if (el.style[styleName]) {
|
|
65
|
+
return el.style[styleName];
|
|
66
|
+
}
|
|
67
|
+
const computed = window.getComputedStyle(el);
|
|
68
|
+
return computed ? computed[styleName] : null;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
return el.style[styleName];
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const setStyle = (el, name, value) => {
|
|
74
|
+
if (!el || !name) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (typeof name === "object") {
|
|
78
|
+
for (const prop in name) {
|
|
79
|
+
if (hasOwn.call(name, prop)) {
|
|
80
|
+
setStyle(el, prop, name[prop]);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
name = camelCase(name);
|
|
85
|
+
el.style[name] = value;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const isScroll = (el, vertical) => {
|
|
89
|
+
if (isServer) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const determinedDirection = !isNull(vertical);
|
|
93
|
+
let overflow;
|
|
94
|
+
if (determinedDirection) {
|
|
95
|
+
overflow = vertical ? getStyle(el, "overflow-y") : getStyle(el, "overflow-x");
|
|
96
|
+
} else {
|
|
97
|
+
overflow = getStyle(el, "overflow");
|
|
98
|
+
}
|
|
99
|
+
return overflow.match(/(scroll|auto)/);
|
|
100
|
+
};
|
|
101
|
+
const getScrollContainer = (el, vertical) => {
|
|
102
|
+
if (isServer) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
let parent = el;
|
|
106
|
+
while (parent) {
|
|
107
|
+
if (~[window, document, document.documentElement].indexOf(parent)) {
|
|
108
|
+
return window;
|
|
109
|
+
}
|
|
110
|
+
if (isScroll(parent, vertical)) {
|
|
111
|
+
return parent;
|
|
112
|
+
}
|
|
113
|
+
parent = parent.parentNode;
|
|
114
|
+
}
|
|
115
|
+
return parent;
|
|
116
|
+
};
|
|
117
|
+
const isInContainer = (el, container) => {
|
|
118
|
+
if (isServer || !el || !container) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
const elRect = el.getBoundingClientRect();
|
|
122
|
+
let containerRect;
|
|
123
|
+
if (~[window, document, document.documentElement].indexOf(container) || isNull(container)) {
|
|
124
|
+
containerRect = {
|
|
125
|
+
top: 0,
|
|
126
|
+
right: window.innerWidth,
|
|
127
|
+
bottom: window.innerHeight,
|
|
128
|
+
left: 0
|
|
129
|
+
};
|
|
130
|
+
} else {
|
|
131
|
+
containerRect = container.getBoundingClientRect();
|
|
132
|
+
}
|
|
133
|
+
return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
|
|
134
|
+
};
|
|
135
|
+
const getDomNode = () => {
|
|
136
|
+
const viewportWindow = globalConfig.viewportWindow || window;
|
|
137
|
+
let documentElement = viewportWindow.document.documentElement;
|
|
138
|
+
let bodyElem = viewportWindow.document.body;
|
|
139
|
+
return {
|
|
140
|
+
scrollTop: documentElement.scrollTop || bodyElem.scrollTop,
|
|
141
|
+
scrollLeft: documentElement.scrollLeft || bodyElem.scrollLeft,
|
|
142
|
+
visibleHeight: documentElement.clientHeight || bodyElem.clientHeight,
|
|
143
|
+
visibleWidth: documentElement.clientWidth || bodyElem.clientWidth
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
const getScrollTop = (el) => {
|
|
147
|
+
const top = "scrollTop" in el ? el.scrollTop : el.pageYOffset;
|
|
148
|
+
return Math.max(top, 0);
|
|
149
|
+
};
|
|
150
|
+
const stopPropagation = (event) => event.stopPropagation();
|
|
151
|
+
const preventDefault = (event, isStopPropagation) => {
|
|
152
|
+
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
153
|
+
event.preventDefault();
|
|
154
|
+
}
|
|
155
|
+
if (isStopPropagation) {
|
|
156
|
+
stopPropagation(event);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const overflowScrollReg = /scroll|auto|overlay/i;
|
|
160
|
+
const defaultRoot = isServer ? void 0 : window;
|
|
161
|
+
const isElement = (node) => node.tagName !== "HTML" && node.tagName !== "BODY" && node.nodeType === 1;
|
|
162
|
+
const getScrollParent = (el, root = defaultRoot) => {
|
|
163
|
+
let node = el;
|
|
164
|
+
while (node && node !== root && isElement(node)) {
|
|
165
|
+
const { overflowY } = window.getComputedStyle(node);
|
|
166
|
+
if (overflowScrollReg.test(overflowY)) {
|
|
167
|
+
return node;
|
|
168
|
+
}
|
|
169
|
+
node = node.parentNode;
|
|
170
|
+
}
|
|
171
|
+
return root;
|
|
172
|
+
};
|
|
173
|
+
const useScrollParent = ({ onMounted, ref, watch }) => (elRef, root = defaultRoot) => {
|
|
174
|
+
const scrollParent = ref();
|
|
175
|
+
const setScrollParent = () => scrollParent.value = getScrollParent(elRef.value, root);
|
|
176
|
+
watch(elRef, setScrollParent);
|
|
177
|
+
onMounted(() => elRef.value && setScrollParent());
|
|
178
|
+
return scrollParent;
|
|
179
|
+
};
|
|
180
|
+
const isDisplayNone = (elm) => {
|
|
181
|
+
if (isServer)
|
|
182
|
+
return false;
|
|
183
|
+
if (elm) {
|
|
184
|
+
const computedStyle = getComputedStyle(elm);
|
|
185
|
+
if (computedStyle.getPropertyValue("position") === "fixed") {
|
|
186
|
+
if (computedStyle.getPropertyValue("display") === "none") {
|
|
187
|
+
return true;
|
|
188
|
+
} else if (elm.parentNode !== document.body) {
|
|
189
|
+
return isDisplayNone(elm.parentNode);
|
|
190
|
+
}
|
|
191
|
+
} else {
|
|
192
|
+
return elm.offsetParent === null;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return false;
|
|
196
|
+
};
|
|
197
|
+
export {
|
|
198
|
+
addClass,
|
|
199
|
+
getDomNode,
|
|
200
|
+
getScrollContainer,
|
|
201
|
+
getScrollParent,
|
|
202
|
+
getScrollTop,
|
|
203
|
+
getStyle,
|
|
204
|
+
hasClass,
|
|
205
|
+
isDisplayNone,
|
|
206
|
+
isInContainer,
|
|
207
|
+
isScroll,
|
|
208
|
+
isServer,
|
|
209
|
+
off,
|
|
210
|
+
on,
|
|
211
|
+
once,
|
|
212
|
+
preventDefault,
|
|
213
|
+
removeClass,
|
|
214
|
+
setStyle,
|
|
215
|
+
stopPropagation,
|
|
216
|
+
useScrollParent
|
|
217
|
+
};
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import "../../chunk-G2ADBYYC.js";
|
|
2
|
+
import { isBrowser } from "../browser";
|
|
3
|
+
let ws = null;
|
|
4
|
+
const url = "ws://localhost";
|
|
5
|
+
const ports = [27197, 27198, 27199];
|
|
6
|
+
let index = 0;
|
|
7
|
+
let connected;
|
|
8
|
+
let pollingInterval = 1e3;
|
|
9
|
+
let timeout = 3e4;
|
|
10
|
+
let cid = 0;
|
|
11
|
+
let callbacks = {};
|
|
12
|
+
let pollingTimer;
|
|
13
|
+
let userStatus = {};
|
|
14
|
+
const heartbeatInterval = 20 * 1e3;
|
|
15
|
+
let heartbeatTimer = null;
|
|
16
|
+
let connectTimer = null;
|
|
17
|
+
let apiTimers = {};
|
|
18
|
+
let events = {};
|
|
19
|
+
let out = {};
|
|
20
|
+
let error = () => void 0;
|
|
21
|
+
let ready = () => void 0;
|
|
22
|
+
const clearCallback = function(cid2) {
|
|
23
|
+
clearTimeout(apiTimers[cid2]);
|
|
24
|
+
delete callbacks[cid2];
|
|
25
|
+
delete apiTimers[cid2];
|
|
26
|
+
};
|
|
27
|
+
const onopen = function() {
|
|
28
|
+
connectTimer = setTimeout(() => {
|
|
29
|
+
ws.close();
|
|
30
|
+
}, 5e3);
|
|
31
|
+
};
|
|
32
|
+
const send = function(argv, cb) {
|
|
33
|
+
let id = cid++;
|
|
34
|
+
id = String(id);
|
|
35
|
+
argv.cid = id;
|
|
36
|
+
if (!connected) {
|
|
37
|
+
cb && setTimeout(cb, 0, { ok: false, message: "eSpace is not logged in." });
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (typeof cb === "function") {
|
|
41
|
+
callbacks[id] = cb;
|
|
42
|
+
apiTimers[id] = setTimeout(() => {
|
|
43
|
+
cb({ ok: false, message: "time out" });
|
|
44
|
+
clearCallback(id);
|
|
45
|
+
}, timeout);
|
|
46
|
+
}
|
|
47
|
+
ws.send(JSON.stringify(argv));
|
|
48
|
+
};
|
|
49
|
+
const sendHeartbeat = function() {
|
|
50
|
+
heartbeatTimer = setTimeout(() => {
|
|
51
|
+
if (connected) {
|
|
52
|
+
send(
|
|
53
|
+
{
|
|
54
|
+
type: "heartbeat"
|
|
55
|
+
},
|
|
56
|
+
() => {
|
|
57
|
+
sendHeartbeat();
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
} else {
|
|
61
|
+
clearTimeout(heartbeatTimer);
|
|
62
|
+
}
|
|
63
|
+
}, heartbeatInterval);
|
|
64
|
+
};
|
|
65
|
+
const connectionSucceeded = function(data) {
|
|
66
|
+
connected = true;
|
|
67
|
+
sendHeartbeat();
|
|
68
|
+
clearTimeout(pollingTimer);
|
|
69
|
+
clearTimeout(connectTimer);
|
|
70
|
+
ready(data);
|
|
71
|
+
};
|
|
72
|
+
const onmessage = function(evt) {
|
|
73
|
+
let data = evt.data;
|
|
74
|
+
if (typeof data !== "string") {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
data = data.replace(/^\d+/, "");
|
|
78
|
+
if (!data) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
try {
|
|
82
|
+
data = JSON.parse(data);
|
|
83
|
+
} catch (e) {
|
|
84
|
+
return !e;
|
|
85
|
+
}
|
|
86
|
+
if (connected) {
|
|
87
|
+
let event = events[data.type];
|
|
88
|
+
if (event) {
|
|
89
|
+
return event(data.data);
|
|
90
|
+
}
|
|
91
|
+
let cid2 = data.cid;
|
|
92
|
+
let cb = callbacks[cid2];
|
|
93
|
+
if (cb) {
|
|
94
|
+
if (data.ok) {
|
|
95
|
+
cb(null, data.data);
|
|
96
|
+
} else {
|
|
97
|
+
cb({ ok: data.ok });
|
|
98
|
+
}
|
|
99
|
+
clearCallback(cid2);
|
|
100
|
+
}
|
|
101
|
+
} else {
|
|
102
|
+
if (data.type === "eSpace-ctrl-connection-success") {
|
|
103
|
+
connectionSucceeded(data.data);
|
|
104
|
+
} else {
|
|
105
|
+
ws.close();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const bindEvents = function() {
|
|
110
|
+
ws.onopen = onopen;
|
|
111
|
+
ws.onclose = onclose;
|
|
112
|
+
ws.onmessage = onmessage;
|
|
113
|
+
};
|
|
114
|
+
const connect = function(interval) {
|
|
115
|
+
pollingTimer = setTimeout(() => {
|
|
116
|
+
if (index >= ports.length) {
|
|
117
|
+
index = 0;
|
|
118
|
+
}
|
|
119
|
+
ws = new WebSocket(url + ":" + ports[index++]);
|
|
120
|
+
bindEvents();
|
|
121
|
+
}, interval || 0);
|
|
122
|
+
};
|
|
123
|
+
const onclose = function() {
|
|
124
|
+
if (connected || typeof connected === "undefined") {
|
|
125
|
+
connected = false;
|
|
126
|
+
error();
|
|
127
|
+
}
|
|
128
|
+
connect(pollingInterval);
|
|
129
|
+
};
|
|
130
|
+
out.init = function(conf) {
|
|
131
|
+
if (conf) {
|
|
132
|
+
timeout = conf.timeout || 3e4;
|
|
133
|
+
pollingInterval = conf.pollingInterval || 0;
|
|
134
|
+
}
|
|
135
|
+
connect();
|
|
136
|
+
};
|
|
137
|
+
out.ready = function(cb) {
|
|
138
|
+
ready = cb;
|
|
139
|
+
};
|
|
140
|
+
out.error = function(cb) {
|
|
141
|
+
error = cb;
|
|
142
|
+
};
|
|
143
|
+
const attrToArr = function(name, total, object) {
|
|
144
|
+
let result = [];
|
|
145
|
+
for (let i = 0; i < total; i++) {
|
|
146
|
+
let attrName = name;
|
|
147
|
+
if (i) {
|
|
148
|
+
attrName += i;
|
|
149
|
+
}
|
|
150
|
+
let attrVal = object[attrName];
|
|
151
|
+
if (attrVal) {
|
|
152
|
+
result.push(attrVal);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return result;
|
|
156
|
+
};
|
|
157
|
+
out.on = function(event, hander) {
|
|
158
|
+
events[event] = hander;
|
|
159
|
+
};
|
|
160
|
+
out.getUserInfo = function(account, cb) {
|
|
161
|
+
const fn = function(err, data) {
|
|
162
|
+
if (err) {
|
|
163
|
+
return cb(err);
|
|
164
|
+
}
|
|
165
|
+
const formatInfo = function(user) {
|
|
166
|
+
return {
|
|
167
|
+
account: user.account,
|
|
168
|
+
name: user.name,
|
|
169
|
+
mobile: attrToArr("mobile", 6, user),
|
|
170
|
+
"office_phone": attrToArr("office_phone", 6, user),
|
|
171
|
+
"home_phone": user.home_phone,
|
|
172
|
+
"ip_phone": user.ip_phone,
|
|
173
|
+
"other_phone": user.other_phone
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
if (data.account) {
|
|
177
|
+
cb(null, formatInfo(data));
|
|
178
|
+
} else {
|
|
179
|
+
let result = {};
|
|
180
|
+
for (let p in data) {
|
|
181
|
+
if (Object.prototype.hasOwnProperty.call(data, p)) {
|
|
182
|
+
let user = data[p];
|
|
183
|
+
result[p] = user ? formatInfo(user) : user;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
cb(null, result);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
send(
|
|
190
|
+
{
|
|
191
|
+
type: "get-user-info",
|
|
192
|
+
param: account
|
|
193
|
+
},
|
|
194
|
+
fn
|
|
195
|
+
);
|
|
196
|
+
};
|
|
197
|
+
out.subscribeUserStatus = function(accounts, cb) {
|
|
198
|
+
if (Array.isArray(accounts)) {
|
|
199
|
+
accounts.forEach((account) => {
|
|
200
|
+
userStatus[account] = true;
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
send(
|
|
204
|
+
{
|
|
205
|
+
type: "subscribe-user-status",
|
|
206
|
+
param: accounts
|
|
207
|
+
},
|
|
208
|
+
cb
|
|
209
|
+
);
|
|
210
|
+
};
|
|
211
|
+
out.eSpaceCall = function(account, num, cb) {
|
|
212
|
+
send(
|
|
213
|
+
{
|
|
214
|
+
type: "espace-call",
|
|
215
|
+
param: {
|
|
216
|
+
account,
|
|
217
|
+
number: num
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
cb
|
|
221
|
+
);
|
|
222
|
+
};
|
|
223
|
+
out.eSpaceCallByAccount = function(account, cb) {
|
|
224
|
+
send(
|
|
225
|
+
{
|
|
226
|
+
type: "espace-call",
|
|
227
|
+
param: {
|
|
228
|
+
account
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
cb
|
|
232
|
+
);
|
|
233
|
+
};
|
|
234
|
+
out.eSpaceCallByNumber = function(number, cb) {
|
|
235
|
+
send(
|
|
236
|
+
{
|
|
237
|
+
type: "espace-call",
|
|
238
|
+
param: {
|
|
239
|
+
number
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
cb
|
|
243
|
+
);
|
|
244
|
+
};
|
|
245
|
+
out.showImDialog = function(account, cb) {
|
|
246
|
+
send(
|
|
247
|
+
{
|
|
248
|
+
type: "show-espace-im-dialog",
|
|
249
|
+
param: account
|
|
250
|
+
},
|
|
251
|
+
cb
|
|
252
|
+
);
|
|
253
|
+
};
|
|
254
|
+
out.showGroupDialog = function(gid, cb) {
|
|
255
|
+
send(
|
|
256
|
+
{
|
|
257
|
+
type: "show-espace-im-group-dialog",
|
|
258
|
+
param: gid
|
|
259
|
+
},
|
|
260
|
+
cb
|
|
261
|
+
);
|
|
262
|
+
};
|
|
263
|
+
out.addContactList = function(account, cb) {
|
|
264
|
+
send(
|
|
265
|
+
{
|
|
266
|
+
type: "add-contact-list",
|
|
267
|
+
param: account
|
|
268
|
+
},
|
|
269
|
+
cb
|
|
270
|
+
);
|
|
271
|
+
};
|
|
272
|
+
if (!isBrowser || !window.WebSocket) {
|
|
273
|
+
const notFn = function() {
|
|
274
|
+
return void 0;
|
|
275
|
+
};
|
|
276
|
+
for (let api in out) {
|
|
277
|
+
if (Object.prototype.hasOwnProperty.call(out, api)) {
|
|
278
|
+
let fn = out[api];
|
|
279
|
+
if (typeof fn === "function") {
|
|
280
|
+
out[api] = notFn;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
let initialized = false;
|
|
286
|
+
function init() {
|
|
287
|
+
if (!initialized && isBrowser) {
|
|
288
|
+
localStorage.setItem("eSpaceCtrl_initialized", 0);
|
|
289
|
+
out.init({ timeout: 3e3, pollingInterval: 1e3 });
|
|
290
|
+
out.ready(() => {
|
|
291
|
+
localStorage.setItem("eSpaceCtrl_initialized", 1);
|
|
292
|
+
});
|
|
293
|
+
out.error(() => {
|
|
294
|
+
localStorage.setItem("eSpaceCtrl_initialized", 0);
|
|
295
|
+
});
|
|
296
|
+
initialized = true;
|
|
297
|
+
}
|
|
298
|
+
return out;
|
|
299
|
+
}
|
|
300
|
+
var eSpaceCtrl_default = out;
|
|
301
|
+
export {
|
|
302
|
+
eSpaceCtrl_default as default,
|
|
303
|
+
init
|
|
304
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import "../../../chunk-G2ADBYYC.js";
|
|
2
|
+
import fastdomSingleton from "./singleton";
|
|
3
|
+
const create = (promised, type, fn, ctx) => {
|
|
4
|
+
const tasks = promised._tasks;
|
|
5
|
+
const fastdom = promised.fastdom;
|
|
6
|
+
let task;
|
|
7
|
+
const promise = new Promise(function(resolve, reject) {
|
|
8
|
+
task = fastdom[type](function() {
|
|
9
|
+
tasks.delete(promise);
|
|
10
|
+
try {
|
|
11
|
+
resolve(ctx ? fn.call(ctx) : fn());
|
|
12
|
+
} catch (e) {
|
|
13
|
+
reject(e);
|
|
14
|
+
}
|
|
15
|
+
}, ctx);
|
|
16
|
+
});
|
|
17
|
+
tasks.set(promise, task);
|
|
18
|
+
return promise;
|
|
19
|
+
};
|
|
20
|
+
const exports = {
|
|
21
|
+
initialize() {
|
|
22
|
+
this._tasks = /* @__PURE__ */ new Map();
|
|
23
|
+
},
|
|
24
|
+
mutate(fn, ctx) {
|
|
25
|
+
return create(this, "mutate", fn, ctx);
|
|
26
|
+
},
|
|
27
|
+
measure(fn, ctx) {
|
|
28
|
+
return create(this, "measure", fn, ctx);
|
|
29
|
+
},
|
|
30
|
+
clear(promise) {
|
|
31
|
+
const tasks = this._tasks;
|
|
32
|
+
const task = tasks.get(promise);
|
|
33
|
+
this.fastdom.clear(task);
|
|
34
|
+
tasks.delete(promise);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const fastdomAsync = fastdomSingleton.extend(exports);
|
|
38
|
+
var async_default = fastdomAsync;
|
|
39
|
+
export {
|
|
40
|
+
async_default as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import "../../../chunk-G2ADBYYC.js";
|
|
2
|
+
import fastdomSingleton from "./singleton";
|
|
3
|
+
const clearAll = (fastdom, tasks) => {
|
|
4
|
+
let i = tasks.length;
|
|
5
|
+
while (i--) {
|
|
6
|
+
fastdom.clear(tasks[i]);
|
|
7
|
+
tasks.splice(i, 1);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const remove = (array, item) => {
|
|
11
|
+
const index = array.indexOf(item);
|
|
12
|
+
return !!~index && !!array.splice(index, 1);
|
|
13
|
+
};
|
|
14
|
+
class Sandbox {
|
|
15
|
+
constructor(fastdom) {
|
|
16
|
+
this.fastdom = fastdom;
|
|
17
|
+
this.tasks = [];
|
|
18
|
+
}
|
|
19
|
+
measure(fn, ctx) {
|
|
20
|
+
const tasks = this.tasks;
|
|
21
|
+
const task = this.fastdom.measure(function() {
|
|
22
|
+
tasks.splice(tasks.indexOf(task));
|
|
23
|
+
return fn.call(ctx);
|
|
24
|
+
});
|
|
25
|
+
tasks.push(task);
|
|
26
|
+
return task;
|
|
27
|
+
}
|
|
28
|
+
mutate(fn, ctx) {
|
|
29
|
+
const tasks = this.tasks;
|
|
30
|
+
const task = this.fastdom.mutate(function() {
|
|
31
|
+
tasks.splice(tasks.indexOf(task));
|
|
32
|
+
return fn.call(ctx);
|
|
33
|
+
});
|
|
34
|
+
this.tasks.push(task);
|
|
35
|
+
return task;
|
|
36
|
+
}
|
|
37
|
+
clear(task) {
|
|
38
|
+
if (!arguments.length)
|
|
39
|
+
clearAll(this.fastdom, this.tasks);
|
|
40
|
+
remove(this.tasks, task);
|
|
41
|
+
return this.fastdom.clear(task);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const exports = {
|
|
45
|
+
sandbox() {
|
|
46
|
+
return new Sandbox(this.fastdom);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const fastdomSandbox = fastdomSingleton.extend(exports);
|
|
50
|
+
var sandbox_default = fastdomSandbox;
|
|
51
|
+
export {
|
|
52
|
+
sandbox_default as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import "../../../chunk-G2ADBYYC.js";
|
|
2
|
+
import { isBrowser } from "../../browser";
|
|
3
|
+
const RAF = function() {
|
|
4
|
+
if (isBrowser) {
|
|
5
|
+
return window.requestAnimationFrame.bind(window);
|
|
6
|
+
}
|
|
7
|
+
return function(callback) {
|
|
8
|
+
setTimeout(() => callback(Date.now()), 1e3 / 60);
|
|
9
|
+
};
|
|
10
|
+
}();
|
|
11
|
+
const scheduleFlush = (fastdom) => {
|
|
12
|
+
if (!fastdom.scheduled) {
|
|
13
|
+
fastdom.scheduled = true;
|
|
14
|
+
fastdom.raf(flush.bind(null, fastdom));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const flush = (fastdom) => {
|
|
18
|
+
const { reads, writes } = fastdom;
|
|
19
|
+
let error;
|
|
20
|
+
try {
|
|
21
|
+
fastdom.runTasks(reads);
|
|
22
|
+
fastdom.runTasks(writes);
|
|
23
|
+
} catch (e) {
|
|
24
|
+
error = e;
|
|
25
|
+
}
|
|
26
|
+
fastdom.scheduled = false;
|
|
27
|
+
if (reads.length || writes.length)
|
|
28
|
+
scheduleFlush(fastdom);
|
|
29
|
+
if (error) {
|
|
30
|
+
if (fastdom.catch) {
|
|
31
|
+
fastdom.catch(error);
|
|
32
|
+
} else {
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const remove = (array, item) => {
|
|
38
|
+
const index = array.indexOf(item);
|
|
39
|
+
return !!~index && !!array.splice(index, 1);
|
|
40
|
+
};
|
|
41
|
+
const mixin = (target, source) => {
|
|
42
|
+
for (let key in source) {
|
|
43
|
+
if (Object.hasOwnProperty.call(source, key))
|
|
44
|
+
target[key] = source[key];
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
class FastDom {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.reads = [];
|
|
50
|
+
this.writes = [];
|
|
51
|
+
this.raf = RAF.bind(window);
|
|
52
|
+
}
|
|
53
|
+
runTasks(tasks) {
|
|
54
|
+
let task;
|
|
55
|
+
while (task = tasks.shift())
|
|
56
|
+
task();
|
|
57
|
+
}
|
|
58
|
+
measure(fn, ctx) {
|
|
59
|
+
const task = !ctx ? fn : fn.bind(ctx);
|
|
60
|
+
this.reads.push(task);
|
|
61
|
+
scheduleFlush(this);
|
|
62
|
+
return task;
|
|
63
|
+
}
|
|
64
|
+
mutate(fn, ctx) {
|
|
65
|
+
const task = !ctx ? fn : fn.bind(ctx);
|
|
66
|
+
this.writes.push(task);
|
|
67
|
+
scheduleFlush(this);
|
|
68
|
+
return task;
|
|
69
|
+
}
|
|
70
|
+
clear(task) {
|
|
71
|
+
return remove(this.reads, task) || remove(this.writes, task);
|
|
72
|
+
}
|
|
73
|
+
extend(props) {
|
|
74
|
+
if (!props || typeof props !== "object")
|
|
75
|
+
throw new Error("[TINY][FastDom] expected object");
|
|
76
|
+
const child = Object.create(this);
|
|
77
|
+
mixin(child, props);
|
|
78
|
+
child.fastdom = this;
|
|
79
|
+
if (child.initialize)
|
|
80
|
+
child.initialize();
|
|
81
|
+
return child;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const fastdomSingleton = new FastDom();
|
|
85
|
+
var singleton_default = fastdomSingleton;
|
|
86
|
+
export {
|
|
87
|
+
singleton_default as default
|
|
88
|
+
};
|