bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
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 +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
@@ -1,13 +1,12 @@
|
|
1
|
-
import { ITableColumn } from './components/table-column';
|
2
1
|
import { SORT_OPTION } from './const';
|
3
|
-
import {
|
2
|
+
import { TablePropTypes } from './props';
|
4
3
|
/**
|
5
4
|
* 渲染column settings
|
6
5
|
* @param props: TablePropTypes
|
7
6
|
* @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
|
8
7
|
*/
|
9
|
-
declare const _default: (props: TablePropTypes
|
10
|
-
initColumns: (
|
8
|
+
declare const _default: (props: TablePropTypes) => {
|
9
|
+
initColumns: (tableInstance: any) => void;
|
11
10
|
getColumns: () => {
|
12
11
|
label: import("./props").LabelFunctionString;
|
13
12
|
field?: import("./props").LabelFunctionString;
|
@@ -17,8 +16,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
17
16
|
minWidth?: string | number;
|
18
17
|
columnKey?: string;
|
19
18
|
showOverflowTooltip?: boolean | {
|
20
|
-
content: string |
|
21
|
-
disabled?: (col: Column, row: any) => boolean;
|
19
|
+
content: string | ((col: import("./props").Column, row: any) => string);
|
20
|
+
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
22
21
|
watchCellResize?: boolean;
|
23
22
|
mode?: "auto" | "static";
|
24
23
|
popoverOption?: any;
|
@@ -44,53 +43,13 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
44
43
|
height?: number;
|
45
44
|
maxHeight?: number;
|
46
45
|
};
|
47
|
-
colspan?: (
|
48
|
-
|
49
|
-
colIndex: any;
|
50
|
-
row: any;
|
51
|
-
rowIndex: any;
|
52
|
-
}) => number) | {
|
53
|
-
toString: (radix?: number) => string;
|
54
|
-
toFixed: (fractionDigits?: number) => string;
|
55
|
-
toExponential: (fractionDigits?: number) => string;
|
56
|
-
toPrecision: (precision?: number) => string;
|
57
|
-
valueOf: () => number;
|
58
|
-
toLocaleString: {
|
59
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
60
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
61
|
-
};
|
62
|
-
};
|
63
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
64
|
-
column: any;
|
65
|
-
colIndex: any;
|
66
|
-
row: any;
|
67
|
-
rowIndex: any;
|
68
|
-
}) => number) | {
|
69
|
-
toString: (radix?: number) => string;
|
70
|
-
toFixed: (fractionDigits?: number) => string;
|
71
|
-
toExponential: (fractionDigits?: number) => string;
|
72
|
-
toPrecision: (precision?: number) => string;
|
73
|
-
valueOf: () => number;
|
74
|
-
toLocaleString: {
|
75
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
76
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
77
|
-
};
|
78
|
-
};
|
46
|
+
colspan?: import("./props").SpanFunctionString;
|
47
|
+
rowspan?: import("./props").SpanFunctionString;
|
79
48
|
textAlign?: string;
|
80
49
|
className?: import("./props").RowClassFunctionString;
|
81
50
|
align?: string;
|
82
51
|
prop?: import("./props").LabelFunctionString;
|
83
|
-
index?:
|
84
|
-
toString: (radix?: number) => string;
|
85
|
-
toFixed: (fractionDigits?: number) => string;
|
86
|
-
toExponential: (fractionDigits?: number) => string;
|
87
|
-
toPrecision: (precision?: number) => string;
|
88
|
-
valueOf: () => number;
|
89
|
-
toLocaleString: {
|
90
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
91
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
92
|
-
};
|
93
|
-
};
|
52
|
+
index?: number;
|
94
53
|
explain?: boolean | {
|
95
54
|
content: import("./props").LabelFunctionString;
|
96
55
|
head: import("./props").LabelFunctionString;
|
@@ -105,8 +64,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
105
64
|
minWidth?: string | number;
|
106
65
|
columnKey?: string;
|
107
66
|
showOverflowTooltip?: boolean | {
|
108
|
-
content: string |
|
109
|
-
disabled?: (col: Column, row: any) => boolean;
|
67
|
+
content: string | ((col: import("./props").Column, row: any) => string);
|
68
|
+
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
110
69
|
watchCellResize?: boolean;
|
111
70
|
mode?: "auto" | "static";
|
112
71
|
popoverOption?: any;
|
@@ -132,53 +91,13 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
132
91
|
height?: number;
|
133
92
|
maxHeight?: number;
|
134
93
|
};
|
135
|
-
colspan?: (
|
136
|
-
|
137
|
-
colIndex: any;
|
138
|
-
row: any;
|
139
|
-
rowIndex: any;
|
140
|
-
}) => number) | {
|
141
|
-
toString: (radix?: number) => string;
|
142
|
-
toFixed: (fractionDigits?: number) => string;
|
143
|
-
toExponential: (fractionDigits?: number) => string;
|
144
|
-
toPrecision: (precision?: number) => string;
|
145
|
-
valueOf: () => number;
|
146
|
-
toLocaleString: {
|
147
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
148
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
149
|
-
};
|
150
|
-
};
|
151
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
152
|
-
column: any;
|
153
|
-
colIndex: any;
|
154
|
-
row: any;
|
155
|
-
rowIndex: any;
|
156
|
-
}) => number) | {
|
157
|
-
toString: (radix?: number) => string;
|
158
|
-
toFixed: (fractionDigits?: number) => string;
|
159
|
-
toExponential: (fractionDigits?: number) => string;
|
160
|
-
toPrecision: (precision?: number) => string;
|
161
|
-
valueOf: () => number;
|
162
|
-
toLocaleString: {
|
163
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
164
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
165
|
-
};
|
166
|
-
};
|
94
|
+
colspan?: import("./props").SpanFunctionString;
|
95
|
+
rowspan?: import("./props").SpanFunctionString;
|
167
96
|
textAlign?: string;
|
168
97
|
className?: import("./props").RowClassFunctionString;
|
169
98
|
align?: string;
|
170
99
|
prop?: import("./props").LabelFunctionString;
|
171
|
-
index?:
|
172
|
-
toString: (radix?: number) => string;
|
173
|
-
toFixed: (fractionDigits?: number) => string;
|
174
|
-
toExponential: (fractionDigits?: number) => string;
|
175
|
-
toPrecision: (precision?: number) => string;
|
176
|
-
valueOf: () => number;
|
177
|
-
toLocaleString: {
|
178
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
179
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
180
|
-
};
|
181
|
-
};
|
100
|
+
index?: number;
|
182
101
|
explain?: boolean | {
|
183
102
|
content: import("./props").LabelFunctionString;
|
184
103
|
head: import("./props").LabelFunctionString;
|
@@ -193,8 +112,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
193
112
|
minWidth?: string | number;
|
194
113
|
columnKey?: string;
|
195
114
|
showOverflowTooltip?: boolean | {
|
196
|
-
content: string |
|
197
|
-
disabled?: (col: Column, row: any) => boolean;
|
115
|
+
content: string | ((col: import("./props").Column, row: any) => string);
|
116
|
+
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
198
117
|
watchCellResize?: boolean;
|
199
118
|
mode?: "auto" | "static";
|
200
119
|
popoverOption?: any;
|
@@ -220,53 +139,13 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
220
139
|
height?: number;
|
221
140
|
maxHeight?: number;
|
222
141
|
};
|
223
|
-
colspan?: (
|
224
|
-
|
225
|
-
colIndex: any;
|
226
|
-
row: any;
|
227
|
-
rowIndex: any;
|
228
|
-
}) => number) | {
|
229
|
-
toString: (radix?: number) => string;
|
230
|
-
toFixed: (fractionDigits?: number) => string;
|
231
|
-
toExponential: (fractionDigits?: number) => string;
|
232
|
-
toPrecision: (precision?: number) => string;
|
233
|
-
valueOf: () => number;
|
234
|
-
toLocaleString: {
|
235
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
236
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
237
|
-
};
|
238
|
-
};
|
239
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
240
|
-
column: any;
|
241
|
-
colIndex: any;
|
242
|
-
row: any;
|
243
|
-
rowIndex: any;
|
244
|
-
}) => number) | {
|
245
|
-
toString: (radix?: number) => string;
|
246
|
-
toFixed: (fractionDigits?: number) => string;
|
247
|
-
toExponential: (fractionDigits?: number) => string;
|
248
|
-
toPrecision: (precision?: number) => string;
|
249
|
-
valueOf: () => number;
|
250
|
-
toLocaleString: {
|
251
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
252
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
253
|
-
};
|
254
|
-
};
|
142
|
+
colspan?: import("./props").SpanFunctionString;
|
143
|
+
rowspan?: import("./props").SpanFunctionString;
|
255
144
|
textAlign?: string;
|
256
145
|
className?: import("./props").RowClassFunctionString;
|
257
146
|
align?: string;
|
258
147
|
prop?: import("./props").LabelFunctionString;
|
259
|
-
index?:
|
260
|
-
toString: (radix?: number) => string;
|
261
|
-
toFixed: (fractionDigits?: number) => string;
|
262
|
-
toExponential: (fractionDigits?: number) => string;
|
263
|
-
toPrecision: (precision?: number) => string;
|
264
|
-
valueOf: () => number;
|
265
|
-
toLocaleString: {
|
266
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
267
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
268
|
-
};
|
269
|
-
};
|
148
|
+
index?: number;
|
270
149
|
explain?: boolean | {
|
271
150
|
content: import("./props").LabelFunctionString;
|
272
151
|
head: import("./props").LabelFunctionString;
|
@@ -9,7 +9,7 @@ import { ITableResponse } from './use-attributes';
|
|
9
9
|
* @param TableSchema 组件内部定义的响应式对象
|
10
10
|
* @param pageData 当前页数据
|
11
11
|
*/
|
12
|
-
export declare const useClass: (props: TablePropTypes,
|
12
|
+
export declare const useClass: (props: TablePropTypes, _targetColumns: ITableColumn[], root?: any, TableSchema?: ITableResponse, pageData?: any[]) => {
|
13
13
|
tableClass: import("vue").ComputedRef<string>;
|
14
14
|
headClass: string;
|
15
15
|
contentClass: {
|
@@ -23,10 +23,10 @@ export declare const useClass: (props: TablePropTypes, targetColumns: ITableColu
|
|
23
23
|
height: string;
|
24
24
|
}>;
|
25
25
|
contentStyle: {
|
26
|
-
display:
|
27
|
-
minHeight:
|
28
|
-
height:
|
29
|
-
maxHeight:
|
26
|
+
display: boolean | string;
|
27
|
+
minHeight: number | string;
|
28
|
+
height: number | string;
|
29
|
+
maxHeight: number | string;
|
30
30
|
};
|
31
31
|
headStyle: import("vue").ComputedRef<{
|
32
32
|
'--row-height': string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SetupContext } from 'vue';
|
2
2
|
import { TablePropTypes } from './props';
|
3
3
|
import { ITableResponse } from './use-attributes';
|
4
|
-
declare const _default: (props: TablePropTypes, context: SetupContext<any>, tableResp: ITableResponse,
|
4
|
+
declare const _default: (props: TablePropTypes, context: SetupContext<any>, tableResp: ITableResponse, head: any, root: any, resetTableHeight: any) => {
|
5
5
|
renderTableHeadSchema: () => (string | JSX.Element)[];
|
6
6
|
renderTableBodySchema: (rows: any[]) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
7
7
|
[key: string]: any;
|
package/lib/table/utils.d.ts
CHANGED
@@ -19,7 +19,7 @@ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
|
|
19
19
|
* @returns
|
20
20
|
*/
|
21
21
|
export declare const resolveNumberToNumArray: (prop: number) => number[];
|
22
|
-
export declare const resolveWidth: (propWidth:
|
22
|
+
export declare const resolveWidth: (propWidth: number | string) => string | number;
|
23
23
|
/**
|
24
24
|
* 解析可为数字或者字符串设置的样式配置
|
25
25
|
* @param val 配置值
|
@@ -27,7 +27,7 @@ export declare const resolveWidth: (propWidth: string | number) => string | numb
|
|
27
27
|
* @param offset 偏移量
|
28
28
|
* @returns 标准化px string
|
29
29
|
*/
|
30
|
-
export declare const resolveNumberOrStringToPix: (val:
|
30
|
+
export declare const resolveNumberOrStringToPix: (val: number | string, defaultValue?: number | string, offset?: any) => string | number;
|
31
31
|
/**
|
32
32
|
* 格式化Border配置为标准Class
|
33
33
|
* @param val
|
@@ -62,7 +62,7 @@ export declare const observerResize: (root: HTMLElement, callbackFn: () => void,
|
|
62
62
|
* @param val
|
63
63
|
* @returns
|
64
64
|
*/
|
65
|
-
export declare const isPercentPixOrNumber: (val:
|
65
|
+
export declare const isPercentPixOrNumber: (val: number | string) => boolean;
|
66
66
|
/**
|
67
67
|
* Format Table Head Option
|
68
68
|
* @param props
|
@@ -80,7 +80,7 @@ export declare const resolveHeadConfig: (props: TablePropTypes) => {
|
|
80
80
|
* @param index 当前行Index
|
81
81
|
* @returns
|
82
82
|
*/
|
83
|
-
export declare const getRowText: (row: any, key: string, format?:
|
83
|
+
export declare const getRowText: (row: any, key: string, format?: (() => boolean | number | string)[] | string[]) => any;
|
84
84
|
/**
|
85
85
|
* 获取当前行指定列的值
|
86
86
|
* @param row 当前行
|
@@ -94,10 +94,10 @@ export declare const getRowValue: (row: any, key: string) => any;
|
|
94
94
|
* @param args 如果是function参数
|
95
95
|
* @returns
|
96
96
|
*/
|
97
|
-
export declare const formatPropAsArray: (prop:
|
97
|
+
export declare const formatPropAsArray: (prop: (() => any) | object | string, args: any[]) => any;
|
98
98
|
export declare const isRenderScrollBottomLoading: (props: TablePropTypes) => boolean;
|
99
99
|
export declare const getRowKey: (item: any, props: TablePropTypes, index: number) => any;
|
100
|
-
export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) =>
|
100
|
+
export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) => unknown;
|
101
101
|
export declare const hasRootScrollY: (root: any, querySelector: string, offsetHeight?: number) => boolean;
|
102
102
|
export declare const getColumnClass: (column: Column, colIndex?: number, uuid?: string) => {
|
103
103
|
column_fixed: boolean;
|