bkui-vue 0.0.1-beta.23 → 0.0.1-beta.230
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/dist/index.cjs.js +173 -0
- package/dist/index.esm.js +38108 -0
- package/dist/index.umd.js +173 -0
- package/dist/style.css +1 -5099
- 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 +122 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +34 -6
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +37 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -10
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +34 -8
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +80 -3
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +87 -49
- package/lib/button/button.d.ts +28 -7
- package/lib/button/button.less +74 -41
- package/lib/button/button.variable.css +116 -52
- package/lib/button/index.d.ts +45 -12
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +125 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +173 -0
- package/lib/cascader/cascader.d.ts +303 -0
- package/lib/cascader/cascader.less +196 -0
- package/lib/cascader/cascader.variable.css +292 -0
- package/lib/cascader/index.d.ts +868 -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 +23 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +38 -6
- package/lib/checkbox/checkbox.d.ts +16 -14
- package/lib/checkbox/checkbox.less +48 -6
- package/lib/checkbox/checkbox.variable.css +67 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +40 -23
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/code-diff/code-diff.css +72 -1
- package/lib/code-diff/code-diff.d.ts +10 -1
- package/lib/code-diff/code-diff.less +94 -1
- package/lib/code-diff/code-diff.variable.css +101 -4
- package/lib/code-diff/index.d.ts +151 -3
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +72 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +11 -52
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +147 -12
- package/lib/collapse/index.d.ts +113 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +121 -0
- package/lib/collapse/utils.d.ts +11 -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 +394 -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 +28 -7
- package/lib/components.js +1 -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 +210 -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 +102 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
- package/lib/date-picker/base/time-spinner.d.ts +153 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +40 -13
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +47 -5
- package/lib/date-picker/index.d.ts +100 -39
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +9 -0
- package/lib/date-picker/panel/date-range.d.ts +452 -0
- package/lib/date-picker/panel/date.d.ts +550 -0
- package/lib/date-picker/panel/time.d.ts +450 -0
- package/lib/date-picker/props.d.ts +51 -1
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +144 -22
- package/lib/dialog/dialog.d.ts +275 -58
- package/lib/dialog/dialog.less +97 -23
- package/lib/dialog/dialog.variable.css +144 -22
- package/lib/dialog/index.d.ts +607 -130
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +138 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +29 -3
- package/lib/divider/index.d.ts +4 -4
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +34 -3
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +42 -10
- package/lib/dropdown/index.d.ts +71 -10
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +10 -3
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +69 -17
- package/lib/exception/index.d.ts +23 -8
- 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 +29 -3
- 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 +16 -5
- package/lib/form/form.css +96 -12
- package/lib/form/form.d.ts +28 -11
- package/lib/form/form.less +144 -45
- package/lib/form/form.variable.css +215 -12
- package/lib/form/index.d.ts +88 -30
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.js +1 -15
- package/lib/icon/angle-double-left-line.js +1 -15
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.js +1 -15
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.js +1 -15
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -15
- package/lib/icon/arrows-right.js +1 -15
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -15
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- 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 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -15
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- 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 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/help.js +1 -15
- 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 +27 -1
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.js +1 -15
- 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 -15
- package/lib/icon/plus.js +1 -15
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.js +1 -15
- package/lib/icon/right-shape.js +1 -15
- 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 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- 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 -15
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.js +1 -15
- 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 -15
- package/lib/icon/weixin.js +1 -15
- 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 +1 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +6 -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 +26 -0
- package/lib/info-box/info-box.less +50 -0
- package/lib/info-box/info-box.variable.css +37 -0
- package/lib/input/index.d.ts +171 -60
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +216 -18
- package/lib/input/input.d.ts +116 -16
- package/lib/input/input.less +157 -17
- package/lib/input/input.variable.css +242 -17
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +41 -15
- package/lib/loading/index.d.ts +107 -13
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +83 -31
- package/lib/loading/loading.d.ts +74 -5
- package/lib/loading/loading.less +28 -30
- package/lib/loading/loading.variable.css +112 -34
- 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 +80 -3
- package/lib/menu/submenu.variable.css +29 -3
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +53 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +508 -78
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +194 -30
- package/lib/modal/modal.less +36 -1
- package/lib/modal/modal.variable.css +63 -1
- package/lib/modal/props.mixin.d.ts +82 -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 +10 -1
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +30 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +53 -7
- package/lib/notify/notifyConstructor.d.ts +51 -7
- package/lib/pagination/index.d.ts +38 -23
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +17 -7
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +83 -31
- package/lib/pagination/type.d.ts +1 -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/popover/index.d.ts +146 -21
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +67 -8
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +32 -3
- package/lib/popover/props.d.ts +34 -2
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +16 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +545 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/plugin-popover.d.ts +12 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +228 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +144 -0
- package/lib/popover2/props.d.ts +118 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +31 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popover-init.d.ts +22 -0
- package/lib/popover2/use-popper-id.d.ts +6 -0
- package/lib/popover2/utils.d.ts +2 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -15
- package/lib/process/process.css +13 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +17 -0
- package/lib/process/process.variable.css +42 -3
- package/lib/progress/index.d.ts +10 -10
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.variable.css +80 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +29 -18
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +16 -0
- package/lib/radio/radio.css +61 -56
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +93 -62
- package/lib/radio/type.d.ts +9 -4
- package/lib/rate/index.d.ts +24 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +11 -0
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +177 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +217 -0
- package/lib/resize-layout/resize-layout.variable.css +296 -0
- package/lib/search-select/index.d.ts +681 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +85 -0
- package/lib/search-select/menu.d.ts +83 -0
- package/lib/search-select/search-select.css +423 -0
- package/lib/search-select/search-select.d.ts +273 -0
- package/lib/search-select/search-select.less +375 -0
- package/lib/search-select/search-select.variable.css +542 -0
- package/lib/search-select/selected.d.ts +137 -0
- package/lib/search-select/utils.d.ts +79 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1422 -451
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +16 -4
- package/lib/select/optionGroup.d.ts +1 -77
- package/lib/select/select.css +265 -80
- package/lib/select/select.d.ts +553 -126
- package/lib/select/select.less +366 -185
- package/lib/select/select.variable.css +295 -84
- package/lib/select/selectTagInput.d.ts +93 -0
- package/lib/select/type.d.ts +39 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -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 +27 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +6 -2
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -4
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +13 -0
- package/lib/shared/vue-types.d.ts +4 -0
- package/lib/sideslider/index.d.ts +391 -76
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +55 -10
- package/lib/sideslider/sideslider.d.ts +181 -33
- package/lib/sideslider/sideslider.less +72 -13
- package/lib/sideslider/sideslider.variable.css +84 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +5 -0
- package/lib/slider/slider.d.ts +14 -2
- package/lib/slider/slider.variable.css +29 -3
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +43 -6
- package/lib/styles/index.d.ts +12 -0
- 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/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +136 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -0
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +38 -3
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +34 -11
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +15 -4
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +86 -9
- package/lib/tab/index.d.ts +107 -219
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +66 -87
- package/lib/tab/tab-panel.d.ts +40 -15
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +17 -41
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +54 -4
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +38 -0
- package/lib/table/components/table-column.d.ts +142 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +108 -1
- package/lib/table/index.d.ts +781 -27
- package/lib/table/index.js +1 -10
- package/lib/table/plugins/body-empty.d.ts +40 -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 +71 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +92 -0
- package/lib/table/plugins/head-filter.variable.css +190 -0
- package/lib/table/plugins/head-sort.css +25 -0
- package/lib/table/plugins/head-sort.d.ts +22 -0
- package/lib/table/plugins/head-sort.less +31 -0
- package/lib/table/plugins/head-sort.variable.css +144 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +248 -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 +12 -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 +282 -7
- package/lib/table/render.d.ts +53 -6
- package/lib/table/table.css +1143 -17
- package/lib/table/table.d.ts +196 -13
- package/lib/table/table.less +237 -25
- package/lib/table/table.variable.css +1182 -30
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +97 -0
- package/lib/table/utils.d.ts +65 -9
- package/lib/table-column/index.d.ts +336 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +7 -7
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +57 -18
- package/lib/tag/tag.d.ts +2 -2
- package/lib/tag/tag.less +58 -15
- package/lib/tag/tag.variable.css +86 -21
- package/lib/tag-input/common.d.ts +36 -0
- package/lib/tag-input/index.d.ts +1211 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +44 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +536 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +328 -0
- package/lib/tag-input/tag-props.d.ts +216 -0
- package/lib/tag-input/tag-render.d.ts +35 -0
- 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 +334 -0
- package/lib/timeline/index.d.ts +6 -6
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +5 -5
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +6 -5
- package/lib/timeline/timeline.variable.css +34 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +339 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +89 -86
- package/lib/transfer/transfer.d.ts +70 -95
- package/lib/transfer/transfer.less +93 -113
- package/lib/transfer/transfer.variable.css +123 -94
- package/lib/tree/constant.d.ts +57 -0
- package/lib/tree/index.d.ts +419 -48
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +124 -0
- package/lib/tree/tree.css +183 -11
- package/lib/tree/tree.d.ts +194 -23
- package/lib/tree/tree.less +72 -10
- package/lib/tree/tree.variable.css +302 -11
- 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 +5 -7
- 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 +425 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +464 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +544 -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 +27 -4
- package/lib/virtual-render/index.js +1 -10
- package/lib/virtual-render/props.d.ts +10 -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 -24
- package/lib/virtual-render/virtual-render.d.ts +14 -3
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +136 -24
- package/lib/volar.components.d.ts +101 -0
- package/package.json +59 -46
- package/README_EN.md +0 -93
- package/dist/bkui-vue.cjs.js +0 -18938
- package/dist/bkui-vue.esm.js +0 -18887
- package/dist/bkui-vue.umd.js +0 -18941
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
- 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){"object"==typeof exports&&"
|
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
@@ -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,13 @@ 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
|
-
labelStyles: import("vue").ComputedRef<
|
88
|
-
|
93
|
+
labelStyles: import("vue").ComputedRef<any>;
|
94
|
+
isFormTypeVertical: import("vue").ComputedRef<boolean>;
|
95
|
+
validate: (trigger?: String) => Promise<boolean>;
|
89
96
|
clearValidate: () => void;
|
90
97
|
isError: import("vue").Ref<boolean>;
|
91
98
|
errorMessage: import("vue").Ref<string>;
|
@@ -130,16 +137,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
130
137
|
description: import("vue-types").VueTypeValidableDef<string> & {
|
131
138
|
default: string;
|
132
139
|
};
|
140
|
+
errorDisplayType: import("vue-types").VueTypeDef<string> & {
|
141
|
+
default: string;
|
142
|
+
};
|
133
143
|
}>>, {
|
144
|
+
label: string;
|
134
145
|
required: boolean;
|
135
146
|
property: string;
|
136
147
|
email: boolean;
|
137
|
-
label: string;
|
138
|
-
description: string;
|
139
|
-
rules: unknown[];
|
140
148
|
max: number;
|
141
149
|
min: number;
|
142
150
|
maxlength: number;
|
151
|
+
rules: unknown[];
|
143
152
|
autoCheck: boolean;
|
153
|
+
description: string;
|
154
|
+
errorDisplayType: string;
|
144
155
|
}>;
|
145
156
|
export default _default;
|
package/lib/form/form.css
CHANGED
@@ -1,19 +1,38 @@
|
|
1
1
|
.bk-form {
|
2
2
|
text-align: left;
|
3
3
|
}
|
4
|
-
.bk-form .bk-form-item {
|
4
|
+
.bk-form--vertical .bk-form-item {
|
5
|
+
flex-direction: column;
|
6
|
+
}
|
7
|
+
.bk-form--vertical .bk-form-label {
|
8
|
+
width: auto;
|
9
|
+
padding-right: 0;
|
10
|
+
text-align: left;
|
11
|
+
}
|
12
|
+
.bk-form--vertical .bk-form-content {
|
13
|
+
text-align: left;
|
14
|
+
}
|
15
|
+
.bk-form-item {
|
5
16
|
display: flex;
|
6
17
|
margin-bottom: 24px;
|
7
18
|
}
|
8
|
-
.bk-form
|
19
|
+
.bk-form-item.is-required .bk-form-label:after {
|
9
20
|
position: absolute;
|
21
|
+
top: 0;
|
10
22
|
width: 14px;
|
11
23
|
line-height: 32px;
|
12
24
|
color: #ea3636;
|
13
25
|
text-align: center;
|
14
26
|
content: '*';
|
15
27
|
}
|
16
|
-
.bk-form .bk-
|
28
|
+
.bk-form-item.is-error .bk-input,
|
29
|
+
.bk-form-item.is-error .bk-textarea,
|
30
|
+
.bk-form-item.is-error .bk-date-picker-editor,
|
31
|
+
.bk-form-item.is-error .bk-tag-input {
|
32
|
+
border-color: #ea3636;
|
33
|
+
}
|
34
|
+
.bk-form-label {
|
35
|
+
position: relative;
|
17
36
|
width: 150px;
|
18
37
|
padding-right: 24px;
|
19
38
|
font-size: 14px;
|
@@ -21,12 +40,18 @@
|
|
21
40
|
line-height: 32px;
|
22
41
|
color: #63656e;
|
23
42
|
text-align: right;
|
43
|
+
flex: 0 0 auto;
|
44
|
+
}
|
45
|
+
.bk-form-label-description {
|
46
|
+
cursor: pointer;
|
47
|
+
border-bottom: 1px dashed #979ba5;
|
24
48
|
}
|
25
|
-
.bk-form
|
49
|
+
.bk-form-content {
|
26
50
|
position: relative;
|
27
51
|
line-height: 32px;
|
52
|
+
flex: 1;
|
28
53
|
}
|
29
|
-
.bk-form
|
54
|
+
.bk-form-error {
|
30
55
|
position: absolute;
|
31
56
|
left: 0;
|
32
57
|
padding-top: 4px;
|
@@ -35,14 +60,73 @@
|
|
35
60
|
color: #ea3636;
|
36
61
|
text-align: left;
|
37
62
|
}
|
38
|
-
.bk-form
|
39
|
-
|
63
|
+
.bk-form-error-tips {
|
64
|
+
position: absolute;
|
65
|
+
top: 8px;
|
66
|
+
right: 8px;
|
67
|
+
font-size: 16px;
|
68
|
+
line-height: 1;
|
69
|
+
color: #ea3636;
|
40
70
|
}
|
41
|
-
.bk-
|
71
|
+
.bk-compose-form-item {
|
72
|
+
display: inline-block;
|
73
|
+
}
|
74
|
+
.bk-compose-form-item > .bk-input,
|
75
|
+
.bk-compose-form-item > .bk-textarea,
|
76
|
+
.bk-compose-form-item > .bk-select,
|
77
|
+
.bk-compose-form-item > .bk-cascade,
|
78
|
+
.bk-compose-form-item > .bk-color-picker,
|
79
|
+
.bk-compose-form-item > .bk-date-picker,
|
80
|
+
.bk-compose-form-item > .bk-tag-input,
|
81
|
+
.bk-compose-form-item > .bk-tag-selector,
|
82
|
+
.bk-compose-form-item > .bk-search-select {
|
83
|
+
float: left;
|
42
84
|
width: auto;
|
43
|
-
|
44
|
-
text-align: left;
|
85
|
+
margin-left: -1px;
|
45
86
|
}
|
46
|
-
.bk-form
|
47
|
-
|
87
|
+
.bk-compose-form-item .bk-input,
|
88
|
+
.bk-compose-form-item .bk-form-password,
|
89
|
+
.bk-compose-form-item .bk-textarea,
|
90
|
+
.bk-compose-form-item .bk-select,
|
91
|
+
.bk-compose-form-item .bk-cascade,
|
92
|
+
.bk-compose-form-item .bk-color-picker,
|
93
|
+
.bk-compose-form-item .bk-date-picker .bk-date-picker-editor,
|
94
|
+
.bk-compose-form-item .bk-tag-input,
|
95
|
+
.bk-compose-form-item .bk-search-select {
|
96
|
+
border-radius: 0;
|
97
|
+
}
|
98
|
+
.bk-compose-form-item .bk-input.control-active,
|
99
|
+
.bk-compose-form-item .bk-select.is-focus,
|
100
|
+
.bk-compose-form-item .bk-cascade.is-focus,
|
101
|
+
.bk-compose-form-item .bk-color-picker.bk-color-picker-show-dropdown,
|
102
|
+
.bk-compose-form-item .bk-color-picker:hover,
|
103
|
+
.bk-compose-form-item .bk-date-picker .bk-date-picker-editor:focus,
|
104
|
+
.bk-compose-form-item .bk-tag-input.active,
|
105
|
+
.bk-compose-form-item .bk-tag-selector,
|
106
|
+
.bk-compose-form-item .bk-search-select.is-focus {
|
107
|
+
z-index: 1;
|
108
|
+
opacity: 1;
|
109
|
+
}
|
110
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-input,
|
111
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-select,
|
112
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-cascade,
|
113
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-color-picker,
|
114
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-date-picker .bk-date-picker-editor,
|
115
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-tag-input,
|
116
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-tag-input,
|
117
|
+
.bk-compose-form-item .bk-compose-form-item-head.bk-search-select {
|
118
|
+
margin-left: 0;
|
119
|
+
border-top-right-radius: 0px;
|
120
|
+
border-bottom-right-radius: 0px;
|
121
|
+
}
|
122
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-input,
|
123
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-select,
|
124
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-cascade,
|
125
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-color-picker,
|
126
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-date-picker,
|
127
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-tag-input,
|
128
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-tag-input,
|
129
|
+
.bk-compose-form-item .bk-compose-form-item-tail.bk-search-select {
|
130
|
+
border-top-right-radius: 2px;
|
131
|
+
border-bottom-right-radius: 2px;
|
48
132
|
}
|
package/lib/form/form.d.ts
CHANGED
@@ -12,8 +12,12 @@ export declare const formProps: {
|
|
12
12
|
[key: string]: any;
|
13
13
|
};
|
14
14
|
};
|
15
|
-
rules: import("vue-types").VueTypeValidableDef<
|
16
|
-
|
15
|
+
rules: import("vue-types").VueTypeValidableDef<{
|
16
|
+
[key: string]: any;
|
17
|
+
}> & {
|
18
|
+
default: () => {
|
19
|
+
[key: string]: any;
|
20
|
+
};
|
17
21
|
};
|
18
22
|
};
|
19
23
|
export declare type FormProps = Readonly<ExtractPropTypes<typeof formProps>>;
|
@@ -30,15 +34,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
30
34
|
[key: string]: any;
|
31
35
|
};
|
32
36
|
};
|
33
|
-
rules: import("vue-types").VueTypeValidableDef<
|
34
|
-
|
37
|
+
rules: import("vue-types").VueTypeValidableDef<{
|
38
|
+
[key: string]: any;
|
39
|
+
}> & {
|
40
|
+
default: () => {
|
41
|
+
[key: string]: any;
|
42
|
+
};
|
35
43
|
};
|
36
44
|
}, {
|
37
|
-
|
45
|
+
handleSubmit: (event: Event) => void;
|
46
|
+
validate: (fields?: string | Array<string>) => Promise<{
|
38
47
|
[key: string]: any;
|
39
48
|
}>;
|
40
|
-
clearValidate: (fields
|
41
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
49
|
+
clearValidate: (fields?: string | Array<string>) => void;
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
42
51
|
formType: import("vue-types").VueTypeDef<string> & {
|
43
52
|
default: string;
|
44
53
|
};
|
@@ -51,14 +60,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
60
|
[key: string]: any;
|
52
61
|
};
|
53
62
|
};
|
54
|
-
rules: import("vue-types").VueTypeValidableDef<
|
55
|
-
|
63
|
+
rules: import("vue-types").VueTypeValidableDef<{
|
64
|
+
[key: string]: any;
|
65
|
+
}> & {
|
66
|
+
default: () => {
|
67
|
+
[key: string]: any;
|
68
|
+
};
|
69
|
+
};
|
70
|
+
}>> & {
|
71
|
+
onSubmit?: (...args: any[]) => any;
|
72
|
+
}, {
|
73
|
+
rules: {
|
74
|
+
[key: string]: any;
|
56
75
|
};
|
57
|
-
}>>, {
|
58
76
|
formType: string;
|
59
77
|
model: {
|
60
78
|
[key: string]: any;
|
61
79
|
};
|
62
|
-
rules: unknown[];
|
63
80
|
}>;
|
64
81
|
export default _default;
|
package/lib/form/form.less
CHANGED
@@ -1,63 +1,162 @@
|
|
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
|
+
.@{bk-prefix}-form-item {
|
8
|
+
flex-direction: column;
|
9
|
+
}
|
10
|
+
|
11
|
+
.@{bk-prefix}-form-label {
|
12
|
+
width: auto;
|
13
|
+
padding-right: 0;
|
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
|
+
display: flex;
|
25
|
+
margin-bottom: 24px;
|
26
|
+
|
27
|
+
&.is-required {
|
28
|
+
.@{bk-prefix}-form-label {
|
29
|
+
&:after {
|
30
|
+
position: absolute;
|
31
|
+
top: 0;
|
32
|
+
width: 14px;
|
33
|
+
line-height: 32px;
|
34
|
+
color: #ea3636;
|
35
|
+
text-align: center;
|
36
|
+
content: '*';
|
18
37
|
}
|
19
38
|
}
|
20
39
|
}
|
21
40
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
text-align: right;
|
41
|
+
&.is-error {
|
42
|
+
.@{bk-prefix}-input,
|
43
|
+
.@{bk-prefix}-textarea,
|
44
|
+
.@{bk-prefix}-date-picker-editor,
|
45
|
+
.@{bk-prefix}-tag-input {
|
46
|
+
border-color: #ea3636;
|
47
|
+
}
|
30
48
|
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.@{bk-prefix}-form-label {
|
52
|
+
position: relative;
|
53
|
+
width: 150px;
|
54
|
+
padding-right: 24px;
|
55
|
+
font-size: 14px;
|
56
|
+
font-weight: normal;
|
57
|
+
line-height: 32px;
|
58
|
+
color: #63656e;
|
59
|
+
text-align: right;
|
60
|
+
flex: 0 0 auto;
|
61
|
+
}
|
62
|
+
.@{bk-prefix}-form-label-description {
|
63
|
+
cursor: pointer;
|
64
|
+
border-bottom: 1px dashed #979ba5;
|
65
|
+
}
|
66
|
+
|
67
|
+
.@{bk-prefix}-form-content {
|
68
|
+
position: relative;
|
69
|
+
line-height: 32px;
|
70
|
+
flex: 1;
|
71
|
+
}
|
72
|
+
|
73
|
+
.@{bk-prefix}-form-error {
|
74
|
+
position: absolute;
|
75
|
+
left: 0;
|
76
|
+
padding-top: 4px;
|
77
|
+
font-size: 12px;
|
78
|
+
line-height: 1;
|
79
|
+
color: #ea3636;
|
80
|
+
text-align: left;
|
81
|
+
}
|
82
|
+
.@{bk-prefix}-form-error-tips {
|
83
|
+
position: absolute;
|
84
|
+
top: 8px;
|
85
|
+
right: 8px;
|
86
|
+
font-size: 16px;
|
87
|
+
line-height: 1;
|
88
|
+
color: #ea3636;
|
89
|
+
}
|
90
|
+
|
91
|
+
.@{bk-prefix}-compose-form-item {
|
92
|
+
display: inline-block;
|
93
|
+
display: inline-block;
|
31
94
|
|
32
|
-
.bk-
|
33
|
-
|
34
|
-
|
95
|
+
& > .bk-input,
|
96
|
+
& > .bk-textarea,
|
97
|
+
& > .bk-select,
|
98
|
+
& > .bk-cascade,
|
99
|
+
& > .bk-color-picker,
|
100
|
+
& > .bk-date-picker,
|
101
|
+
& > .bk-tag-input,
|
102
|
+
& > .bk-tag-selector,
|
103
|
+
& > .bk-search-select {
|
104
|
+
float: left;
|
105
|
+
width: auto;
|
106
|
+
margin-left: -1px;
|
35
107
|
}
|
36
108
|
|
37
|
-
.bk-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
109
|
+
.bk-input,
|
110
|
+
.bk-form-password,
|
111
|
+
.bk-textarea,
|
112
|
+
.bk-select,
|
113
|
+
.bk-cascade,
|
114
|
+
.bk-color-picker,
|
115
|
+
.bk-date-picker .bk-date-picker-editor,
|
116
|
+
.bk-tag-input,
|
117
|
+
.bk-search-select {
|
118
|
+
border-radius: 0;
|
46
119
|
}
|
47
120
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
121
|
+
.bk-input.control-active,
|
122
|
+
.bk-select.is-focus,
|
123
|
+
.bk-cascade.is-focus,
|
124
|
+
.bk-color-picker.bk-color-picker-show-dropdown,
|
125
|
+
.bk-color-picker:hover,
|
126
|
+
.bk-date-picker .bk-date-picker-editor:focus,
|
127
|
+
.bk-tag-input.active,
|
128
|
+
.bk-tag-selector,
|
129
|
+
.bk-search-select.is-focus {
|
130
|
+
z-index: 1;
|
131
|
+
opacity: 1;
|
132
|
+
}
|
52
133
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
134
|
+
.bk-compose-form-item-head {
|
135
|
+
&.bk-input,
|
136
|
+
&.bk-select,
|
137
|
+
&.bk-cascade,
|
138
|
+
&.bk-color-picker,
|
139
|
+
&.bk-date-picker .bk-date-picker-editor,
|
140
|
+
&.bk-tag-input,
|
141
|
+
&.bk-tag-input,
|
142
|
+
&.bk-search-select {
|
143
|
+
margin-left: 0;
|
144
|
+
border-top-right-radius: 0px;
|
145
|
+
border-bottom-right-radius: 0px;
|
57
146
|
}
|
147
|
+
}
|
58
148
|
|
59
|
-
|
60
|
-
|
149
|
+
.bk-compose-form-item-tail {
|
150
|
+
&.bk-input,
|
151
|
+
&.bk-select,
|
152
|
+
&.bk-cascade,
|
153
|
+
&.bk-color-picker,
|
154
|
+
&.bk-date-picker,
|
155
|
+
&.bk-tag-input,
|
156
|
+
&.bk-tag-input,
|
157
|
+
&.bk-search-select {
|
158
|
+
border-top-right-radius: 2px;
|
159
|
+
border-bottom-right-radius: 2px;
|
61
160
|
}
|
62
161
|
}
|
63
162
|
}
|