@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,555 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../chunk-G2ADBYYC.js";
|
|
5
|
+
import {
|
|
6
|
+
debouncRquest,
|
|
7
|
+
getChildValue,
|
|
8
|
+
calcOverFlow,
|
|
9
|
+
toggleCheckAll,
|
|
10
|
+
handleCopyClick,
|
|
11
|
+
showTip,
|
|
12
|
+
handleComposition,
|
|
13
|
+
handleQueryChange,
|
|
14
|
+
scrollToOption,
|
|
15
|
+
handleMenuEnter,
|
|
16
|
+
emitChange,
|
|
17
|
+
directEmitChange,
|
|
18
|
+
getOption,
|
|
19
|
+
getSelectedOption,
|
|
20
|
+
setSelected,
|
|
21
|
+
handleFocus,
|
|
22
|
+
focus,
|
|
23
|
+
blur,
|
|
24
|
+
handleBlur,
|
|
25
|
+
handleClearClick,
|
|
26
|
+
doDestroy,
|
|
27
|
+
handleClose,
|
|
28
|
+
toggleLastOptionHitState,
|
|
29
|
+
deletePrevTag,
|
|
30
|
+
managePlaceholder,
|
|
31
|
+
resetInputState,
|
|
32
|
+
resetInputHeight,
|
|
33
|
+
resetHoverIndex,
|
|
34
|
+
resetDatas,
|
|
35
|
+
handleOptionSelect,
|
|
36
|
+
setSoftFocus,
|
|
37
|
+
getValueIndex,
|
|
38
|
+
toggleMenu,
|
|
39
|
+
selectOption,
|
|
40
|
+
deleteSelected,
|
|
41
|
+
deleteTag,
|
|
42
|
+
onInputChange,
|
|
43
|
+
onOptionDestroy,
|
|
44
|
+
resetInputWidth,
|
|
45
|
+
handleResize,
|
|
46
|
+
checkDefaultFirstOption,
|
|
47
|
+
setOptionHighlight,
|
|
48
|
+
getValueKey,
|
|
49
|
+
emptyText,
|
|
50
|
+
emptyFlag,
|
|
51
|
+
recycleScrollerHeight,
|
|
52
|
+
watchValue,
|
|
53
|
+
watchVisible,
|
|
54
|
+
watchOptions,
|
|
55
|
+
navigateOptions,
|
|
56
|
+
getPluginOption,
|
|
57
|
+
watchPropsOption,
|
|
58
|
+
onMouseenterNative,
|
|
59
|
+
onMouseleaveNative,
|
|
60
|
+
onCopying,
|
|
61
|
+
defaultOnQueryChange,
|
|
62
|
+
queryChange,
|
|
63
|
+
toVisible,
|
|
64
|
+
toHide,
|
|
65
|
+
mounted,
|
|
66
|
+
unMount,
|
|
67
|
+
watchHoverIndex,
|
|
68
|
+
computeOptimizeOpts,
|
|
69
|
+
watchOptimizeOpts,
|
|
70
|
+
computeCollapseTags,
|
|
71
|
+
computeMultipleLimit,
|
|
72
|
+
handleDropdownClick,
|
|
73
|
+
handleEnterTag,
|
|
74
|
+
calcCollapseTags,
|
|
75
|
+
initValue,
|
|
76
|
+
watchInputHover,
|
|
77
|
+
initQuery,
|
|
78
|
+
updateModelValue,
|
|
79
|
+
getLabelSlotValue,
|
|
80
|
+
computedTagsStyle,
|
|
81
|
+
computedReadonly,
|
|
82
|
+
computedShowClose,
|
|
83
|
+
computedCollapseTagSize,
|
|
84
|
+
computedShowNewOption,
|
|
85
|
+
computedShowCopy,
|
|
86
|
+
computedOptionsAllDisabled,
|
|
87
|
+
computedDisabledTooltipContent,
|
|
88
|
+
computedSelectDisabled,
|
|
89
|
+
watchInitValue,
|
|
90
|
+
watchShowClose,
|
|
91
|
+
getOptionIndexArr,
|
|
92
|
+
queryVisibleOptions,
|
|
93
|
+
computedGetIcon,
|
|
94
|
+
computedGetTagType,
|
|
95
|
+
clearSearchText,
|
|
96
|
+
clearNoMatchValue,
|
|
97
|
+
handleDebouncedQueryChange,
|
|
98
|
+
onClickCollapseTag,
|
|
99
|
+
computedIsExpand,
|
|
100
|
+
updateSelectedData,
|
|
101
|
+
hidePanel,
|
|
102
|
+
computedShowTagText,
|
|
103
|
+
isTagClosable
|
|
104
|
+
} from "./index";
|
|
105
|
+
import debounce from "../common/deps/debounce";
|
|
106
|
+
import { isNumber } from "../common/type";
|
|
107
|
+
const api = [
|
|
108
|
+
"state",
|
|
109
|
+
"toggleCheckAll",
|
|
110
|
+
"handleCopyClick",
|
|
111
|
+
"focus",
|
|
112
|
+
"blur",
|
|
113
|
+
"showTip",
|
|
114
|
+
"doDestroy",
|
|
115
|
+
"getOption",
|
|
116
|
+
"emitChange",
|
|
117
|
+
"handleBlur",
|
|
118
|
+
"toggleMenu",
|
|
119
|
+
"getValueKey",
|
|
120
|
+
"handleFocus",
|
|
121
|
+
"handleClose",
|
|
122
|
+
"setSoftFocus",
|
|
123
|
+
"getValueIndex",
|
|
124
|
+
"scrollToOption",
|
|
125
|
+
"resetHoverIndex",
|
|
126
|
+
"onOptionDestroy",
|
|
127
|
+
"resetInputWidth",
|
|
128
|
+
"resetInputHeight",
|
|
129
|
+
"managePlaceholder",
|
|
130
|
+
"checkDefaultFirstOption",
|
|
131
|
+
"setOptionHighlight",
|
|
132
|
+
"toggleLastOptionHitState",
|
|
133
|
+
"deleteTag",
|
|
134
|
+
"setSelected",
|
|
135
|
+
"selectOption",
|
|
136
|
+
"handleResize",
|
|
137
|
+
"deletePrevTag",
|
|
138
|
+
"onInputChange",
|
|
139
|
+
"deleteSelected",
|
|
140
|
+
"handleMenuEnter",
|
|
141
|
+
"resetInputState",
|
|
142
|
+
"handleClearClick",
|
|
143
|
+
"handleComposition",
|
|
144
|
+
"handleQueryChange",
|
|
145
|
+
"handleOptionSelect",
|
|
146
|
+
"debouncedOnInputChange",
|
|
147
|
+
"debouncedQueryChange",
|
|
148
|
+
"navigateOptions",
|
|
149
|
+
"onMouseenterNative",
|
|
150
|
+
"onMouseleaveNative",
|
|
151
|
+
"onCopying",
|
|
152
|
+
"handleDropdownClick",
|
|
153
|
+
"handleEnterTag",
|
|
154
|
+
"getLabelSlotValue",
|
|
155
|
+
"updateModelValue",
|
|
156
|
+
"clearSearchText",
|
|
157
|
+
"onClickCollapseTag",
|
|
158
|
+
"updateSelectedData",
|
|
159
|
+
"hidePanel",
|
|
160
|
+
"computedShowTagText",
|
|
161
|
+
"isTagClosable"
|
|
162
|
+
];
|
|
163
|
+
const initState = ({ reactive, computed, props, api: api2, emitter, parent, constants, useBreakpoint, vm, designConfig }) => {
|
|
164
|
+
const stateAdd = initStateAdd({ computed, props, api: api2, parent });
|
|
165
|
+
const state = reactive(__spreadProps(__spreadValues({}, stateAdd), {
|
|
166
|
+
selectEmitter: emitter(),
|
|
167
|
+
datas: [],
|
|
168
|
+
initDatas: [],
|
|
169
|
+
query: "",
|
|
170
|
+
magicKey: 0,
|
|
171
|
+
options: [],
|
|
172
|
+
visible: false,
|
|
173
|
+
showCopy: computed(() => api2.computedShowCopy()),
|
|
174
|
+
showWarper: true,
|
|
175
|
+
// 显示下拉外层控制
|
|
176
|
+
selected: props.multiple ? [] : {},
|
|
177
|
+
softFocus: false,
|
|
178
|
+
hover: false,
|
|
179
|
+
triggerSearch: false,
|
|
180
|
+
firstAutoSearch: props.remoteConfig.autoSearch,
|
|
181
|
+
tagsStyle: computed(() => api2.computedTagsStyle()),
|
|
182
|
+
readonly: computed(() => api2.computedReadonly()),
|
|
183
|
+
iconClass: computed(() => state.visible ? "" : constants.CLASS.IsReverse),
|
|
184
|
+
showClose: computed(() => api2.computedShowClose()),
|
|
185
|
+
optionsAllDisabled: computed(() => api2.computedOptionsAllDisabled()),
|
|
186
|
+
collapseTagSize: computed(() => api2.computedCollapseTagSize()),
|
|
187
|
+
showNewOption: computed(() => api2.computedShowNewOption()),
|
|
188
|
+
selectSize: computed(() => props.size || state.formItemSize),
|
|
189
|
+
optimizeOpts: computed(() => api2.computeOptimizeOpts()),
|
|
190
|
+
optimizeStore: { valueIndex: 0, recycleScrollerHeight: computed(() => api2.recycleScrollerHeight()) },
|
|
191
|
+
collapseTags: computed(() => api2.computeCollapseTags()),
|
|
192
|
+
multipleLimit: computed(() => api2.computeMultipleLimit()),
|
|
193
|
+
disabledTooltipContent: computed(() => api2.computedDisabledTooltipContent()),
|
|
194
|
+
isExpand: computed(() => api2.computedIsExpand()),
|
|
195
|
+
collapseTagsLength: 0,
|
|
196
|
+
initValue: [],
|
|
197
|
+
key: 0,
|
|
198
|
+
device: "",
|
|
199
|
+
timer: null,
|
|
200
|
+
modelValue: [],
|
|
201
|
+
queryValue: "",
|
|
202
|
+
selectedCopy: [],
|
|
203
|
+
compareValue: null,
|
|
204
|
+
selectedVal: computed(
|
|
205
|
+
() => state.device === "mb" && props.multiple && state.visible ? state.selectedCopy : state.selected
|
|
206
|
+
),
|
|
207
|
+
displayOnlyContent: computed(
|
|
208
|
+
() => props.multiple && Array.isArray(state.selected) ? state.selected.map((item) => item.state ? item.state.currentLabel : item.currentLabel).join("; ") : ""
|
|
209
|
+
),
|
|
210
|
+
breakpoint: useBreakpoint ? useBreakpoint().current : "",
|
|
211
|
+
isSaaSTheme: vm.theme === "saas",
|
|
212
|
+
disabledOptionHover: false,
|
|
213
|
+
hasClearSelection: false,
|
|
214
|
+
// tiny 新增
|
|
215
|
+
getIcon: computed(() => api2.computedGetIcon()),
|
|
216
|
+
getTagType: computed(() => api2.computedGetTagType()),
|
|
217
|
+
isSelectAll: computed(() => state.selectCls === "checked-sur"),
|
|
218
|
+
autoHideDownIcon: (() => {
|
|
219
|
+
if ((designConfig == null ? void 0 : designConfig.state) && "autoHideDownIcon" in designConfig.state) {
|
|
220
|
+
return designConfig.state.autoHideDownIcon;
|
|
221
|
+
}
|
|
222
|
+
return true;
|
|
223
|
+
})()
|
|
224
|
+
}));
|
|
225
|
+
return state;
|
|
226
|
+
};
|
|
227
|
+
const initStateAdd = ({ computed, props, api: api2, parent }) => {
|
|
228
|
+
return {
|
|
229
|
+
selectedTags: [],
|
|
230
|
+
tips: "",
|
|
231
|
+
showTip: false,
|
|
232
|
+
tipHover: false,
|
|
233
|
+
selectHover: false,
|
|
234
|
+
tipTimer: null,
|
|
235
|
+
selectCls: "checked-sur",
|
|
236
|
+
filteredSelectCls: "checked-sur",
|
|
237
|
+
overflow: null,
|
|
238
|
+
completed: false,
|
|
239
|
+
inputWidth: 0,
|
|
240
|
+
inputPaddingRight: 0,
|
|
241
|
+
hoverIndex: -1,
|
|
242
|
+
hoverValue: -1,
|
|
243
|
+
optionsIndex: -1,
|
|
244
|
+
inputLength: 20,
|
|
245
|
+
optionsCount: 0,
|
|
246
|
+
selectFiexd: {},
|
|
247
|
+
createdLabel: null,
|
|
248
|
+
isSilentBlur: false,
|
|
249
|
+
cachedOptions: [],
|
|
250
|
+
selectedLabel: "",
|
|
251
|
+
previousQuery: null,
|
|
252
|
+
inputHovering: false,
|
|
253
|
+
createdSelected: false,
|
|
254
|
+
isOnComposition: false,
|
|
255
|
+
cachedPlaceHolder: props.placeholder,
|
|
256
|
+
inputHeight: 0,
|
|
257
|
+
initialInputHeight: 0,
|
|
258
|
+
currentPlaceholder: props.placeholder,
|
|
259
|
+
filteredOptionsCount: 0,
|
|
260
|
+
remoteData: [],
|
|
261
|
+
currentKey: props.modelValue,
|
|
262
|
+
updateId: "",
|
|
263
|
+
popperElm: null,
|
|
264
|
+
debounce: computed(() => isNumber(props.queryDebounce) ? props.queryDebounce : props.remote ? 300 : 0),
|
|
265
|
+
emptyText: computed(() => api2.emptyText()),
|
|
266
|
+
emptyFlag: computed(() => api2.emptyFlag()),
|
|
267
|
+
formItemSize: computed(() => (parent.formItem || { state: {} }).state.formItemSize),
|
|
268
|
+
selectDisabled: computed(() => api2.computedSelectDisabled()),
|
|
269
|
+
isDisplayOnly: computed(() => props.displayOnly || (parent.form || {}).displayOnly),
|
|
270
|
+
isDisabled: computed(() => props.disabled || (parent.form || {}).disabled),
|
|
271
|
+
isShowTagText: computed(() => api2.computedShowTagText()),
|
|
272
|
+
searchSingleCopy: computed(() => props.allowCopy && !props.multiple && props.filterable),
|
|
273
|
+
childrenName: computed(() => "children"),
|
|
274
|
+
tooltipContent: {},
|
|
275
|
+
isHidden: false,
|
|
276
|
+
optionIndexArr: [],
|
|
277
|
+
showCollapseTag: false,
|
|
278
|
+
exceedMaxVisibleRow: false,
|
|
279
|
+
// 是否超出默认最大显示行数
|
|
280
|
+
toHideIndex: Infinity
|
|
281
|
+
// 第一个超出被隐藏的索引
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
const initApi = ({
|
|
285
|
+
api: api2,
|
|
286
|
+
props,
|
|
287
|
+
state,
|
|
288
|
+
emit,
|
|
289
|
+
maskState,
|
|
290
|
+
constants,
|
|
291
|
+
parent,
|
|
292
|
+
nextTick,
|
|
293
|
+
dispatch,
|
|
294
|
+
t,
|
|
295
|
+
vm,
|
|
296
|
+
isMobileFirstMode,
|
|
297
|
+
designConfig
|
|
298
|
+
}) => {
|
|
299
|
+
Object.assign(api2, {
|
|
300
|
+
state,
|
|
301
|
+
maskState,
|
|
302
|
+
doDestroy: doDestroy(vm),
|
|
303
|
+
blur: blur({ vm, state }),
|
|
304
|
+
focus: focus({ vm, state }),
|
|
305
|
+
getValueKey: getValueKey(props),
|
|
306
|
+
handleClose: handleClose(state),
|
|
307
|
+
getValueIndex: getValueIndex(props),
|
|
308
|
+
getChildValue: getChildValue(),
|
|
309
|
+
getOption: getOption({ props, state, api: api2 }),
|
|
310
|
+
getSelectedOption: getSelectedOption({ props, state }),
|
|
311
|
+
emitChange: emitChange({ emit, props, state, constants }),
|
|
312
|
+
directEmitChange: directEmitChange({ emit, props, state, constants }),
|
|
313
|
+
toggleMenu: toggleMenu({ vm, state, props, api: api2, isMobileFirstMode }),
|
|
314
|
+
showTip: showTip({ props, state, vm }),
|
|
315
|
+
onOptionDestroy: onOptionDestroy(state),
|
|
316
|
+
setSoftFocus: setSoftFocus({ vm, state }),
|
|
317
|
+
resetInputWidth: resetInputWidth({ vm, state }),
|
|
318
|
+
resetHoverIndex: resetHoverIndex({ props, state }),
|
|
319
|
+
resetDatas: resetDatas({ props, state }),
|
|
320
|
+
scrollToOption: scrollToOption({ vm, constants }),
|
|
321
|
+
handleCopyClick: handleCopyClick({ parent, props, state }),
|
|
322
|
+
managePlaceholder: managePlaceholder({ vm, state }),
|
|
323
|
+
checkDefaultFirstOption: checkDefaultFirstOption(state),
|
|
324
|
+
setOptionHighlight: setOptionHighlight(state),
|
|
325
|
+
handleBlur: handleBlur({ constants, dispatch, emit, state, designConfig }),
|
|
326
|
+
toggleLastOptionHitState: toggleLastOptionHitState({ state }),
|
|
327
|
+
emptyText: emptyText({ I18N: constants.I18N, props, state, t, isMobileFirstMode }),
|
|
328
|
+
emptyFlag: emptyFlag({ props, state }),
|
|
329
|
+
getOptionIndexArr: getOptionIndexArr({ props, state, api: api2 }),
|
|
330
|
+
queryVisibleOptions: queryVisibleOptions({ props, vm, isMobileFirstMode }),
|
|
331
|
+
recycleScrollerHeight: recycleScrollerHeight({ state, props, recycle: constants.RECYCLE }),
|
|
332
|
+
watchPropsOption: watchPropsOption({ constants, parent, props, state }),
|
|
333
|
+
onMouseenterNative: onMouseenterNative({ state }),
|
|
334
|
+
onMouseleaveNative: onMouseleaveNative({ state }),
|
|
335
|
+
onCopying: onCopying({ state, vm }),
|
|
336
|
+
watchHoverIndex: watchHoverIndex({ state }),
|
|
337
|
+
computeOptimizeOpts: computeOptimizeOpts({ props, designConfig }),
|
|
338
|
+
computeCollapseTags: computeCollapseTags(props),
|
|
339
|
+
computeMultipleLimit: computeMultipleLimit({ props, state }),
|
|
340
|
+
watchInputHover: watchInputHover({ vm }),
|
|
341
|
+
initQuery: initQuery({ props, state, constants, vm }),
|
|
342
|
+
updateModelValue: updateModelValue({ props, emit, state }),
|
|
343
|
+
computedTagsStyle: computedTagsStyle({ props, parent, state, vm }),
|
|
344
|
+
computedReadonly: computedReadonly({ props, state }),
|
|
345
|
+
computedShowClose: computedShowClose({ props, state }),
|
|
346
|
+
computedCollapseTagSize: computedCollapseTagSize(state),
|
|
347
|
+
computedShowNewOption: computedShowNewOption({ props, state }),
|
|
348
|
+
computedShowCopy: computedShowCopy({ props, state }),
|
|
349
|
+
computedOptionsAllDisabled: computedOptionsAllDisabled(state),
|
|
350
|
+
computedDisabledTooltipContent: computedDisabledTooltipContent(state),
|
|
351
|
+
computedSelectDisabled: computedSelectDisabled({ props, parent }),
|
|
352
|
+
computedIsExpand: computedIsExpand({ props, state }),
|
|
353
|
+
watchInitValue: watchInitValue({ props, emit }),
|
|
354
|
+
watchShowClose: watchShowClose({ nextTick, state, parent }),
|
|
355
|
+
// tiny 新增
|
|
356
|
+
computedGetIcon: computedGetIcon({ designConfig, props }),
|
|
357
|
+
computedGetTagType: computedGetTagType({ designConfig, props }),
|
|
358
|
+
clearSearchText: clearSearchText({ state, api: api2 }),
|
|
359
|
+
clearNoMatchValue: clearNoMatchValue({ props, emit }),
|
|
360
|
+
computedShowTagText: computedShowTagText({ state }),
|
|
361
|
+
isTagClosable: isTagClosable(),
|
|
362
|
+
updateSelectedData: updateSelectedData({ state }),
|
|
363
|
+
hidePanel: hidePanel({ state })
|
|
364
|
+
});
|
|
365
|
+
addApi({ api: api2, props, state, emit, constants, parent, nextTick, dispatch, vm, isMobileFirstMode, designConfig });
|
|
366
|
+
};
|
|
367
|
+
const addApi = ({
|
|
368
|
+
api: api2,
|
|
369
|
+
props,
|
|
370
|
+
state,
|
|
371
|
+
emit,
|
|
372
|
+
constants,
|
|
373
|
+
parent,
|
|
374
|
+
nextTick,
|
|
375
|
+
dispatch,
|
|
376
|
+
vm,
|
|
377
|
+
isMobileFirstMode,
|
|
378
|
+
designConfig
|
|
379
|
+
}) => {
|
|
380
|
+
Object.assign(api2, {
|
|
381
|
+
resetInputHeight: resetInputHeight({ api: api2, constants, nextTick, props, vm, state, designConfig }),
|
|
382
|
+
calcOverFlow: calcOverFlow({ vm, props, state }),
|
|
383
|
+
handleFocus: handleFocus({ api: api2, emit, props, state }),
|
|
384
|
+
deleteTag: deleteTag({ api: api2, constants, emit, props, vm, nextTick, state }),
|
|
385
|
+
watchValue: watchValue({ api: api2, constants, dispatch, props, vm, state }),
|
|
386
|
+
toHide: toHide({ constants, state, props, vm, api: api2 }),
|
|
387
|
+
toVisible: toVisible({ constants, state, props, vm, api: api2, nextTick }),
|
|
388
|
+
setSelected: setSelected({ api: api2, constants, nextTick, props, vm, state }),
|
|
389
|
+
selectOption: selectOption({ api: api2, state, props }),
|
|
390
|
+
handleResize: handleResize({ api: api2, props, state }),
|
|
391
|
+
watchOptions: watchOptions({ api: api2, constants, nextTick, parent, props, state, vm }),
|
|
392
|
+
watchVisible: watchVisible({ api: api2, constants, emit, state, vm, props, isMobileFirstMode }),
|
|
393
|
+
deletePrevTag: deletePrevTag({ api: api2, constants, props, state, vm }),
|
|
394
|
+
onInputChange: onInputChange({ api: api2, props, state, constants, nextTick }),
|
|
395
|
+
deleteSelected: deleteSelected({ api: api2, constants, emit, props, vm, state }),
|
|
396
|
+
handleMenuEnter: handleMenuEnter({ api: api2, nextTick, state, props }),
|
|
397
|
+
resetInputState: resetInputState({ api: api2, vm, state }),
|
|
398
|
+
navigateOptions: navigateOptions({ api: api2, state, props, nextTick }),
|
|
399
|
+
handleClearClick: handleClearClick(api2),
|
|
400
|
+
handleComposition: handleComposition({ api: api2, nextTick, state }),
|
|
401
|
+
handleQueryChange: handleQueryChange({ api: api2, constants, nextTick, props, vm, state }),
|
|
402
|
+
handleOptionSelect: handleOptionSelect({ api: api2, nextTick, props, vm, state }),
|
|
403
|
+
getPluginOption: getPluginOption({ api: api2, props, state }),
|
|
404
|
+
toggleCheckAll: toggleCheckAll({ api: api2, emit, state, props }),
|
|
405
|
+
handleDebouncedQueryChange: handleDebouncedQueryChange({ state, api: api2 }),
|
|
406
|
+
debouncedQueryChange: (event) => {
|
|
407
|
+
const value = props.shape ? event : event.target.value;
|
|
408
|
+
api2.handleDebouncedQueryChange(value);
|
|
409
|
+
},
|
|
410
|
+
debouncedOnInputChange: debounce(state.debounce, () => {
|
|
411
|
+
api2.onInputChange();
|
|
412
|
+
}),
|
|
413
|
+
debouncRquest: debouncRquest({ api: api2, state, props }),
|
|
414
|
+
defaultOnQueryChange: defaultOnQueryChange({ props, state, constants, api: api2, nextTick, vm }),
|
|
415
|
+
queryChange: queryChange({ props, state, constants, api: api2, nextTick, vm }),
|
|
416
|
+
mounted: mounted({ api: api2, parent, state, props, vm, designConfig }),
|
|
417
|
+
unMount: unMount({ api: api2, parent, vm, state }),
|
|
418
|
+
watchOptimizeOpts: watchOptimizeOpts({ props, state }),
|
|
419
|
+
handleDropdownClick: handleDropdownClick({ props, vm, state, emit }),
|
|
420
|
+
handleEnterTag: handleEnterTag({ state }),
|
|
421
|
+
calcCollapseTags: calcCollapseTags({ state, vm, props }),
|
|
422
|
+
initValue: initValue({ state }),
|
|
423
|
+
getLabelSlotValue: getLabelSlotValue({ props, state }),
|
|
424
|
+
onClickCollapseTag: onClickCollapseTag({ state, props, nextTick, api: api2 })
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
const initWatch = ({ watch, props, api: api2, state, nextTick }) => {
|
|
428
|
+
watch(
|
|
429
|
+
() => state.selectDisabled,
|
|
430
|
+
() => nextTick(api2.resetInputHeight)
|
|
431
|
+
);
|
|
432
|
+
watch(
|
|
433
|
+
() => props.placeholder,
|
|
434
|
+
(value) => {
|
|
435
|
+
state.cachedPlaceHolder = state.currentPlaceholder = value;
|
|
436
|
+
}
|
|
437
|
+
);
|
|
438
|
+
watch(
|
|
439
|
+
() => props.modelValue,
|
|
440
|
+
() => {
|
|
441
|
+
if (props.multiple && Array.isArray(props.modelValue)) {
|
|
442
|
+
state.modelValue = [...props.modelValue];
|
|
443
|
+
} else {
|
|
444
|
+
state.modelValue = props.modelValue;
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
{ immediate: true, deep: true }
|
|
448
|
+
);
|
|
449
|
+
watch(() => state.modelValue, api2.watchValue);
|
|
450
|
+
watch(
|
|
451
|
+
() => state.selectedLabel,
|
|
452
|
+
() => {
|
|
453
|
+
if (props.trim) {
|
|
454
|
+
state.selectedLabel = state.selectedLabel.trim();
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
watch(
|
|
459
|
+
() => props.extraQueryParams,
|
|
460
|
+
() => api2.handleQueryChange(state.previousQuery, true),
|
|
461
|
+
{ deep: true }
|
|
462
|
+
);
|
|
463
|
+
watch(
|
|
464
|
+
() => state.breakpoint,
|
|
465
|
+
(val) => {
|
|
466
|
+
if (val === "default") {
|
|
467
|
+
state.device = "mb";
|
|
468
|
+
} else {
|
|
469
|
+
state.device = "pc";
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{ immediate: true, deep: true }
|
|
473
|
+
);
|
|
474
|
+
watch(
|
|
475
|
+
() => state.device,
|
|
476
|
+
(newVal, oldVal) => {
|
|
477
|
+
if (oldVal !== "" && state.visible) {
|
|
478
|
+
api2.updateModelValue(state.modelValue, true);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
);
|
|
482
|
+
watch(() => state.visible, api2.watchVisible);
|
|
483
|
+
watch(() => state.initValue, api2.watchInitValue, { deep: true });
|
|
484
|
+
addWatch({ watch, props, api: api2, state, nextTick });
|
|
485
|
+
};
|
|
486
|
+
const addWatch = ({ watch, props, api: api2, state, nextTick }) => {
|
|
487
|
+
watch(() => [...state.options], api2.watchOptions);
|
|
488
|
+
watch(() => state.hoverIndex, api2.watchHoverIndex);
|
|
489
|
+
props.options && watch(() => props.options, api2.watchPropsOption, { immediate: true, deep: true });
|
|
490
|
+
props.optimization && watch(() => state.optimizeOpts, api2.watchOptimizeOpts, { immediate: true });
|
|
491
|
+
watch([() => state.inputHovering, () => state.visible], api2.watchInputHover);
|
|
492
|
+
watch(() => state.showClose, api2.watchShowClose, { immediate: true });
|
|
493
|
+
watch(
|
|
494
|
+
() => state.selectHover,
|
|
495
|
+
() => props.hoverExpand && !props.disabled && !state.isDisplayOnly && nextTick(api2.resetInputHeight)
|
|
496
|
+
);
|
|
497
|
+
};
|
|
498
|
+
const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, watch, provide, inject }, { vm, parent, emit, constants, nextTick, dispatch, t, emitter, isMobileFirstMode, useBreakpoint, designConfig }) => {
|
|
499
|
+
const api2 = {};
|
|
500
|
+
const state = initState({
|
|
501
|
+
reactive,
|
|
502
|
+
computed,
|
|
503
|
+
props,
|
|
504
|
+
api: api2,
|
|
505
|
+
emitter,
|
|
506
|
+
parent,
|
|
507
|
+
constants,
|
|
508
|
+
useBreakpoint,
|
|
509
|
+
vm,
|
|
510
|
+
designConfig
|
|
511
|
+
});
|
|
512
|
+
const dialog = inject("dialog", null);
|
|
513
|
+
provide("selectEmitter", state.selectEmitter);
|
|
514
|
+
provide("selectVm", vm);
|
|
515
|
+
const maskState = reactive({ width: "", height: "", top: "" });
|
|
516
|
+
initApi({
|
|
517
|
+
api: api2,
|
|
518
|
+
props,
|
|
519
|
+
state,
|
|
520
|
+
emit,
|
|
521
|
+
maskState,
|
|
522
|
+
constants,
|
|
523
|
+
parent,
|
|
524
|
+
nextTick,
|
|
525
|
+
dispatch,
|
|
526
|
+
t,
|
|
527
|
+
vm,
|
|
528
|
+
isMobileFirstMode,
|
|
529
|
+
designConfig
|
|
530
|
+
});
|
|
531
|
+
parent.$on("handle-clear", (event) => {
|
|
532
|
+
api2.handleClearClick(event);
|
|
533
|
+
});
|
|
534
|
+
if (props.multiple && !Array.isArray(props.modelValue)) {
|
|
535
|
+
emit("update:modelValue", []);
|
|
536
|
+
}
|
|
537
|
+
if (!props.multiple && Array.isArray(props.modelValue)) {
|
|
538
|
+
emit("update:modelValue", "");
|
|
539
|
+
}
|
|
540
|
+
dialog && dialog.state.emitter.on("handleSelectClose", api2.handleClose);
|
|
541
|
+
state.selectEmitter.on(constants.EVENT_NAME.handleOptionClick, api2.handleOptionSelect);
|
|
542
|
+
state.selectEmitter.on(constants.EVENT_NAME.setSelected, api2.setSelected);
|
|
543
|
+
state.selectEmitter.on(constants.EVENT_NAME.initValue, api2.initValue);
|
|
544
|
+
initWatch({ watch, props, api: api2, state, nextTick });
|
|
545
|
+
onMounted(api2.mounted);
|
|
546
|
+
onBeforeUnmount(() => {
|
|
547
|
+
api2.unMount();
|
|
548
|
+
dialog && dialog.state.emitter.off("handleSelectClose", api2.handleClose);
|
|
549
|
+
});
|
|
550
|
+
return api2;
|
|
551
|
+
};
|
|
552
|
+
export {
|
|
553
|
+
api,
|
|
554
|
+
renderless
|
|
555
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
const breadcrumbItemSelect = ({
|
|
3
|
+
api,
|
|
4
|
+
emit,
|
|
5
|
+
state,
|
|
6
|
+
constants
|
|
7
|
+
}) => {
|
|
8
|
+
state.breadcrumbEmitter.on(constants.EVENT_NAME.breadcrumbItemSelect, (value) => {
|
|
9
|
+
state.currentBreadcrumbItem = value;
|
|
10
|
+
emit("select", value);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
breadcrumbItemSelect
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { breadcrumbItemSelect } from "./index";
|
|
3
|
+
const api = ["breadcrumbItemSelect", "state"];
|
|
4
|
+
const renderless = (props, { reactive, provide }, { emit, constants, emitter }) => {
|
|
5
|
+
const state = reactive({
|
|
6
|
+
breadcrumbEmitter: emitter(),
|
|
7
|
+
size: props.size,
|
|
8
|
+
currentBreadcrumbItem: {}
|
|
9
|
+
});
|
|
10
|
+
const api2 = {
|
|
11
|
+
state,
|
|
12
|
+
breadcrumbItemSelect: () => breadcrumbItemSelect({ api: api2, emit, state, constants })
|
|
13
|
+
};
|
|
14
|
+
provide("size", state.size);
|
|
15
|
+
provide("breadcrumbEmitter", state.breadcrumbEmitter);
|
|
16
|
+
api2.breadcrumbItemSelect();
|
|
17
|
+
return api2;
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
api,
|
|
21
|
+
renderless
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
const linkClick = ({
|
|
3
|
+
props,
|
|
4
|
+
refs,
|
|
5
|
+
router,
|
|
6
|
+
emit,
|
|
7
|
+
breadcrumbEmitter,
|
|
8
|
+
constants
|
|
9
|
+
}) => (event) => {
|
|
10
|
+
const { replace, to, option } = props;
|
|
11
|
+
const currentBreadcrumbItem = { link: refs.link, replace, to, event, option };
|
|
12
|
+
breadcrumbEmitter.emit(constants.EVENT_NAME.breadcrumbItemSelect, currentBreadcrumbItem);
|
|
13
|
+
emit("select", currentBreadcrumbItem);
|
|
14
|
+
if (!to || !router) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
replace ? router.replace(to) : router.push(to);
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
linkClick
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { linkClick } from "./index";
|
|
3
|
+
const api = ["linkClick", "state"];
|
|
4
|
+
const renderless = (props, { reactive, inject, computed }, { refs, router, emit, designConfig }) => {
|
|
5
|
+
const breadcrumbEmitter = inject("breadcrumbEmitter");
|
|
6
|
+
const breadcrumb = inject("breadcrumb");
|
|
7
|
+
const constants = breadcrumb._constants;
|
|
8
|
+
const state = reactive({
|
|
9
|
+
size: inject("size", null),
|
|
10
|
+
separator: computed(() => breadcrumb.separator || (designConfig == null ? void 0 : designConfig.separator) || "/")
|
|
11
|
+
});
|
|
12
|
+
const api2 = {
|
|
13
|
+
state,
|
|
14
|
+
linkClick: linkClick({ props, refs, router, emit, breadcrumbEmitter, constants })
|
|
15
|
+
};
|
|
16
|
+
return api2;
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
api,
|
|
20
|
+
renderless
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { xss } from "@opentiny/utils";
|
|
3
|
+
const getRoute = (route) => `/${route || ""}`.replace(/^\/+/, "/");
|
|
4
|
+
const computedDataList = ({ props, state }) => () => {
|
|
5
|
+
const list = props.data[Number(state.actName) - 1] || [];
|
|
6
|
+
list.forEach((subItem) => {
|
|
7
|
+
subItem.url = xss.filterUrl(subItem.url);
|
|
8
|
+
});
|
|
9
|
+
return list;
|
|
10
|
+
};
|
|
11
|
+
const computedMoreLink = ({ props }) => () => {
|
|
12
|
+
if (props.moreLink) {
|
|
13
|
+
props.moreLink.url = xss.filterUrl(props.moreLink.url);
|
|
14
|
+
}
|
|
15
|
+
return props.moreLink;
|
|
16
|
+
};
|
|
17
|
+
const handleBulletinBoardClick = ({ emit }) => (item) => {
|
|
18
|
+
emit("contentClick", item);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
computedDataList,
|
|
22
|
+
computedMoreLink,
|
|
23
|
+
getRoute,
|
|
24
|
+
handleBulletinBoardClick
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { getRoute, computedDataList, computedMoreLink, handleBulletinBoardClick } from "./index";
|
|
3
|
+
const api = ["state", "getRoute", "handleBulletinBoardClick"];
|
|
4
|
+
const renderless = (props, { reactive, computed, watch }, { emit }) => {
|
|
5
|
+
const api2 = {};
|
|
6
|
+
const state = reactive({
|
|
7
|
+
actName: props.activeName,
|
|
8
|
+
dataList: computed(() => api2.computedDataList()),
|
|
9
|
+
moreLink: computed(() => api2.computedMoreLink())
|
|
10
|
+
});
|
|
11
|
+
watch(
|
|
12
|
+
() => props.activeName,
|
|
13
|
+
(value) => {
|
|
14
|
+
state.actName = value;
|
|
15
|
+
},
|
|
16
|
+
{ immediate: true }
|
|
17
|
+
);
|
|
18
|
+
Object.assign(api2, {
|
|
19
|
+
state,
|
|
20
|
+
getRoute,
|
|
21
|
+
computedDataList: computedDataList({ props, state }),
|
|
22
|
+
computedMoreLink: computedMoreLink({ props }),
|
|
23
|
+
handleBulletinBoardClick: handleBulletinBoardClick({ emit })
|
|
24
|
+
});
|
|
25
|
+
return api2;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
api,
|
|
29
|
+
renderless
|
|
30
|
+
};
|