bkui-vue 0.0.1-beta.99 → 0.0.1
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.txt +14 -0
- package/dist/index.cjs.js +360 -36
- package/dist/index.esm.js +30153 -24448
- package/dist/index.umd.js +360 -36
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.d.ts +2 -2
- package/lib/affix/affix.variable.css +29 -6
- package/lib/affix/index.d.ts +60 -36
- package/lib/alert/alert.css +4 -0
- package/lib/alert/alert.d.ts +11 -9
- package/lib/alert/alert.less +24 -19
- package/lib/alert/alert.variable.css +33 -6
- package/lib/alert/index.d.ts +82 -58
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +2 -2
- package/lib/animate-number/index.d.ts +58 -25
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +4 -4
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +37 -6
- package/lib/backtop/index.d.ts +65 -47
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +2 -5
- package/lib/badge/badge.d.ts +3 -3
- package/lib/badge/badge.less +4 -5
- package/lib/badge/badge.variable.css +31 -11
- package/lib/badge/index.d.ts +67 -64
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
- package/lib/breadcrumb/breadcrumb.css +43 -0
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +77 -11
- package/lib/breadcrumb/index.d.ts +65 -41
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +4 -4
- package/lib/button/button.css +21 -3
- package/lib/button/button.d.ts +46 -33
- package/lib/button/button.less +25 -5
- package/lib/button/button.variable.css +50 -9
- package/lib/button/index.d.ts +121 -96
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +45 -2
- package/lib/card/card.d.ts +2 -1
- package/lib/card/card.less +2 -2
- package/lib/card/card.variable.css +78 -12
- package/lib/card/index.d.ts +66 -64
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +60 -6
- package/lib/cascader/cascader.css +197 -11
- package/lib/cascader/cascader.d.ts +108 -25
- package/lib/cascader/cascader.less +148 -11
- package/lib/cascader/cascader.variable.css +234 -25
- package/lib/cascader/index.d.ts +378 -176
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/cascader/interface.d.ts +8 -1
- package/lib/cascader/node.d.ts +9 -2
- package/lib/cascader/store.d.ts +13 -1
- package/lib/checkbox/checkbox-group.d.ts +18 -2
- package/lib/checkbox/checkbox.css +38 -11
- package/lib/checkbox/checkbox.d.ts +40 -18
- package/lib/checkbox/checkbox.less +68 -33
- package/lib/checkbox/checkbox.variable.css +67 -17
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +133 -72
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +7 -7
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +56 -13
- package/lib/code-diff/index.d.ts +30 -43
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +104 -0
- package/lib/collapse/collapse.css +58 -19
- package/lib/collapse/collapse.d.ts +59 -42
- package/lib/collapse/collapse.less +106 -46
- package/lib/collapse/collapse.variable.css +87 -25
- package/lib/collapse/index.d.ts +271 -46
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +131 -0
- package/lib/collapse-transition/collapse-transition.css +93 -0
- package/lib/collapse-transition/collapse-transition.d.ts +15 -0
- package/lib/collapse-transition/collapse-transition.less +111 -0
- package/lib/collapse-transition/collapse-transition.variable.css +215 -0
- package/lib/collapse-transition/index.d.ts +2 -0
- package/lib/collapse-transition/index.js +1 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +397 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +255 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +13 -0
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +402 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/{popover2/popover2.variable.css → config-provider/config-provider.variable.css} +29 -31
- package/lib/config-provider/index.d.ts +646 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +128 -0
- package/lib/config-provider/use-global-config.d.ts +5 -0
- package/lib/config-provider/use-locale.d.ts +3 -0
- package/lib/config-provider/use-prefix.d.ts +9 -0
- package/lib/container/col.d.ts +3 -3
- package/lib/container/container.css +43 -0
- package/lib/container/container.d.ts +2 -2
- package/lib/container/container.less +4 -4
- package/lib/container/container.variable.css +72 -6
- package/lib/container/index.d.ts +30 -49
- package/lib/container/index.js +1 -1
- package/lib/container/interface.d.ts +7 -0
- package/lib/container/row.d.ts +2 -2
- package/lib/date-picker/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +96 -0
- package/lib/date-picker/base/month-table.d.ts +117 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
- package/lib/date-picker/base/time-spinner.d.ts +170 -0
- package/lib/date-picker/base/year-table.d.ts +117 -0
- package/lib/date-picker/date-picker.css +30 -1
- package/lib/date-picker/date-picker.d.ts +55 -35
- package/lib/date-picker/date-picker.less +109 -74
- package/lib/date-picker/date-picker.variable.css +59 -7
- package/lib/date-picker/index.d.ts +198 -218
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +20 -10
- package/lib/date-picker/panel/date-range.d.ts +345 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +495 -0
- package/lib/date-picker/panel/time.d.ts +451 -0
- package/lib/date-picker/props.d.ts +48 -5
- package/lib/date-picker/time-picker.d.ts +390 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +94 -34
- package/lib/dialog/dialog.d.ts +57 -93
- package/lib/dialog/dialog.less +85 -43
- package/lib/dialog/dialog.variable.css +216 -34
- package/lib/dialog/index.d.ts +194 -334
- package/lib/dialog/index.js +2 -1
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- package/lib/dialog/props.d.ts +122 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +2 -1
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.d.ts +17 -17
- package/lib/divider/divider.variable.css +29 -6
- package/lib/divider/index.d.ts +85 -61
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +2 -2
- package/lib/dropdown/dropdown.css +34 -7
- package/lib/dropdown/dropdown.d.ts +46 -15
- package/lib/dropdown/dropdown.less +42 -36
- package/lib/dropdown/dropdown.variable.css +63 -13
- package/lib/dropdown/index.d.ts +136 -65
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +33 -13
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +69 -20
- package/lib/exception/index.d.ts +91 -43
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -6
- package/lib/fixed-navbar/index.d.ts +60 -36
- package/lib/form/compose-form-item.d.ts +4 -2
- package/lib/form/form-item.d.ts +15 -9
- package/lib/form/form.css +32 -8
- package/lib/form/form.d.ts +25 -7
- package/lib/form/form.less +85 -53
- package/lib/form/form.variable.css +61 -14
- package/lib/form/index.d.ts +109 -51
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +5 -4
- package/lib/form/utils.d.ts +2 -0
- package/lib/hooks.d.ts +1 -0
- package/lib/hooks.js +1 -0
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.d.ts +4 -0
- package/lib/icon/copy-shape.js +1 -0
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/fix-line.d.ts +4 -0
- package/lib/icon/fix-line.js +1 -0
- package/lib/icon/fix-shape.d.ts +4 -0
- package/lib/icon/fix-shape.js +1 -0
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +83 -69
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original.d.ts +4 -0
- package/lib/icon/original.js +1 -0
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.d.ts +4 -0
- package/lib/icon/transfer.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.d.ts +4 -0
- package/lib/icon/weixin-pro.js +1 -0
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +252 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +2 -0
- package/lib/info-box/index.js.LICENSE.txt +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +29 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +159 -0
- package/lib/input/index.d.ts +178 -228
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +168 -23
- package/lib/input/input.d.ts +59 -37
- package/lib/input/input.less +104 -22
- package/lib/input/input.variable.css +228 -61
- package/lib/link/index.d.ts +80 -53
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +10 -8
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +41 -18
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +160 -56
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +72 -29
- package/lib/loading/loading.d.ts +91 -15
- package/lib/loading/loading.less +21 -19
- package/lib/loading/loading.variable.css +117 -51
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +126 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +75 -34
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +2 -2
- package/lib/menu/menu-item.d.ts +5 -1
- package/lib/menu/menu.css +43 -0
- package/lib/menu/menu.d.ts +2 -2
- package/lib/menu/menu.variable.css +90 -24
- package/lib/menu/submenu.d.ts +5 -1
- package/lib/menu/submenu.variable.css +29 -6
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +2 -1
- package/lib/message/index.js.LICENSE.txt +6 -0
- package/lib/message/message.css +166 -2
- package/lib/message/message.less +222 -7
- package/lib/message/message.variable.css +195 -8
- package/lib/message/messageConstructor.d.ts +136 -27
- package/lib/modal/index.d.ts +201 -246
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +39 -6
- package/lib/modal/modal.d.ts +54 -61
- package/lib/modal/modal.less +8 -10
- package/lib/modal/modal.variable.css +161 -6
- package/lib/modal/props.mixin.d.ts +16 -23
- package/lib/navigation/index.d.ts +90 -68
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +6 -3
- package/lib/navigation/navigation.d.ts +12 -4
- package/lib/navigation/navigation.variable.css +29 -6
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +8 -4
- package/lib/notify/notify.less +18 -13
- package/lib/notify/notify.variable.css +37 -10
- package/lib/notify/notifyConstructor.d.ts +19 -21
- package/lib/overflow-title/components/overflow-title.d.ts +57 -0
- package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +195 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/overflow.css +11 -0
- package/lib/overflow-title/overflow.less +13 -0
- package/lib/overflow-title/overflow.variable.css +11 -0
- package/lib/overflow-title/props.d.ts +43 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +89 -90
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +17 -6
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +83 -34
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.d.ts +249 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.css +28 -0
- package/lib/pop-confirm/pop-confirm.d.ts +95 -0
- package/lib/pop-confirm/pop-confirm.less +34 -0
- package/lib/pop-confirm/pop-confirm.variable.css +150 -0
- package/lib/pop-confirm/props.d.ts +67 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +43 -0
- package/lib/popover/index.d.ts +409 -173
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -53
- package/lib/popover/popover.d.ts +189 -58
- package/lib/popover/popover.less +19 -68
- package/lib/popover/popover.variable.css +40 -60
- package/lib/popover/props.d.ts +90 -37
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +27 -0
- package/lib/popover/use-floating.d.ts +34 -0
- package/lib/popover/use-platform.d.ts +30 -0
- package/lib/popover/use-popover-init.d.ts +23 -0
- package/lib/popover/use-popper-id.d.ts +6 -0
- package/lib/popover/utils.d.ts +8 -0
- package/lib/popover2/index.d.ts +54 -393
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +264 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.d.ts +69 -52
- package/lib/process/index.js +2 -1
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +5 -4
- package/lib/process/process.less +36 -8
- package/lib/process/process.variable.css +51 -6
- package/lib/progress/index.d.ts +100 -121
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +43 -0
- package/lib/progress/progress.d.ts +17 -15
- package/lib/progress/progress.less +8 -8
- package/lib/progress/progress.variable.css +76 -10
- package/lib/radio/index.d.ts +116 -58
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +12 -9
- package/lib/radio/radio-group.d.ts +36 -5
- package/lib/radio/radio.css +133 -62
- package/lib/radio/radio.d.ts +9 -5
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +166 -72
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +78 -28
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +14 -3
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +82 -80
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +6 -15
- package/lib/resize-layout/resize-layout.d.ts +10 -9
- package/lib/resize-layout/resize-layout.less +32 -41
- package/lib/resize-layout/resize-layout.variable.css +35 -21
- package/lib/search-select/index.d.ts +892 -0
- package/lib/search-select/index.js +2 -0
- package/lib/search-select/index.js.LICENSE.txt +1 -0
- package/lib/search-select/input.d.ts +101 -0
- package/lib/search-select/menu.d.ts +77 -0
- package/lib/search-select/search-select.css +427 -0
- package/lib/search-select/search-select.d.ts +361 -0
- package/lib/search-select/search-select.less +384 -0
- package/lib/search-select/search-select.variable.css +549 -0
- package/lib/search-select/selected.d.ts +155 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +4 -11
- package/lib/select/index.d.ts +1471 -918
- package/lib/select/index.js +2 -1
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/option.d.ts +17 -6
- package/lib/select/optionGroup.d.ts +2 -2
- package/lib/select/select.css +211 -140
- package/lib/select/select.d.ts +654 -205
- package/lib/select/select.less +331 -189
- package/lib/select/select.variable.css +240 -146
- package/lib/select/selectTagInput.d.ts +38 -15
- package/lib/select/type.d.ts +20 -14
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/helper.d.ts +9 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +16 -12
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +18 -5
- package/lib/shared/pop-manager.d.ts +13 -3
- package/lib/shared/popover.d.ts +1 -1
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +116 -13
- package/lib/sideslider/index.d.ts +158 -252
- package/lib/sideslider/index.js +2 -1
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/sideslider/sideslider.css +10 -8
- package/lib/sideslider/sideslider.d.ts +46 -71
- package/lib/sideslider/sideslider.less +19 -17
- package/lib/sideslider/sideslider.variable.css +39 -14
- package/lib/slider/index.d.ts +82 -112
- package/lib/slider/index.js +2 -1
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/slider/slider-button.d.ts +3 -2
- package/lib/slider/slider.d.ts +6 -6
- package/lib/slider/slider.variable.css +29 -6
- package/lib/steps/index.d.ts +105 -96
- package/lib/steps/index.js +2 -1
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/steps/steps.css +1 -0
- package/lib/steps/steps.d.ts +35 -34
- package/lib/steps/steps.less +63 -62
- package/lib/steps/steps.variable.css +30 -6
- package/lib/styles/index.d.ts +6 -2
- package/lib/styles/mixins/mixins.css +43 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +43 -0
- package/lib/styles/mixins/popper.css +1 -1
- package/lib/styles/mixins/popper.less +12 -11
- package/lib/styles/mixins/popper.variable.css +123 -1
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +139 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -2
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +37 -6
- package/lib/swiper/index.d.ts +60 -44
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.d.ts +1 -1
- package/lib/swiper/swiper.less +15 -13
- package/lib/swiper/swiper.variable.css +122 -0
- package/lib/switcher/index.d.ts +94 -87
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +44 -1
- package/lib/switcher/switcher.d.ts +17 -11
- package/lib/switcher/switcher.less +29 -52
- package/lib/switcher/switcher.variable.css +90 -24
- package/lib/tab/index.d.ts +163 -124
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +92 -43
- package/lib/tab/tab-nav.d.ts +46 -14
- package/lib/tab/tab-panel.d.ts +16 -9
- package/lib/tab/tab.css +135 -58
- package/lib/tab/tab.d.ts +42 -20
- package/lib/tab/tab.less +164 -77
- package/lib/tab/tab.variable.css +164 -64
- package/lib/table/cache.d.ts +6 -0
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +51 -0
- package/lib/table/components/table-column.d.ts +305 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +94 -6
- package/lib/table/index.d.ts +697 -169
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +36 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +30 -14
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +79 -52
- package/lib/table/plugins/head-filter.variable.css +59 -20
- package/lib/table/plugins/head-sort.css +7 -3
- package/lib/table/plugins/head-sort.d.ts +29 -0
- package/lib/table/plugins/head-sort.less +8 -4
- package/lib/table/plugins/head-sort.variable.css +36 -9
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +43 -6
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +52 -7
- package/lib/table/plugins/settings.variable.css +72 -12
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +26 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +271 -23
- package/lib/table/render.d.ts +32 -12
- package/lib/table/table.css +961 -69
- package/lib/table/table.d.ts +170 -27
- package/lib/table/table.less +195 -69
- package/lib/table/table.variable.css +990 -75
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +71 -11
- package/lib/table/utils.d.ts +33 -7
- package/lib/table-column/index.d.ts +797 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +89 -68
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +17 -12
- package/lib/tag/tag.less +58 -21
- package/lib/tag/tag.variable.css +75 -19
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +570 -269
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +2 -5
- package/lib/tag-input/tag-input.css +23 -27
- package/lib/tag-input/tag-input.d.ts +304 -45
- package/lib/tag-input/tag-input.less +103 -106
- package/lib/tag-input/tag-input.variable.css +52 -33
- package/lib/tag-input/tag-props.d.ts +142 -8
- package/lib/tag-input/tag-render.d.ts +31 -5
- package/lib/time-picker/index.d.ts +833 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +337 -0
- package/lib/timeline/index.d.ts +64 -32
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +11 -4
- package/lib/timeline/timeline.d.ts +4 -3
- package/lib/timeline/timeline.less +48 -36
- package/lib/timeline/timeline.variable.css +40 -10
- package/lib/transfer/index.d.ts +152 -81
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +5 -0
- package/lib/transfer/transfer.css +121 -41
- package/lib/transfer/transfer.d.ts +35 -3
- package/lib/transfer/transfer.less +103 -46
- package/lib/transfer/transfer.variable.css +155 -52
- package/lib/tree/constant.d.ts +22 -2
- package/lib/tree/index.d.ts +236 -141
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +68 -12
- package/lib/tree/tree.css +176 -7
- package/lib/tree/tree.d.ts +91 -20
- package/lib/tree/tree.less +49 -1
- package/lib/tree/tree.variable.css +205 -13
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +3 -2
- package/lib/tree/use-node-attribute.d.ts +11 -0
- package/lib/tree/use-node-drag.d.ts +1 -1
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +2 -0
- package/lib/upload/index.d.ts +508 -1
- package/lib/upload/index.js +2 -1
- package/lib/upload/index.js.LICENSE.txt +1 -0
- package/lib/upload/props.d.ts +0 -2
- package/lib/upload/upload-list.d.ts +3 -2
- package/lib/upload/upload-trigger.d.ts +1 -4
- package/lib/upload/upload.css +58 -5
- package/lib/upload/upload.d.ts +10 -16
- package/lib/upload/upload.less +19 -8
- package/lib/upload/upload.type.d.ts +12 -12
- package/lib/upload/upload.variable.css +113 -37
- package/lib/upload/use-file-handler.d.ts +2 -25
- package/lib/virtual-render/index.d.ts +100 -150
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +39 -4
- package/lib/virtual-render/virtual-render.less +2 -23
- package/lib/virtual-render/virtual-render.variable.css +139 -17
- package/lib/volar.components.d.ts +102 -0
- package/package.json +47 -41
- package/LICENSE.txt +0 -22
- package/lib/popover2/arrow.d.ts +0 -2
- package/lib/popover2/content.d.ts +0 -24
- package/lib/popover2/popover2.css +0 -25
- package/lib/popover2/popover2.d.ts +0 -180
- package/lib/popover2/popover2.less +0 -35
- package/lib/popover2/props.d.ts +0 -92
- package/lib/popover2/reference.d.ts +0 -2
- package/lib/popover2/use-floating.d.ts +0 -15
- package/lib/popover2/use-popper-id.d.ts +0 -5
@@ -2,34 +2,58 @@ declare const BkFixedNavbar: {
|
|
2
2
|
new (...args: any[]): {
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
|
-
$props:
|
6
|
-
|
7
|
-
|
8
|
-
modelValue
|
9
|
-
navItems
|
10
|
-
|
11
|
-
|
12
|
-
default: () => unknown[];
|
13
|
-
} & {
|
14
|
-
default: () => unknown[];
|
15
|
-
};
|
16
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
17
|
-
default: string;
|
18
|
-
} & {
|
19
|
-
default: string;
|
20
|
-
};
|
21
|
-
position: import("vue-types").VueTypeDef<string> & {
|
22
|
-
default: string;
|
23
|
-
};
|
24
|
-
modelValue: import("vue-types").VueTypeValidableDef<boolean> & {
|
25
|
-
default: boolean;
|
26
|
-
} & {
|
27
|
-
default: boolean;
|
28
|
-
};
|
29
|
-
}>> & {
|
5
|
+
$props: {
|
6
|
+
extCls?: string;
|
7
|
+
position?: string;
|
8
|
+
modelValue?: boolean;
|
9
|
+
navItems?: unknown[];
|
10
|
+
class?: unknown;
|
11
|
+
style?: unknown;
|
30
12
|
onClick?: (...args: any[]) => any;
|
13
|
+
key?: string | number | symbol;
|
14
|
+
ref?: import("vue").VNodeRef;
|
15
|
+
ref_for?: boolean;
|
16
|
+
ref_key?: string;
|
17
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
18
|
+
[key: string]: any;
|
19
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
20
|
+
[key: string]: any;
|
21
|
+
}>) => void)[];
|
22
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
23
|
+
[key: string]: any;
|
24
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
25
|
+
[key: string]: any;
|
26
|
+
}>) => void)[];
|
27
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
28
|
+
[key: string]: any;
|
29
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
30
|
+
[key: string]: any;
|
31
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
32
|
+
[key: string]: any;
|
33
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
+
[key: string]: any;
|
35
|
+
}>) => void)[];
|
36
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
37
|
+
[key: string]: any;
|
38
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
39
|
+
[key: string]: any;
|
40
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
41
|
+
[key: string]: any;
|
42
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
+
[key: string]: any;
|
44
|
+
}>) => void)[];
|
45
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
46
|
+
[key: string]: any;
|
47
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
48
|
+
[key: string]: any;
|
49
|
+
}>) => void)[];
|
50
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
51
|
+
[key: string]: any;
|
52
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
53
|
+
[key: string]: any;
|
54
|
+
}>) => void)[];
|
31
55
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
32
|
-
}
|
56
|
+
};
|
33
57
|
$attrs: {
|
34
58
|
[x: string]: unknown;
|
35
59
|
};
|
@@ -37,10 +61,10 @@ declare const BkFixedNavbar: {
|
|
37
61
|
[x: string]: unknown;
|
38
62
|
};
|
39
63
|
$slots: Readonly<{
|
40
|
-
[name: string]: import("vue").Slot
|
64
|
+
[name: string]: import("vue").Slot<any>;
|
41
65
|
}>;
|
42
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
43
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
66
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
67
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
44
68
|
$emit: (event: "click" | "update:modelValue", ...args: any[]) => void;
|
45
69
|
$el: any;
|
46
70
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
@@ -66,11 +90,11 @@ declare const BkFixedNavbar: {
|
|
66
90
|
onClick?: (...args: any[]) => any;
|
67
91
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
68
92
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:modelValue")[], string, {
|
69
|
-
position: string;
|
70
93
|
extCls: string;
|
94
|
+
position: string;
|
71
95
|
modelValue: boolean;
|
72
96
|
navItems: unknown[];
|
73
|
-
}> & {
|
97
|
+
}, {}, string, {}> & {
|
74
98
|
beforeCreate?: (() => void) | (() => void)[];
|
75
99
|
created?: (() => void) | (() => void)[];
|
76
100
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -85,11 +109,11 @@ declare const BkFixedNavbar: {
|
|
85
109
|
unmounted?: (() => void) | (() => void)[];
|
86
110
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
87
111
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
88
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
112
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
89
113
|
};
|
90
114
|
$forceUpdate: () => void;
|
91
115
|
$nextTick: typeof import("vue").nextTick;
|
92
|
-
$watch
|
116
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
93
117
|
} & Readonly<import("vue").ExtractPropTypes<{
|
94
118
|
navItems: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
95
119
|
default: () => unknown[];
|
@@ -112,7 +136,7 @@ declare const BkFixedNavbar: {
|
|
112
136
|
}>> & {
|
113
137
|
onClick?: (...args: any[]) => any;
|
114
138
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
115
|
-
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} &
|
139
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
116
140
|
__isFragment?: never;
|
117
141
|
__isTeleport?: never;
|
118
142
|
__isSuspense?: never;
|
@@ -139,9 +163,9 @@ declare const BkFixedNavbar: {
|
|
139
163
|
onClick?: (...args: any[]) => any;
|
140
164
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
141
165
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:modelValue")[], "click" | "update:modelValue", {
|
142
|
-
position: string;
|
143
166
|
extCls: string;
|
167
|
+
position: string;
|
144
168
|
modelValue: boolean;
|
145
169
|
navItems: unknown[];
|
146
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
170
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
147
171
|
export default BkFixedNavbar;
|
@@ -4,7 +4,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: string;
|
5
5
|
};
|
6
6
|
tailBackgroundColor: StringConstructor;
|
7
|
-
},
|
7
|
+
}, {
|
8
|
+
resolveClassName: (cls: string) => string;
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
10
|
headBackgroundColor: {
|
9
11
|
type: StringConstructor;
|
10
12
|
default: string;
|
@@ -12,5 +14,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
14
|
tailBackgroundColor: StringConstructor;
|
13
15
|
}>>, {
|
14
16
|
headBackgroundColor: string;
|
15
|
-
}>;
|
17
|
+
}, {}>;
|
16
18
|
export default _default;
|
package/lib/form/form-item.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
1
|
+
import type { ComputedRef, ExtractPropTypes } from 'vue';
|
2
2
|
declare const formItemProps: {
|
3
3
|
label: import("vue-types").VueTypeValidableDef<string> & {
|
4
4
|
default: string;
|
@@ -44,7 +44,7 @@ declare const formItemProps: {
|
|
44
44
|
default: string;
|
45
45
|
};
|
46
46
|
};
|
47
|
-
export
|
47
|
+
export type FormItemProps = Readonly<ExtractPropTypes<typeof formItemProps>>;
|
48
48
|
declare const _default: import("vue").DefineComponent<{
|
49
49
|
label: import("vue-types").VueTypeValidableDef<string> & {
|
50
50
|
default: string;
|
@@ -90,12 +90,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
90
90
|
default: string;
|
91
91
|
};
|
92
92
|
}, {
|
93
|
-
|
94
|
-
|
93
|
+
isShowLabel: ComputedRef<boolean>;
|
94
|
+
labelStyles: ComputedRef<any>;
|
95
|
+
contentStyles: ComputedRef<{
|
96
|
+
"margin-left": any;
|
97
|
+
}>;
|
98
|
+
isFormTypeVertical: ComputedRef<boolean>;
|
99
|
+
validate: (trigger?: string, showError?: boolean) => Promise<boolean>;
|
95
100
|
clearValidate: () => void;
|
101
|
+
resolveClassName: (cls: string) => string;
|
96
102
|
isError: import("vue").Ref<boolean>;
|
97
103
|
errorMessage: import("vue").Ref<string>;
|
98
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
104
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
99
105
|
label: import("vue-types").VueTypeValidableDef<string> & {
|
100
106
|
default: string;
|
101
107
|
};
|
@@ -140,16 +146,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
140
146
|
default: string;
|
141
147
|
};
|
142
148
|
}>>, {
|
143
|
-
label: string;
|
144
149
|
required: boolean;
|
145
|
-
|
150
|
+
label: string;
|
146
151
|
email: boolean;
|
147
|
-
|
152
|
+
property: string;
|
148
153
|
max: number;
|
154
|
+
min: number;
|
149
155
|
maxlength: number;
|
150
156
|
rules: unknown[];
|
151
157
|
autoCheck: boolean;
|
152
158
|
description: string;
|
153
159
|
errorDisplayType: string;
|
154
|
-
}>;
|
160
|
+
}, {}>;
|
155
161
|
export default _default;
|
package/lib/form/form.css
CHANGED
@@ -1,39 +1,63 @@
|
|
1
|
+
@keyframes form-error-appear-animation {
|
2
|
+
from {
|
3
|
+
opacity: 0;
|
4
|
+
transform: translateY(-30%);
|
5
|
+
}
|
6
|
+
to {
|
7
|
+
opacity: 1;
|
8
|
+
transform: translateY(0);
|
9
|
+
}
|
10
|
+
}
|
1
11
|
.bk-form {
|
2
12
|
text-align: left;
|
3
13
|
}
|
4
|
-
.bk-form--vertical .bk-form-item {
|
5
|
-
flex-direction: column;
|
6
|
-
}
|
7
14
|
.bk-form--vertical .bk-form-label {
|
15
|
+
float: unset;
|
8
16
|
width: auto;
|
9
17
|
padding-right: 0;
|
18
|
+
margin-bottom: 6px;
|
19
|
+
line-height: 20px;
|
10
20
|
text-align: left;
|
11
21
|
}
|
12
22
|
.bk-form--vertical .bk-form-content {
|
13
23
|
text-align: left;
|
14
24
|
}
|
15
25
|
.bk-form-item {
|
16
|
-
display: flex;
|
17
26
|
margin-bottom: 24px;
|
18
27
|
}
|
19
28
|
.bk-form-item.is-required .bk-form-label:after {
|
20
29
|
position: absolute;
|
30
|
+
top: 0;
|
21
31
|
width: 14px;
|
22
|
-
line-height: 32px;
|
23
32
|
color: #ea3636;
|
24
33
|
text-align: center;
|
25
34
|
content: '*';
|
26
35
|
}
|
36
|
+
.bk-form-item.is-error .bk-input,
|
37
|
+
.bk-form-item.is-error .bk-textarea,
|
38
|
+
.bk-form-item.is-error .bk-date-picker-editor,
|
39
|
+
.bk-form-item.is-error .bk-tag-input {
|
40
|
+
border-color: #ea3636;
|
41
|
+
transition: all 0.15s;
|
42
|
+
}
|
43
|
+
.bk-form-item:after,
|
44
|
+
.bk-form-item:before {
|
45
|
+
display: table;
|
46
|
+
content: '';
|
47
|
+
}
|
48
|
+
.bk-form-item:after {
|
49
|
+
clear: both;
|
50
|
+
}
|
27
51
|
.bk-form-label {
|
28
52
|
position: relative;
|
29
|
-
|
53
|
+
float: left;
|
30
54
|
padding-right: 24px;
|
31
55
|
font-size: 14px;
|
32
56
|
font-weight: normal;
|
33
57
|
line-height: 32px;
|
34
58
|
color: #63656e;
|
35
59
|
text-align: right;
|
36
|
-
|
60
|
+
vertical-align: middle;
|
37
61
|
}
|
38
62
|
.bk-form-label-description {
|
39
63
|
cursor: pointer;
|
@@ -42,7 +66,6 @@
|
|
42
66
|
.bk-form-content {
|
43
67
|
position: relative;
|
44
68
|
line-height: 32px;
|
45
|
-
flex: 1;
|
46
69
|
}
|
47
70
|
.bk-form-error {
|
48
71
|
position: absolute;
|
@@ -52,6 +75,7 @@
|
|
52
75
|
line-height: 1;
|
53
76
|
color: #ea3636;
|
54
77
|
text-align: left;
|
78
|
+
animation: form-error-appear-animation 0.15s;
|
55
79
|
}
|
56
80
|
.bk-form-error-tips {
|
57
81
|
position: absolute;
|
package/lib/form/form.d.ts
CHANGED
@@ -3,7 +3,9 @@ export declare const formProps: {
|
|
3
3
|
formType: import("vue-types").VueTypeDef<string> & {
|
4
4
|
default: string;
|
5
5
|
};
|
6
|
-
labelWidth: import("vue-types").VueTypeDef<string | number
|
6
|
+
labelWidth: import("vue-types").VueTypeDef<string | number> & {
|
7
|
+
default: string | number;
|
8
|
+
};
|
7
9
|
labelPosition: import("vue-types").VueTypeDef<string>;
|
8
10
|
model: import("vue-types").VueTypeValidableDef<{
|
9
11
|
[key: string]: any;
|
@@ -20,12 +22,19 @@ export declare const formProps: {
|
|
20
22
|
};
|
21
23
|
};
|
22
24
|
};
|
23
|
-
|
25
|
+
declare const formEvents: {
|
26
|
+
submit: any;
|
27
|
+
validate: (property: string, result: boolean, message: string) => boolean;
|
28
|
+
};
|
29
|
+
export type FormProps = Readonly<ExtractPropTypes<typeof formProps>>;
|
30
|
+
export type FormEvents = typeof formEvents;
|
24
31
|
declare const _default: import("vue").DefineComponent<{
|
25
32
|
formType: import("vue-types").VueTypeDef<string> & {
|
26
33
|
default: string;
|
27
34
|
};
|
28
|
-
labelWidth: import("vue-types").VueTypeDef<string | number
|
35
|
+
labelWidth: import("vue-types").VueTypeDef<string | number> & {
|
36
|
+
default: string | number;
|
37
|
+
};
|
29
38
|
labelPosition: import("vue-types").VueTypeDef<string>;
|
30
39
|
model: import("vue-types").VueTypeValidableDef<{
|
31
40
|
[key: string]: any;
|
@@ -46,12 +55,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
55
|
validate: (fields?: string | Array<string>) => Promise<{
|
47
56
|
[key: string]: any;
|
48
57
|
}>;
|
58
|
+
getValidateResult: () => Promise<boolean>;
|
49
59
|
clearValidate: (fields?: string | Array<string>) => void;
|
50
|
-
|
60
|
+
resolveClassName: (cls: string) => string;
|
61
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
62
|
+
submit: any;
|
63
|
+
validate: (property: string, result: boolean, message: string) => boolean;
|
64
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
51
65
|
formType: import("vue-types").VueTypeDef<string> & {
|
52
66
|
default: string;
|
53
67
|
};
|
54
|
-
labelWidth: import("vue-types").VueTypeDef<string | number
|
68
|
+
labelWidth: import("vue-types").VueTypeDef<string | number> & {
|
69
|
+
default: string | number;
|
70
|
+
};
|
55
71
|
labelPosition: import("vue-types").VueTypeDef<string>;
|
56
72
|
model: import("vue-types").VueTypeValidableDef<{
|
57
73
|
[key: string]: any;
|
@@ -68,8 +84,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
68
84
|
};
|
69
85
|
};
|
70
86
|
}>> & {
|
71
|
-
onSubmit?: (...args: any[]) => any;
|
87
|
+
onSubmit?: ((...args: any[]) => any) | ((...args: unknown[]) => any);
|
88
|
+
onValidate?: (property: string, result: boolean, message: string) => any;
|
72
89
|
}, {
|
90
|
+
labelWidth: string | number;
|
73
91
|
rules: {
|
74
92
|
[key: string]: any;
|
75
93
|
};
|
@@ -77,5 +95,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
95
|
model: {
|
78
96
|
[key: string]: any;
|
79
97
|
};
|
80
|
-
}>;
|
98
|
+
}, {}>;
|
81
99
|
export default _default;
|
package/lib/form/form.less
CHANGED
@@ -1,16 +1,28 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
|
+
@keyframes form-error-appear-animation {
|
4
|
+
from {
|
5
|
+
opacity: 0;
|
6
|
+
transform: translateY(-30%);
|
7
|
+
}
|
8
|
+
|
9
|
+
to {
|
10
|
+
opacity: 1;
|
11
|
+
transform: translateY(0);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
3
15
|
.@{bk-prefix}-form {
|
4
16
|
text-align: left;
|
5
17
|
|
6
18
|
&--vertical {
|
7
|
-
.@{bk-prefix}-form-item {
|
8
|
-
flex-direction: column;
|
9
|
-
}
|
10
19
|
|
11
20
|
.@{bk-prefix}-form-label {
|
21
|
+
float: unset;
|
12
22
|
width: auto;
|
13
23
|
padding-right: 0;
|
24
|
+
margin-bottom: 6px;
|
25
|
+
line-height: 20px;
|
14
26
|
text-align: left;
|
15
27
|
}
|
16
28
|
|
@@ -21,33 +33,53 @@
|
|
21
33
|
}
|
22
34
|
|
23
35
|
.@{bk-prefix}-form-item {
|
24
|
-
display: flex;
|
25
36
|
margin-bottom: 24px;
|
26
37
|
|
27
38
|
&.is-required {
|
28
39
|
.@{bk-prefix}-form-label {
|
29
40
|
&:after {
|
30
41
|
position: absolute;
|
42
|
+
top: 0;
|
31
43
|
width: 14px;
|
32
|
-
line-height: 32px;
|
33
44
|
color: #ea3636;
|
34
45
|
text-align: center;
|
35
46
|
content: '*';
|
36
47
|
}
|
37
48
|
}
|
38
49
|
}
|
50
|
+
|
51
|
+
&.is-error {
|
52
|
+
.@{bk-prefix}-input,
|
53
|
+
.@{bk-prefix}-textarea,
|
54
|
+
.@{bk-prefix}-date-picker-editor,
|
55
|
+
.@{bk-prefix}-tag-input {
|
56
|
+
border-color: #ea3636;
|
57
|
+
transition: all .15s;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
&:after,
|
62
|
+
&:before {
|
63
|
+
display: table;
|
64
|
+
content: ''
|
65
|
+
}
|
66
|
+
|
67
|
+
&:after {
|
68
|
+
clear: both
|
69
|
+
}
|
39
70
|
}
|
40
71
|
|
41
72
|
.@{bk-prefix}-form-label {
|
42
73
|
position: relative;
|
43
|
-
|
74
|
+
float: left;
|
44
75
|
padding-right: 24px;
|
45
76
|
font-size: 14px;
|
46
77
|
font-weight: normal;
|
47
78
|
line-height: 32px;
|
48
79
|
color: #63656e;
|
49
80
|
text-align: right;
|
50
|
-
|
81
|
+
text-align: right;
|
82
|
+
vertical-align: middle;
|
51
83
|
}
|
52
84
|
.@{bk-prefix}-form-label-description {
|
53
85
|
cursor: pointer;
|
@@ -57,7 +89,6 @@
|
|
57
89
|
.@{bk-prefix}-form-content {
|
58
90
|
position: relative;
|
59
91
|
line-height: 32px;
|
60
|
-
flex: 1;
|
61
92
|
}
|
62
93
|
|
63
94
|
.@{bk-prefix}-form-error {
|
@@ -68,6 +99,7 @@
|
|
68
99
|
line-height: 1;
|
69
100
|
color: #ea3636;
|
70
101
|
text-align: left;
|
102
|
+
animation: form-error-appear-animation .15s;
|
71
103
|
}
|
72
104
|
.@{bk-prefix}-form-error-tips {
|
73
105
|
position: absolute;
|
@@ -82,69 +114,69 @@
|
|
82
114
|
display: inline-block;
|
83
115
|
display: inline-block;
|
84
116
|
|
85
|
-
& >
|
86
|
-
& >
|
87
|
-
& >
|
88
|
-
& >
|
89
|
-
& >
|
90
|
-
& >
|
91
|
-
& >
|
92
|
-
& >
|
93
|
-
& >
|
117
|
+
& > .@{bk-prefix}-input,
|
118
|
+
& > .@{bk-prefix}-textarea,
|
119
|
+
& > .@{bk-prefix}-select,
|
120
|
+
& > .@{bk-prefix}-cascade,
|
121
|
+
& > .@{bk-prefix}-color-picker,
|
122
|
+
& > .@{bk-prefix}-date-picker,
|
123
|
+
& > .@{bk-prefix}-tag-input,
|
124
|
+
& > .@{bk-prefix}-tag-selector,
|
125
|
+
& > .@{bk-prefix}-search-select {
|
94
126
|
float: left;
|
95
127
|
width: auto;
|
96
128
|
margin-left: -1px;
|
97
129
|
}
|
98
130
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
131
|
+
.@{bk-prefix}-input,
|
132
|
+
.@{bk-prefix}-form-password,
|
133
|
+
.@{bk-prefix}-textarea,
|
134
|
+
.@{bk-prefix}-select,
|
135
|
+
.@{bk-prefix}-cascade,
|
136
|
+
.@{bk-prefix}-color-picker,
|
137
|
+
.@{bk-prefix}-date-picker .@{bk-prefix}-date-picker-editor,
|
138
|
+
.@{bk-prefix}-tag-input,
|
139
|
+
.@{bk-prefix}-search-select {
|
108
140
|
border-radius: 0;
|
109
141
|
}
|
110
142
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
143
|
+
.@{bk-prefix}-input.control-active,
|
144
|
+
.@{bk-prefix}-select.is-focus,
|
145
|
+
.@{bk-prefix}-cascade.is-focus,
|
146
|
+
.@{bk-prefix}-color-picker.@{bk-prefix}-color-picker-show-dropdown,
|
147
|
+
.@{bk-prefix}-color-picker:hover,
|
148
|
+
.@{bk-prefix}-date-picker .@{bk-prefix}-date-picker-editor:focus,
|
149
|
+
.@{bk-prefix}-tag-input.active,
|
150
|
+
.@{bk-prefix}-tag-selector,
|
151
|
+
.@{bk-prefix}-search-select.is-focus {
|
120
152
|
z-index: 1;
|
121
153
|
opacity: 1;
|
122
154
|
}
|
123
155
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
156
|
+
.@{bk-prefix}-compose-form-item-head {
|
157
|
+
&.@{bk-prefix}-input,
|
158
|
+
&.@{bk-prefix}-select,
|
159
|
+
&.@{bk-prefix}-cascade,
|
160
|
+
&.@{bk-prefix}-color-picker,
|
161
|
+
&.@{bk-prefix}-date-picker .@{bk-prefix}-date-picker-editor,
|
162
|
+
&.@{bk-prefix}-tag-input,
|
163
|
+
&.@{bk-prefix}-tag-input,
|
164
|
+
&.@{bk-prefix}-search-select {
|
133
165
|
margin-left: 0;
|
134
166
|
border-top-right-radius: 0px;
|
135
167
|
border-bottom-right-radius: 0px;
|
136
168
|
}
|
137
169
|
}
|
138
170
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
171
|
+
.@{bk-prefix}-compose-form-item-tail {
|
172
|
+
&.@{bk-prefix}-input,
|
173
|
+
&.@{bk-prefix}-select,
|
174
|
+
&.@{bk-prefix}-cascade,
|
175
|
+
&.@{bk-prefix}-color-picker,
|
176
|
+
&.@{bk-prefix}-date-picker,
|
177
|
+
&.@{bk-prefix}-tag-input,
|
178
|
+
&.@{bk-prefix}-tag-input,
|
179
|
+
&.@{bk-prefix}-search-select {
|
148
180
|
border-top-right-radius: 2px;
|
149
181
|
border-bottom-right-radius: 2px;
|
150
182
|
}
|