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/input/index.d.ts
CHANGED
@@ -5,6 +5,7 @@ declare const BkInput: {
|
|
5
5
|
$props: {
|
6
6
|
type?: string;
|
7
7
|
prefix?: string;
|
8
|
+
resize?: boolean;
|
8
9
|
disabled?: boolean;
|
9
10
|
placeholder?: string;
|
10
11
|
step?: number;
|
@@ -17,6 +18,7 @@ declare const BkInput: {
|
|
17
18
|
prefixIcon?: string;
|
18
19
|
suffixIcon?: string;
|
19
20
|
suffix?: string;
|
21
|
+
maxcharacter?: number;
|
20
22
|
showWordLimit?: boolean;
|
21
23
|
showControl?: boolean;
|
22
24
|
showClearOnlyHover?: boolean;
|
@@ -24,21 +26,25 @@ declare const BkInput: {
|
|
24
26
|
rows?: number;
|
25
27
|
selectReadonly?: boolean;
|
26
28
|
withValidate?: boolean;
|
29
|
+
overMaxLengthLimit?: boolean;
|
30
|
+
showOverflowTooltips?: boolean;
|
31
|
+
autosize?: Boolean | import("./input").InputAutoSize;
|
32
|
+
stopPropagation?: boolean;
|
27
33
|
class?: unknown;
|
28
34
|
style?: unknown;
|
29
|
-
onPaste?: (_value: any,
|
35
|
+
onPaste?: (_value: any, _e: ClipboardEvent) => any;
|
30
36
|
onCompositionend?: (evt: CompositionEvent) => any;
|
31
37
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
32
38
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
33
39
|
onFocus?: (evt: FocusEvent) => any;
|
34
40
|
onBlur?: (evt: FocusEvent) => any;
|
35
|
-
onChange?: (_value: any, _evt
|
36
|
-
onInput?: (_value: any, _evt
|
37
|
-
onKeydown?: (_value: any, _evt
|
38
|
-
onKeypress?: (_value: any, _evt
|
39
|
-
onKeyup?: (_value: any, _evt
|
40
|
-
key?: string | number | symbol;
|
41
|
+
onChange?: (_value: any, _evt: KeyboardEvent) => any;
|
42
|
+
onInput?: (_value: any, _evt: KeyboardEvent) => any;
|
43
|
+
onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
|
44
|
+
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
45
|
+
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
41
46
|
ref?: import("vue").VNodeRef;
|
47
|
+
key?: string | number | symbol;
|
42
48
|
ref_for?: boolean;
|
43
49
|
ref_key?: string;
|
44
50
|
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -82,8 +88,8 @@ declare const BkInput: {
|
|
82
88
|
readonly size?: "default" | "small" | "large";
|
83
89
|
readonly modelValue?: string | number;
|
84
90
|
onClear?: () => any;
|
85
|
-
"onUpdate:modelValue"?: (_value: any, _evt
|
86
|
-
onEnter?: (_value: any, _evt
|
91
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
92
|
+
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
87
93
|
};
|
88
94
|
$attrs: {
|
89
95
|
[x: string]: unknown;
|
@@ -96,7 +102,7 @@ declare const BkInput: {
|
|
96
102
|
}>;
|
97
103
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
98
104
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
99
|
-
$emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt
|
105
|
+
$emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _e: ClipboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
|
100
106
|
$el: any;
|
101
107
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
102
108
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -142,6 +148,9 @@ declare const BkInput: {
|
|
142
148
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
143
149
|
default: number;
|
144
150
|
};
|
151
|
+
maxcharacter: import("vue-types").VueTypeDef<number> & {
|
152
|
+
default: number;
|
153
|
+
};
|
145
154
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
146
155
|
default: "normal" | "simplicity";
|
147
156
|
};
|
@@ -180,39 +189,63 @@ declare const BkInput: {
|
|
180
189
|
} & {
|
181
190
|
default: boolean;
|
182
191
|
};
|
192
|
+
overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
193
|
+
default: boolean;
|
194
|
+
} & {
|
195
|
+
default: boolean;
|
196
|
+
};
|
197
|
+
showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
|
198
|
+
default: boolean;
|
199
|
+
} & {
|
200
|
+
default: boolean;
|
201
|
+
};
|
202
|
+
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
203
|
+
default: boolean;
|
204
|
+
} & {
|
205
|
+
default: boolean;
|
206
|
+
};
|
207
|
+
autosize: import("vue-types").VueTypeDef<Boolean | import("./input").InputAutoSize> & {
|
208
|
+
default: (() => Boolean) | (() => import("./input").InputAutoSize);
|
209
|
+
};
|
210
|
+
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
211
|
+
default: boolean;
|
212
|
+
} & {
|
213
|
+
default: boolean;
|
214
|
+
};
|
183
215
|
}>> & {
|
184
|
-
onPaste?: (_value: any,
|
216
|
+
onPaste?: (_value: any, _e: ClipboardEvent) => any;
|
185
217
|
onCompositionend?: (evt: CompositionEvent) => any;
|
186
218
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
187
219
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
188
220
|
onFocus?: (evt: FocusEvent) => any;
|
189
221
|
onBlur?: (evt: FocusEvent) => any;
|
190
|
-
onChange?: (_value: any, _evt
|
191
|
-
onInput?: (_value: any, _evt
|
192
|
-
onKeydown?: (_value: any, _evt
|
193
|
-
onKeypress?: (_value: any, _evt
|
194
|
-
onKeyup?: (_value: any, _evt
|
222
|
+
onChange?: (_value: any, _evt: KeyboardEvent) => any;
|
223
|
+
onInput?: (_value: any, _evt: KeyboardEvent) => any;
|
224
|
+
onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
|
225
|
+
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
226
|
+
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
195
227
|
onClear?: () => any;
|
196
|
-
"onUpdate:modelValue"?: (_value: any, _evt
|
197
|
-
onEnter?: (_value: any, _evt
|
228
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
229
|
+
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
198
230
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
199
|
-
"update:modelValue": (_value: any, _evt
|
231
|
+
"update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
|
200
232
|
focus: (evt: FocusEvent) => FocusEvent;
|
201
233
|
blur: (evt: FocusEvent) => FocusEvent;
|
202
|
-
change: (_value: any, _evt
|
234
|
+
change: (_value: any, _evt: KeyboardEvent) => any;
|
203
235
|
clear: () => boolean;
|
204
|
-
input: (_value: any, _evt
|
205
|
-
keypress: (_value: any, _evt
|
206
|
-
keydown: (_value: any, _evt
|
207
|
-
keyup: (_value: any, _evt
|
208
|
-
enter: (_value: any, _evt
|
209
|
-
paste: (_value: any,
|
236
|
+
input: (_value: any, _evt: KeyboardEvent) => any;
|
237
|
+
keypress: (_value: any, _evt: KeyboardEvent) => any;
|
238
|
+
keydown: (_value: any, _evt: KeyboardEvent) => any;
|
239
|
+
keyup: (_value: any, _evt: KeyboardEvent) => any;
|
240
|
+
enter: (_value: any, _evt: KeyboardEvent) => any;
|
241
|
+
paste: (_value: any, _e: ClipboardEvent) => boolean;
|
210
242
|
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
211
243
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
212
244
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
213
245
|
}, string, {
|
214
246
|
type: string;
|
215
247
|
prefix: string;
|
248
|
+
resize: boolean;
|
216
249
|
disabled: boolean;
|
217
250
|
placeholder: string;
|
218
251
|
step: number;
|
@@ -225,6 +258,7 @@ declare const BkInput: {
|
|
225
258
|
prefixIcon: string;
|
226
259
|
suffixIcon: string;
|
227
260
|
suffix: string;
|
261
|
+
maxcharacter: number;
|
228
262
|
showWordLimit: boolean;
|
229
263
|
showControl: boolean;
|
230
264
|
showClearOnlyHover: boolean;
|
@@ -232,6 +266,10 @@ declare const BkInput: {
|
|
232
266
|
rows: number;
|
233
267
|
selectReadonly: boolean;
|
234
268
|
withValidate: boolean;
|
269
|
+
overMaxLengthLimit: boolean;
|
270
|
+
showOverflowTooltips: boolean;
|
271
|
+
autosize: Boolean | import("./input").InputAutoSize;
|
272
|
+
stopPropagation: boolean;
|
235
273
|
}, {}, string, {}> & {
|
236
274
|
beforeCreate?: (() => void) | (() => void)[];
|
237
275
|
created?: (() => void) | (() => void)[];
|
@@ -296,6 +334,9 @@ declare const BkInput: {
|
|
296
334
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
297
335
|
default: number;
|
298
336
|
};
|
337
|
+
maxcharacter: import("vue-types").VueTypeDef<number> & {
|
338
|
+
default: number;
|
339
|
+
};
|
299
340
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
300
341
|
default: "normal" | "simplicity";
|
301
342
|
};
|
@@ -334,21 +375,44 @@ declare const BkInput: {
|
|
334
375
|
} & {
|
335
376
|
default: boolean;
|
336
377
|
};
|
378
|
+
overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
379
|
+
default: boolean;
|
380
|
+
} & {
|
381
|
+
default: boolean;
|
382
|
+
};
|
383
|
+
showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
|
384
|
+
default: boolean;
|
385
|
+
} & {
|
386
|
+
default: boolean;
|
387
|
+
};
|
388
|
+
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
389
|
+
default: boolean;
|
390
|
+
} & {
|
391
|
+
default: boolean;
|
392
|
+
};
|
393
|
+
autosize: import("vue-types").VueTypeDef<Boolean | import("./input").InputAutoSize> & {
|
394
|
+
default: (() => Boolean) | (() => import("./input").InputAutoSize);
|
395
|
+
};
|
396
|
+
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
397
|
+
default: boolean;
|
398
|
+
} & {
|
399
|
+
default: boolean;
|
400
|
+
};
|
337
401
|
}>> & {
|
338
|
-
onPaste?: (_value: any,
|
402
|
+
onPaste?: (_value: any, _e: ClipboardEvent) => any;
|
339
403
|
onCompositionend?: (evt: CompositionEvent) => any;
|
340
404
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
341
405
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
342
406
|
onFocus?: (evt: FocusEvent) => any;
|
343
407
|
onBlur?: (evt: FocusEvent) => any;
|
344
|
-
onChange?: (_value: any, _evt
|
345
|
-
onInput?: (_value: any, _evt
|
346
|
-
onKeydown?: (_value: any, _evt
|
347
|
-
onKeypress?: (_value: any, _evt
|
348
|
-
onKeyup?: (_value: any, _evt
|
408
|
+
onChange?: (_value: any, _evt: KeyboardEvent) => any;
|
409
|
+
onInput?: (_value: any, _evt: KeyboardEvent) => any;
|
410
|
+
onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
|
411
|
+
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
412
|
+
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
349
413
|
onClear?: () => any;
|
350
|
-
"onUpdate:modelValue"?: (_value: any, _evt
|
351
|
-
onEnter?: (_value: any, _evt
|
414
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
415
|
+
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
352
416
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
353
417
|
__isFragment?: never;
|
354
418
|
__isTeleport?: never;
|
@@ -397,6 +461,9 @@ declare const BkInput: {
|
|
397
461
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
398
462
|
default: number;
|
399
463
|
};
|
464
|
+
maxcharacter: import("vue-types").VueTypeDef<number> & {
|
465
|
+
default: number;
|
466
|
+
};
|
400
467
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
401
468
|
default: "normal" | "simplicity";
|
402
469
|
};
|
@@ -435,39 +502,63 @@ declare const BkInput: {
|
|
435
502
|
} & {
|
436
503
|
default: boolean;
|
437
504
|
};
|
505
|
+
overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
506
|
+
default: boolean;
|
507
|
+
} & {
|
508
|
+
default: boolean;
|
509
|
+
};
|
510
|
+
showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
|
511
|
+
default: boolean;
|
512
|
+
} & {
|
513
|
+
default: boolean;
|
514
|
+
};
|
515
|
+
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
516
|
+
default: boolean;
|
517
|
+
} & {
|
518
|
+
default: boolean;
|
519
|
+
};
|
520
|
+
autosize: import("vue-types").VueTypeDef<Boolean | import("./input").InputAutoSize> & {
|
521
|
+
default: (() => Boolean) | (() => import("./input").InputAutoSize);
|
522
|
+
};
|
523
|
+
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
524
|
+
default: boolean;
|
525
|
+
} & {
|
526
|
+
default: boolean;
|
527
|
+
};
|
438
528
|
}>> & {
|
439
|
-
onPaste?: (_value: any,
|
529
|
+
onPaste?: (_value: any, _e: ClipboardEvent) => any;
|
440
530
|
onCompositionend?: (evt: CompositionEvent) => any;
|
441
531
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
442
532
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
443
533
|
onFocus?: (evt: FocusEvent) => any;
|
444
534
|
onBlur?: (evt: FocusEvent) => any;
|
445
|
-
onChange?: (_value: any, _evt
|
446
|
-
onInput?: (_value: any, _evt
|
447
|
-
onKeydown?: (_value: any, _evt
|
448
|
-
onKeypress?: (_value: any, _evt
|
449
|
-
onKeyup?: (_value: any, _evt
|
535
|
+
onChange?: (_value: any, _evt: KeyboardEvent) => any;
|
536
|
+
onInput?: (_value: any, _evt: KeyboardEvent) => any;
|
537
|
+
onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
|
538
|
+
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
539
|
+
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
450
540
|
onClear?: () => any;
|
451
|
-
"onUpdate:modelValue"?: (_value: any, _evt
|
452
|
-
onEnter?: (_value: any, _evt
|
541
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
542
|
+
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
453
543
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
454
|
-
"update:modelValue": (_value: any, _evt
|
544
|
+
"update:modelValue": (_value: any, _evt: KeyboardEvent) => any;
|
455
545
|
focus: (evt: FocusEvent) => FocusEvent;
|
456
546
|
blur: (evt: FocusEvent) => FocusEvent;
|
457
|
-
change: (_value: any, _evt
|
547
|
+
change: (_value: any, _evt: KeyboardEvent) => any;
|
458
548
|
clear: () => boolean;
|
459
|
-
input: (_value: any, _evt
|
460
|
-
keypress: (_value: any, _evt
|
461
|
-
keydown: (_value: any, _evt
|
462
|
-
keyup: (_value: any, _evt
|
463
|
-
enter: (_value: any, _evt
|
464
|
-
paste: (_value: any,
|
549
|
+
input: (_value: any, _evt: KeyboardEvent) => any;
|
550
|
+
keypress: (_value: any, _evt: KeyboardEvent) => any;
|
551
|
+
keydown: (_value: any, _evt: KeyboardEvent) => any;
|
552
|
+
keyup: (_value: any, _evt: KeyboardEvent) => any;
|
553
|
+
enter: (_value: any, _evt: KeyboardEvent) => any;
|
554
|
+
paste: (_value: any, _e: ClipboardEvent) => boolean;
|
465
555
|
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
466
556
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
467
557
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
468
558
|
}, string, {
|
469
559
|
type: string;
|
470
560
|
prefix: string;
|
561
|
+
resize: boolean;
|
471
562
|
disabled: boolean;
|
472
563
|
placeholder: string;
|
473
564
|
step: number;
|
@@ -480,6 +571,7 @@ declare const BkInput: {
|
|
480
571
|
prefixIcon: string;
|
481
572
|
suffixIcon: string;
|
482
573
|
suffix: string;
|
574
|
+
maxcharacter: number;
|
483
575
|
showWordLimit: boolean;
|
484
576
|
showControl: boolean;
|
485
577
|
showClearOnlyHover: boolean;
|
@@ -487,5 +579,9 @@ declare const BkInput: {
|
|
487
579
|
rows: number;
|
488
580
|
selectReadonly: boolean;
|
489
581
|
withValidate: boolean;
|
582
|
+
overMaxLengthLimit: boolean;
|
583
|
+
showOverflowTooltips: boolean;
|
584
|
+
autosize: Boolean | import("./input").InputAutoSize;
|
585
|
+
stopPropagation: boolean;
|
490
586
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
491
587
|
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
2
|
+
import*as e from"../shared";import*as t from"vue";import*as r from"../config-provider";import*as o from"../directives";import*as n from"../icon";var i={7609:(e,t,r)=>{var o=r(7425).default;function n(){e.exports=n=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var n=t&&t.prototype instanceof m?t:m,i=Object.create(n.prototype),l=new L(o||[]);return a(i,"_invoke",{value:E(e,r,l)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var v={};function m(){}function h(){}function y(){}var g={};p(g,u,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(V([])));x&&x!==r&&i.call(x,u)&&(g=x);var w=y.prototype=m.prototype=Object.create(g);function P(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(n,a,l,u){var c=d(e[n],e,a);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==o(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):t.resolve(p).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,u)}))}u(c.arg)}var n;a(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}})}function E(e,t,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 l=N(a,r);if(l){if(l===v)continue;return l}}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 u=d(e,t,r);if("normal"===u.type){if(o=r.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function N(e,t){var r=t.method,o=e.iterator[r];if(void 0===o)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var n=d(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,v;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function V(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:h,configurable:!0}),h.displayName=p(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},P(T.prototype),p(T.prototype,c,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,o,n,i){void 0===i&&(i=Promise);var a=new T(f(e,r,o,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(w),p(w,s,"Generator"),p(w,u,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=V,L.prototype={constructor:L,reset:function(e){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(S),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return a.type="throw",a.arg=e,t.next=r,o&&(t.method="next",t.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 l=i.call(n,"catchLoc"),u=i.call(n,"finallyLoc");if(l&&u){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:V(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,r)=>{var o=r(7609)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e](r,r.exports,l),r.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var u={};(()=>{l.d(u,{Z:()=>V});const i=(a={InputBehaviorType:()=>e.InputBehaviorType,PropTypes:()=>e.PropTypes,classes:()=>e.classes,useFormItem:()=>e.useFormItem,withInstall:()=>e.withInstall},c={},l.d(c,a),c);var a,c;function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function p(e){return p="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},p(e)}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=(e=>{var t={};return l.d(t,e),t})({Fragment:()=>t.Fragment,computed:()=>t.computed,createTextVNode:()=>t.createTextVNode,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,mergeProps:()=>t.mergeProps,nextTick:()=>t.nextTick,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,ref:()=>t.ref,resolveDirective:()=>t.resolveDirective,watch:()=>t.watch,withDirectives:()=>t.withDirectives});var v=l(2841),m=l.n(v);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const h=(e=>{var t={};return l.d(t,e),t})({useLocale:()=>r.useLocale,usePrefix:()=>r.usePrefix}),y=(e=>{var t={};return l.d(t,e),t})({bkTooltips:()=>o.bkTooltips}),g=(e=>{var t={};return l.d(t,e),t})({Close:()=>n.Close,DownSmall:()=>n.DownSmall,Eye:()=>n.Eye,Search:()=>n.Search,Unvisible:()=>n.Unvisible});var b,x=void 0,w=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function P(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;x||(x=document.createElement("textarea"),document.body.appendChild(x));var n=function(e){var t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),n=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:w.map((function(e){return"".concat(e,":").concat(t.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:n,boxSizing:r}}(e),i=n.paddingSize,a=n.borderSize,l=n.boxSizing,u=n.contextStyle;x.setAttribute("style","".concat(u,";").concat("\n height:0 !important;\n visibility:hidden !important;\n \n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n")),x.value=e.value||e.placeholder||"";var c=x.scrollHeight,s={};"border-box"===l?c+=a:"content-box"===l&&(c-=i),x.value="";var p=x.scrollHeight-i;if(Number.isInteger(r)){var f=p*r;"border-box"===l&&(f=f+i+a),c=Math.max(f,c),s.minHeight="".concat(f,"px")}if(Number.isInteger(o)){var d=p*o;"border-box"===l&&(d=d+i+a),c=Math.min(d,c)}return s.height="".concat(c,"px"),null===(t=x.parentNode)||void 0===t||t.removeChild(x),x=void 0,s}var T,E={type:i.PropTypes.string.def("text"),clearable:i.PropTypes.bool,disabled:i.PropTypes.bool,readonly:i.PropTypes.bool,placeholder:i.PropTypes.string.def(""),prefixIcon:i.PropTypes.string,suffixIcon:i.PropTypes.string,suffix:i.PropTypes.string,prefix:i.PropTypes.string,step:i.PropTypes.integer,max:i.PropTypes.integer,min:i.PropTypes.integer,maxlength:i.PropTypes.integer,maxcharacter:i.PropTypes.integer,behavior:(0,i.InputBehaviorType)(),showWordLimit:i.PropTypes.bool,showControl:i.PropTypes.bool.def(!0),showClearOnlyHover:i.PropTypes.bool.def(!0),precision:i.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number]),size:i.PropTypes.size(),rows:i.PropTypes.number,selectReadonly:i.PropTypes.bool.def(!1),withValidate:i.PropTypes.bool.def(!0),overMaxLengthLimit:i.PropTypes.bool.def(!1),showOverflowTooltips:i.PropTypes.bool.def(!0),resize:i.PropTypes.bool.def(!0),autosize:i.PropTypes.oneOfType([Boolean,Object]).def(!1),stopPropagation:i.PropTypes.bool.def(!0)};function N(e,t){return!0}function O(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(T||(T={}));var S=(f(b={},T.UPDATE,N),f(b,T.FOCUS,(function(e){return e})),f(b,T.BLUR,(function(e){return e})),f(b,T.CHANGE,N),f(b,T.CLEAR,(function(){return!0})),f(b,T.INPUT,N),f(b,T.KEYPRESS,N),f(b,T.KEYDOWN,N),f(b,T.KEYUP,N),f(b,T.ENTER,N),f(b,T.PASTE,(function(e,t){return!0})),f(b,T.COMPOSITIONSTART,O),f(b,T.COMPOSITIONUPDATE,O),f(b,T.COMPOSITIONEND,O),b);const L=(0,d.defineComponent)({name:"Input",directives:{bkTooltips:y.bkTooltips},inheritAttrs:!1,props:E,emits:S,setup:function(e,t){var r=this,o=(0,h.usePrefix)().resolveClassName,n=(0,i.useFormItem)(),a=(0,h.useLocale)("input"),l=(0,d.ref)(!1),u=(0,d.ref)(!1),c=(0,d.computed)((function(){return"textarea"===e.type})),p=(0,d.computed)((function(){return c.value?o("textarea"):o("input")})),v=t.attrs,y=(v.class,v.style),b=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(v,["class","style"]),x=(0,d.ref)(),w=(0,d.ref)(void 0===e.modelValue||null===e.modelValue?{}:{value:e.modelValue}),E=(0,d.computed)((function(){var r;return(0,i.classes)((f(r={},"".concat(p.value,"--").concat(e.size),!!e.size),f(r,"resizable",e.resize),f(r,"is-focused",l.value),f(r,"is-readonly",e.readonly&&!e.selectReadonly),f(r,"is-disabled",e.disabled),f(r,"is-simplicity","simplicity"===e.behavior),f(r,"".concat(t.attrs.class),!!t.attrs.class),r),p.value)})),N=(0,d.ref)(!1),O=(0,d.ref)({}),S=function(){var t,r;if(c.value)if(e.autosize){var o=null===(t=e.autosize)||void 0===t?void 0:t.minRows,n=null===(r=e.autosize)||void 0===r?void 0:r.maxRows,i=P(x.value,o,n);O.value=Object.assign({overflowY:"hidden"},i),(0,d.nextTick)((function(){O.value=i}))}else O.value={minHeight:P(x.value).minHeight}},L=function(t){var r=!1;return function(){var o;!r&&e.autosize&&(null===(null===(o=x.value)||void 0===o?void 0:o.offsetParent)||(t(),r=!0))}}(S),V=ne("suffix-icon"),C={search:function(){return(0,d.createVNode)(g.Search,null,null)},password:function(){return(0,d.createVNode)(g.Unvisible,{onClick:ie,class:V},null)}},I=(0,d.computed)((function(){var t=C[e.type];return U.value?(0,d.createVNode)(g.Eye,{class:V,onClick:ie},null):t?(0,d.createVNode)(t,{class:V},null):null})),A=(0,d.computed)((function(){return"number"===e.type})),j=(0,d.computed)((function(){var t,r;return Math.floor(null!==(r=null!==(t=e.maxlength)&&void 0!==t?t:e.maxcharacter)&&void 0!==r?r:0)})),U=(0,d.ref)(!1),k=(0,d.computed)((function(){return(0,i.classes)(f({"show-clear-only-hover":e.showClearOnlyHover},"".concat(p.value,"--clear-icon"),!0),V)})),D=(0,d.computed)((function(){var e;return(0,i.classes)((f(e={},ne("max-length"),!0),f(e,"is-over-limit",j.value-M.value<0),e))})),_=function(t){return"number"==typeof e.maxcharacter?t.split("").reduce((function(t,r,o){return t.len+=r.charCodeAt(0)>255?2:1,t.len>e.maxcharacter&&-1===t.pos&&(t.pos=o),t}),{len:0,pos:-1}):{len:t.length,pos:-1}},M=(0,d.computed)((function(){var t,r=null!==(t=e.modelValue)&&void 0!==t?t:"";return _(r).len})),z=(0,d.computed)((function(){return(0,i.classes)({"is-disabled":e.disabled||e.modelValue>=e.max})})),R=(0,d.computed)((function(){return(0,i.classes)({"is-disabled":e.disabled||e.modelValue<=e.min})})),F=(0,d.computed)((function(){return e.showOverflowTooltips&&N.value&&e.modelValue?{content:e.modelValue,sameWidth:!0}:{disabled:!0}})),G=(0,d.computed)((function(){return"number"==typeof e.maxlength||"number"==typeof e.maxcharacter})),H=new ResizeObserver((function(){L()}));function K(){var e,t;return(null===(e=x.value)||void 0===e?void 0:e.scrollWidth)>(null===(t=x.value)||void 0===t?void 0:t.clientWidth)+2}function Y(){if(!e.disabled){var r=A.value?e.min:"";t.emit(T.UPDATE,r,null),t.emit(T.CHANGE,r,null),t.emit(T.CLEAR)}}(0,d.watch)((function(){return e.type}),(function(){return e=r,t=void 0,o=void 0,n=m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.nextTick)();case 2:S();case 3:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(r,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}));var e,t,o,n})),(0,d.watch)((function(){return e.modelValue}),(function(t){var r;e.withValidate&&(null===(r=null==n?void 0:n.validate)||void 0===r||r.call(n,"change")),w.value={value:t},(0,d.nextTick)((function(){return S()}))})),(0,d.onMounted)((function(){N.value=K(),H.observe(x.value),(0,d.nextTick)((function(){return S()}))})),(0,d.onBeforeUnmount)((function(){H.disconnect()})),t.expose({focus:function(){x.value.focus()},clear:Y});var B,W,Z=(B=[T.KEYUP,T.KEYDOWN,T.KEYPRESS,T.PASTE,T.CHANGE,T.INPUT].map((function(r){return function(o){if(e.stopPropagation&&o.stopPropagation(),G.value&&!e.overMaxLengthLimit){var n=_(o.target.value);if(n.len>=j.value&&(r===T.KEYDOWN||r===T.INPUT)&&!u.value){var i=n.pos>0?o.target.value.slice(0,n.pos):o.target.value;return w.value={value:i},t.emit(T.UPDATE,i,o),void t.emit(T.INPUT,i,o)}}if(r!==T.KEYDOWN||"Enter"!==o.code&&"Enter"!==o.key&&13!==o.keyCode||t.emit(T.ENTER,o.target.value,o),!u.value||![T.INPUT,T.CHANGE,T.KEYDOWN].some((function(e){return r===e}))){if(r===T.INPUT)t.emit(T.UPDATE,o.target.value,o);else if(r===T.CHANGE&&A.value&&""!==o.target.value){var a=te(o.target.value,0);return t.emit(T.UPDATE,a,o),void t.emit(r,a,o)}t.emit(r,o.target.value,o)}}})),W=6,function(e){if(Array.isArray(e))return e}(B)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=i.call(r)).done)&&(l.push(o.value),l.length!==t);u=!0);}catch(e){c=!0,n=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return l}}(B,W)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(B,W)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),$=Z[0],q=Z[1],J=Z[2],Q=Z[3],X=Z[4],ee=Z[5];function te(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(r),i=Number.isInteger(e.precision)?e.precision:0,a=Number(t),l=Number.isInteger(n)?n:1,u=a+(o?l:-1*l);return Number.isInteger(e.max)&&(u=Math.min(u,e.max)),Number.isInteger(e.min)&&(u=Math.max(u,e.min)),+u.toFixed(i)}function re(r){if(!e.disabled){var o=te(e.modelValue,e.step);t.emit(T.UPDATE,o,r),t.emit(T.CHANGE,o,r)}}function oe(r){if(!e.disabled){var o=te(e.modelValue,e.step,!1);t.emit(T.UPDATE,o,r),t.emit(T.CHANGE,o,r)}}function ne(e){return"".concat(p.value,"--").concat(e)}function ie(){U.value=!U.value}var ae=(0,d.computed)((function(){return{maxlength:!e.overMaxLengthLimit&&e.maxlength,placeholder:e.placeholder||a.value.placeholder,readonly:e.readonly,disabled:e.disabled}})),le={onInput:ee,onFocus:function(e){l.value=!0,t.emit(T.FOCUS,e)},onBlur:function(r){var o;l.value=!1,N.value=K(),t.emit(T.BLUR,r),e.withValidate&&(null===(o=null==n?void 0:n.validate)||void 0===o||o.call(n,"blur"))},onPaste:Q,onChange:X,onKeypress:J,onKeydown:q,onKeyup:$,onCompositionstart:function(){u.value=!0},onCompositionend:function(e){u.value=!1,ee(e)}};return function(){var r,o,n,i,a,l;return(0,d.withDirectives)((0,d.createVNode)("div",{class:E.value,style:y},[null!==(n=null===(o=null===(r=t.slots)||void 0===r?void 0:r.prefix)||void 0===o?void 0:o.call(r))&&void 0!==n?n:e.prefix&&(0,d.createVNode)("div",{class:ne("prefix-area")},[(0,d.createVNode)("span",{class:ne("prefix-area--text")},[e.prefix])]),c.value?(0,d.createVNode)("textarea",(0,d.mergeProps)({ref:x,spellcheck:!1},b,le,ae.value,{rows:e.rows,style:O.value},w.value),null):(0,d.createVNode)("input",(0,d.mergeProps)({spellcheck:!1},b,{ref:x,class:"".concat(p.value,"--text"),type:U.value&&"password"===e.type?"text":e.type,step:e.step,max:e.max,min:e.min},le,ae.value,w.value),null),!c.value&&e.clearable&&!!e.modelValue&&(0,d.createVNode)("span",{class:k.value,onClick:Y},[(0,d.createVNode)(g.Close,null,null)]),I.value,G.value&&(e.showWordLimit||c.value)&&(0,d.createVNode)("p",{class:D.value},[e.overMaxLengthLimit?j.value-M.value:(0,d.createVNode)(d.Fragment,null,[M.value,(0,d.createTextVNode)(" / "),(0,d.createVNode)("span",null,[j.value])])]),A.value&&e.showControl&&(0,d.createVNode)("div",{class:ne("number-control")},[(0,d.createVNode)(g.DownSmall,{class:z.value,onClick:re},null),(0,d.createVNode)(g.DownSmall,{class:R.value,onClick:oe},null)]),null!==(l=null===(a=null===(i=t.slots)||void 0===i?void 0:i.suffix)||void 0===a?void 0:a.call(i))&&void 0!==l?l:e.suffix&&(0,d.createVNode)("div",{class:ne("suffix-area")},[(0,d.createVNode)("span",{class:ne("suffix-area--text")},[e.suffix])])]),[[(0,d.resolveDirective)("bk-tooltips"),F.value]])}}}),V=(0,i.withInstall)(L)})();var c=u.Z;export{c as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/lib/input/input.css
CHANGED
@@ -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 {
|
@@ -71,12 +71,12 @@
|
|
71
71
|
left: -4px;
|
72
72
|
}
|
73
73
|
.bk-textarea {
|
74
|
+
--textarea-line-height: 20px;
|
74
75
|
display: inline-flex;
|
75
76
|
width: 100%;
|
76
|
-
min-height: 70px;
|
77
77
|
overflow: hidden;
|
78
78
|
font-size: 12px;
|
79
|
-
line-height:
|
79
|
+
line-height: var(--textarea-line-height);
|
80
80
|
color: #63656e;
|
81
81
|
background-color: white;
|
82
82
|
border: 1px solid #c4c6cc;
|
@@ -86,8 +86,20 @@
|
|
86
86
|
flex-direction: column;
|
87
87
|
}
|
88
88
|
.bk-textarea ::placeholder {
|
89
|
+
font-size: 12px;
|
89
90
|
color: #c4c6cc;
|
90
91
|
}
|
92
|
+
.bk-textarea.resizable {
|
93
|
+
resize: both;
|
94
|
+
}
|
95
|
+
.bk-textarea ::-webkit-scrollbar {
|
96
|
+
-webkit-appearance: none;
|
97
|
+
width: 3px;
|
98
|
+
}
|
99
|
+
.bk-textarea ::-webkit-scrollbar-thumb {
|
100
|
+
border-radius: 4px;
|
101
|
+
background-color: #DCDEE5;
|
102
|
+
}
|
91
103
|
.bk-textarea.is-disabled,
|
92
104
|
.bk-textarea.is-readonly {
|
93
105
|
background-color: #fafbfd;
|
@@ -123,7 +135,6 @@
|
|
123
135
|
border-radius: 2px;
|
124
136
|
outline: none;
|
125
137
|
resize: none;
|
126
|
-
flex: 1;
|
127
138
|
}
|
128
139
|
.bk-textarea--max-length {
|
129
140
|
padding-right: 10px;
|
@@ -134,6 +145,9 @@
|
|
134
145
|
transform: scale(0.8);
|
135
146
|
justify-content: flex-end;
|
136
147
|
}
|
148
|
+
.bk-textarea--max-length.is-over-limit {
|
149
|
+
color: #ea3636;
|
150
|
+
}
|
137
151
|
.bk-textarea--max-length span {
|
138
152
|
color: #979ba5;
|
139
153
|
}
|
@@ -153,6 +167,7 @@
|
|
153
167
|
transition: all 0.3s;
|
154
168
|
}
|
155
169
|
.bk-input ::placeholder {
|
170
|
+
font-size: 12px;
|
156
171
|
color: #c4c6cc;
|
157
172
|
}
|
158
173
|
.bk-input.is-disabled,
|
@@ -211,12 +226,18 @@
|
|
211
226
|
background-color: white;
|
212
227
|
align-items: center;
|
213
228
|
align-self: center;
|
229
|
+
flex-shrink: 0;
|
230
|
+
cursor: pointer;
|
231
|
+
}
|
232
|
+
.bk-input--suffix-icon:hover {
|
233
|
+
color: #313238;
|
214
234
|
}
|
215
235
|
.bk-input--suffix-icon.show-clear-only-hover {
|
216
236
|
display: none;
|
217
237
|
}
|
218
238
|
.bk-input--clear-icon {
|
219
239
|
cursor: pointer;
|
240
|
+
flex-shrink: 0;
|
220
241
|
}
|
221
242
|
.bk-input--clear-icon:hover {
|
222
243
|
color: #979ba5;
|
@@ -225,6 +246,10 @@
|
|
225
246
|
height: 40px;
|
226
247
|
font-size: 14px;
|
227
248
|
}
|
249
|
+
.bk-input--large ::placeholder {
|
250
|
+
font-size: 14px;
|
251
|
+
color: #c4c6cc;
|
252
|
+
}
|
228
253
|
.bk-input--large .bk-input--max-length {
|
229
254
|
font-size: 16px;
|
230
255
|
}
|
@@ -277,14 +302,20 @@
|
|
277
302
|
font-size: 12px;
|
278
303
|
transform: scale(0.8);
|
279
304
|
}
|
305
|
+
.bk-input--max-length.is-over-limit {
|
306
|
+
color: #ea3636;
|
307
|
+
}
|
280
308
|
.bk-input--max-length span {
|
281
309
|
color: #979ba5;
|
282
310
|
}
|
283
311
|
.bk-input--text {
|
284
312
|
width: 100%;
|
285
313
|
padding: 0 10px;
|
314
|
+
overflow: hidden;
|
286
315
|
line-height: 1;
|
287
316
|
color: #63656e;
|
317
|
+
text-overflow: ellipsis;
|
318
|
+
white-space: nowrap;
|
288
319
|
background-color: white;
|
289
320
|
background-image: none;
|
290
321
|
border: none;
|
@@ -315,9 +346,6 @@
|
|
315
346
|
margin: 0;
|
316
347
|
appearance: none;
|
317
348
|
}
|
318
|
-
.bk-input--text::placeholder {
|
319
|
-
color: #c4c6cc;
|
320
|
-
}
|
321
349
|
.bk-input--number-control {
|
322
350
|
display: flex;
|
323
351
|
width: 26px;
|