@king-design/vue 2.1.4 → 2.1.5
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/components/affix/index.d.ts +2 -2
- package/components/affix/index.js +5 -0
- package/components/affix/index.spec.js +108 -84
- package/components/affix/index.vdt.js +8 -5
- package/components/affix/useStyle.js +19 -8
- package/components/badge/index.js +2 -0
- package/components/badge/index.vdt.js +9 -5
- package/components/badge/styles.js +2 -0
- package/components/breadcrumb/index.js +4 -0
- package/components/breadcrumb/index.spec.js +6 -6
- package/components/breadcrumb/index.vdt.js +14 -5
- package/components/breadcrumb/item.js +8 -0
- package/components/breadcrumb/item.vdt.js +6 -3
- package/components/breadcrumb/styles.js +3 -0
- package/components/button/dynamicButton.d.ts +1 -1
- package/components/button/dynamicButton.js +5 -2
- package/components/button/group.js +10 -2
- package/components/button/group.vdt.js +7 -4
- package/components/button/index.js +27 -3
- package/components/button/index.spec.js +96 -74
- package/components/button/index.vdt.js +29 -19
- package/components/button/styles.d.ts +2 -2
- package/components/button/styles.js +48 -4
- package/components/card/column.js +2 -0
- package/components/card/column.vdt.js +10 -5
- package/components/card/index.js +4 -0
- package/components/card/index.vdt.js +16 -4
- package/components/carousel/index.js +19 -1
- package/components/carousel/index.spec.js +163 -127
- package/components/carousel/index.vdt.js +15 -12
- package/components/carousel/item.js +2 -0
- package/components/carousel/item.vdt.js +7 -4
- package/components/carousel/styles.js +1 -0
- package/components/carousel/useAutoplay.js +4 -0
- package/components/carousel/useItems.js +20 -4
- package/components/carousel/useSlide.js +89 -57
- package/components/cascader/index.d.ts +45 -0
- package/components/cascader/index.js +18 -3
- package/components/cascader/index.spec.js +445 -354
- package/components/cascader/index.vdt.js +31 -14
- package/components/cascader/styles.js +6 -0
- package/components/cascader/useFields.js +4 -1
- package/components/cascader/useFilterable.js +19 -2
- package/components/cascader/useLabel.js +9 -1
- package/components/cascader/useLoad.js +35 -22
- package/components/cascader/useValue.d.ts +2 -2
- package/components/cascader/useValue.js +26 -5
- package/components/checkbox/index.js +27 -5
- package/components/checkbox/index.spec.js +171 -129
- package/components/checkbox/index.vdt.js +16 -12
- package/components/checkbox/styles.js +10 -0
- package/components/code/crossDomain.js +9 -2
- package/components/code/index.js +9 -0
- package/components/code/index.spec.js +55 -46
- package/components/code/index.vdt.js +14 -6
- package/components/code/styles.js +1 -0
- package/components/code/useEditor.js +10 -5
- package/components/collapse/index.d.ts +1 -1
- package/components/collapse/index.js +14 -3
- package/components/collapse/index.spec.js +60 -47
- package/components/collapse/index.vdt.js +12 -4
- package/components/collapse/item.js +10 -0
- package/components/collapse/item.vdt.js +14 -7
- package/components/collapse/styles.js +1 -0
- package/components/colorpicker/drag.js +5 -0
- package/components/colorpicker/index.js +4 -0
- package/components/colorpicker/index.spec.js +259 -211
- package/components/colorpicker/index.vdt.js +11 -8
- package/components/colorpicker/panel.js +5 -0
- package/components/colorpicker/panel.vdt.js +26 -21
- package/components/colorpicker/styles.js +13 -2
- package/components/colorpicker/useDrag.js +26 -22
- package/components/colorpicker/useInput.js +16 -0
- package/components/colorpicker/usePointer.js +18 -15
- package/components/colorpicker/useValue.js +7 -2
- package/components/context.d.ts +2 -2
- package/components/context.js +19 -2
- package/components/datepicker/basepicker.d.ts +8 -8
- package/components/datepicker/basepicker.js +90 -20
- package/components/datepicker/calendar.js +11 -0
- package/components/datepicker/calendar.vdt.js +14 -11
- package/components/datepicker/constants.js +1 -0
- package/components/datepicker/dayjs.js +1 -1
- package/components/datepicker/helpers.js +15 -3
- package/components/datepicker/index.d.ts +63 -0
- package/components/datepicker/index.js +32 -6
- package/components/datepicker/index.spec.js +1448 -1141
- package/components/datepicker/index.vdt.js +34 -20
- package/components/datepicker/shortcuts.d.ts +1 -1
- package/components/datepicker/shortcuts.js +4 -0
- package/components/datepicker/styles.js +8 -0
- package/components/datepicker/time.d.ts +1 -1
- package/components/datepicker/time.js +23 -3
- package/components/datepicker/time.vdt.js +5 -4
- package/components/datepicker/useDays.js +9 -2
- package/components/datepicker/useDisabled.js +23 -6
- package/components/datepicker/useFocusDate.js +2 -0
- package/components/datepicker/useFormats.js +15 -6
- package/components/datepicker/useKeyboards.js +36 -20
- package/components/datepicker/useMonths.js +6 -0
- package/components/datepicker/usePanel.js +10 -0
- package/components/datepicker/useShowDate.js +37 -10
- package/components/datepicker/useStatus.js +15 -3
- package/components/datepicker/useValue.js +35 -22
- package/components/datepicker/useYears.js +15 -4
- package/components/diagram/diagram.js +43 -17
- package/components/diagram/diagram.vdt.js +5 -2
- package/components/diagram/graph.js +6 -6
- package/components/diagram/index.d.ts +1 -1
- package/components/diagram/index.js +7 -7
- package/components/diagram/index.spec.js +495 -369
- package/components/diagram/layouts/circle.js +14 -6
- package/components/diagram/layouts/flow.js +15 -7
- package/components/diagram/layouts/layout.js +28 -6
- package/components/diagram/layouts/organic.js +11 -3
- package/components/diagram/layouts/partition.js +12 -4
- package/components/diagram/layouts/radial.js +18 -6
- package/components/diagram/layouts/stack.js +14 -6
- package/components/diagram/layouts/tree.js +21 -11
- package/components/diagram/mxgraph/handler/mxConnectionHandler.js +22 -15
- package/components/diagram/mxgraph/handler/mxConstraintHandler.js +4 -4
- package/components/diagram/mxgraph/handler/mxEdgeHandler.js +15 -11
- package/components/diagram/mxgraph/handler/mxGraphHandler.js +9 -6
- package/components/diagram/mxgraph/handler/mxRubberband.js +4 -4
- package/components/diagram/mxgraph/handler/mxVertexHandler.js +10 -7
- package/components/diagram/mxgraph/index.js +2 -0
- package/components/diagram/mxgraph/mx.js +3 -3
- package/components/diagram/mxgraph/shape/mxCloud.js +2 -2
- package/components/diagram/mxgraph/shape/mxCylinder.js +9 -4
- package/components/diagram/mxgraph/shape/mxEllipse.js +2 -2
- package/components/diagram/mxgraph/shape/mxHexagon.js +2 -2
- package/components/diagram/mxgraph/shape/mxLine.js +2 -2
- package/components/diagram/mxgraph/shape/mxRectangleShape.js +2 -2
- package/components/diagram/mxgraph/shape/mxRhombus.js +12 -6
- package/components/diagram/mxgraph/shape/mxShape.js +1 -0
- package/components/diagram/mxgraph/shape/mxTriangle.js +2 -2
- package/components/diagram/mxgraph/util/mxConstants.js +2 -2
- package/components/diagram/mxgraph/util/mxGuide.js +7 -5
- package/components/diagram/mxgraph/view/mxCellEditor.js +29 -16
- package/components/diagram/mxgraph/view/mxCellRenderer.js +2 -0
- package/components/diagram/mxgraph/view/mxGraph.js +32 -14
- package/components/diagram/shapes/base.d.ts +1 -1
- package/components/diagram/shapes/base.js +39 -9
- package/components/diagram/shapes/callout.js +23 -10
- package/components/diagram/shapes/circle.js +10 -3
- package/components/diagram/shapes/document.js +16 -5
- package/components/diagram/shapes/ellipse.js +5 -0
- package/components/diagram/shapes/generateShapes.d.ts +1 -1
- package/components/diagram/shapes/generateShapes.js +9 -0
- package/components/diagram/shapes/hexagon.js +26 -9
- package/components/diagram/shapes/image.js +9 -1
- package/components/diagram/shapes/line.d.ts +2 -2
- package/components/diagram/shapes/line.js +48 -13
- package/components/diagram/shapes/parallelogram.js +26 -9
- package/components/diagram/shapes/rectangle.js +9 -1
- package/components/diagram/shapes/shape.js +35 -6
- package/components/diagram/shapes/square.js +11 -3
- package/components/diagram/shapes/text.js +5 -0
- package/components/diagram/styles.js +1 -0
- package/components/dialog/alert.vdt.js +19 -9
- package/components/dialog/base.js +29 -1
- package/components/dialog/base.vdt.js +29 -14
- package/components/dialog/index.js +31 -6
- package/components/dialog/index.spec.js +554 -406
- package/components/dialog/staticMethods.d.ts +1 -1
- package/components/dialog/staticMethods.js +13 -2
- package/components/dialog/styles.js +11 -0
- package/components/dialog/useDraggable.js +6 -0
- package/components/dialog/useEscClosable.js +12 -4
- package/components/dialog/useFixBody.d.ts +1 -1
- package/components/dialog/useFixBody.js +11 -0
- package/components/dialog/usePosition.js +5 -0
- package/components/drawer/index.js +5 -0
- package/components/drawer/index.spec.js +168 -126
- package/components/drawer/index.vdt.js +9 -3
- package/components/drawer/styles.d.ts +2 -2
- package/components/drawer/styles.js +4 -0
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +89 -33
- package/components/dropdown/index.js +6 -2
- package/components/dropdown/index.spec.js +496 -388
- package/components/dropdown/item.js +25 -4
- package/components/dropdown/item.vdt.js +8 -5
- package/components/dropdown/menu.js +29 -12
- package/components/dropdown/menu.vdt.js +13 -5
- package/components/dropdown/styles.js +9 -0
- package/components/dropdown/useKeyboard.d.ts +2 -2
- package/components/dropdown/useKeyboard.js +30 -8
- package/components/dropdown/usePosition.d.ts +1 -1
- package/components/dropdown/usePosition.js +22 -12
- package/components/dropdown/useTransition.js +8 -0
- package/components/editable/index.d.ts +1 -1
- package/components/editable/index.js +28 -4
- package/components/editable/index.spec.js +189 -152
- package/components/editable/index.vdt.js +11 -8
- package/components/editable/styles.js +1 -0
- package/components/form/form.js +18 -0
- package/components/form/form.vdt.js +7 -4
- package/components/form/index.spec.js +1280 -1057
- package/components/form/item.d.ts +1 -1
- package/components/form/item.js +12 -0
- package/components/form/item.vdt.js +31 -17
- package/components/form/methods.d.ts +5 -5
- package/components/form/methods.js +12 -2
- package/components/form/styles.js +8 -0
- package/components/form/useDirty.js +7 -2
- package/components/form/useError.js +10 -2
- package/components/form/useValidate.d.ts +1 -1
- package/components/form/useValidate.js +24 -8
- package/components/grid/col.d.ts +3 -3
- package/components/grid/col.js +7 -0
- package/components/grid/col.vdt.js +13 -8
- package/components/grid/constants.d.ts +6 -6
- package/components/grid/row.js +5 -0
- package/components/grid/row.vdt.js +8 -5
- package/components/grid/styles.js +7 -0
- package/components/grid/useBreakpoints.js +5 -0
- package/components/grid/useGutter.js +25 -5
- package/components/icon/index.js +10 -0
- package/components/icon/index.vdt.js +13 -7
- package/components/icon/styles.js +1 -0
- package/components/input/index.d.ts +3 -3
- package/components/input/index.js +14 -0
- package/components/input/index.spec.js +239 -185
- package/components/input/index.vdt.js +49 -39
- package/components/input/search.js +20 -0
- package/components/input/search.vdt.js +9 -6
- package/components/input/styles.js +26 -0
- package/components/input/useAutoRows.js +18 -6
- package/components/input/useAutoWidth.js +5 -0
- package/components/input/useFrozen.js +6 -0
- package/components/input/useShowPassword.js +5 -2
- package/components/layout/aside.js +17 -5
- package/components/layout/aside.vdt.js +9 -5
- package/components/layout/body.js +17 -5
- package/components/layout/footer.js +7 -1
- package/components/layout/header.js +21 -7
- package/components/layout/layout.js +24 -9
- package/components/layout/styles.js +13 -2
- package/components/layout/template.vdt.js +4 -2
- package/components/layout/useParse.js +7 -0
- package/components/menu/index.spec.js +242 -189
- package/components/menu/item.js +16 -3
- package/components/menu/item.vdt.js +32 -20
- package/components/menu/menu.js +11 -2
- package/components/menu/menu.vdt.js +12 -6
- package/components/menu/styles.js +18 -0
- package/components/menu/useDropdown.js +9 -4
- package/components/menu/useExpanded.js +14 -0
- package/components/menu/useHighlight.js +36 -26
- package/components/message/index.spec.js +73 -58
- package/components/message/message.js +19 -0
- package/components/message/message.vdt.js +8 -5
- package/components/message/messages.js +12 -0
- package/components/message/messages.vdt.js +1 -0
- package/components/message/styles.js +9 -0
- package/components/pagination/index.d.ts +1 -1
- package/components/pagination/index.js +46 -10
- package/components/pagination/index.spec.js +173 -133
- package/components/pagination/index.vdt.js +34 -14
- package/components/pagination/styles.js +4 -0
- package/components/portal.d.ts +1 -1
- package/components/portal.js +29 -2
- package/components/position.d.ts +12 -12
- package/components/position.js +88 -32
- package/components/progress/index.d.ts +6 -6
- package/components/progress/index.js +12 -0
- package/components/progress/index.spec.js +191 -143
- package/components/progress/index.vdt.js +11 -8
- package/components/progress/styles.js +6 -0
- package/components/progress/useColor.js +7 -2
- package/components/progress/useStatus.d.ts +1 -1
- package/components/progress/useStatus.js +5 -2
- package/components/radio/index.js +18 -3
- package/components/radio/index.spec.js +149 -111
- package/components/radio/index.vdt.js +17 -14
- package/components/radio/styles.js +10 -0
- package/components/rate/index.js +7 -0
- package/components/rate/index.spec.js +79 -64
- package/components/rate/index.vdt.js +21 -8
- package/components/rate/styles.js +3 -0
- package/components/rate/useActiveValue.js +7 -2
- package/components/scrollSelect/index.d.ts +2 -2
- package/components/scrollSelect/index.js +7 -0
- package/components/scrollSelect/index.spec.js +131 -100
- package/components/scrollSelect/index.vdt.js +11 -6
- package/components/scrollSelect/styles.js +7 -0
- package/components/scrollSelect/useList.js +17 -3
- package/components/scrollSelect/useMouseEvents.js +49 -31
- package/components/scrollSelect/useTranslate.js +11 -1
- package/components/select/base.js +35 -5
- package/components/select/base.vdt.js +38 -23
- package/components/select/group.js +5 -0
- package/components/select/group.vdt.js +10 -4
- package/components/select/index.spec.js +452 -361
- package/components/select/menu.js +5 -0
- package/components/select/menu.vdt.js +33 -18
- package/components/select/option.js +16 -2
- package/components/select/option.vdt.js +14 -7
- package/components/select/select.d.ts +33 -0
- package/components/select/select.js +20 -3
- package/components/select/select.vdt.js +17 -9
- package/components/select/styles.js +33 -0
- package/components/select/useBaseLabel.d.ts +1 -1
- package/components/select/useBaseLabel.js +17 -4
- package/components/select/useCard.js +4 -0
- package/components/select/useEqualWidth.js +1 -0
- package/components/select/useFilterable.js +27 -5
- package/components/select/useFocusout.js +8 -0
- package/components/select/useInput.js +10 -6
- package/components/select/useLabel.js +13 -3
- package/components/select/useSearchable.js +10 -0
- package/components/skeleton/item.d.ts +1 -1
- package/components/skeleton/item.js +4 -0
- package/components/skeleton/item.vdt.js +6 -1
- package/components/skeleton/skeleton.js +4 -0
- package/components/skeleton/skeleton.vdt.js +12 -6
- package/components/skeleton/style.d.ts +1 -1
- package/components/skeleton/style.js +1 -0
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.js +7 -0
- package/components/slider/index.spec.js +585 -467
- package/components/slider/index.vdt.js +45 -32
- package/components/slider/styles.js +14 -0
- package/components/slider/useClick.js +11 -2
- package/components/slider/useDraggable.js +34 -23
- package/components/slider/useKeyboard.js +18 -7
- package/components/slider/useMarks.d.ts +5 -5
- package/components/slider/useMarks.js +13 -5
- package/components/slider/usePoints.d.ts +2 -2
- package/components/slider/usePoints.js +21 -7
- package/components/slider/useStyles.d.ts +1 -1
- package/components/slider/useStyles.js +10 -5
- package/components/slider/useTooltip.js +10 -2
- package/components/slider/useValue.d.ts +1 -1
- package/components/slider/useValue.js +22 -7
- package/components/spin/index.js +4 -0
- package/components/spin/index.vdt.js +11 -4
- package/components/spin/styles.js +2 -0
- package/components/spinner/index.d.ts +4 -4
- package/components/spinner/index.js +24 -9
- package/components/spinner/index.spec.js +460 -359
- package/components/spinner/index.vdt.js +13 -10
- package/components/spinner/styles.js +3 -0
- package/components/spinner/useChange.js +16 -4
- package/components/spinner/useFormatter.js +16 -6
- package/components/spinner/useStep.d.ts +3 -3
- package/components/spinner/useStep.js +20 -2
- package/components/spinner/useValue.js +26 -11
- package/components/split/index.js +7 -0
- package/components/split/index.spec.js +267 -223
- package/components/split/index.vdt.js +17 -8
- package/components/split/style.d.ts +1 -1
- package/components/split/style.js +8 -0
- package/components/split/useDraggable.js +35 -11
- package/components/split/useSize.js +5 -2
- package/components/steps/context.d.ts +2 -2
- package/components/steps/index.js +10 -2
- package/components/steps/index.spec.js +27 -21
- package/components/steps/index.vdt.js +10 -8
- package/components/steps/step.js +2 -0
- package/components/steps/step.vdt.js +12 -8
- package/components/steps/styles.js +27 -0
- package/components/switch/index.js +23 -2
- package/components/switch/index.spec.js +224 -188
- package/components/switch/index.vdt.js +32 -16
- package/components/switch/styles.js +14 -3
- package/components/switch/useDraggable.js +18 -10
- package/components/table/cell.js +6 -0
- package/components/table/cell.vdt.js +21 -14
- package/components/table/column.d.ts +1 -1
- package/components/table/column.js +5 -0
- package/components/table/column.vdt.js +30 -19
- package/components/table/exportTable.js +56 -45
- package/components/table/index.spec.js +984 -780
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +41 -12
- package/components/table/row.vdt.js +39 -27
- package/components/table/styles.js +11 -0
- package/components/table/table.d.ts +5 -5
- package/components/table/table.js +50 -18
- package/components/table/table.vdt.js +85 -61
- package/components/table/useChecked.d.ts +1 -1
- package/components/table/useChecked.js +61 -20
- package/components/table/useColumns.js +16 -3
- package/components/table/useDisableRow.js +12 -2
- package/components/table/useDraggable.js +12 -4
- package/components/table/useExpandable.js +5 -2
- package/components/table/useFixedColumns.d.ts +1 -1
- package/components/table/useFixedColumns.js +23 -4
- package/components/table/useGroup.d.ts +1 -1
- package/components/table/useGroup.js +24 -7
- package/components/table/useMerge.d.ts +4 -4
- package/components/table/useMerge.js +14 -2
- package/components/table/usePagination.js +18 -4
- package/components/table/useResizable.js +10 -2
- package/components/table/useRestRowStatus.js +6 -2
- package/components/table/useScroll.d.ts +1 -1
- package/components/table/useScroll.js +3 -0
- package/components/table/useSelected.js +5 -2
- package/components/table/useSortable.js +8 -2
- package/components/table/useStickyHeader.js +7 -3
- package/components/table/useStickyScrollbar.js +16 -6
- package/components/table/useTree.js +12 -1
- package/components/table/useWidth.js +30 -14
- package/components/tabs/index.js +51 -29
- package/components/tabs/index.spec.js +74 -56
- package/components/tabs/index.vdt.js +16 -13
- package/components/tabs/styles.js +16 -0
- package/components/tabs/tab.js +10 -0
- package/components/tabs/tab.vdt.js +10 -6
- package/components/tabs/useActiveBar.js +11 -2
- package/components/tabs/useScroll.js +20 -4
- package/components/tag/base.js +8 -0
- package/components/tag/index.js +4 -2
- package/components/tag/index.spec.js +25 -19
- package/components/tag/index.vdt.js +15 -8
- package/components/tag/styles.js +9 -0
- package/components/timeline/item.js +4 -0
- package/components/timeline/item.vdt.js +9 -4
- package/components/timeline/styles.d.ts +2 -2
- package/components/timeline/styles.js +4 -0
- package/components/timeline/timeline.js +2 -0
- package/components/timeline/timeline.vdt.js +5 -2
- package/components/timepicker/index.js +7 -2
- package/components/timepicker/index.spec.js +368 -293
- package/components/timepicker/panelPicker.d.ts +54 -0
- package/components/timepicker/panelPicker.js +11 -2
- package/components/timepicker/panelPicker.vdt.js +24 -14
- package/components/timepicker/selectPicker.js +5 -0
- package/components/timepicker/selectPicker.vdt.js +10 -5
- package/components/timepicker/styles.js +1 -0
- package/components/timepicker/useDisabled.js +4 -2
- package/components/timepicker/useFormats.js +13 -4
- package/components/timepicker/useStep.d.ts +1 -1
- package/components/timepicker/useStep.js +17 -8
- package/components/timepicker/useValue.js +21 -16
- package/components/tip/index.js +2 -0
- package/components/tip/index.vdt.js +17 -5
- package/components/tip/styles.js +3 -0
- package/components/tooltip/content.js +28 -0
- package/components/tooltip/content.vdt.js +25 -15
- package/components/tooltip/index.js +7 -3
- package/components/tooltip/index.spec.js +572 -434
- package/components/tooltip/styles.d.ts +1 -1
- package/components/tooltip/styles.js +10 -2
- package/components/tooltip/tooltip.js +15 -2
- package/components/tooltip/useArrow.js +14 -11
- package/components/transfer/index.d.ts +1 -1
- package/components/transfer/index.js +13 -1
- package/components/transfer/index.spec.js +194 -159
- package/components/transfer/index.vdt.js +34 -16
- package/components/transfer/styles.js +10 -0
- package/components/transfer/useCheck.d.ts +1 -1
- package/components/transfer/useCheck.js +15 -1
- package/components/transfer/useFilter.d.ts +1 -1
- package/components/transfer/useFilter.js +30 -9
- package/components/transfer/useTransfer.js +26 -10
- package/components/tree/index.d.ts +3 -3
- package/components/tree/index.js +22 -4
- package/components/tree/index.spec.js +355 -285
- package/components/tree/index.vdt.js +23 -12
- package/components/tree/styles.js +16 -2
- package/components/tree/useChecked.js +26 -3
- package/components/tree/useDraggable.js +42 -12
- package/components/tree/useExpanded.js +43 -26
- package/components/tree/useFilter.js +10 -3
- package/components/tree/useNodes.d.ts +1 -1
- package/components/tree/useNodes.js +4 -0
- package/components/tree/useSelected.js +38 -21
- package/components/tree/useTransitionEvent.js +5 -3
- package/components/treeSelect/index.d.ts +27 -0
- package/components/treeSelect/index.js +36 -9
- package/components/treeSelect/index.spec.js +160 -123
- package/components/treeSelect/index.vdt.js +20 -14
- package/components/treeSelect/styles.js +1 -0
- package/components/treeSelect/useValue.js +11 -0
- package/components/types.d.ts +3 -3
- package/components/upload/ajaxUploader.d.ts +1 -1
- package/components/upload/ajaxUploader.js +17 -0
- package/components/upload/index.d.ts +4 -4
- package/components/upload/index.js +14 -0
- package/components/upload/index.spec.js +249 -142
- package/components/upload/index.vdt.js +27 -12
- package/components/upload/styles.js +30 -0
- package/components/upload/useAccept.js +10 -2
- package/components/upload/useDrag.js +7 -0
- package/components/upload/useFiles.js +145 -103
- package/components/upload/useShowImage.js +3 -0
- package/components/upload/useUpload.js +69 -47
- package/components/utils.d.ts +3 -3
- package/components/utils.js +47 -12
- package/components/virtual.js +37 -9
- package/components/wave/index.js +31 -5
- package/hooks/useDelayClose.js +6 -2
- package/hooks/useDocumentClick.js +16 -8
- package/hooks/useDraggable.d.ts +1 -1
- package/hooks/useDraggable.js +9 -0
- package/hooks/useKeyboard.d.ts +3 -3
- package/hooks/useKeyboard.js +10 -0
- package/hooks/useMouseOutsidable.js +8 -0
- package/hooks/useReceive.d.ts +1 -1
- package/hooks/useReceive.js +4 -0
- package/hooks/useRecordComponent.js +6 -0
- package/hooks/useRouter.js +18 -7
- package/hooks/useShowHideEvents.js +3 -0
- package/hooks/useState.d.ts +2 -2
- package/hooks/useState.js +6 -2
- package/i18n/en-US.js +1 -0
- package/i18n/index.d.ts +1 -1
- package/i18n/index.js +7 -0
- package/index.d.ts +2 -2
- package/index.js +3 -2
- package/package.json +1 -1
- package/styles/global.js +3 -2
- package/styles/keyframes.js +1 -0
- package/styles/theme.d.ts +1 -1
- package/styles/theme.js +7 -4
- package/styles/utils.d.ts +1 -1
- package/styles/utils.js +17 -3
- package/yarn-error.log +0 -1013
|
@@ -12,76 +12,94 @@ export function useMouseEvents(translate, list) {
|
|
|
12
12
|
var y;
|
|
13
13
|
var itemHeight;
|
|
14
14
|
var deltaY;
|
|
15
|
+
|
|
15
16
|
var _useDraggable = useDraggable({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
onStart: function onStart(e) {
|
|
18
|
+
dragged = false;
|
|
19
|
+
initY = y = e.clientY;
|
|
20
|
+
var meta = getInitMeta(instance);
|
|
21
|
+
itemHeight = meta.itemHeight;
|
|
22
|
+
deltaY = meta.deltaY;
|
|
23
|
+
},
|
|
24
|
+
onMove: function onMove(e) {
|
|
25
|
+
var deltaY = e.clientY - y;
|
|
26
|
+
dragged = !!deltaY;
|
|
27
|
+
y = e.clientY;
|
|
28
|
+
|
|
29
|
+
var _deltaY = y - initY;
|
|
30
|
+
|
|
31
|
+
var offsetIndex = Math.floor(Math.abs(_deltaY) / itemHeight);
|
|
32
|
+
|
|
33
|
+
if (offsetIndex) {
|
|
34
|
+
if (_deltaY < 0) {
|
|
35
|
+
offsetIndex = -offsetIndex;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
translate.set(-marginTop.value + deltaY);
|
|
37
|
+
|
|
38
|
+
setByRelativeIndex(-offsetIndex, -_deltaY, false);
|
|
39
|
+
initY = y;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
|
|
42
|
+
translate.set(translate.value + deltaY);
|
|
43
|
+
},
|
|
44
|
+
onEnd: function onEnd() {
|
|
45
|
+
translate.set(-marginTop.value + deltaY);
|
|
46
|
+
}
|
|
47
|
+
}),
|
|
48
|
+
start = _useDraggable.start,
|
|
49
|
+
dragging = _useDraggable.dragging;
|
|
50
|
+
|
|
44
51
|
function setByRelativeIndex(index, deltaY, isSetTranslate) {
|
|
45
52
|
var _context;
|
|
53
|
+
|
|
46
54
|
var data = list.data,
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
value = list.value,
|
|
56
|
+
setValue = list.setValue;
|
|
57
|
+
|
|
49
58
|
var i = _findIndexInstanceProperty(_context = data.value).call(_context, function (v) {
|
|
50
59
|
return v.value === value.value;
|
|
51
60
|
});
|
|
61
|
+
|
|
52
62
|
var l = data.value.length;
|
|
53
63
|
var newValue = data.value[(l + i + index) % l].value;
|
|
54
64
|
setValue(newValue, true);
|
|
55
65
|
marginTop.set(marginTop.value + (deltaY || index * itemHeight));
|
|
66
|
+
|
|
56
67
|
if (isSetTranslate) {
|
|
57
68
|
translate.set(translate.value - itemHeight * index);
|
|
58
69
|
}
|
|
59
70
|
}
|
|
71
|
+
|
|
60
72
|
function onWheel(e) {
|
|
61
73
|
e.preventDefault();
|
|
62
74
|
itemHeight = getItemHeight();
|
|
75
|
+
|
|
63
76
|
if (e.deltaY > 0) {
|
|
64
77
|
// down
|
|
65
78
|
setByRelativeIndex(1, null, true);
|
|
66
79
|
} else {
|
|
67
80
|
setByRelativeIndex(-1, null, true);
|
|
68
81
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
82
|
+
} // throttle onWheel
|
|
83
|
+
|
|
84
|
+
|
|
71
85
|
var _onWheel = throttle(onWheel, 0, function (e) {
|
|
72
86
|
return e.preventDefault();
|
|
73
87
|
});
|
|
88
|
+
|
|
74
89
|
function onClick(item, index) {
|
|
75
90
|
// if _dragged, do not trigger click event, #123
|
|
76
91
|
if (dragged) return;
|
|
92
|
+
|
|
77
93
|
var _instance$get = instance.get(),
|
|
78
|
-
|
|
94
|
+
count = _instance$get.count;
|
|
95
|
+
|
|
79
96
|
var half = Math.floor(count / 2);
|
|
80
97
|
var itemHeight = getItemHeight();
|
|
81
98
|
translate.set(translate.value - itemHeight * (index - half));
|
|
82
99
|
marginTop.set(marginTop.value + itemHeight * (index - half));
|
|
83
100
|
list.setValue(item.value, true);
|
|
84
101
|
}
|
|
102
|
+
|
|
85
103
|
return {
|
|
86
104
|
onStart: start,
|
|
87
105
|
marginTop: marginTop,
|
|
@@ -8,8 +8,10 @@ export function useTranslate() {
|
|
|
8
8
|
onMounted(function () {
|
|
9
9
|
var element = findDomFromVNode(instance.$lastInput, true);
|
|
10
10
|
var rollback = ensureVisible(element);
|
|
11
|
+
|
|
11
12
|
var _getInitMeta = getInitMeta(instance, element),
|
|
12
|
-
|
|
13
|
+
deltaY = _getInitMeta.deltaY;
|
|
14
|
+
|
|
13
15
|
rollback();
|
|
14
16
|
translate.set(deltaY);
|
|
15
17
|
});
|
|
@@ -21,6 +23,7 @@ export function getInitMeta(instance, element) {
|
|
|
21
23
|
if (element === void 0) {
|
|
22
24
|
element = findDomFromVNode(instance.$lastInput, true);
|
|
23
25
|
}
|
|
26
|
+
|
|
24
27
|
var count = instance.get('count');
|
|
25
28
|
var height = element.offsetHeight;
|
|
26
29
|
var itemHeight = getItemHeight();
|
|
@@ -33,6 +36,7 @@ export function getInitMeta(instance, element) {
|
|
|
33
36
|
export function getItemHeight() {
|
|
34
37
|
return parseInt(scrollSelect.item.height, 10);
|
|
35
38
|
}
|
|
39
|
+
|
|
36
40
|
function ensureVisible(element) {
|
|
37
41
|
var hiddenParents = [];
|
|
38
42
|
var oldStyles = [];
|
|
@@ -42,20 +46,26 @@ function ensureVisible(element) {
|
|
|
42
46
|
display: 'block'
|
|
43
47
|
};
|
|
44
48
|
var parent = element;
|
|
49
|
+
|
|
45
50
|
do {
|
|
46
51
|
var display = window.getComputedStyle(parent).display;
|
|
52
|
+
|
|
47
53
|
if (display === 'none') {
|
|
48
54
|
hiddenParents.push(parent);
|
|
49
55
|
oldStyles.push(parent.getAttribute('style'));
|
|
56
|
+
|
|
50
57
|
for (var style in styles) {
|
|
51
58
|
parent.style[style] = styles[style];
|
|
52
59
|
}
|
|
53
60
|
}
|
|
61
|
+
|
|
54
62
|
parent = parent.parentElement;
|
|
55
63
|
} while (parent);
|
|
64
|
+
|
|
56
65
|
return function () {
|
|
57
66
|
hiddenParents.forEach(function (parent, index) {
|
|
58
67
|
var style = oldStyles[index];
|
|
68
|
+
|
|
59
69
|
if (style !== null) {
|
|
60
70
|
parent.setAttribute('style', style);
|
|
61
71
|
} else {
|
|
@@ -31,11 +31,13 @@ var typeDefs = {
|
|
|
31
31
|
show: Boolean,
|
|
32
32
|
position: Dropdown.typeDefs.position
|
|
33
33
|
};
|
|
34
|
+
|
|
34
35
|
var defaults = function defaults() {
|
|
35
36
|
return {
|
|
36
37
|
size: 'default'
|
|
37
38
|
};
|
|
38
39
|
};
|
|
40
|
+
|
|
39
41
|
var events = {
|
|
40
42
|
keydown: true,
|
|
41
43
|
focusout: true,
|
|
@@ -44,84 +46,112 @@ var events = {
|
|
|
44
46
|
};
|
|
45
47
|
export var BaseSelect = /*#__PURE__*/function (_Component) {
|
|
46
48
|
_inheritsLoose(BaseSelect, _Component);
|
|
49
|
+
|
|
47
50
|
function BaseSelect() {
|
|
48
51
|
var _context;
|
|
52
|
+
|
|
49
53
|
var _this;
|
|
54
|
+
|
|
50
55
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
51
56
|
args[_key] = arguments[_key];
|
|
52
57
|
}
|
|
58
|
+
|
|
53
59
|
_this = _Component.call.apply(_Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
54
60
|
_this.dropdownRef = createRef();
|
|
55
61
|
_this.input = useInput(_this.resetKeywords);
|
|
56
62
|
_this.focusout = useFocusout();
|
|
57
63
|
return _this;
|
|
58
64
|
}
|
|
65
|
+
|
|
59
66
|
var _proto = BaseSelect.prototype;
|
|
67
|
+
|
|
60
68
|
_proto.init = function init() {
|
|
61
69
|
provide(SELECT, this);
|
|
62
|
-
useShowHideEvents('show');
|
|
63
|
-
|
|
70
|
+
useShowHideEvents('show'); // this.input = useInput();
|
|
71
|
+
|
|
64
72
|
this.watch('value', this.position, {
|
|
65
73
|
presented: true
|
|
66
74
|
});
|
|
67
75
|
};
|
|
76
|
+
|
|
68
77
|
_proto.position = function position() {
|
|
69
78
|
var dropdown = this.dropdownRef.value;
|
|
79
|
+
|
|
70
80
|
if (dropdown.get('value')) {
|
|
71
81
|
dropdown.position();
|
|
72
82
|
}
|
|
73
83
|
};
|
|
84
|
+
|
|
74
85
|
_proto.show = function show() {
|
|
75
86
|
this.set('show', true);
|
|
76
87
|
};
|
|
88
|
+
|
|
77
89
|
_proto.hide = function hide() {
|
|
78
90
|
this.set('show', false);
|
|
79
91
|
};
|
|
92
|
+
|
|
80
93
|
_proto.resetKeywords = function resetKeywords(keywords) {
|
|
81
94
|
keywords.set('');
|
|
82
95
|
};
|
|
96
|
+
|
|
83
97
|
_proto.hasValue = function hasValue() {
|
|
84
98
|
var _this$get = this.get(),
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
value = _this$get.value,
|
|
100
|
+
multiple = _this$get.multiple;
|
|
101
|
+
|
|
87
102
|
return !isNullOrUndefined(value) && (multiple ? value.length : value !== '');
|
|
88
103
|
};
|
|
104
|
+
|
|
89
105
|
_proto.delete = function _delete(index, e) {
|
|
90
106
|
var _context2;
|
|
107
|
+
|
|
91
108
|
if (this.get('disabled')) return;
|
|
92
109
|
e.stopPropagation();
|
|
110
|
+
|
|
93
111
|
var value = _sliceInstanceProperty(_context2 = this.get('value')).call(_context2, 0);
|
|
112
|
+
|
|
94
113
|
_spliceInstanceProperty(value).call(value, index, 1);
|
|
114
|
+
|
|
95
115
|
this.set('value', value);
|
|
96
116
|
};
|
|
117
|
+
|
|
97
118
|
_proto.clear = function clear(e) {
|
|
98
119
|
e.stopPropagation();
|
|
99
120
|
this.set('value', this.get('multiple') ? [] : null);
|
|
100
121
|
};
|
|
122
|
+
|
|
101
123
|
_proto.onKeydown = function onKeydown(e) {
|
|
102
124
|
this.trigger('keydown', e);
|
|
125
|
+
|
|
103
126
|
switch (e.keyCode) {
|
|
104
127
|
case 13:
|
|
105
128
|
// enter
|
|
106
129
|
this.show();
|
|
107
130
|
break;
|
|
131
|
+
|
|
108
132
|
case 9: // tab
|
|
133
|
+
|
|
109
134
|
case 27:
|
|
110
135
|
// esc
|
|
111
136
|
this.hide();
|
|
112
137
|
break;
|
|
113
138
|
}
|
|
114
139
|
};
|
|
140
|
+
|
|
115
141
|
return BaseSelect;
|
|
116
142
|
}(Component);
|
|
117
|
-
// for intact-react, intact-vue-next and intact-vue
|
|
118
143
|
BaseSelect.$doubleVNodes = true;
|
|
119
144
|
BaseSelect.template = template;
|
|
120
145
|
BaseSelect.typeDefs = typeDefs;
|
|
121
146
|
BaseSelect.defaults = defaults;
|
|
122
147
|
BaseSelect.events = events;
|
|
148
|
+
|
|
123
149
|
__decorate([bind], BaseSelect.prototype, "position", null);
|
|
150
|
+
|
|
124
151
|
__decorate([bind], BaseSelect.prototype, "show", null);
|
|
152
|
+
|
|
125
153
|
__decorate([bind], BaseSelect.prototype, "hide", null);
|
|
154
|
+
|
|
126
155
|
__decorate([bind], BaseSelect.prototype, "clear", null);
|
|
156
|
+
|
|
127
157
|
__decorate([bind], BaseSelect.prototype, "onKeydown", null);
|
|
@@ -16,30 +16,33 @@ var _$tmp0 = {
|
|
|
16
16
|
};
|
|
17
17
|
export default function ($props, $blocks, $__proto__) {
|
|
18
18
|
var _classNameObj,
|
|
19
|
-
|
|
19
|
+
_this = this;
|
|
20
|
+
|
|
20
21
|
$blocks || ($blocks = {});
|
|
21
22
|
$props || ($props = {});
|
|
22
23
|
var $this = this;
|
|
23
24
|
var _$blocks = {};
|
|
24
25
|
var __$blocks = {};
|
|
26
|
+
|
|
25
27
|
var _this$get = this.get(),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
value = _this$get.value,
|
|
29
|
+
multiple = _this$get.multiple,
|
|
30
|
+
loading = _this$get.loading,
|
|
31
|
+
disabled = _this$get.disabled,
|
|
32
|
+
name = _this$get.name,
|
|
33
|
+
size = _this$get.size,
|
|
34
|
+
hideIcon = _this$get.hideIcon,
|
|
35
|
+
fluid = _this$get.fluid,
|
|
36
|
+
clearable = _this$get.clearable,
|
|
37
|
+
filterable = _this$get.filterable,
|
|
38
|
+
className = _this$get.className,
|
|
39
|
+
container = _this$get.container,
|
|
40
|
+
inline = _this$get.inline,
|
|
41
|
+
style = _this$get.style,
|
|
42
|
+
width = _this$get.width,
|
|
43
|
+
show = _this$get.show,
|
|
44
|
+
position = _this$get.position;
|
|
45
|
+
|
|
43
46
|
var classNameObj = (_classNameObj = {
|
|
44
47
|
'k-select': true,
|
|
45
48
|
'k-disabled': disabled
|
|
@@ -48,12 +51,12 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
48
51
|
var label = this.getLabel();
|
|
49
52
|
var hasValue = this.hasValue();
|
|
50
53
|
var _this$input = this.input,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
onInput = _this$input.onInput,
|
|
55
|
+
inputRef = _this$input.inputRef,
|
|
56
|
+
keywords = _this$input.keywords.value;
|
|
54
57
|
var _this$focusout = this.focusout,
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
onFocusout = _this$focusout.onFocusout,
|
|
59
|
+
triggerRef = _this$focusout.triggerRef;
|
|
57
60
|
return _$cc(ErrorContext.Consumer, {
|
|
58
61
|
'defaultValue': false,
|
|
59
62
|
'children': function children(isInvalid) {
|
|
@@ -79,9 +82,11 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
79
82
|
return null;
|
|
80
83
|
}, __$blocks['prefix'] = function ($super, data) {
|
|
81
84
|
var block = $blocks['prefix'];
|
|
85
|
+
|
|
82
86
|
var callBlock = function callBlock() {
|
|
83
87
|
return _$blocks['prefix'].call($this, $super, data);
|
|
84
88
|
};
|
|
89
|
+
|
|
85
90
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
86
91
|
}, __$blocks['prefix'](_$no)), 0, 'k-select-prefix') : undefined, _$ce(2, 'div', [_$ce(64, 'input', null, 1, null, {
|
|
87
92
|
'type': 'hidden',
|
|
@@ -106,9 +111,11 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
106
111
|
return label;
|
|
107
112
|
}, __$blocks['value'] = function ($super, data) {
|
|
108
113
|
var block = $blocks['value'];
|
|
114
|
+
|
|
109
115
|
var callBlock = function callBlock() {
|
|
110
116
|
return _$blocks['value'].call($this, $super, data);
|
|
111
117
|
};
|
|
118
|
+
|
|
112
119
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
113
120
|
}, __$blocks['value'](_$no, [value, label])), 0, 'k-select-value c-ellipsis', null, 'value') : _$ce(2, 'div', [_$cc(TransitionGroup, {
|
|
114
121
|
'name': 'k-fade',
|
|
@@ -118,9 +125,11 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
118
125
|
return $label;
|
|
119
126
|
}, __$blocks['value'] = function ($super, data) {
|
|
120
127
|
var block = $blocks['value'];
|
|
128
|
+
|
|
121
129
|
var callBlock = function callBlock() {
|
|
122
130
|
return _$blocks['value'].call($this, $super, data);
|
|
123
131
|
};
|
|
132
|
+
|
|
124
133
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
125
134
|
}, __$blocks['value'](_$no, [value[$key], $label])), 0, 'k-select-text'), _$cc(Icon, {
|
|
126
135
|
'className': 'ion-ios-close k-select-close',
|
|
@@ -130,9 +139,11 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
130
139
|
}, $this);
|
|
131
140
|
}, __$blocks['values'] = function ($super, data) {
|
|
132
141
|
var block = _valuesInstanceProperty($blocks);
|
|
142
|
+
|
|
133
143
|
var callBlock = function callBlock() {
|
|
134
144
|
return _valuesInstanceProperty(_$blocks).call($this, $super, data);
|
|
135
145
|
};
|
|
146
|
+
|
|
136
147
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
137
148
|
}, _valuesInstanceProperty(__$blocks).call(__$blocks, _$no, [value, label]))
|
|
138
149
|
}), filterable ? _$cc(Input, {
|
|
@@ -168,17 +179,21 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
168
179
|
}) : undefined;
|
|
169
180
|
}, __$blocks['suffix'] = function ($super, data) {
|
|
170
181
|
var block = $blocks['suffix'];
|
|
182
|
+
|
|
171
183
|
var callBlock = function callBlock() {
|
|
172
184
|
return _$blocks['suffix'].call($this, $super, data);
|
|
173
185
|
};
|
|
186
|
+
|
|
174
187
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
175
188
|
}, __$blocks['suffix'](_$no)), 0, 'k-select-suffix-icon')], 0, 'k-select-suffix') : undefined]), (_$blocks['base-menu'] = function ($super) {
|
|
176
189
|
return _$ce(2, 'div', 'should be implemeted', 16);
|
|
177
190
|
}, __$blocks['base-menu'] = function ($super, data) {
|
|
178
191
|
var block = $blocks['base-menu'];
|
|
192
|
+
|
|
179
193
|
var callBlock = function callBlock() {
|
|
180
194
|
return _$blocks['base-menu'].call($this, $super, data);
|
|
181
195
|
};
|
|
196
|
+
|
|
182
197
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
183
198
|
}, __$blocks['base-menu'](_$no))],
|
|
184
199
|
'ev-$model:value': function ev$modelValue($v) {
|
|
@@ -8,16 +8,21 @@ var typeDefs = {
|
|
|
8
8
|
};
|
|
9
9
|
export var OptionGroup = /*#__PURE__*/function (_Component) {
|
|
10
10
|
_inheritsLoose(OptionGroup, _Component);
|
|
11
|
+
|
|
11
12
|
function OptionGroup() {
|
|
12
13
|
var _context;
|
|
14
|
+
|
|
13
15
|
var _this;
|
|
16
|
+
|
|
14
17
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
15
18
|
args[_key] = arguments[_key];
|
|
16
19
|
}
|
|
20
|
+
|
|
17
21
|
_this = _Component.call.apply(_Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
18
22
|
_this.select = inject(SELECT);
|
|
19
23
|
return _this;
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
return OptionGroup;
|
|
22
27
|
}(Component);
|
|
23
28
|
OptionGroup.template = template;
|
|
@@ -4,17 +4,21 @@ import { makeGroupStyles } from './styles';
|
|
|
4
4
|
import { getRestProps } from '../utils';
|
|
5
5
|
export default function ($props, $blocks, $__proto__) {
|
|
6
6
|
var _classNameObj;
|
|
7
|
+
|
|
7
8
|
$blocks || ($blocks = {});
|
|
8
9
|
$props || ($props = {});
|
|
9
10
|
var $this = this;
|
|
10
11
|
var _$blocks = {};
|
|
11
12
|
var __$blocks = {};
|
|
13
|
+
|
|
12
14
|
var _this$get = this.get(),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
children = _this$get.children,
|
|
16
|
+
label = _this$get.label,
|
|
17
|
+
className = _this$get.className;
|
|
18
|
+
|
|
16
19
|
var _this$select$get = this.select.get(),
|
|
17
|
-
|
|
20
|
+
card = _this$select$get.card;
|
|
21
|
+
|
|
18
22
|
var classNameObj = (_classNameObj = {
|
|
19
23
|
"k-select-group": true
|
|
20
24
|
}, _classNameObj[className] = className, _classNameObj[makeGroupStyles()] = true, _classNameObj);
|
|
@@ -24,9 +28,11 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
24
28
|
return label;
|
|
25
29
|
}, __$blocks['label'] = function ($super, data) {
|
|
26
30
|
var block = $blocks['label'];
|
|
31
|
+
|
|
27
32
|
var callBlock = function callBlock() {
|
|
28
33
|
return _$blocks['label'].call($this, $super, data);
|
|
29
34
|
};
|
|
35
|
+
|
|
30
36
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
31
37
|
}, __$blocks['label'](_$no)), 0, 'k-select-group-label') : undefined, children]);
|
|
32
38
|
}
|