bkui-vue 0.0.1-beta.3 → 0.0.1-beta.30
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/README.md +31 -19
- package/README_EN.md +93 -0
- package/dist/bkui-vue.cjs.js +18093 -2770
- package/dist/bkui-vue.esm.js +18049 -2775
- package/dist/bkui-vue.umd.js +18095 -2772
- package/dist/style.css +3958 -254
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +32 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +10 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +57 -28
- package/lib/button/button.less +23 -15
- package/lib/button/button.variable.css +41 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +32 -0
- package/lib/checkbox/common.d.ts +1 -1
- package/lib/checkbox/index.d.ts +261 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +7 -6
- package/lib/code-diff/code-diff.css +115 -0
- package/lib/code-diff/code-diff.d.ts +71 -0
- package/lib/code-diff/code-diff.less +145 -0
- package/lib/code-diff/code-diff.variable.css +208 -0
- package/lib/code-diff/index.d.ts +6 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -0
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +39 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.d.ts +57 -27
- package/lib/dialog/index.d.ts +286 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +14 -14
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +131 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +61 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +32 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +48 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.less +63 -0
- package/lib/form/form.variable.css +48 -0
- package/lib/form/index.d.ts +246 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +15 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +15 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +53 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +15 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +15 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +15 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +417 -0
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +20 -2
- package/lib/input/input.d.ts +97 -45
- package/lib/input/input.less +28 -5
- package/lib/input/input.variable.css +52 -2
- package/lib/link/index.d.ts +164 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +32 -0
- package/lib/loading/index.d.ts +147 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +100 -71
- package/lib/loading/loading.d.ts +48 -21
- package/lib/loading/loading.less +64 -49
- package/lib/loading/loading.variable.css +132 -71
- package/lib/menu/index.d.ts +188 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/props.mixin.d.ts +5 -1
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +287 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +75 -46
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +55 -14
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +15 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +231 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +32 -3
- package/lib/radio/common.d.ts +1 -1
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +8 -2
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.less +9 -2
- package/lib/radio/radio.variable.css +40 -2
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +282 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +243 -17
- package/lib/select/select.d.ts +268 -155
- package/lib/select/select.less +245 -46
- package/lib/select/select.variable.css +275 -17
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +51 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +8 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
- package/lib/slider/index.js +15 -0
- package/lib/slider/slider-button.d.ts +75 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +189 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +46 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +52 -2
- 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 +286 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +552 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +190 -0
- package/lib/tab/tab-panel.d.ts +48 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +163 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +240 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +282 -0
- package/lib/table/index.js +10 -1
- package/lib/table/props.d.ts +118 -0
- package/lib/table/render.d.ts +74 -0
- package/lib/table/table.css +90 -0
- package/lib/table/table.d.ts +85 -37
- package/lib/table/table.less +116 -1
- package/lib/table/table.variable.css +122 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +129 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +301 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +328 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +279 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +121 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +143 -0
- package/lib/tree/util.d.ts +70 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +10 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +71 -54
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,244 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
onContentScroll: FunctionConstructor;
|
3
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
4
|
+
default: () => unknown[];
|
5
|
+
} & {
|
6
|
+
default: () => unknown[];
|
7
|
+
};
|
8
|
+
enabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
9
|
+
default: boolean;
|
10
|
+
} & {
|
11
|
+
default: boolean;
|
12
|
+
};
|
13
|
+
lineHeight: import("vue-types").VueTypeDef<any> & {
|
14
|
+
default: any;
|
15
|
+
};
|
16
|
+
minHeight: import("vue-types").VueTypeValidableDef<number> & {
|
17
|
+
default: number;
|
18
|
+
} & {
|
19
|
+
default: number;
|
20
|
+
};
|
21
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
22
|
+
default: string | number;
|
23
|
+
};
|
24
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
25
|
+
default: string | number;
|
26
|
+
};
|
27
|
+
className: import("vue-types").VueTypeDef<string | string[] | {
|
28
|
+
[key: string]: any;
|
29
|
+
} | {
|
30
|
+
[key: string]: any;
|
31
|
+
}[]> & {
|
32
|
+
default: string | (() => {
|
33
|
+
[key: string]: any;
|
34
|
+
}) | (() => string[]) | (() => {
|
35
|
+
[key: string]: any;
|
36
|
+
}[]);
|
37
|
+
};
|
38
|
+
contentClassName: import("vue-types").VueTypeDef<string | string[] | {
|
39
|
+
[key: string]: any;
|
40
|
+
} | {
|
41
|
+
[key: string]: any;
|
42
|
+
}[]> & {
|
43
|
+
default: string | (() => {
|
44
|
+
[key: string]: any;
|
45
|
+
}) | (() => string[]) | (() => {
|
46
|
+
[key: string]: any;
|
47
|
+
}[]);
|
48
|
+
};
|
49
|
+
contentStyle: import("vue-types").VueTypeValidableDef<{
|
50
|
+
[key: string]: any;
|
51
|
+
}> & {
|
52
|
+
default: () => {
|
53
|
+
[key: string]: any;
|
54
|
+
};
|
55
|
+
} & {
|
56
|
+
default: () => {
|
57
|
+
[key: string]: any;
|
58
|
+
};
|
59
|
+
};
|
60
|
+
scrollXName: import("vue-types").VueTypeValidableDef<string> & {
|
61
|
+
default: string;
|
62
|
+
} & {
|
63
|
+
default: string;
|
64
|
+
};
|
65
|
+
scrollYName: import("vue-types").VueTypeValidableDef<string> & {
|
66
|
+
default: string;
|
67
|
+
} & {
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
|
71
|
+
default: number;
|
72
|
+
} & {
|
73
|
+
default: number;
|
74
|
+
};
|
75
|
+
preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
|
76
|
+
default: number;
|
77
|
+
} & {
|
78
|
+
default: number;
|
79
|
+
};
|
80
|
+
renderAs: import("vue-types").VueTypeValidableDef<string> & {
|
81
|
+
default: string;
|
82
|
+
} & {
|
83
|
+
default: string;
|
84
|
+
};
|
85
|
+
contentAs: import("vue-types").VueTypeValidableDef<string> & {
|
86
|
+
default: string;
|
87
|
+
} & {
|
88
|
+
default: string;
|
89
|
+
};
|
90
|
+
scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
|
91
|
+
default: number;
|
92
|
+
} & {
|
93
|
+
default: number;
|
94
|
+
};
|
95
|
+
scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
|
96
|
+
default: string;
|
97
|
+
} & {
|
98
|
+
default: string;
|
99
|
+
};
|
100
|
+
abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
|
101
|
+
default: string | number;
|
102
|
+
};
|
103
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
104
|
+
default: number;
|
105
|
+
} & {
|
106
|
+
default: number;
|
107
|
+
};
|
108
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
109
|
+
[key: string]: any;
|
110
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
111
|
+
onContentScroll: FunctionConstructor;
|
112
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
113
|
+
default: () => unknown[];
|
114
|
+
} & {
|
115
|
+
default: () => unknown[];
|
116
|
+
};
|
117
|
+
enabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
118
|
+
default: boolean;
|
119
|
+
} & {
|
120
|
+
default: boolean;
|
121
|
+
};
|
122
|
+
lineHeight: import("vue-types").VueTypeDef<any> & {
|
123
|
+
default: any;
|
124
|
+
};
|
125
|
+
minHeight: import("vue-types").VueTypeValidableDef<number> & {
|
126
|
+
default: number;
|
127
|
+
} & {
|
128
|
+
default: number;
|
129
|
+
};
|
130
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
131
|
+
default: string | number;
|
132
|
+
};
|
133
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
134
|
+
default: string | number;
|
135
|
+
};
|
136
|
+
className: import("vue-types").VueTypeDef<string | string[] | {
|
137
|
+
[key: string]: any;
|
138
|
+
} | {
|
139
|
+
[key: string]: any;
|
140
|
+
}[]> & {
|
141
|
+
default: string | (() => {
|
142
|
+
[key: string]: any;
|
143
|
+
}) | (() => string[]) | (() => {
|
144
|
+
[key: string]: any;
|
145
|
+
}[]);
|
146
|
+
};
|
147
|
+
contentClassName: import("vue-types").VueTypeDef<string | string[] | {
|
148
|
+
[key: string]: any;
|
149
|
+
} | {
|
150
|
+
[key: string]: any;
|
151
|
+
}[]> & {
|
152
|
+
default: string | (() => {
|
153
|
+
[key: string]: any;
|
154
|
+
}) | (() => string[]) | (() => {
|
155
|
+
[key: string]: any;
|
156
|
+
}[]);
|
157
|
+
};
|
158
|
+
contentStyle: import("vue-types").VueTypeValidableDef<{
|
159
|
+
[key: string]: any;
|
160
|
+
}> & {
|
161
|
+
default: () => {
|
162
|
+
[key: string]: any;
|
163
|
+
};
|
164
|
+
} & {
|
165
|
+
default: () => {
|
166
|
+
[key: string]: any;
|
167
|
+
};
|
168
|
+
};
|
169
|
+
scrollXName: import("vue-types").VueTypeValidableDef<string> & {
|
170
|
+
default: string;
|
171
|
+
} & {
|
172
|
+
default: string;
|
173
|
+
};
|
174
|
+
scrollYName: import("vue-types").VueTypeValidableDef<string> & {
|
175
|
+
default: string;
|
176
|
+
} & {
|
177
|
+
default: string;
|
178
|
+
};
|
179
|
+
groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
|
180
|
+
default: number;
|
181
|
+
} & {
|
182
|
+
default: number;
|
183
|
+
};
|
184
|
+
preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
|
185
|
+
default: number;
|
186
|
+
} & {
|
187
|
+
default: number;
|
188
|
+
};
|
189
|
+
renderAs: import("vue-types").VueTypeValidableDef<string> & {
|
190
|
+
default: string;
|
191
|
+
} & {
|
192
|
+
default: string;
|
193
|
+
};
|
194
|
+
contentAs: import("vue-types").VueTypeValidableDef<string> & {
|
195
|
+
default: string;
|
196
|
+
} & {
|
197
|
+
default: string;
|
198
|
+
};
|
199
|
+
scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
|
200
|
+
default: number;
|
201
|
+
} & {
|
202
|
+
default: number;
|
203
|
+
};
|
204
|
+
scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
|
205
|
+
default: string;
|
206
|
+
} & {
|
207
|
+
default: string;
|
208
|
+
};
|
209
|
+
abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
|
210
|
+
default: string | number;
|
211
|
+
};
|
212
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
213
|
+
default: number;
|
214
|
+
} & {
|
215
|
+
default: number;
|
216
|
+
};
|
217
|
+
}>>, {
|
218
|
+
width: string | number;
|
219
|
+
height: string | number;
|
220
|
+
list: unknown[];
|
221
|
+
enabled: boolean;
|
222
|
+
lineHeight: any;
|
223
|
+
minHeight: number;
|
224
|
+
className: string | {
|
225
|
+
[key: string]: any;
|
226
|
+
};
|
227
|
+
contentClassName: string | {
|
228
|
+
[key: string]: any;
|
229
|
+
};
|
230
|
+
contentStyle: {
|
231
|
+
[key: string]: any;
|
232
|
+
};
|
233
|
+
scrollXName: string;
|
234
|
+
scrollYName: string;
|
235
|
+
groupItemCount: number;
|
236
|
+
preloadItemCount: number;
|
237
|
+
renderAs: string;
|
238
|
+
contentAs: string;
|
239
|
+
scrollOffsetTop: number;
|
240
|
+
scrollPosition: string;
|
241
|
+
abosuteHeight: string | number;
|
242
|
+
throttleDelay: number;
|
243
|
+
}>;
|
244
|
+
export default _default;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
|
2
|
+
.bk-virtual-render {
|
3
|
+
position: relative;
|
4
|
+
|
5
|
+
.bk-virtual-content,
|
6
|
+
&.bk-virtual-content {
|
7
|
+
position: absolute;
|
8
|
+
top: 0;
|
9
|
+
bottom: 0;
|
10
|
+
left: 0;
|
11
|
+
width: 100%;
|
12
|
+
height: 100%;
|
13
|
+
}
|
14
|
+
|
15
|
+
.bk-virtual-section {
|
16
|
+
width: 1px;
|
17
|
+
background: transparent;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
&.bk-scroll-x {
|
22
|
+
overflow-x: auto;
|
23
|
+
scrollbar-color: #a0a0a0 transparent;
|
24
|
+
scrollbar-width: thin;
|
25
|
+
|
26
|
+
&::-webkit-scrollbar {
|
27
|
+
height: 8px;
|
28
|
+
background-color: transparent;
|
29
|
+
}
|
30
|
+
|
31
|
+
&::-webkit-scrollbar-thumb {
|
32
|
+
background-color: #a0a0a0;
|
33
|
+
border-radius: 8px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
&.bk-scroll-y {
|
38
|
+
overflow-y: auto;
|
39
|
+
|
40
|
+
&::-webkit-scrollbar {
|
41
|
+
width: 6px;
|
42
|
+
background-color: transparent;
|
43
|
+
}
|
44
|
+
|
45
|
+
&::-webkit-scrollbar-thumb {
|
46
|
+
background-color: #dcdee5;
|
47
|
+
border-radius: 6px;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
.bk-virtual-render {
|
2
|
+
position: relative;
|
3
|
+
}
|
4
|
+
.bk-virtual-render .bk-virtual-content,
|
5
|
+
.bk-virtual-render.bk-virtual-content {
|
6
|
+
position: absolute;
|
7
|
+
top: 0;
|
8
|
+
bottom: 0;
|
9
|
+
left: 0;
|
10
|
+
width: 100%;
|
11
|
+
height: 100%;
|
12
|
+
}
|
13
|
+
.bk-virtual-render .bk-virtual-section {
|
14
|
+
width: 1px;
|
15
|
+
background: transparent;
|
16
|
+
}
|
17
|
+
.bk-virtual-render.bk-scroll-x {
|
18
|
+
overflow-x: auto;
|
19
|
+
scrollbar-color: #a0a0a0 transparent;
|
20
|
+
scrollbar-width: thin;
|
21
|
+
}
|
22
|
+
.bk-virtual-render.bk-scroll-x::-webkit-scrollbar {
|
23
|
+
height: 8px;
|
24
|
+
background-color: transparent;
|
25
|
+
}
|
26
|
+
.bk-virtual-render.bk-scroll-x::-webkit-scrollbar-thumb {
|
27
|
+
background-color: #a0a0a0;
|
28
|
+
border-radius: 8px;
|
29
|
+
}
|
30
|
+
.bk-virtual-render.bk-scroll-y {
|
31
|
+
overflow-y: auto;
|
32
|
+
}
|
33
|
+
.bk-virtual-render.bk-scroll-y::-webkit-scrollbar {
|
34
|
+
width: 6px;
|
35
|
+
background-color: transparent;
|
36
|
+
}
|
37
|
+
.bk-virtual-render.bk-scroll-y::-webkit-scrollbar-thumb {
|
38
|
+
background-color: #dcdee5;
|
39
|
+
border-radius: 6px;
|
40
|
+
}
|
package/package.json
CHANGED
@@ -1,107 +1,117 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.1-beta.
|
3
|
+
"version": "0.0.1-beta.30",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*"
|
7
7
|
]
|
8
8
|
},
|
9
9
|
"scripts": {
|
10
|
-
"
|
11
|
-
"lint": "eslint ./packages ./site --ext .js,.ts,.tsx",
|
10
|
+
"lint": "eslint --ext .js,.ts,.tsx,.vue ./packages ./site ",
|
12
11
|
"lint:style": "stylelint --fix ./packages/**/*.{css,less} --custom-syntax",
|
13
|
-
"lint:fix": "eslint --fix ./packages ./site ./scripts --ext .js,.ts,.tsx",
|
12
|
+
"lint:fix": "eslint --fix ./packages ./site ./scripts --ext .js,.ts,.tsx,.vue",
|
14
13
|
"test:unit": "jest --passWithNoTests",
|
15
14
|
"dev": "vite serve site",
|
16
15
|
"build": "yarn build:library && yarn build:component",
|
17
|
-
"build:site": "vite build site",
|
16
|
+
"build:site": "vite build site --mode development",
|
18
17
|
"build:library": "rimraf dist && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/build-library.ts",
|
19
18
|
"build:component": "rimraf lib && npm run generate:declation && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/build-component/index.ts",
|
20
19
|
"compile:dev": "node --inspect-brk ./node_modules/.bin/ts-node --project=./scripts/tsconfig.scripts.json ./scripts/build-component/index.ts",
|
21
20
|
"cz": "git-cz",
|
22
21
|
"generate:icon": "lerna run --scope @bkui-vue/icon build",
|
23
22
|
"release": "yarn build && rimraf package.json.bak && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/release.ts",
|
24
|
-
"changelog": "conventional-changelog -c changelog.config.js -p angular -i CHANGELOG.md -s -l",
|
23
|
+
"changelog": "conventional-changelog -c .changelog.config.js -p angular -i CHANGELOG.md -s -l",
|
25
24
|
"prepare": "husky install",
|
26
25
|
"generate:declation": "rimraf lib && tsc -p ./scripts/tsconfig.declaration.json"
|
27
26
|
},
|
28
27
|
"devDependencies": {
|
29
|
-
"@babel/core": "~7.
|
30
|
-
"@babel/eslint-parser": "~7.
|
31
|
-
"@babel/plugin-transform-runtime": "~7.
|
32
|
-
"@babel/plugin-transform-typescript": "~7.
|
33
|
-
"@babel/preset-env": "~7.
|
34
|
-
"@babel/preset-typescript": "~7.
|
35
|
-
"@commitlint/cli": "~
|
36
|
-
"@commitlint/config-conventional": "~
|
28
|
+
"@babel/core": "~7.17.9",
|
29
|
+
"@babel/eslint-parser": "~7.17.0",
|
30
|
+
"@babel/plugin-transform-runtime": "~7.17.0",
|
31
|
+
"@babel/plugin-transform-typescript": "~7.16.8",
|
32
|
+
"@babel/preset-env": "~7.16.11",
|
33
|
+
"@babel/preset-typescript": "~7.16.7",
|
34
|
+
"@commitlint/cli": "~16.2.3",
|
35
|
+
"@commitlint/config-conventional": "~16.2.1",
|
37
36
|
"@rollup/plugin-babel": "~5.3.0",
|
38
|
-
"@rollup/plugin-commonjs": "~
|
37
|
+
"@rollup/plugin-commonjs": "~21.0.3",
|
39
38
|
"@rollup/plugin-json": "~4.1.0",
|
40
|
-
"@rollup/plugin-node-resolve": "~13.0
|
41
|
-
"@types/jest": "~
|
42
|
-
"@
|
43
|
-
"@typescript-eslint/
|
44
|
-
"@
|
45
|
-
"@vitejs/plugin-vue
|
46
|
-
"@
|
39
|
+
"@rollup/plugin-node-resolve": "~13.2.0",
|
40
|
+
"@types/jest": "~27.4.1",
|
41
|
+
"@types/node": "~17.0.23",
|
42
|
+
"@typescript-eslint/eslint-plugin": "~5.19.0",
|
43
|
+
"@typescript-eslint/parser": "~5.19.0",
|
44
|
+
"@vitejs/plugin-vue": "~2.3.1",
|
45
|
+
"@vitejs/plugin-vue-jsx": "~1.3.9",
|
46
|
+
"@vue/babel-plugin-jsx": "~1.1.1",
|
47
47
|
"@vue/babel-preset-jsx": "~1.2.4",
|
48
|
-
"@vue/compiler-sfc": "~3.
|
49
|
-
"@vue/component-compiler-utils": "~3.
|
48
|
+
"@vue/compiler-sfc": "~3.2.31",
|
49
|
+
"@vue/component-compiler-utils": "~3.3.0",
|
50
50
|
"@vue/eslint-config-standard": "~6.1.0",
|
51
|
-
"@vue/eslint-config-typescript": "~
|
51
|
+
"@vue/eslint-config-typescript": "~10.0.0",
|
52
52
|
"@vue/test-utils": "~2.0.0-rc.12",
|
53
|
+
"@vue/vue3-jest": "~27.0.0-alpha.4",
|
54
|
+
"acorn": "~8.7.0",
|
53
55
|
"acorn-jsx": "~5.3.1",
|
54
|
-
"babel-jest": "~27.
|
56
|
+
"babel-jest": "~27.5.1",
|
55
57
|
"chalk": "~4.1.2",
|
58
|
+
"clipboard": "~2.0.8",
|
56
59
|
"commitizen": "~4.2.4",
|
57
|
-
"conventional-changelog-cli": "~2.
|
60
|
+
"conventional-changelog-cli": "~2.2.2",
|
58
61
|
"cross-env": "~7.0.3",
|
59
62
|
"cz-lerna-changelog": "~2.0.3",
|
60
|
-
"eslint": "~
|
61
|
-
"eslint-config-tencent": "~1.0.
|
62
|
-
"eslint-plugin-codecc": "~0.0
|
63
|
-
"eslint-plugin-import": "~2.
|
63
|
+
"eslint": "~8.13.0",
|
64
|
+
"eslint-config-tencent": "~1.0.4",
|
65
|
+
"eslint-plugin-codecc": "~0.1.0",
|
66
|
+
"eslint-plugin-import": "~2.26.0",
|
64
67
|
"eslint-plugin-node": "~11.1.0",
|
65
|
-
"eslint-plugin-
|
66
|
-
"eslint-plugin-
|
68
|
+
"eslint-plugin-prettier": "~4.0.0",
|
69
|
+
"eslint-plugin-promise": "~6.0.0",
|
70
|
+
"eslint-plugin-simple-import-sort": "~7.0.0",
|
71
|
+
"eslint-plugin-vue": "~8.6.0",
|
72
|
+
"highlight.js": "~11.5.1",
|
67
73
|
"husky": "~7.0.1",
|
68
|
-
"jest": "~27.
|
74
|
+
"jest": "~27.5.1",
|
69
75
|
"jest-transform-stub": "~2.0.0",
|
70
76
|
"lerna": "~4.0.0",
|
71
77
|
"less": "~4.1.1",
|
72
|
-
"lint-staged": "~
|
78
|
+
"lint-staged": "~12.3.7",
|
79
|
+
"markdown-it-container": "~3.0.0",
|
73
80
|
"normalize-wheel": "~1.0.1",
|
74
81
|
"ora": "~5.4.1",
|
75
|
-
"plop": "~
|
76
|
-
"postcss": "~8.
|
77
|
-
"postcss-less": "~
|
82
|
+
"plop": "~3.0.5",
|
83
|
+
"postcss": "~8.4.12",
|
84
|
+
"postcss-less": "~6.0.0",
|
85
|
+
"prettier": "~2.6.2",
|
86
|
+
"prismjs": "~1.27.0",
|
78
87
|
"rimraf": "~3.0.2",
|
79
|
-
"rollup": "~2.
|
88
|
+
"rollup": "~2.70.1",
|
80
89
|
"rollup-plugin-progress": "~1.1.2",
|
81
90
|
"rollup-plugin-svg": "~2.0.0",
|
82
91
|
"rollup-plugin-terser": "~7.0.2",
|
83
|
-
"rollup-plugin-typescript2": "~0.
|
84
|
-
"stylelint": "~
|
85
|
-
"stylelint-order": "~
|
86
|
-
"stylelint-scss": "~
|
87
|
-
"ts-jest": "~27.
|
88
|
-
"ts-node": "~10.
|
89
|
-
"
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"vue
|
94
|
-
"vue-
|
92
|
+
"rollup-plugin-typescript2": "~0.31.2",
|
93
|
+
"stylelint": "~14.6.1",
|
94
|
+
"stylelint-order": "~5.0.0",
|
95
|
+
"stylelint-scss": "~4.2.0",
|
96
|
+
"ts-jest": "~27.1.4",
|
97
|
+
"ts-node": "~10.7.0",
|
98
|
+
"ttypescript": "~1.5.12",
|
99
|
+
"typescript": "~4.6.3",
|
100
|
+
"vite": "~2.9.1",
|
101
|
+
"vite-plugin-md": "~0.12.4",
|
102
|
+
"vue": "^3.2.0",
|
103
|
+
"vue-router": "~4.0.14",
|
104
|
+
"vue-types": "~4.1.1"
|
95
105
|
},
|
96
106
|
"peerDependencies": {
|
97
|
-
"vue": "3.2.
|
98
|
-
"vue-types": "~4.0.1"
|
107
|
+
"vue": "^3.2.0"
|
99
108
|
},
|
100
109
|
"main": "dist/bkui-vue.umd.js",
|
101
110
|
"module": "dist/bkui-vue.esm.js",
|
111
|
+
"typings": "./lib/index.d.ts",
|
102
112
|
"lint-staged": {
|
103
113
|
"*.css": "stylelint",
|
104
|
-
"*.less": "stylelint --fix --
|
114
|
+
"*.less": "stylelint --fix --customSyntax=postcss-less",
|
105
115
|
"*.{js,ts,tsx,vue}": [
|
106
116
|
"eslint --fix",
|
107
117
|
"git add ."
|
@@ -111,5 +121,12 @@
|
|
111
121
|
"commitizen": {
|
112
122
|
"path": "./node_modules/cz-lerna-changelog"
|
113
123
|
}
|
124
|
+
},
|
125
|
+
"dependencies": {
|
126
|
+
"@popperjs/core": "~2.11.5",
|
127
|
+
"date-fns": "~2.28.0",
|
128
|
+
"js-calendar": "~1.2.3",
|
129
|
+
"lodash": "~4.17.21",
|
130
|
+
"vue-types": "~4.1.1"
|
114
131
|
}
|
115
132
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},u={exports:{}},a={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(a),function(e){var t=a.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(u);var l={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var s={exports:{}};!function(e){var t=a.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var p={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(p),function(e){var t=u.exports,o=l.exports,r=s.exports,n=p.exports;e.exports=function(e){return t(e)||o(e)||r(e)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var i=r(n.exports),c=Symbol("CheckboxGroup"),d={name:o.PropTypes.string.def(""),modelValue:o.PropTypes.array,disabled:o.PropTypes.bool},f=t.defineComponent({name:"BkCheckboxGroup",props:d,emits:["change","update:modelValue"],setup:function(e,o){var r=t.reactive({localValue:e.modelValue?i(e.modelValue):[]});t.watch((function(){return e.modelValue}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.localValue=i(e)}));var n=[];return t.provide(c,{name:"BkCheckboxGroup",props:e,state:r,register:function(e){n.push(e)},unregister:function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},handleChange:function(t,n){var u=i(r.localValue);u=t?[].concat(i(r.localValue),[n]):r.localValue.reduce((function(e,t){return t!==n&&e.push(t),e}),[]),e.modelValue||(r.localValue=u),o.emit("update:modelValue",u),o.emit("change",u)}}),t.onMounted((function(){n.forEach((function(e){(e.isChecked||e.checked)&&r.localValue.push(e.label)}))})),{}},render:function(){return t.createVNode("div",{class:"bk-checkbox-group"},[this.$slots.default()])}});f.install=function(e){e.component(f.name,f)},e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,r){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},s={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var a={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,s=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(s.push(o.value),!t||s.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0}(a);var l={exports:{}},u={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.default=e.exports,e.exports.__esModule=!0}(u),function(e){var t=u.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var i={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(i),function(e){var t=s.exports,r=a.exports,o=l.exports,n=i.exports;e.exports=function(e,s){return t(e)||r(e,s)||o(e,s)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var d=o(n.exports),p=Symbol("RadioGroup");var c={name:r.PropTypes.string.def(""),label:r.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:r.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:r.PropTypes.bool.def(!1),disabled:r.PropTypes.bool.def(!1),size:r.PropTypes.size},f=t.defineComponent({name:"BkRadioButton",props:c,emits:["change","update:modelValue"],setup:function(){var e=function(){var e=t.ref(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),o=d(e,2),n=o[0],s=o[1],a=s.blur,l=s.focus,u=function(){var e=t.getCurrentInstance(),o=e.props,n=e.emit,s=t.inject(p,r.EMPTY_OBJ),a=!r.isEmptyObj(s),l=t.reactive({isLocalChecked:o.checked}),u=t.computed((function(){return a?s.state.localValue===o.label:""!==o.modelValue?o.modelValue===o.label:l.isLocalChecked}));l.isLocalChecked=u.value;var i=t.computed((function(){return!(!a||!s.props.disabled)||o.disabled}));return{name:t.computed((function(){return a&&s.props.name?s.props.name:o.name})),isCheck:u,isDisabled:i,handlerChange:function(){i.value||(n("change",o.label),n("update:modelValue",o.label),a&&s.handleChange(o.label))}}}();return{isFocus:n,realName:u.name,isCheck:u.isCheck,isDisabled:u.isDisabled,handleBlur:a,handleFocus:l,handlerChange:u.handlerChange}},render:function(){var e=r.classes({"bk-radio-button":!0,"is-focus":this.isFocus,"is-disabled":this.isDisabled,"is-checked":this.isCheck});return t.createVNode("label",{class:e,tabindex:"0"},[t.createVNode("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",name:this.realName,value:this.label,checked:this.isCheck,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handlerChange},null),t.createVNode("div",{class:"bk-radio-button-text"},[this.$slots.default?this.$slots.default():this.label])])}});f.install=function(e){e.component(f.name,f)},e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/radio-group/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,o,n){"use strict";var t=Symbol("RadioGroup"),u={name:n.PropTypes.string.def(""),modelValue:n.PropTypes.oneOfType([String,Number,Boolean]),disabled:n.PropTypes.bool},a=o.defineComponent({name:"BkRadioGroup",props:u,emits:["change","update:modelValue"],setup:function(e,n){var u=o.reactive({localValue:e.modelValue});o.watch((function(){return e.modelValue}),(function(){u.localValue=e.modelValue}));return o.provide(t,{props:e,state:u,handleChange:function(e){n.emit("update:modelValue",e),n.emit("change",e)}}),{}},render:function(){return o.createVNode("div",{class:"bk-radio-group"},[this.$slots.default()])}});a.install=function(e){e.component(a.name,a)},e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/table/common.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Ref } from 'vue';
|
2
|
-
import { IAnyObject, ITable } from './type';
|
3
|
-
export default class TableLayout {
|
4
|
-
table: ITable;
|
5
|
-
showHeader: boolean;
|
6
|
-
headerHeight: Ref<null | number>;
|
7
|
-
bodyWidth: Ref<null | number>;
|
8
|
-
bodyHeight: Ref<null | number>;
|
9
|
-
scrollY: Ref<boolean>;
|
10
|
-
gutterWidth: number;
|
11
|
-
footerHeight: Ref<null | number>;
|
12
|
-
paginationHeight: Ref<null | number>;
|
13
|
-
constructor(opts: IAnyObject);
|
14
|
-
}
|
package/lib/table/type.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { ComponentInternalInstance } from 'vue';
|
2
|
-
export interface IAnyObject {
|
3
|
-
[key: string]: any;
|
4
|
-
}
|
5
|
-
export interface ITableRefs {
|
6
|
-
headerWrapper: HTMLElement;
|
7
|
-
[key: string]: unknown;
|
8
|
-
}
|
9
|
-
export interface ITable extends ComponentInternalInstance {
|
10
|
-
$ready: boolean;
|
11
|
-
refs: ITableRefs;
|
12
|
-
}
|