bkui-vue 0.0.1-beta.45 → 0.0.1-beta.451
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 +160 -35
- package/dist/index.esm.js +35562 -14524
- package/dist/index.umd.js +160 -35
- 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.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +125 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +9 -3
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +29 -20
- package/lib/alert/alert.variable.css +41 -7
- package/lib/alert/index.d.ts +11 -11
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +3 -3
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +40 -4
- package/lib/backtop/index.d.ts +10 -10
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +7 -10
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +9 -11
- package/lib/badge/badge.variable.css +39 -14
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +4 -2
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +88 -9
- package/lib/breadcrumb/index.d.ts +4 -2
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +85 -50
- package/lib/button/button.d.ts +44 -24
- package/lib/button/button.less +72 -42
- package/lib/button/button.variable.css +117 -54
- package/lib/button/index.d.ts +74 -44
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +97 -2
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +133 -10
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +101 -0
- package/lib/cascader/cascader.css +316 -0
- package/lib/cascader/cascader.d.ts +342 -0
- package/lib/cascader/cascader.less +283 -0
- package/lib/cascader/cascader.variable.css +438 -0
- package/lib/cascader/index.d.ts +961 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +25 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +51 -11
- package/lib/checkbox/checkbox.d.ts +36 -24
- package/lib/checkbox/checkbox.less +85 -32
- package/lib/checkbox/checkbox.variable.css +83 -15
- package/lib/checkbox/common.d.ts +4 -3
- package/lib/checkbox/index.d.ts +70 -38
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +1 -1
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +59 -11
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +103 -0
- package/lib/collapse/collapse.css +69 -14
- package/lib/collapse/collapse.d.ts +66 -52
- package/lib/collapse/collapse.less +112 -30
- package/lib/collapse/collapse.variable.css +191 -14
- package/lib/collapse/index.d.ts +266 -20
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +131 -0
- package/lib/collapse/utils.d.ts +11 -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 +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +31 -8
- package/lib/components.js +1 -0
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +384 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/config-provider/config-provider.variable.css +122 -0
- package/lib/config-provider/index.d.ts +585 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +122 -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 +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +213 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- 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 +28 -1
- package/lib/date-picker/date-picker.d.ts +49 -20
- package/lib/date-picker/date-picker.less +106 -74
- package/lib/date-picker/date-picker.variable.css +60 -5
- package/lib/date-picker/index.d.ts +121 -54
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +11 -1
- package/lib/date-picker/panel/date-range.d.ts +328 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +489 -0
- package/lib/date-picker/panel/time.d.ts +448 -0
- package/lib/date-picker/props.d.ts +55 -5
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +136 -24
- package/lib/dialog/dialog.d.ts +245 -58
- package/lib/dialog/dialog.less +100 -38
- package/lib/dialog/dialog.variable.css +258 -24
- package/lib/dialog/index.d.ts +545 -126
- package/lib/dialog/index.js +1 -1
- 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 -0
- package/lib/divider/divider.d.ts +15 -15
- package/lib/divider/divider.variable.css +32 -4
- package/lib/divider/index.d.ts +34 -34
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +46 -14
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +45 -11
- package/lib/dropdown/index.d.ts +99 -35
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +31 -11
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +72 -18
- package/lib/exception/index.d.ts +43 -26
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +22 -7
- package/lib/form/form.css +103 -15
- package/lib/form/form.d.ts +48 -14
- package/lib/form/form.less +152 -46
- package/lib/form/form.variable.css +225 -15
- package/lib/form/index.d.ts +121 -35
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +11 -8
- package/lib/form/utils.d.ts +2 -0
- package/lib/form/validator.d.ts +1 -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.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- 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.js +1 -1
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- 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.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- 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.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- 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/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.d.ts +4 -0
- 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.d.ts +4 -0
- 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 +79 -53
- 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.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- 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.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- 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.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -1
- 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 +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +28 -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 +175 -90
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +183 -19
- package/lib/input/input.d.ts +119 -36
- package/lib/input/input.less +112 -18
- package/lib/input/input.variable.css +246 -55
- package/lib/link/index.d.ts +29 -21
- 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 +44 -16
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +86 -33
- package/lib/loading/loading.d.ts +94 -12
- package/lib/loading/loading.less +27 -23
- package/lib/loading/loading.variable.css +134 -53
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +120 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +101 -22
- package/lib/menu/submenu.variable.css +32 -4
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +17 -5
- package/lib/message/message.less +21 -6
- package/lib/message/message.variable.css +49 -9
- package/lib/message/messageConstructor.d.ts +14 -11
- package/lib/modal/index.d.ts +470 -78
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +177 -30
- package/lib/modal/modal.less +39 -3
- package/lib/modal/modal.variable.css +185 -1
- package/lib/modal/props.mixin.d.ts +74 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +11 -2
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +33 -5
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +25 -5
- package/lib/notify/notify.less +29 -6
- package/lib/notify/notify.variable.css +57 -9
- package/lib/notify/notifyConstructor.d.ts +62 -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 +170 -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 +35 -20
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +18 -8
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +86 -32
- 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 +246 -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 +504 -97
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -50
- package/lib/popover/popover.d.ts +222 -43
- package/lib/popover/popover.less +19 -66
- package/lib/popover/popover.variable.css +42 -54
- package/lib/popover/props.d.ts +110 -30
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +16 -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 +44 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +252 -2
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +30 -2
- package/lib/process/process.variable.css +54 -4
- package/lib/progress/index.d.ts +31 -31
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +12 -12
- package/lib/progress/progress.variable.css +87 -8
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +36 -18
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +26 -0
- package/lib/radio/radio.css +137 -66
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +172 -73
- package/lib/radio/type.d.ts +9 -4
- package/lib/rate/index.d.ts +28 -5
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -2
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +18 -18
- 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 +7 -7
- package/lib/resize-layout/resize-layout.less +10 -19
- package/lib/resize-layout/resize-layout.variable.css +38 -19
- package/lib/search-select/index.d.ts +891 -0
- package/lib/search-select/index.js +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 +5 -12
- package/lib/select/index.d.ts +1816 -691
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +18 -4
- package/lib/select/optionGroup.d.ts +1 -1
- package/lib/select/select.css +202 -113
- package/lib/select/select.d.ts +715 -147
- package/lib/select/select.less +335 -197
- package/lib/select/select.variable.css +234 -117
- package/lib/select/selectTagInput.d.ts +94 -0
- package/lib/select/type.d.ts +21 -13
- 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 +32 -7
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +19 -5
- package/lib/shared/pop-manager.d.ts +16 -5
- package/lib/shared/popover.d.ts +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +107 -7
- package/lib/sideslider/index.d.ts +343 -69
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +58 -11
- package/lib/sideslider/sideslider.d.ts +160 -31
- package/lib/sideslider/sideslider.less +75 -14
- package/lib/sideslider/sideslider.variable.css +90 -15
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider-button.d.ts +2 -1
- package/lib/slider/slider.d.ts +4 -4
- package/lib/slider/slider.variable.css +32 -4
- package/lib/steps/index.d.ts +52 -52
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +15 -3
- package/lib/steps/steps.d.ts +32 -32
- package/lib/steps/steps.less +24 -3
- package/lib/steps/steps.variable.css +47 -7
- package/lib/styles/index.d.ts +10 -1
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -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 +42 -4
- package/lib/switcher/index.d.ts +42 -30
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +19 -13
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +106 -27
- package/lib/tab/index.d.ts +121 -67
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +93 -41
- package/lib/tab/tab-nav.d.ts +50 -14
- package/lib/tab/tab-panel.d.ts +14 -7
- package/lib/tab/tab.css +151 -55
- package/lib/tab/tab.d.ts +42 -21
- package/lib/tab/tab.less +179 -86
- package/lib/tab/tab.variable.css +183 -59
- 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 +299 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +125 -1
- package/lib/table/index.d.ts +1375 -48
- 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 +84 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +110 -0
- package/lib/table/plugins/head-filter.variable.css +206 -0
- package/lib/table/plugins/head-sort.css +26 -0
- package/lib/table/plugins/head-sort.d.ts +29 -0
- package/lib/table/plugins/head-sort.less +32 -0
- package/lib/table/plugins/head-sort.variable.css +148 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +147 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +181 -0
- package/lib/table/plugins/settings.variable.css +269 -0
- 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 +358 -11
- package/lib/table/render.d.ts +54 -31
- package/lib/table/table.css +1250 -38
- package/lib/table/table.d.ts +258 -18
- package/lib/table/table.less +314 -42
- package/lib/table/table.variable.css +1291 -51
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +113 -0
- package/lib/table/utils.d.ts +60 -13
- package/lib/table-column/index.d.ts +790 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +29 -29
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +12 -12
- package/lib/tag/tag.less +46 -10
- package/lib/tag/tag.variable.css +78 -17
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +1406 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +0 -3
- package/lib/tag-input/tag-input.css +23 -26
- package/lib/tag-input/tag-input.d.ts +303 -44
- package/lib/tag-input/tag-input.less +102 -104
- package/lib/tag-input/tag-input.variable.css +55 -30
- package/lib/tag-input/tag-props.d.ts +141 -7
- package/lib/tag-input/tag-render.d.ts +30 -4
- package/lib/time-picker/index.d.ts +904 -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 +6 -6
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +16 -9
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +22 -9
- package/lib/timeline/timeline.variable.css +48 -13
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +247 -150
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +59 -0
- package/lib/transfer/transfer.css +153 -92
- package/lib/transfer/transfer.d.ts +101 -95
- package/lib/transfer/transfer.less +142 -112
- package/lib/transfer/transfer.variable.css +191 -102
- package/lib/tree/constant.d.ts +62 -0
- package/lib/tree/index.d.ts +379 -60
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +124 -0
- package/lib/tree/tree.css +181 -9
- package/lib/tree/tree.d.ts +172 -19
- package/lib/tree/tree.less +54 -3
- package/lib/tree/tree.variable.css +213 -13
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +4 -6
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +427 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +466 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +549 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +50 -4
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +23 -1
- 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 +59 -26
- package/LICENSE.txt +0 -22
- package/lib/form/common.d.ts +0 -3
- package/lib/use-form.d.ts +0 -3
@@ -5,6 +5,7 @@ declare const BkFixedNavbar: {
|
|
5
5
|
$props: Partial<{
|
6
6
|
extCls: string;
|
7
7
|
position: string;
|
8
|
+
modelValue: boolean;
|
8
9
|
navItems: unknown[];
|
9
10
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
10
11
|
navItems: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -20,7 +21,15 @@ declare const BkFixedNavbar: {
|
|
20
21
|
position: import("vue-types").VueTypeDef<string> & {
|
21
22
|
default: string;
|
22
23
|
};
|
23
|
-
|
24
|
+
modelValue: import("vue-types").VueTypeValidableDef<boolean> & {
|
25
|
+
default: boolean;
|
26
|
+
} & {
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
}>> & {
|
30
|
+
onClick?: (...args: any[]) => any;
|
31
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
32
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "extCls" | "position" | "modelValue" | "navItems">;
|
24
33
|
$attrs: {
|
25
34
|
[x: string]: unknown;
|
26
35
|
};
|
@@ -32,7 +41,7 @@ declare const BkFixedNavbar: {
|
|
32
41
|
}>;
|
33
42
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
34
43
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
35
|
-
$emit: (event:
|
44
|
+
$emit: (event: "click" | "update:modelValue", ...args: any[]) => void;
|
36
45
|
$el: any;
|
37
46
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
38
47
|
navItems: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -48,9 +57,18 @@ declare const BkFixedNavbar: {
|
|
48
57
|
position: import("vue-types").VueTypeDef<string> & {
|
49
58
|
default: string;
|
50
59
|
};
|
51
|
-
|
60
|
+
modelValue: import("vue-types").VueTypeValidableDef<boolean> & {
|
61
|
+
default: boolean;
|
62
|
+
} & {
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
}>> & {
|
66
|
+
onClick?: (...args: any[]) => any;
|
67
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
68
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:modelValue")[], string, {
|
52
69
|
extCls: string;
|
53
70
|
position: string;
|
71
|
+
modelValue: boolean;
|
54
72
|
navItems: unknown[];
|
55
73
|
}> & {
|
56
74
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -86,7 +104,15 @@ declare const BkFixedNavbar: {
|
|
86
104
|
position: import("vue-types").VueTypeDef<string> & {
|
87
105
|
default: string;
|
88
106
|
};
|
89
|
-
|
107
|
+
modelValue: import("vue-types").VueTypeValidableDef<boolean> & {
|
108
|
+
default: boolean;
|
109
|
+
} & {
|
110
|
+
default: boolean;
|
111
|
+
};
|
112
|
+
}>> & {
|
113
|
+
onClick?: (...args: any[]) => any;
|
114
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
115
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
90
116
|
__isFragment?: never;
|
91
117
|
__isTeleport?: never;
|
92
118
|
__isSuspense?: never;
|
@@ -104,9 +130,18 @@ declare const BkFixedNavbar: {
|
|
104
130
|
position: import("vue-types").VueTypeDef<string> & {
|
105
131
|
default: string;
|
106
132
|
};
|
107
|
-
|
133
|
+
modelValue: import("vue-types").VueTypeValidableDef<boolean> & {
|
134
|
+
default: boolean;
|
135
|
+
} & {
|
136
|
+
default: boolean;
|
137
|
+
};
|
138
|
+
}>> & {
|
139
|
+
onClick?: (...args: any[]) => any;
|
140
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
141
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:modelValue")[], "click" | "update:modelValue", {
|
108
142
|
extCls: string;
|
109
143
|
position: string;
|
144
|
+
modelValue: boolean;
|
110
145
|
navItems: unknown[];
|
111
146
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
112
147
|
export default BkFixedNavbar;
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{default:()=>r});var e=n(4212),t=n(748);const o=(0,t.defineComponent)({name:"FixedNavbar",props:{navItems:e.PropTypes.array.def([]),extCls:e.PropTypes.string.def(""),position:e.PropTypes.oneOf(["middle","top","bottom"]).def("middle")},setup:function(o,r){var n=this,i=r.emit,a=o.navItems.map((function(e){return Object.assign({tooltip:{disabled:!0},action:function(){},icon:"",text:""},e)})),s=e.bkZIndexManager.getModalNextIndex(),d=function(e){i("click",e),e.action()};return function(){return(0,t.createVNode)("div",{class:"bk-fixed-navbar ".concat(o.extCls," ").concat(o.position),style:{zIndex:s}},[a.map((function(e){return(0,t.createVNode)("div",{class:"fixed-navbar-item",onClick:d.bind(n,e)},[e.icon?(0,t.createVNode)("i",{class:"".concat(e.icon," icon")},null):"",e.text?(0,t.createVNode)("span",{class:"text"},[e.text]):""])}))])}}}),r=(0,e.withInstall)(o)})(),i})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{default:()=>r});var e=n(4212),t=n(748);const o=(0,t.defineComponent)({name:"FixedNavbar",props:{navItems:e.PropTypes.array.def([]),extCls:e.PropTypes.string.def(""),position:e.PropTypes.oneOf(["middle","top","bottom"]).def("middle"),modelValue:e.PropTypes.bool.def(!0)},emits:["update:modelValue","click"],setup:function(o,r){var n=this,i=r.emit,a=o.navItems.map((function(e){return Object.assign({tooltip:{disabled:!0},action:function(){},icon:"",text:""},e)})),s=e.bkZIndexManager.getModalNextIndex(),d=function(e){i("click",e),e.action()};return function(){return o.modelValue&&(0,t.createVNode)("div",{class:"bk-fixed-navbar ".concat(o.extCls," ").concat(o.position),style:{zIndex:s}},[a.map((function(e){return(0,t.createVNode)("div",{class:"fixed-navbar-item",onClick:d.bind(n,e)},[e.icon?(0,t.createVNode)("i",{class:"".concat(e.icon," icon")},null):"",e.text?(0,t.createVNode)("span",{class:"text"},[e.text]):""])}))])}}}),r=(0,e.withInstall)(o)})(),i})()));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
headBackgroundColor: {
|
3
|
+
type: StringConstructor;
|
4
|
+
default: string;
|
5
|
+
};
|
6
|
+
tailBackgroundColor: StringConstructor;
|
7
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
headBackgroundColor: {
|
9
|
+
type: StringConstructor;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
tailBackgroundColor: StringConstructor;
|
13
|
+
}>>, {
|
14
|
+
headBackgroundColor: string;
|
15
|
+
}>;
|
16
|
+
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;
|
@@ -40,6 +40,9 @@ declare const formItemProps: {
|
|
40
40
|
description: import("vue-types").VueTypeValidableDef<string> & {
|
41
41
|
default: string;
|
42
42
|
};
|
43
|
+
errorDisplayType: import("vue-types").VueTypeDef<string> & {
|
44
|
+
default: string;
|
45
|
+
};
|
43
46
|
};
|
44
47
|
export declare type FormItemProps = Readonly<ExtractPropTypes<typeof formItemProps>>;
|
45
48
|
declare const _default: import("vue").DefineComponent<{
|
@@ -83,9 +86,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
86
|
description: import("vue-types").VueTypeValidableDef<string> & {
|
84
87
|
default: string;
|
85
88
|
};
|
89
|
+
errorDisplayType: import("vue-types").VueTypeDef<string> & {
|
90
|
+
default: string;
|
91
|
+
};
|
86
92
|
}, {
|
87
|
-
|
88
|
-
|
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>;
|
89
100
|
clearValidate: () => void;
|
90
101
|
isError: import("vue").Ref<boolean>;
|
91
102
|
errorMessage: import("vue").Ref<string>;
|
@@ -130,16 +141,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
130
141
|
description: import("vue-types").VueTypeValidableDef<string> & {
|
131
142
|
default: string;
|
132
143
|
};
|
144
|
+
errorDisplayType: import("vue-types").VueTypeDef<string> & {
|
145
|
+
default: string;
|
146
|
+
};
|
133
147
|
}>>, {
|
134
148
|
required: boolean;
|
135
|
-
property: string;
|
136
|
-
email: boolean;
|
137
149
|
label: string;
|
138
|
-
|
139
|
-
|
150
|
+
email: boolean;
|
151
|
+
property: string;
|
140
152
|
max: number;
|
141
153
|
min: number;
|
142
154
|
maxlength: number;
|
155
|
+
rules: unknown[];
|
143
156
|
autoCheck: boolean;
|
157
|
+
description: string;
|
158
|
+
errorDisplayType: string;
|
144
159
|
}>;
|
145
160
|
export default _default;
|
package/lib/form/form.css
CHANGED
@@ -1,33 +1,62 @@
|
|
1
1
|
.bk-form {
|
2
2
|
text-align: left;
|
3
3
|
}
|
4
|
-
.bk-form .bk-form-
|
5
|
-
|
4
|
+
.bk-form--vertical .bk-form-label {
|
5
|
+
float: unset;
|
6
|
+
width: auto;
|
7
|
+
padding-right: 0;
|
8
|
+
margin-bottom: 8px;
|
9
|
+
line-height: 20px;
|
10
|
+
text-align: left;
|
11
|
+
}
|
12
|
+
.bk-form--vertical .bk-form-content {
|
13
|
+
text-align: left;
|
14
|
+
}
|
15
|
+
.bk-form-item {
|
6
16
|
margin-bottom: 24px;
|
7
17
|
}
|
8
|
-
.bk-form
|
18
|
+
.bk-form-item.is-required .bk-form-label:after {
|
9
19
|
position: absolute;
|
20
|
+
top: 0;
|
10
21
|
width: 14px;
|
11
|
-
line-height: 32px;
|
12
22
|
color: #ea3636;
|
13
23
|
text-align: center;
|
14
24
|
content: '*';
|
15
25
|
}
|
16
|
-
.bk-form .bk-
|
26
|
+
.bk-form-item.is-error .bk-input,
|
27
|
+
.bk-form-item.is-error .bk-textarea,
|
28
|
+
.bk-form-item.is-error .bk-date-picker-editor,
|
29
|
+
.bk-form-item.is-error .bk-tag-input {
|
30
|
+
border-color: #ea3636;
|
31
|
+
}
|
32
|
+
.bk-form-item:after,
|
33
|
+
.bk-form-item:before {
|
34
|
+
display: table;
|
35
|
+
content: '';
|
36
|
+
}
|
37
|
+
.bk-form-item:after {
|
38
|
+
clear: both;
|
39
|
+
}
|
40
|
+
.bk-form-label {
|
17
41
|
position: relative;
|
18
|
-
|
42
|
+
float: left;
|
19
43
|
padding-right: 24px;
|
20
44
|
font-size: 14px;
|
21
45
|
font-weight: normal;
|
22
46
|
line-height: 32px;
|
23
47
|
color: #63656e;
|
24
48
|
text-align: right;
|
49
|
+
vertical-align: middle;
|
50
|
+
}
|
51
|
+
.bk-form-label-description {
|
52
|
+
cursor: pointer;
|
53
|
+
border-bottom: 1px dashed #979ba5;
|
25
54
|
}
|
26
|
-
.bk-form
|
55
|
+
.bk-form-content {
|
27
56
|
position: relative;
|
28
57
|
line-height: 32px;
|
29
58
|
}
|
30
|
-
.bk-form
|
59
|
+
.bk-form-error {
|
31
60
|
position: absolute;
|
32
61
|
left: 0;
|
33
62
|
padding-top: 4px;
|
@@ -36,14 +65,73 @@
|
|
36
65
|
color: #ea3636;
|
37
66
|
text-align: left;
|
38
67
|
}
|
39
|
-
.bk-form
|
40
|
-
|
68
|
+
.bk-form-error-tips {
|
69
|
+
position: absolute;
|
70
|
+
top: 8px;
|
71
|
+
right: 8px;
|
72
|
+
font-size: 16px;
|
73
|
+
line-height: 1;
|
74
|
+
color: #ea3636;
|
41
75
|
}
|
42
|
-
.bk-
|
76
|
+
.bk-compose-form-item {
|
77
|
+
display: inline-block;
|
78
|
+
}
|
79
|
+
.bk-compose-form-item > .bk-input,
|
80
|
+
.bk-compose-form-item > .bk-textarea,
|
81
|
+
.bk-compose-form-item > .bk-select,
|
82
|
+
.bk-compose-form-item > .bk-cascade,
|
83
|
+
.bk-compose-form-item > .bk-color-picker,
|
84
|
+
.bk-compose-form-item > .bk-date-picker,
|
85
|
+
.bk-compose-form-item > .bk-tag-input,
|
86
|
+
.bk-compose-form-item > .bk-tag-selector,
|
87
|
+
.bk-compose-form-item > .bk-search-select {
|
88
|
+
float: left;
|
43
89
|
width: auto;
|
44
|
-
|
45
|
-
text-align: left;
|
90
|
+
margin-left: -1px;
|
46
91
|
}
|
47
|
-
.bk-form
|
48
|
-
|
92
|
+
.bk-compose-form-item .bk-input,
|
93
|
+
.bk-compose-form-item .bk-form-password,
|
94
|
+
.bk-compose-form-item .bk-textarea,
|
95
|
+
.bk-compose-form-item .bk-select,
|
96
|
+
.bk-compose-form-item .bk-cascade,
|
97
|
+
.bk-compose-form-item .bk-color-picker,
|
98
|
+
.bk-compose-form-item .bk-date-picker .bk-date-picker-editor,
|
99
|
+
.bk-compose-form-item .bk-tag-input,
|
100
|
+
.bk-compose-form-item .bk-search-select {
|
101
|
+
border-radius: 0;
|
102
|
+
}
|
103
|
+
.bk-compose-form-item .bk-input.control-active,
|
104
|
+
.bk-compose-form-item .bk-select.is-focus,
|
105
|
+
.bk-compose-form-item .bk-cascade.is-focus,
|
106
|
+
.bk-compose-form-item .bk-color-picker.bk-color-picker-show-dropdown,
|
107
|
+
.bk-compose-form-item .bk-color-picker:hover,
|
108
|
+
.bk-compose-form-item .bk-date-picker .bk-date-picker-editor:focus,
|
109
|
+
.bk-compose-form-item .bk-tag-input.active,
|
110
|
+
.bk-compose-form-item .bk-tag-selector,
|
111
|
+
.bk-compose-form-item .bk-search-select.is-focus {
|
112
|
+
z-index: 1;
|
113
|
+
opacity: 1;
|
114
|
+
}
|
115
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-input,
|
116
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-select,
|
117
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-cascade,
|
118
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-color-picker,
|
119
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-date-picker .bk-date-picker-editor,
|
120
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-tag-input,
|
121
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-tag-input,
|
122
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-search-select {
|
123
|
+
margin-left: 0;
|
124
|
+
border-top-right-radius: 0px;
|
125
|
+
border-bottom-right-radius: 0px;
|
126
|
+
}
|
127
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-input,
|
128
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-select,
|
129
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-cascade,
|
130
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-color-picker,
|
131
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-date-picker,
|
132
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-tag-input,
|
133
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-tag-input,
|
134
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-search-select {
|
135
|
+
border-top-right-radius: 2px;
|
136
|
+
border-bottom-right-radius: 2px;
|
49
137
|
}
|
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;
|
@@ -12,16 +14,27 @@ export declare const formProps: {
|
|
12
14
|
[key: string]: any;
|
13
15
|
};
|
14
16
|
};
|
15
|
-
rules: import("vue-types").VueTypeValidableDef<
|
16
|
-
|
17
|
+
rules: import("vue-types").VueTypeValidableDef<{
|
18
|
+
[key: string]: any;
|
19
|
+
}> & {
|
20
|
+
default: () => {
|
21
|
+
[key: string]: any;
|
22
|
+
};
|
17
23
|
};
|
18
24
|
};
|
25
|
+
declare const formEvents: {
|
26
|
+
submit: any;
|
27
|
+
validate: (property: string, result: boolean, message: string) => boolean;
|
28
|
+
};
|
19
29
|
export declare type FormProps = Readonly<ExtractPropTypes<typeof formProps>>;
|
30
|
+
export declare type FormEvents = typeof formEvents;
|
20
31
|
declare const _default: import("vue").DefineComponent<{
|
21
32
|
formType: import("vue-types").VueTypeDef<string> & {
|
22
33
|
default: string;
|
23
34
|
};
|
24
|
-
labelWidth: import("vue-types").VueTypeDef<string | number
|
35
|
+
labelWidth: import("vue-types").VueTypeDef<string | number> & {
|
36
|
+
default: string | number;
|
37
|
+
};
|
25
38
|
labelPosition: import("vue-types").VueTypeDef<string>;
|
26
39
|
model: import("vue-types").VueTypeValidableDef<{
|
27
40
|
[key: string]: any;
|
@@ -30,19 +43,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
30
43
|
[key: string]: any;
|
31
44
|
};
|
32
45
|
};
|
33
|
-
rules: import("vue-types").VueTypeValidableDef<
|
34
|
-
|
46
|
+
rules: import("vue-types").VueTypeValidableDef<{
|
47
|
+
[key: string]: any;
|
48
|
+
}> & {
|
49
|
+
default: () => {
|
50
|
+
[key: string]: any;
|
51
|
+
};
|
35
52
|
};
|
36
53
|
}, {
|
37
|
-
|
54
|
+
handleSubmit: (event: Event) => void;
|
55
|
+
validate: (fields?: string | Array<string>) => Promise<{
|
38
56
|
[key: string]: any;
|
39
57
|
}>;
|
40
|
-
|
41
|
-
|
58
|
+
getValidateResult: () => Promise<boolean>;
|
59
|
+
clearValidate: (fields?: string | Array<string>) => void;
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
61
|
+
submit: any;
|
62
|
+
validate: (property: string, result: boolean, message: string) => boolean;
|
63
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
42
64
|
formType: import("vue-types").VueTypeDef<string> & {
|
43
65
|
default: string;
|
44
66
|
};
|
45
|
-
labelWidth: import("vue-types").VueTypeDef<string | number
|
67
|
+
labelWidth: import("vue-types").VueTypeDef<string | number> & {
|
68
|
+
default: string | number;
|
69
|
+
};
|
46
70
|
labelPosition: import("vue-types").VueTypeDef<string>;
|
47
71
|
model: import("vue-types").VueTypeValidableDef<{
|
48
72
|
[key: string]: any;
|
@@ -51,14 +75,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
75
|
[key: string]: any;
|
52
76
|
};
|
53
77
|
};
|
54
|
-
rules: import("vue-types").VueTypeValidableDef<
|
55
|
-
|
78
|
+
rules: import("vue-types").VueTypeValidableDef<{
|
79
|
+
[key: string]: any;
|
80
|
+
}> & {
|
81
|
+
default: () => {
|
82
|
+
[key: string]: any;
|
83
|
+
};
|
84
|
+
};
|
85
|
+
}>> & {
|
86
|
+
onSubmit?: ((...args: any[]) => any) | ((...args: unknown[]) => any);
|
87
|
+
onValidate?: (property: string, result: boolean, message: string) => any;
|
88
|
+
}, {
|
89
|
+
labelWidth: string | number;
|
90
|
+
rules: {
|
91
|
+
[key: string]: any;
|
56
92
|
};
|
57
|
-
}>>, {
|
58
93
|
formType: string;
|
59
94
|
model: {
|
60
95
|
[key: string]: any;
|
61
96
|
};
|
62
|
-
rules: unknown[];
|
63
97
|
}>;
|
64
98
|
export default _default;
|
package/lib/form/form.less
CHANGED
@@ -1,64 +1,170 @@
|
|
1
|
-
.
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
|
3
|
+
.@{bk-prefix}-form {
|
2
4
|
text-align: left;
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
&--vertical {
|
7
|
+
|
8
|
+
.@{bk-prefix}-form-label {
|
9
|
+
float: unset;
|
10
|
+
width: auto;
|
11
|
+
padding-right: 0;
|
12
|
+
margin-bottom: 8px;
|
13
|
+
line-height: 20px;
|
14
|
+
text-align: left;
|
15
|
+
}
|
16
|
+
|
17
|
+
.@{bk-prefix}-form-content {
|
18
|
+
text-align: left;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.@{bk-prefix}-form-item {
|
24
|
+
margin-bottom: 24px;
|
25
|
+
|
26
|
+
&.is-required {
|
27
|
+
.@{bk-prefix}-form-label {
|
28
|
+
&:after {
|
29
|
+
position: absolute;
|
30
|
+
top: 0;
|
31
|
+
width: 14px;
|
32
|
+
color: #ea3636;
|
33
|
+
text-align: center;
|
34
|
+
content: '*';
|
18
35
|
}
|
19
36
|
}
|
20
37
|
}
|
21
38
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
color: #63656e;
|
30
|
-
text-align: right;
|
39
|
+
&.is-error {
|
40
|
+
.@{bk-prefix}-input,
|
41
|
+
.@{bk-prefix}-textarea,
|
42
|
+
.@{bk-prefix}-date-picker-editor,
|
43
|
+
.@{bk-prefix}-tag-input {
|
44
|
+
border-color: #ea3636;
|
45
|
+
}
|
31
46
|
}
|
32
47
|
|
33
|
-
|
34
|
-
|
35
|
-
|
48
|
+
&:after,
|
49
|
+
&:before {
|
50
|
+
display: table;
|
51
|
+
content: ''
|
36
52
|
}
|
37
53
|
|
38
|
-
|
39
|
-
|
40
|
-
left: 0;
|
41
|
-
padding-top: 4px;
|
42
|
-
font-size: 12px;
|
43
|
-
line-height: 1;
|
44
|
-
color: #ea3636;
|
45
|
-
text-align: left;
|
46
|
-
|
54
|
+
&:after {
|
55
|
+
clear: both
|
47
56
|
}
|
57
|
+
}
|
48
58
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
59
|
+
.@{bk-prefix}-form-label {
|
60
|
+
position: relative;
|
61
|
+
float: left;
|
62
|
+
padding-right: 24px;
|
63
|
+
font-size: 14px;
|
64
|
+
font-weight: normal;
|
65
|
+
line-height: 32px;
|
66
|
+
color: #63656e;
|
67
|
+
text-align: right;
|
68
|
+
text-align: right;
|
69
|
+
vertical-align: middle;
|
70
|
+
}
|
71
|
+
.@{bk-prefix}-form-label-description {
|
72
|
+
cursor: pointer;
|
73
|
+
border-bottom: 1px dashed #979ba5;
|
74
|
+
}
|
53
75
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
76
|
+
.@{bk-prefix}-form-content {
|
77
|
+
position: relative;
|
78
|
+
line-height: 32px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.@{bk-prefix}-form-error {
|
82
|
+
position: absolute;
|
83
|
+
left: 0;
|
84
|
+
padding-top: 4px;
|
85
|
+
font-size: 12px;
|
86
|
+
line-height: 1;
|
87
|
+
color: #ea3636;
|
88
|
+
text-align: left;
|
89
|
+
}
|
90
|
+
.@{bk-prefix}-form-error-tips {
|
91
|
+
position: absolute;
|
92
|
+
top: 8px;
|
93
|
+
right: 8px;
|
94
|
+
font-size: 16px;
|
95
|
+
line-height: 1;
|
96
|
+
color: #ea3636;
|
97
|
+
}
|
98
|
+
|
99
|
+
.@{bk-prefix}-compose-form-item {
|
100
|
+
display: inline-block;
|
101
|
+
display: inline-block;
|
102
|
+
|
103
|
+
& > .@{bk-prefix}-input,
|
104
|
+
& > .@{bk-prefix}-textarea,
|
105
|
+
& > .@{bk-prefix}-select,
|
106
|
+
& > .@{bk-prefix}-cascade,
|
107
|
+
& > .@{bk-prefix}-color-picker,
|
108
|
+
& > .@{bk-prefix}-date-picker,
|
109
|
+
& > .@{bk-prefix}-tag-input,
|
110
|
+
& > .@{bk-prefix}-tag-selector,
|
111
|
+
& > .@{bk-prefix}-search-select {
|
112
|
+
float: left;
|
113
|
+
width: auto;
|
114
|
+
margin-left: -1px;
|
115
|
+
}
|
116
|
+
|
117
|
+
.@{bk-prefix}-input,
|
118
|
+
.@{bk-prefix}-form-password,
|
119
|
+
.@{bk-prefix}-textarea,
|
120
|
+
.@{bk-prefix}-select,
|
121
|
+
.@{bk-prefix}-cascade,
|
122
|
+
.@{bk-prefix}-color-picker,
|
123
|
+
.@{bk-prefix}-date-picker .@{bk-prefix}-date-picker-editor,
|
124
|
+
.@{bk-prefix}-tag-input,
|
125
|
+
.@{bk-prefix}-search-select {
|
126
|
+
border-radius: 0;
|
127
|
+
}
|
128
|
+
|
129
|
+
.@{bk-prefix}-input.control-active,
|
130
|
+
.@{bk-prefix}-select.is-focus,
|
131
|
+
.@{bk-prefix}-cascade.is-focus,
|
132
|
+
.@{bk-prefix}-color-picker.@{bk-prefix}-color-picker-show-dropdown,
|
133
|
+
.@{bk-prefix}-color-picker:hover,
|
134
|
+
.@{bk-prefix}-date-picker .@{bk-prefix}-date-picker-editor:focus,
|
135
|
+
.@{bk-prefix}-tag-input.active,
|
136
|
+
.@{bk-prefix}-tag-selector,
|
137
|
+
.@{bk-prefix}-search-select.is-focus {
|
138
|
+
z-index: 1;
|
139
|
+
opacity: 1;
|
140
|
+
}
|
141
|
+
|
142
|
+
.@{bk-prefix}-compose-form-item-head {
|
143
|
+
&.@{bk-prefix}-input,
|
144
|
+
&.@{bk-prefix}-select,
|
145
|
+
&.@{bk-prefix}-cascade,
|
146
|
+
&.@{bk-prefix}-color-picker,
|
147
|
+
&.@{bk-prefix}-date-picker .@{bk-prefix}-date-picker-editor,
|
148
|
+
&.@{bk-prefix}-tag-input,
|
149
|
+
&.@{bk-prefix}-tag-input,
|
150
|
+
&.@{bk-prefix}-search-select {
|
151
|
+
margin-left: 0;
|
152
|
+
border-top-right-radius: 0px;
|
153
|
+
border-bottom-right-radius: 0px;
|
58
154
|
}
|
155
|
+
}
|
59
156
|
|
60
|
-
|
61
|
-
|
157
|
+
.@{bk-prefix}-compose-form-item-tail {
|
158
|
+
&.@{bk-prefix}-input,
|
159
|
+
&.@{bk-prefix}-select,
|
160
|
+
&.@{bk-prefix}-cascade,
|
161
|
+
&.@{bk-prefix}-color-picker,
|
162
|
+
&.@{bk-prefix}-date-picker,
|
163
|
+
&.@{bk-prefix}-tag-input,
|
164
|
+
&.@{bk-prefix}-tag-input,
|
165
|
+
&.@{bk-prefix}-search-select {
|
166
|
+
border-top-right-radius: 2px;
|
167
|
+
border-bottom-right-radius: 2px;
|
62
168
|
}
|
63
169
|
}
|
64
170
|
}
|