bkui-vue 0.0.2-beta.8 → 0.0.2-beta.80
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 +70 -62
- package/dist/index.esm.js +15668 -15161
- package/dist/index.umd.js +73 -65
- 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.d.ts +1 -1
- package/lib/affix/index.d.ts +4 -4
- package/lib/affix/index.js +1 -1
- package/lib/alert/alert.css +7 -0
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +16 -6
- package/lib/alert/alert.variable.css +7 -0
- package/lib/alert/index.d.ts +10 -10
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.d.ts +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -8
- package/lib/backtop/backtop.less +3 -1
- package/lib/backtop/backtop.variable.css +11 -11
- package/lib/backtop/index.d.ts +1 -1
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/index.d.ts +7 -7
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +4 -4
- package/lib/breadcrumb/breadcrumb.variable.css +4 -4
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +20 -0
- package/lib/button/button.less +105 -94
- package/lib/button/button.variable.css +20 -0
- package/lib/button/index.d.ts +2 -2
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +4 -4
- package/lib/card/card.d.ts +1 -1
- package/lib/card/card.variable.css +4 -4
- package/lib/card/index.d.ts +4 -4
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader.css +4 -4
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/cascader.variable.css +4 -4
- package/lib/cascader/index.d.ts +5 -2
- package/lib/cascader/index.js +1 -1
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +6 -3
- package/lib/checkbox/checkbox.d.ts +4 -4
- package/lib/checkbox/index.d.ts +22 -19
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/index.d.ts +1 -1
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +1 -1
- package/lib/collapse-transition/index.d.ts +128 -2
- package/lib/collapse-transition/index.js +1 -1
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/components/recommend-colors.d.ts +16 -0
- package/lib/color-picker/index.d.ts +19 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/components.d.ts +1 -1
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/index.js +1 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/config-provider/use-global-config.d.ts +2 -0
- package/lib/config-provider/use-prefix.d.ts +2 -0
- package/lib/container/container.css +4 -4
- package/lib/container/container.variable.css +4 -4
- package/lib/container/index.d.ts +2 -2
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.d.ts +4 -2
- package/lib/date-picker/index.d.ts +15 -8
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/time-picker.d.ts +1 -1
- package/lib/dialog/dialog.css +2 -0
- package/lib/dialog/dialog.variable.css +2 -0
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +3 -2
- package/lib/dist.index.js +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +1 -1
- package/lib/dropdown/dropdown.css +1 -0
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/index.d.ts +2 -2
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +1 -1
- package/lib/hooks.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.d.ts +4 -0
- package/lib/icon/assistant.js +1 -0
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/info-box/info-box.css +2 -0
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +2 -0
- package/lib/input/index.d.ts +146 -50
- package/lib/input/index.js +2 -1
- package/lib/input/index.js.LICENSE.txt +1 -0
- package/lib/input/input.css +38 -10
- package/lib/input/input.d.ts +100 -11
- package/lib/input/input.less +53 -14
- package/lib/input/input.variable.css +38 -10
- package/lib/input/util.d.ts +6 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +2 -2
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +4 -4
- package/lib/loading/loading.variable.css +4 -4
- package/lib/locale/index.js +1 -1
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +4 -4
- package/lib/menu/menu.variable.css +4 -4
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +33 -9
- package/lib/message/message.less +78 -54
- package/lib/message/message.variable.css +33 -9
- package/lib/message/messageConstructor.d.ts +30 -8
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +2 -0
- package/lib/modal/modal.variable.css +2 -0
- package/lib/navigation/index.d.ts +4 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.d.ts +1 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +257 -1
- package/lib/overflow-title/index.d.ts +387 -2
- package/lib/overflow-title/index.js +1 -1
- package/lib/overflow-title/props.d.ts +129 -0
- package/lib/pagination/index.d.ts +2 -2
- package/lib/pagination/index.js +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/plugins/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +1 -1
- package/lib/pop-confirm/index.js +1 -1
- package/lib/popover/const.d.ts +22 -9
- package/lib/popover/content.d.ts +33 -0
- package/lib/popover/index.d.ts +154 -61
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +1 -0
- package/lib/popover/popover.d.ts +64 -23
- package/lib/popover/popover.less +3 -2
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +29 -4
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover2/index.d.ts +1 -1
- package/lib/popover2/index.js +1 -1
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +1 -1
- package/lib/process/index.d.ts +1 -1
- package/lib/process/index.js +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +4 -4
- package/lib/progress/progress.variable.css +4 -4
- package/lib/radio/index.d.ts +23 -23
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +4 -4
- package/lib/radio/radio-group.d.ts +4 -4
- package/lib/radio/radio.d.ts +4 -4
- package/lib/rate/index.d.ts +8 -4
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +2 -1
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +12 -0
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +12 -0
- package/lib/resize-layout/resize-layout.variable.css +12 -0
- package/lib/search-select/index.d.ts +62 -29
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/menu.d.ts +33 -2
- package/lib/search-select/search-select.css +37 -17
- package/lib/search-select/search-select.d.ts +23 -20
- package/lib/search-select/search-select.less +34 -11
- package/lib/search-select/search-select.variable.css +37 -17
- package/lib/search-select/selected.d.ts +5 -1
- package/lib/search-select/utils.d.ts +13 -5
- package/lib/select/common.d.ts +1 -0
- package/lib/select/index.d.ts +203 -84
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +11 -0
- package/lib/select/select.css +13 -5
- package/lib/select/select.d.ts +86 -37
- package/lib/select/select.less +11 -1
- package/lib/select/select.variable.css +37 -29
- package/lib/select/selectTagInput.d.ts +8 -5
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +3 -4
- package/lib/shared/pop-manager.d.ts +6 -2
- package/lib/shared/popover.d.ts +2 -2
- package/lib/shared/vue-types.d.ts +3 -2
- package/lib/sideslider/index.d.ts +1 -1
- package/lib/sideslider/index.js +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/index.js +1 -1
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +10 -6
- package/lib/styles/mixins/animate.variable.css +126 -4
- package/lib/styles/mixins/mixins.css +4 -4
- package/lib/styles/mixins/mixins.variable.css +4 -4
- package/lib/styles/mixins/popper.less +6 -5
- package/lib/swiper/index.d.ts +1 -1
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.css +0 -6
- package/lib/swiper/swiper.less +0 -8
- package/lib/swiper/swiper.variable.css +0 -6
- package/lib/switcher/index.d.ts +30 -16
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +4 -4
- package/lib/switcher/switcher.d.ts +74 -5
- package/lib/switcher/switcher.variable.css +4 -4
- package/lib/tab/index.d.ts +3 -3
- package/lib/tab/index.js +1 -1
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/components/table-cell.d.ts +22 -15
- package/lib/table/components/table-column.d.ts +155 -219
- package/lib/table/const.d.ts +40 -56
- package/lib/table/events.d.ts +180 -0
- package/lib/table/index.d.ts +747 -440
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +3 -0
- package/lib/table/plugins/head-filter.d.ts +3 -7
- package/lib/table/plugins/head-filter.less +3 -0
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.d.ts +3 -7
- package/lib/table/plugins/settings.d.ts +12 -26
- package/lib/table/plugins/use-column-resize.d.ts +30 -10
- package/lib/table/plugins/use-fixed-column.d.ts +10 -9
- package/lib/table/plugins/use-pagination.d.ts +7 -4
- package/lib/table/props.d.ts +220 -181
- package/lib/table/render.d.ts +12 -20
- package/lib/table/table.css +89 -6
- package/lib/table/table.d.ts +227 -104
- package/lib/table/table.less +79 -9
- package/lib/table/table.variable.css +89 -6
- package/lib/table/use-attributes.d.ts +55 -0
- package/lib/table/use-column.d.ts +177 -3
- package/lib/table/use-common.d.ts +1609 -76
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +30 -28
- package/lib/table-column/index.d.ts +240 -527
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +10 -10
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/index.d.ts +49 -13
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.css +9 -1
- package/lib/tag-input/tag-input.d.ts +46 -10
- package/lib/tag-input/tag-input.less +13 -4
- package/lib/tag-input/tag-input.variable.css +9 -1
- package/lib/tag-input/tag-props.d.ts +16 -4
- package/lib/time-picker/index.d.ts +4 -4
- package/lib/time-picker/index.js +1 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/index.js +1 -1
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +1 -1
- package/lib/tree/constant.d.ts +2 -2
- package/lib/tree/index.d.ts +49 -7
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +16 -2
- package/lib/tree/tree.d.ts +27 -2
- package/lib/tree/use-node-action.d.ts +5 -3
- package/lib/tree/use-node-attribute.d.ts +17 -8
- package/lib/tree/use-search.d.ts +2 -2
- package/lib/tree/use-tree-init.d.ts +1 -2
- package/lib/tree/util.d.ts +8 -3
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/upload.css +4 -4
- package/lib/upload/upload.variable.css +4 -4
- package/lib/virtual-render/index.d.ts +43 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/v-virtual-render.d.ts +19 -1
- package/lib/virtual-render/virtual-render.d.ts +25 -0
- package/lib/volar.components.d.ts +24 -24
- package/package.json +17 -16
package/lib/popover/popover.d.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
onAfterHidden: FunctionConstructor;
|
3
|
-
onAfterShow: FunctionConstructor;
|
4
2
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
5
3
|
default: boolean;
|
6
4
|
} & {
|
@@ -22,12 +20,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
20
|
height: import("vue-types").VueTypeDef<string | number> & {
|
23
21
|
default: string | number;
|
24
22
|
};
|
25
|
-
|
23
|
+
maxWidth: import("vue-types").VueTypeDef<string | number> & {
|
26
24
|
default: string | number;
|
27
25
|
};
|
28
|
-
|
26
|
+
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
29
27
|
default: string | number;
|
30
28
|
};
|
29
|
+
content: import("vue-types").VueTypeDef<string | number | HTMLElement | JSX.Element> & {
|
30
|
+
default: string | number | (() => HTMLElement) | (() => JSX.Element);
|
31
|
+
};
|
32
|
+
target: import("vue-types").VueTypeDef<string | HTMLElement | PointerEvent>;
|
31
33
|
allowHtml: import("vue-types").VueTypeValidableDef<boolean> & {
|
32
34
|
default: boolean;
|
33
35
|
} & {
|
@@ -113,32 +115,48 @@ declare const _default: import("vue").DefineComponent<{
|
|
113
115
|
} & {
|
114
116
|
default: string;
|
115
117
|
};
|
118
|
+
componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
|
119
|
+
default: number;
|
120
|
+
} & {
|
121
|
+
default: number;
|
122
|
+
};
|
123
|
+
forceClickoutside: import("vue-types").VueTypeValidableDef<boolean> & {
|
124
|
+
default: boolean;
|
125
|
+
} & {
|
126
|
+
default: boolean;
|
127
|
+
};
|
116
128
|
}, {
|
117
129
|
boundary: import("vue").Ref<any>;
|
118
130
|
arrow: boolean;
|
119
131
|
refDefaultReference: import("vue").Ref<any>;
|
120
132
|
refContent: import("vue").Ref<any>;
|
121
133
|
refArrow: import("vue").Ref<any>;
|
122
|
-
content: string | number;
|
134
|
+
content: string | number | HTMLElement | JSX.Element;
|
123
135
|
theme: string;
|
124
136
|
transBoundary: import("vue").ComputedRef<boolean>;
|
125
137
|
handleClickOutside: (_e: MouseEvent) => void;
|
126
|
-
updatePopover: (virtualEl?: any, props?: {}) => void;
|
138
|
+
updatePopover: (virtualEl?: any, props?: {}, callFn?: any) => void;
|
139
|
+
resetPopover: () => void;
|
127
140
|
hide: () => void;
|
128
141
|
show: () => void;
|
129
142
|
stopHide: () => void;
|
130
143
|
contentIsShow: import("vue").ComputedRef<boolean>;
|
131
144
|
renderContent: () => any;
|
145
|
+
localIsShow: import("vue").Ref<boolean>;
|
132
146
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
147
|
+
clickoutside: (_args: {
|
148
|
+
isShow: boolean;
|
149
|
+
event: MouseEvent;
|
150
|
+
}) => boolean;
|
151
|
+
contentMouseenter: (e: MouseEvent) => MouseEvent;
|
152
|
+
contentMouseleave: (e: MouseEvent) => MouseEvent;
|
153
|
+
afterHidden: (_args: {
|
154
|
+
isShow: boolean;
|
155
|
+
}) => boolean;
|
156
|
+
afterShow: (_args: {
|
157
|
+
isShow: boolean;
|
158
|
+
}) => boolean;
|
139
159
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
140
|
-
onAfterHidden: FunctionConstructor;
|
141
|
-
onAfterShow: FunctionConstructor;
|
142
160
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
143
161
|
default: boolean;
|
144
162
|
} & {
|
@@ -160,12 +178,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
160
178
|
height: import("vue-types").VueTypeDef<string | number> & {
|
161
179
|
default: string | number;
|
162
180
|
};
|
163
|
-
|
181
|
+
maxWidth: import("vue-types").VueTypeDef<string | number> & {
|
164
182
|
default: string | number;
|
165
183
|
};
|
166
|
-
|
184
|
+
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
167
185
|
default: string | number;
|
168
186
|
};
|
187
|
+
content: import("vue-types").VueTypeDef<string | number | HTMLElement | JSX.Element> & {
|
188
|
+
default: string | number | (() => HTMLElement) | (() => JSX.Element);
|
189
|
+
};
|
190
|
+
target: import("vue-types").VueTypeDef<string | HTMLElement | PointerEvent>;
|
169
191
|
allowHtml: import("vue-types").VueTypeValidableDef<boolean> & {
|
170
192
|
default: boolean;
|
171
193
|
} & {
|
@@ -251,23 +273,40 @@ declare const _default: import("vue").DefineComponent<{
|
|
251
273
|
} & {
|
252
274
|
default: string;
|
253
275
|
};
|
276
|
+
componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
|
277
|
+
default: number;
|
278
|
+
} & {
|
279
|
+
default: number;
|
280
|
+
};
|
281
|
+
forceClickoutside: import("vue-types").VueTypeValidableDef<boolean> & {
|
282
|
+
default: boolean;
|
283
|
+
} & {
|
284
|
+
default: boolean;
|
285
|
+
};
|
254
286
|
}>> & {
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
287
|
+
onClickoutside?: (_args: {
|
288
|
+
isShow: boolean;
|
289
|
+
event: MouseEvent;
|
290
|
+
}) => any;
|
291
|
+
onContentMouseenter?: (e: MouseEvent) => any;
|
292
|
+
onContentMouseleave?: (e: MouseEvent) => any;
|
293
|
+
onAfterHidden?: (_args: {
|
294
|
+
isShow: boolean;
|
295
|
+
}) => any;
|
296
|
+
onAfterShow?: (_args: {
|
297
|
+
isShow: boolean;
|
298
|
+
}) => any;
|
261
299
|
}, {
|
262
300
|
width: string | number;
|
263
301
|
height: string | number;
|
264
302
|
maxHeight: string | number;
|
303
|
+
maxWidth: string | number;
|
265
304
|
extCls: string;
|
266
305
|
arrow: boolean;
|
267
306
|
isShow: boolean;
|
268
307
|
always: boolean;
|
269
308
|
disabled: boolean;
|
270
|
-
content: string | number;
|
309
|
+
content: string | number | HTMLElement | JSX.Element;
|
271
310
|
allowHtml: boolean;
|
272
311
|
placement: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
273
312
|
theme: string;
|
@@ -287,5 +326,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
287
326
|
disableTransform: boolean;
|
288
327
|
modifiers: unknown[];
|
289
328
|
popoverDelay: number | number[];
|
329
|
+
componentEventDelay: number;
|
330
|
+
forceClickoutside: boolean;
|
290
331
|
}, {}>;
|
291
332
|
export default _default;
|
package/lib/popover/popover.less
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
&.@{bk-prefix}-pop2-content {
|
6
6
|
position: absolute;
|
7
7
|
display: none;
|
8
|
-
|
8
|
+
|
9
9
|
padding: 7px 14px;
|
10
10
|
|
11
11
|
font-size: 12px;
|
@@ -16,6 +16,7 @@
|
|
16
16
|
|
17
17
|
.@{bk-prefix}-pop2-arrow {
|
18
18
|
position: absolute;
|
19
|
+
z-index: -1;
|
19
20
|
width: 8px;
|
20
21
|
height: 8px;
|
21
22
|
background: #333;
|
@@ -32,4 +33,4 @@
|
|
32
33
|
}
|
33
34
|
}
|
34
35
|
}
|
35
|
-
}
|
36
|
+
}
|
package/lib/popover/props.d.ts
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const EventProps: {
|
3
|
+
onAfterHidden: () => void;
|
4
|
+
onAfterShow: () => void;
|
5
|
+
};
|
2
6
|
type IAxesOffsets = {
|
3
7
|
mainAxis?: number;
|
4
8
|
crossAxis?: number;
|
5
9
|
alignmentAxis?: number | null;
|
6
10
|
};
|
11
|
+
type IContent = string | number | JSX.Element | HTMLElement;
|
7
12
|
export declare const PopoverProps: {
|
8
|
-
onAfterHidden: FunctionConstructor;
|
9
|
-
onAfterShow: FunctionConstructor;
|
10
13
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
11
14
|
default: boolean;
|
12
15
|
} & {
|
@@ -28,12 +31,16 @@ export declare const PopoverProps: {
|
|
28
31
|
height: import("vue-types").VueTypeDef<string | number> & {
|
29
32
|
default: string | number;
|
30
33
|
};
|
31
|
-
|
34
|
+
maxWidth: import("vue-types").VueTypeDef<string | number> & {
|
32
35
|
default: string | number;
|
33
36
|
};
|
34
|
-
|
37
|
+
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
35
38
|
default: string | number;
|
36
39
|
};
|
40
|
+
content: import("vue-types").VueTypeDef<IContent> & {
|
41
|
+
default: string | number | (() => HTMLElement) | (() => JSX.Element);
|
42
|
+
};
|
43
|
+
target: import("vue-types").VueTypeDef<string | HTMLElement | PointerEvent>;
|
37
44
|
allowHtml: import("vue-types").VueTypeValidableDef<boolean> & {
|
38
45
|
default: boolean;
|
39
46
|
} & {
|
@@ -150,6 +157,24 @@ export declare const PopoverProps: {
|
|
150
157
|
} & {
|
151
158
|
default: string;
|
152
159
|
};
|
160
|
+
/**
|
161
|
+
* 自定义Content组件渲染,point-event延迟渲染时间
|
162
|
+
* 避免子组件point-event渲染时触发popover鼠标事件
|
163
|
+
* 如果设置为0,则不启用此设置
|
164
|
+
*/
|
165
|
+
componentEventDelay: import("vue-types").VueTypeValidableDef<number> & {
|
166
|
+
default: number;
|
167
|
+
} & {
|
168
|
+
default: number;
|
169
|
+
};
|
170
|
+
/**
|
171
|
+
* 或略其他判定条件,强制监听clickoutside & 执行hide
|
172
|
+
*/
|
173
|
+
forceClickoutside: import("vue-types").VueTypeValidableDef<boolean> & {
|
174
|
+
default: boolean;
|
175
|
+
} & {
|
176
|
+
default: boolean;
|
177
|
+
};
|
153
178
|
};
|
154
179
|
export type PopoverPropTypes = Readonly<ExtractPropTypes<typeof PopoverProps>>;
|
155
180
|
export {};
|
@@ -11,10 +11,10 @@ declare const _default: (props: PopoverPropTypes, ctx: any, { refReference, refC
|
|
11
11
|
showPopover: () => void;
|
12
12
|
hidePopover: () => void;
|
13
13
|
resolveTriggerEvents: () => (string | (() => void))[][] | {
|
14
|
-
content: (string | (() => void))[][];
|
14
|
+
content: (string | ((e: MouseEvent) => void))[][];
|
15
15
|
reference: any[][];
|
16
16
|
};
|
17
|
-
updatePopover: (virtualEl?: any, props?: {}) => void;
|
17
|
+
updatePopover: (virtualEl?: any, props?: {}, callFn?: any) => void;
|
18
18
|
triggerPopover: () => void;
|
19
19
|
resolvePopElements: () => {
|
20
20
|
elReference: any;
|
@@ -10,7 +10,8 @@ declare const _default: (props: any, ctx: any, { refReference, refContent, refAr
|
|
10
10
|
beforeInstanceUnmount: () => void;
|
11
11
|
updateBoundary: () => void;
|
12
12
|
initPopInstance: () => void;
|
13
|
-
updatePopover: (virtualEl?: any, props?: {}) => void;
|
13
|
+
updatePopover: (virtualEl?: any, props?: {}, callFn?: any) => void;
|
14
|
+
resetPopover: () => void;
|
14
15
|
showPopover: () => void;
|
15
16
|
hidePopover: () => void;
|
16
17
|
showFn: () => void;
|
package/lib/popover2/index.d.ts
CHANGED
@@ -5,8 +5,8 @@ declare const BkPopover2: {
|
|
5
5
|
$props: {
|
6
6
|
class?: unknown;
|
7
7
|
style?: unknown;
|
8
|
-
key?: string | number | symbol;
|
9
8
|
ref?: import("vue").VNodeRef;
|
9
|
+
key?: string | number | symbol;
|
10
10
|
ref_for?: boolean;
|
11
11
|
ref_key?: string;
|
12
12
|
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
package/lib/popover2/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as o from"vue";var r={d:(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},t={};r.d(t,{Z:()=>i});const n=(p={withInstall:()=>e.withInstall},a={},r.d(a,p),a);var p,a;const d=(e=>{var o={};return r.d(o,e),o})({createVNode:()=>o.createVNode,defineComponent:()=>o.defineComponent}),v=(0,d.defineComponent)({name:"Popover2",setup:function(){return function(){return(0,d.createVNode)("code",null,["<bk-popover2></bk-popover2>已经合并为<bk-popover></bk-popover>,请替换为<bk-popover></bk-popover>"])}}}),i=(0,n.withInstall)(v);var l=t.Z;export{l as default};
|
package/lib/preset.d.ts
CHANGED
@@ -65,6 +65,7 @@ declare const _default: {
|
|
65
65
|
cancel: string;
|
66
66
|
or: string;
|
67
67
|
and: string;
|
68
|
+
logical: string;
|
68
69
|
};
|
69
70
|
select: {
|
70
71
|
noData: string;
|
@@ -197,6 +198,7 @@ declare const _default: {
|
|
197
198
|
cancel: string;
|
198
199
|
or: string;
|
199
200
|
and: string;
|
201
|
+
logical: string;
|
200
202
|
};
|
201
203
|
select: {
|
202
204
|
noData: string;
|
package/lib/preset.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as o from"./config-provider";import*as r from"./components";var e={d:(o,r)=>{for(var n in r)e.o(r,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:r[n]})},o:(o,r)=>Object.prototype.hasOwnProperty.call(o,r)},n={};e.d(n,{Z:()=>f});const t=(a={provideGlobalConfig:()=>o.provideGlobalConfig},i={},e.d(i,a),i);var a,i;const l=r;var c=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Bk";return function(r,e){var n=r.config.globalProperties.bkUIPrefix||o;Object.keys(l).forEach((function(o){var e=l[o];"install"in e?r.use(e,{prefix:n}):r.component(n+o,l[o])})),e&&(0,t.provideGlobalConfig)(e)}};const f={createInstall:c,install:c(),version:"0.0.1"};var p=n.Z;export{p as default};
|
package/lib/process/index.d.ts
CHANGED
@@ -12,8 +12,8 @@ declare const BkProcess: {
|
|
12
12
|
class?: unknown;
|
13
13
|
style?: unknown;
|
14
14
|
onClick?: (...args: any[]) => any;
|
15
|
-
key?: string | number | symbol;
|
16
15
|
ref?: import("vue").VNodeRef;
|
16
|
+
key?: string | number | symbol;
|
17
17
|
ref_for?: boolean;
|
18
18
|
ref_key?: string;
|
19
19
|
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
package/lib/process/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):e(t["../shared"],t.vue,t["../config-provider"],t["../icon"]);for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,((t,e,r,o)=>(()=>{var n={2717:t=>{"use strict";t.exports=r},6870:t=>{"use strict";t.exports=o},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},7609:(t,e,r)=>{var o=r(7425).default;function n(){"use strict";t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var n=e&&e.prototype instanceof y?e:y,i=Object.create(n.prototype),c=new N(o||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function y(){}function v(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(O([])));x&&x!==r&&i.call(x,s)&&(g=x);var w=m.prototype=y.prototype=Object.create(g);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(n,a,c,s){var u=d(t[n],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var n;a(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}})}function S(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return{value:void 0,done:!0}}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var s=d(t,e,r);if("normal"===s.type){if(o=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o="completed",r.method="throw",r.arg=s.arg)}}}function j(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var n=d(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=m,a(w,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=f(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},P(L.prototype),f(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new L(p(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(w),f(w,l,"Generator"),f(w,s,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=O,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),s=i.call(n,"finallyLoc");if(c&&s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;_(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,r)=>{var o=r(7609)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>p});var t=a(4212);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var o=a(748),n=a(2841),i=a.n(n);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var s=a(2717),u=a(6870),l={list:t.PropTypes.array.def([]),controllable:t.PropTypes.bool.def(!1),showSteps:t.PropTypes.bool.def(!1),curProcess:t.PropTypes.number.def(0),displayKey:t.PropTypes.string.def("content"),extCls:t.PropTypes.string};const f=(0,o.defineComponent)({name:"Process",props:l,emits:["update:curProcess","click"],setup:function(t,e){var n=this,a=e.emit,c=(0,s.useLocale)("process"),u=(0,s.useLocale)("lang"),l=(0,o.ref)([]),f=(0,o.ref)(0),p=function(){var e,o,n,i;(e=l.value).splice.apply(e,[0,l.value.length].concat([{content:c.value.step1},{content:c.value.step2},{content:c.value.step3},{content:c.value.step4}])),(null===(o=t.list)||void 0===o?void 0:o.length)&&(n=l.value).splice.apply(n,[0,l.value.length].concat(function(t){if(Array.isArray(t))return r(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,e):void 0}}(i)||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.")}()))};(0,o.watch)((function(){return u.value}),(function(){p()})),(0,o.onMounted)(p);var d=(0,s.usePrefix)().resolveClassName;return{defaultProcessList:l,paddingBottom:f,jumpTo:function(e){return r=n,o=void 0,c=void 0,s=i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:try{t.controllable&&e!==t.curProcess&&(a("update:curProcess",e),a("click",e))}catch(t){console.warn(t)}case 1:case"end":return r.stop()}}),r)})),new(c||(c=Promise))((function(t,e){function n(t){try{a(s.next(t))}catch(t){e(t)}}function i(t){try{a(s.throw(t))}catch(t){e(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof c?r:new c((function(t){t(r)}))).then(n,i)}a((s=s.apply(r,o||[])).next())}));var r,o,c,s},resolveClassName:d}},render:function(){var r,n,i,a=this,c=this.resolveClassName("process"),s=(0,t.classes)((r={},n="".concat(this.extCls),i=!!this.extCls,(n=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,"string");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(r)?r:String(r)}(n))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r),"".concat(c)),l=function(t){return"loading"===t.status},f=function(t){return"error"===t.status},p=function(t,e){return t===a.curProcess-1&&l(e)?(0,o.createVNode)(u.Circle,{class:"".concat(a.resolveClassName("icon")," ").concat(a.resolveClassName("process-icon")," icon-loading")},null):t===a.curProcess-1&&f(e)?(0,o.createVNode)(u.Error,{class:"".concat(a.resolveClassName("process-icon")," icon-error")},null):t===a.curProcess-1&&function(t){return t.icon?t.icon:""}(e)?(0,o.createVNode)("span",{class:"".concat(a.resolveClassName("process-icon-custom"))},[(0,o.createVNode)(e.icon,null,null)]):function(t){return a.curProcess>=t+1||"done"===a.defaultProcessList[t].status}(t)?(0,o.createVNode)(u.Done,{class:"".concat(a.resolveClassName("process-icon-done"))},null):void 0};return(0,o.createVNode)("div",{class:s},[(0,o.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,o.createVNode)("li",{onClick:function(){a.jumpTo(e+1)},style:{cursor:a.controllable?"pointer":""},class:{success:a.curProcess>=e+1,current:l(t)&&e===a.curProcess-1,error:f(t)&&e===a.curProcess-1}},[(0,o.createVNode)("div",null,[(0,o.createVNode)("span",{class:"display"},[t[a.displayKey]]),p(e,t)])])}))])])}}),p=(0,t.withInstall)(f)})(),c})()));
|
2
|
+
import*as t from"../shared";import*as e from"vue";import*as r from"../config-provider";import*as o from"../icon";var n={7609:(t,e,r)=>{var o=r(7425).default;function n(){t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var n=e&&e.prototype instanceof y?e:y,i=Object.create(n.prototype),c=new _(o||[]);return a(i,"_invoke",{value:E(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d={};function y(){}function v(){}function m(){}var g={};f(g,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(O([])));w&&w!==r&&i.call(w,s)&&(g=w);var x=m.prototype=y.prototype=Object.create(g);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(n,a,c,s){var u=h(t[n],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var n;a(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}})}function E(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return{value:void 0,done:!0}}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var c=N(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var s=h(t,e,r);if("normal"===s.type){if(o=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o="completed",r.method="throw",r.arg=s.arg)}}}function N(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,N(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=h(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=m,a(x,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:v,configurable:!0}),v.displayName=f(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},P(L.prototype),f(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new L(p(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(x),f(x,l,"Generator"),f(x,s,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=O,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var c=i.call(n,"catchLoc"),s=i.call(n,"finallyLoc");if(c&&s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;j(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,r)=>{var o=r(7609)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};(()=>{a.d(c,{Z:()=>g});const n=(i={PropTypes:()=>t.PropTypes,classes:()=>t.classes,withInstall:()=>t.withInstall},s={},a.d(s,i),s);var i,s;function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}const f=(t=>{var e={};return a.d(e,t),e})({createVNode:()=>e.createVNode,defineComponent:()=>e.defineComponent,onMounted:()=>e.onMounted,ref:()=>e.ref,watch:()=>e.watch});var p=a(2841),h=a.n(p);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const d=(t=>{var e={};return a.d(e,t),e})({useLocale:()=>r.useLocale,usePrefix:()=>r.usePrefix}),y=(t=>{var e={};return a.d(e,t),e})({Circle:()=>o.Circle,Done:()=>o.Done,Error:()=>o.Error});var v={list:n.PropTypes.array.def([]),controllable:n.PropTypes.bool.def(!1),showSteps:n.PropTypes.bool.def(!1),curProcess:n.PropTypes.number.def(0),displayKey:n.PropTypes.string.def("content"),extCls:n.PropTypes.string};const m=(0,f.defineComponent)({name:"Process",props:v,emits:["update:curProcess","click"],setup:function(t,e){var r=this,o=e.emit,n=(0,d.useLocale)("process"),i=(0,d.useLocale)("lang"),a=(0,f.ref)([]),c=(0,f.ref)(0),s=function(){var e,r,o,i;(e=a.value).splice.apply(e,[0,a.value.length].concat([{content:n.value.step1},{content:n.value.step2},{content:n.value.step3},{content:n.value.step4}])),(null===(r=t.list)||void 0===r?void 0:r.length)&&(o=a.value).splice.apply(o,[0,a.value.length].concat(function(t){if(Array.isArray(t))return l(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(i)||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.")}()))};(0,f.watch)((function(){return i.value}),(function(){s()})),(0,f.onMounted)(s);var u=(0,d.usePrefix)().resolveClassName;return{defaultProcessList:a,paddingBottom:c,jumpTo:function(e){return n=r,i=void 0,a=void 0,c=h().mark((function r(){return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:try{t.controllable&&e!==t.curProcess&&(o("update:curProcess",e),o("click",e))}catch(t){console.warn(t)}case 1:case"end":return r.stop()}}),r)})),new(a||(a=Promise))((function(t,e){function r(t){try{s(c.next(t))}catch(t){e(t)}}function o(t){try{s(c.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(t){t(n)}))).then(r,o)}s((c=c.apply(n,i||[])).next())}));var n,i,a,c},resolveClassName:u}},render:function(){var t,e,r,o=this,i=this.resolveClassName("process"),a=(0,n.classes)((t={},e="".concat(this.extCls),r=!!this.extCls,(e=function(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===u(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t),"".concat(i)),c=function(t){return"loading"===t.status},s=function(t){return"error"===t.status},l=function(t,e){return t===o.curProcess-1&&c(e)?(0,f.createVNode)(y.Circle,{class:"".concat(o.resolveClassName("icon")," ").concat(o.resolveClassName("process-icon")," icon-loading")},null):t===o.curProcess-1&&s(e)?(0,f.createVNode)(y.Error,{class:"".concat(o.resolveClassName("process-icon")," icon-error")},null):t===o.curProcess-1&&function(t){return t.icon?t.icon:""}(e)?(0,f.createVNode)("span",{class:"".concat(o.resolveClassName("process-icon-custom"))},[(0,f.createVNode)(e.icon,null,null)]):function(t){return o.curProcess>=t+1||"done"===o.defaultProcessList[t].status}(t)?(0,f.createVNode)(y.Done,{class:"".concat(o.resolveClassName("process-icon-done"))},null):void 0};return(0,f.createVNode)("div",{class:a},[(0,f.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,f.createVNode)("li",{onClick:function(){o.jumpTo(e+1)},style:{cursor:o.controllable?"pointer":""},class:{success:o.curProcess>=e+1,current:c(t)&&e===o.curProcess-1,error:s(t)&&e===o.curProcess-1}},[(0,f.createVNode)("div",null,[(0,f.createVNode)("span",{class:"display"},[t[o.displayKey]]),l(e,t)])])}))])])}}),g=(0,n.withInstall)(m)})();var s=c.Z;export{s as default};
|
package/lib/progress/index.d.ts
CHANGED
@@ -21,8 +21,8 @@ declare const BkProgress: {
|
|
21
21
|
textInside?: boolean;
|
22
22
|
class?: unknown;
|
23
23
|
style?: unknown;
|
24
|
-
key?: string | number | symbol;
|
25
24
|
ref?: import("vue").VNodeRef;
|
25
|
+
key?: string | number | symbol;
|
26
26
|
ref_for?: boolean;
|
27
27
|
ref_key?: string;
|
28
28
|
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
package/lib/progress/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
import*as e from"../shared";import*as t from"vue";import*as r from"../config-provider";var o={d:(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};o.d(s,{Z:()=>v});const n=(a={ProgressStrokeLineCapType:()=>e.ProgressStrokeLineCapType,ProgressType:()=>e.ProgressType,PropTypes:()=>e.PropTypes,ThemeEnum:()=>e.ThemeEnum,classes:()=>e.classes,withInstall:()=>e.withInstall},c={},o.d(c,a),c);var a,c;const i=(e=>{var t={};return o.d(t,e),t})({createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,isVNode:()=>t.isVNode}),l=(e=>{var t={};return o.d(t,e),t})({usePrefix:()=>r.usePrefix}),p=function(e,t){var r=t.attrs,o=t.slots,s=(0,l.usePrefix)().resolveClassName,n=r.width,a=r.percent,c=r.strokeWidth,p=r.color,d=r.strokeLinecap,u=r.theme,f=r.type,y=r.bgColor,h=r.titleStyle,m=c||6,v=n||126,P={width:"number"==typeof v?"".concat(v,"px"):v,height:"number"==typeof v?"".concat(v,"px"):v,fontSize:"".concat(.15*v+6,"px")},b=50-m/2,g="dashboard"===f,x=2*Math.PI*b,T=g?.75:1,N="".concat(-1*x*(1-T)/2,"px"),k={strokeDasharray:"".concat(x*T,"px, ").concat(x,"px"),strokeDashoffset:N},V={strokeDasharray:"".concat(x*T*(a/100),"px, ").concat(x,"px"),strokeDashoffset:N,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},S="\n M 50 50\n m 0 ".concat(g?"":"-").concat(b,"\n a ").concat(b," ").concat(b," 0 1 1 0 ").concat(g?"-":"").concat(2*b,"\n a ").concat(b," ").concat(b," 0 1 1 0 ").concat(g?"":"-").concat(2*b,"\n "),w={d:S,stroke:y||"#f5f5f5","stroke-linecap":d,"stroke-width":m,"fill-opacity":"0",class:"process-circle-trail",style:k},C={d:S,stroke:p||"#13ce66","stroke-linecap":d,"stroke-width":a>0&&m||0,"fill-opacity":"0",class:"process-circle-path ".concat(s("".concat(u,"-circle-trail"))),style:V};return(0,i.createVNode)("div",{class:"progress-outer-circle",style:P},[(0,i.createVNode)("svg",{viewBox:"0 0 100 100"},[(0,i.createVNode)("path",w,null),(0,i.createVNode)("path",C,null)]),(0,i.createVNode)("span",{class:"progress-circle-text",style:h},[null==o?void 0:o.default()])])};function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(t)?t:String(t)}const f=function(e,t){var r,o,s=t.attrs,n=t.slots,a=(0,l.usePrefix)().resolveClassName,c=s.percent,p=s.strokeWidth,d=s.size,f=s.color,y=s.titleStyle,h=s.showText,m=s.textInside,v=s.theme,P={height:"".concat(p,"px"),lineHeight:"".concat(p,"px")},b={width:"".concat(c,"%"),background:f,animationDuration:"3s"},g=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(h||n.default)&&(e&&m||!e&&!m)?null==n?void 0:n.default():null};return(0,i.createVNode)("div",{class:"progress-outer"},[(0,i.createVNode)("div",{class:"".concat(a("progress-".concat(d||"normal"))," progress-bar"),style:P},[(0,i.createVNode)("div",{style:b,class:(r={"progress-inner":!0},o="".concat(a("".concat(v))),!0,(o=u(o))in r?Object.defineProperty(r,o,{value:true,enumerable:!0,configurable:!0,writable:!0}):r[o]=true,r)},[(0,i.createVNode)("div",{class:"inner-text",style:y},[g()])])]),g(!1)])};function y(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)}var h={extCls:n.PropTypes.string,type:(0,n.ProgressType)(),percent:n.PropTypes.number.def(0),theme:n.PropTypes.theme().def(n.ThemeEnum.PRIMARY),size:n.PropTypes.size(),width:n.PropTypes.number.def(126),strokeWidth:n.PropTypes.number,strokeLinecap:(0,n.ProgressStrokeLineCapType)(),textInside:n.PropTypes.bool.def(!1),showText:n.PropTypes.bool.def(!0),color:n.PropTypes.string,bgColor:n.PropTypes.string,fixed:n.PropTypes.number.validate((function(e){return e>=0&&e<=20})).def(0),format:n.PropTypes.func.def((function(e){return"".concat(e,"%")})),titleStyle:n.PropTypes.object.def({fontSize:"16px",verticalAlign:"middle"})};const m=(0,i.defineComponent)({name:"Progress",props:h,setup:function(){return{resolveClassName:(0,l.usePrefix)().resolveClassName}},methods:{validPercent:function(e){return!e||e<0?0:e>100?100:e},renderProcessInfo:function(){var e,t=this.$props,r=t.showText,o=t.format,s=t.percent,n=t.textInside,a=t.titleStyle,c=t.fixed,l=o(null===(e=this.validPercent(s))||void 0===e?void 0:e.toFixed(c));return(r||this.$slots.default)&&n?this.$slots.default?this.$slots.default():(0,i.createVNode)("span",null,[l]):!r||n?null:(0,i.createVNode)("span",{class:"progress-text",style:"string"==typeof l?a:void 0},[this.$slots.default?this.$slots.default():l])}},render:function(){var e=this.renderProcessInfo(),t=Object.assign(Object.assign({},this.$props),{percent:this.validPercent(this.percent)}),r=(0,i.createVNode)(f,t,y(e)?e:{default:function(){return[e]}});"circle"!==this.type&&"dashboard"!==this.type||(r=(0,i.createVNode)(p,t,y(e)?e:{default:function(){return[e]}}));var o={class:(0,n.classes)({extCls:!!this.extCls},"".concat(this.resolveClassName("progress")," ").concat(this.resolveClassName("progress-".concat(this.type))))};return(0,i.createVNode)("div",o,[r])}}),v=(0,n.withInstall)(m);var P=s.Z;export{P as default};
|
@@ -11,12 +11,12 @@
|
|
11
11
|
background-color: transparent;
|
12
12
|
}
|
13
13
|
}
|
14
|
-
.bk-
|
15
|
-
.bk-
|
14
|
+
.bk-transition .bk-fade-enter-active,
|
15
|
+
.bk-transition .bk-fade-leave-active {
|
16
16
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
17
17
|
}
|
18
|
-
.bk-
|
19
|
-
.bk-
|
18
|
+
.bk-transition .bk-fade-enter,
|
19
|
+
.bk-transition .bk-fade-leave-to {
|
20
20
|
opacity: 0;
|
21
21
|
}
|
22
22
|
.clearfix-style::after {
|
@@ -133,12 +133,12 @@
|
|
133
133
|
background-color: transparent;
|
134
134
|
}
|
135
135
|
}
|
136
|
-
.bk-
|
137
|
-
.bk-
|
136
|
+
.bk-transition .bk-fade-enter-active,
|
137
|
+
.bk-transition .bk-fade-leave-active {
|
138
138
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
139
139
|
}
|
140
|
-
.bk-
|
141
|
-
.bk-
|
140
|
+
.bk-transition .bk-fade-enter,
|
141
|
+
.bk-transition .bk-fade-leave-to {
|
142
142
|
opacity: 0;
|
143
143
|
}
|
144
144
|
.clearfix-style::after {
|
package/lib/radio/index.d.ts
CHANGED
@@ -12,9 +12,9 @@ declare const BkRadio: {
|
|
12
12
|
class?: unknown;
|
13
13
|
readonly label: string | number | boolean;
|
14
14
|
style?: unknown;
|
15
|
-
onChange?: (value:
|
16
|
-
key?: string | number | symbol;
|
15
|
+
onChange?: (value: any) => any;
|
17
16
|
ref?: import("vue").VNodeRef;
|
17
|
+
key?: string | number | symbol;
|
18
18
|
ref_for?: boolean;
|
19
19
|
ref_key?: string;
|
20
20
|
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -55,7 +55,7 @@ declare const BkRadio: {
|
|
55
55
|
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
56
56
|
[key: string]: any;
|
57
57
|
}>) => void)[];
|
58
|
-
"onUpdate:modelValue"?: (value:
|
58
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
59
59
|
};
|
60
60
|
$attrs: {
|
61
61
|
[x: string]: unknown;
|
@@ -68,7 +68,7 @@ declare const BkRadio: {
|
|
68
68
|
}>;
|
69
69
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
70
70
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
71
|
-
$emit: ((event: "change", value:
|
71
|
+
$emit: ((event: "change", value: any) => void) & ((event: "update:modelValue", value: any) => void);
|
72
72
|
$el: any;
|
73
73
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
74
74
|
name: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -93,8 +93,8 @@ declare const BkRadio: {
|
|
93
93
|
default: boolean;
|
94
94
|
};
|
95
95
|
}>> & {
|
96
|
-
onChange?: (value:
|
97
|
-
"onUpdate:modelValue"?: (value:
|
96
|
+
onChange?: (value: any) => any;
|
97
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
98
98
|
}, {
|
99
99
|
isFocused: import("vue").Ref<boolean>;
|
100
100
|
isChecked: import("vue").Ref<boolean>;
|
@@ -105,8 +105,8 @@ declare const BkRadio: {
|
|
105
105
|
handleChange: (event: Event) => void;
|
106
106
|
resolveClassName: (cls: string) => string;
|
107
107
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
108
|
-
'update:modelValue': (value:
|
109
|
-
change: (value:
|
108
|
+
'update:modelValue': (value: any) => boolean;
|
109
|
+
change: (value: any) => boolean;
|
110
110
|
}, string, {
|
111
111
|
name: string;
|
112
112
|
disabled: boolean;
|
@@ -155,8 +155,8 @@ declare const BkRadio: {
|
|
155
155
|
default: boolean;
|
156
156
|
};
|
157
157
|
}>> & {
|
158
|
-
onChange?: (value:
|
159
|
-
"onUpdate:modelValue"?: (value:
|
158
|
+
onChange?: (value: any) => any;
|
159
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
160
160
|
} & import("vue").ShallowUnwrapRef<{
|
161
161
|
isFocused: import("vue").Ref<boolean>;
|
162
162
|
isChecked: import("vue").Ref<boolean>;
|
@@ -193,8 +193,8 @@ declare const BkRadio: {
|
|
193
193
|
default: boolean;
|
194
194
|
};
|
195
195
|
}>> & {
|
196
|
-
onChange?: (value:
|
197
|
-
"onUpdate:modelValue"?: (value:
|
196
|
+
onChange?: (value: any) => any;
|
197
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
198
198
|
}, {
|
199
199
|
isFocused: import("vue").Ref<boolean>;
|
200
200
|
isChecked: import("vue").Ref<boolean>;
|
@@ -205,8 +205,8 @@ declare const BkRadio: {
|
|
205
205
|
handleChange: (event: Event) => void;
|
206
206
|
resolveClassName: (cls: string) => string;
|
207
207
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
208
|
-
'update:modelValue': (value:
|
209
|
-
change: (value:
|
208
|
+
'update:modelValue': (value: any) => boolean;
|
209
|
+
change: (value: any) => boolean;
|
210
210
|
}, string, {
|
211
211
|
name: string;
|
212
212
|
disabled: boolean;
|
@@ -234,8 +234,8 @@ declare const BkRadio: {
|
|
234
234
|
}, {
|
235
235
|
resolveClassName: (cls: string) => string;
|
236
236
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
237
|
-
'update:modelValue': (value:
|
238
|
-
change: (value:
|
237
|
+
'update:modelValue': (value: any) => boolean;
|
238
|
+
change: (value: any) => boolean;
|
239
239
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
240
240
|
name: import("vue-types").VueTypeValidableDef<string> & {
|
241
241
|
default: string;
|
@@ -255,8 +255,8 @@ declare const BkRadio: {
|
|
255
255
|
default: string;
|
256
256
|
};
|
257
257
|
}>> & {
|
258
|
-
onChange?: (value:
|
259
|
-
"onUpdate:modelValue"?: (value:
|
258
|
+
onChange?: (value: any) => any;
|
259
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
260
260
|
}, {
|
261
261
|
name: string;
|
262
262
|
type: string;
|
@@ -296,8 +296,8 @@ declare const BkRadio: {
|
|
296
296
|
handleChange: (event: Event) => void;
|
297
297
|
resolveClassName: (cls: string) => string;
|
298
298
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
299
|
-
'update:modelValue': (value:
|
300
|
-
change: (value:
|
299
|
+
'update:modelValue': (value: any) => boolean;
|
300
|
+
change: (value: any) => boolean;
|
301
301
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
302
302
|
name: import("vue-types").VueTypeValidableDef<string> & {
|
303
303
|
default: string;
|
@@ -322,8 +322,8 @@ declare const BkRadio: {
|
|
322
322
|
};
|
323
323
|
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
324
324
|
}>> & {
|
325
|
-
onChange?: (value:
|
326
|
-
"onUpdate:modelValue"?: (value:
|
325
|
+
onChange?: (value: any) => any;
|
326
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
327
327
|
}, {
|
328
328
|
name: string;
|
329
329
|
disabled: boolean;
|
@@ -332,4 +332,4 @@ declare const BkRadio: {
|
|
332
332
|
}, {}>;
|
333
333
|
}>;
|
334
334
|
export default BkRadio;
|
335
|
-
export { BkRadio, RadioGroup as BkRadioGroup, RadioButton as BkRadioButton
|
335
|
+
export { BkRadio, RadioGroup as BkRadioGroup, RadioButton as BkRadioButton };
|