@pixelium/web-vue 0.0.2 → 0.0.3-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/README.zh.md +6 -3
- package/dist/font.css +1 -1
- package/dist/index.d.ts +1602 -248
- package/dist/normalize.css +2 -0
- package/dist/pixelium-vue-icon-hn.cjs +1 -1
- package/dist/pixelium-vue-icon-hn.css +2 -1
- package/dist/pixelium-vue-icon-hn.js +8533 -8154
- package/dist/pixelium-vue-icon-hn.umd.cjs +1 -1
- package/dist/pixelium-vue-icon-pa.cjs +1 -1
- package/dist/pixelium-vue-icon-pa.css +2 -1
- package/dist/pixelium-vue-icon-pa.js +10625 -10143
- package/dist/pixelium-vue-icon-pa.umd.cjs +1 -1
- package/dist/pixelium-vue.cjs +2 -2
- package/dist/pixelium-vue.css +2 -1
- package/dist/pixelium-vue.js +7407 -5852
- package/dist/pixelium-vue.umd.cjs +2 -2
- package/es/aside/index.css +1 -0
- package/es/aside/index.js +46 -151
- package/es/auto-complete/draw.d.ts +1 -1
- package/es/auto-complete/draw.js +26 -51
- package/es/auto-complete/index.css +92 -32
- package/es/auto-complete/index.d.ts +12 -15
- package/es/auto-complete/index.js +338 -400
- package/es/auto-complete/type.d.ts +25 -13
- package/es/avatar/css.js +2 -0
- package/es/avatar/draw.d.ts +2 -0
- package/es/avatar/draw.js +11 -0
- package/es/avatar/index.css +49 -0
- package/es/avatar/index.d.ts +15 -0
- package/es/avatar/index.js +110 -0
- package/es/avatar/type.d.ts +34 -0
- package/es/button/draw.d.ts +4 -4
- package/es/button/draw.js +213 -297
- package/es/button/index.css +40 -30
- package/es/button/index.d.ts +0 -4
- package/es/button/index.js +230 -256
- package/es/button/type.d.ts +3 -3
- package/es/button-group/index.css +0 -3
- package/es/button-group/index.d.ts +1 -2
- package/es/button-group/index.js +59 -31
- package/es/button-group/type.d.ts +21 -4
- package/es/checkbox/css.js +2 -0
- package/es/checkbox/draw.d.ts +4 -0
- package/es/checkbox/draw.js +46 -0
- package/es/checkbox/index.css +85 -0
- package/es/checkbox/index.d.ts +31 -0
- package/es/checkbox/index.js +206 -0
- package/es/checkbox/type.d.ts +88 -0
- package/es/checkbox-group/css.js +2 -0
- package/es/checkbox-group/index.css +20 -0
- package/es/checkbox-group/index.d.ts +23 -0
- package/es/checkbox-group/index.js +84 -0
- package/es/checkbox-group/type.d.ts +78 -0
- package/es/col/index.d.ts +2 -2
- package/es/col/index.js +43 -58
- package/es/container/index.css +1 -0
- package/es/container/index.js +18 -31
- package/es/divider/index.js +39 -53
- package/es/empty/index.css +4 -4
- package/es/empty/index.js +16 -71
- package/es/entry.js +102 -0
- package/es/footer/index.css +1 -0
- package/es/footer/index.js +31 -40
- package/es/form/css.js +1 -0
- package/es/form/index.d.ts +27 -0
- package/es/form/index.js +125 -0
- package/es/form/type.d.ts +238 -0
- package/es/form/use-form.d.ts +4 -0
- package/es/form/use-form.js +48 -0
- package/es/form-item/css.js +2 -0
- package/es/form-item/index.css +77 -0
- package/es/form-item/index.d.ts +37 -0
- package/es/form-item/index.js +318 -0
- package/es/form-item/type.d.ts +96 -0
- package/es/grid/index.js +56 -75
- package/es/grid-item/css.js +0 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/grid-item/index.js +85 -121
- package/es/header/index.css +1 -0
- package/es/header/index.js +31 -40
- package/es/icon/index.js +44 -55
- package/es/icons/css-hn.js +0 -1
- package/es/icons/css-pa.js +0 -1
- package/es/icons/icon-hn.js +10337 -15986
- package/es/icons/icon-pa.js +12573 -17447
- package/es/image/css.js +2 -0
- package/es/image/index.css +69 -0
- package/es/image/index.d.ts +35 -0
- package/es/image/index.js +199 -0
- package/es/image/type.d.ts +126 -0
- package/es/index.css +1 -515
- package/es/index.d.ts +22 -2
- package/es/index.js +144 -123
- package/es/input/draw.d.ts +1 -1
- package/es/input/draw.js +26 -51
- package/es/input/index.css +85 -33
- package/es/input/index.d.ts +9 -16
- package/es/input/index.js +319 -423
- package/es/input/type.d.ts +3 -3
- package/es/input-group/index.css +0 -1
- package/es/input-group/index.d.ts +2 -2
- package/es/input-group/index.js +66 -37
- package/es/input-group/type.d.ts +16 -4
- package/es/input-group-label/draw.d.ts +1 -1
- package/es/input-group-label/draw.js +26 -51
- package/es/input-group-label/index.css +33 -22
- package/es/input-group-label/index.d.ts +1 -4
- package/es/input-group-label/index.js +104 -127
- package/es/input-group-label/type.d.ts +3 -3
- package/es/input-number/draw.d.ts +1 -1
- package/es/input-number/draw.js +26 -51
- package/es/input-number/index.css +90 -35
- package/es/input-number/index.d.ts +9 -16
- package/es/input-number/index.js +428 -536
- package/es/input-number/type.d.ts +3 -3
- package/es/input-tag/draw.d.ts +1 -1
- package/es/input-tag/draw.js +26 -48
- package/es/input-tag/index.css +100 -33
- package/es/input-tag/index.d.ts +7 -13
- package/es/input-tag/index.js +442 -467
- package/es/input-tag/type.d.ts +24 -13
- package/es/link/index.js +75 -106
- package/es/main/index.css +4 -0
- package/es/main/index.d.ts +4 -1
- package/es/main/index.js +15 -15
- package/es/main/type.d.ts +7 -0
- package/es/mask/index.js +94 -115
- package/es/message/index.css +1 -1
- package/es/message/index.js +168 -346
- package/es/message-box/css.js +1 -1
- package/es/message-box/index.js +98 -114
- package/es/message-box/message-box-wrapped.js +33 -46
- package/es/message-box/message-box.js +79 -111
- package/es/option-list/index.css +13 -13
- package/es/option-list/index.d.ts +4 -31
- package/es/option-list/index.js +99 -167
- package/es/option-list/type.d.ts +5 -1
- package/es/pixelate/pixel.d.ts +5 -0
- package/es/pixelate/pixel.js +70 -0
- package/es/pixelate/pixelate.worker.d.ts +1 -0
- package/es/popover/index.d.ts +13 -99
- package/es/popover/index.js +75 -238
- package/es/popover/type.d.ts +7 -2
- package/es/popup/css.js +1 -0
- package/es/popup/index.d.ts +210 -0
- package/es/popup/index.js +203 -0
- package/es/popup/type.d.ts +105 -0
- package/es/popup-content/draw.d.ts +2 -2
- package/es/popup-content/draw.js +98 -143
- package/es/popup-content/index.css +11 -11
- package/es/popup-content/index.d.ts +1 -0
- package/es/popup-content/index.js +253 -1576
- package/es/popup-content/type.d.ts +1 -0
- package/es/popup-trigger/index.d.ts +8 -2
- package/es/popup-trigger/index.js +122 -95
- package/es/popup-trigger/type.d.ts +4 -1
- package/es/popup-wrapper/css.js +2 -0
- package/es/popup-wrapper/index.css +14 -0
- package/es/popup-wrapper/index.d.ts +18 -0
- package/es/popup-wrapper/index.js +67 -0
- package/es/popup-wrapper/type.d.ts +9 -0
- package/es/radio/css.js +1 -0
- package/es/radio/draw.d.ts +4 -0
- package/es/radio/draw.js +47 -0
- package/es/radio/index.d.ts +30 -0
- package/es/radio/index.js +190 -0
- package/es/radio/style.css +73 -0
- package/es/radio/type.d.ts +76 -0
- package/es/radio-group/css.js +2 -0
- package/es/radio-group/index.css +20 -0
- package/es/radio-group/index.d.ts +23 -0
- package/es/radio-group/index.js +77 -0
- package/es/radio-group/type.d.ts +77 -0
- package/es/row/index.js +56 -70
- package/es/select/draw.d.ts +1 -1
- package/es/select/draw.js +26 -51
- package/es/select/index.css +118 -36
- package/es/select/index.d.ts +14 -16
- package/es/select/index.js +625 -672
- package/es/select/type.d.ts +60 -25
- package/es/share/const/event-bus-key.js +1 -6
- package/es/share/const/index.d.ts +4 -0
- package/es/share/const/index.js +22 -24
- package/es/share/const/provide-key.d.ts +5 -0
- package/es/share/const/provide-key.js +6 -5
- package/es/share/const/style.d.ts +6 -0
- package/es/share/const/style.js +7 -0
- package/es/share/hook/use-cancelable-delay.d.ts +1 -0
- package/es/share/hook/use-cancelable-delay.js +42 -0
- package/es/share/hook/use-click-outside-listener.d.ts +1 -1
- package/es/share/hook/use-click-outside-listener.js +28 -41
- package/es/share/hook/use-composition.js +17 -15
- package/es/share/hook/use-controlled-mode.d.ts +3 -3
- package/es/share/hook/use-controlled-mode.js +20 -23
- package/es/share/hook/use-dark-mode.js +51 -65
- package/es/share/hook/use-index-of-children.d.ts +2 -1
- package/es/share/hook/use-index-of-children.js +47 -45
- package/es/share/hook/use-lazy-load.d.ts +10 -0
- package/es/share/hook/use-lazy-load.js +133 -0
- package/es/share/hook/use-props-detect.d.ts +2 -0
- package/es/share/hook/use-resize-observer.d.ts +1 -2
- package/es/share/hook/use-resize-observer.js +28 -20
- package/es/share/hook/use-screen-width.js +27 -36
- package/es/share/hook/use-smooth-transition.d.ts +2 -0
- package/es/share/hook/use-smooth-transition.js +65 -0
- package/es/share/hook/use-textarea-height.js +86 -92
- package/es/share/hook/use-theme-mode.js +41 -42
- package/es/share/hook/use-transition-end.d.ts +2 -0
- package/es/share/hook/use-transition-end.js +12 -0
- package/es/share/hook/use-watch-global-css-var.js +12 -16
- package/es/share/hook/use-window-resize-listener.d.ts +1 -0
- package/es/share/hook/use-window-resize-listener.js +15 -0
- package/es/share/hook/use-z-index.js +30 -27
- package/es/share/style/index.css +5 -0
- package/es/share/type/index.d.ts +18 -3
- package/es/share/util/color.d.ts +5 -3
- package/es/share/util/color.js +156 -149
- package/es/share/util/common.d.ts +7 -2
- package/es/share/util/common.js +127 -65
- package/es/share/util/console.d.ts +3 -3
- package/es/share/util/console.js +10 -7
- package/es/share/util/dom.d.ts +19 -0
- package/es/share/util/dom.js +88 -0
- package/es/share/util/env.d.ts +1 -0
- package/es/share/util/env.js +5 -4
- package/es/share/util/event-bus.js +3 -20
- package/es/share/util/lru-cache.js +29 -33
- package/es/share/util/pixel.d.ts +4 -0
- package/es/share/util/plot.d.ts +8 -3
- package/es/share/util/plot.js +457 -229
- package/es/share/util/reactivity.d.ts +8 -0
- package/es/share/util/reactivity.js +23 -0
- package/es/share/util/render.js +31 -41
- package/es/share/util/theme.d.ts +3 -0
- package/es/share/util/theme.js +77 -57
- package/es/slider/css.js +2 -0
- package/es/slider/draw.d.ts +25 -0
- package/es/slider/draw.js +113 -0
- package/es/slider/index.css +119 -0
- package/es/slider/index.d.ts +66 -0
- package/es/slider/index.js +503 -0
- package/es/slider/type.d.ts +162 -0
- package/es/slider/util.d.ts +37 -0
- package/es/slider/util.js +130 -0
- package/es/space/index.css +24 -29
- package/es/space/index.js +73 -97
- package/es/spin/index.css +18 -17
- package/es/spin/index.js +72 -102
- package/es/spin/type.d.ts +11 -5
- package/es/switch/css.js +2 -0
- package/es/switch/draw.d.ts +2 -0
- package/es/switch/draw.js +18 -0
- package/es/switch/index.css +121 -0
- package/es/switch/index.d.ts +42 -0
- package/es/switch/index.js +259 -0
- package/es/switch/type.d.ts +133 -0
- package/es/tag/draw.d.ts +2 -2
- package/es/tag/draw.js +80 -127
- package/es/tag/index.css +38 -22
- package/es/tag/index.d.ts +2 -2
- package/es/tag/index.js +121 -190
- package/es/tag/type.d.ts +3 -3
- package/es/text-outline/css.js +2 -0
- package/es/text-outline/index.css +4 -0
- package/es/text-outline/index.d.ts +17 -0
- package/es/text-outline/index.js +33 -0
- package/es/text-outline/type.d.ts +23 -0
- package/es/textarea/draw.js +9 -11
- package/es/textarea/index.css +37 -23
- package/es/textarea/index.d.ts +8 -14
- package/es/textarea/index.js +274 -262
- package/es/tooltip/index.d.ts +100 -4
- package/es/tooltip/index.js +70 -226
- package/es/tooltip/type.d.ts +7 -2
- package/es/vendor.js +504 -0
- package/es/virtual-list/css.js +2 -0
- package/es/virtual-list/index.css +25 -0
- package/es/virtual-list/index.d.ts +11 -0
- package/es/virtual-list/index.js +313 -0
- package/es/virtual-list/type.d.ts +26 -0
- package/package.json +10 -16
- package/es/grid-item/index.css +0 -0
- /package/es/message-box/{message-box.css → index.css} +0 -0
package/es/index.js
CHANGED
|
@@ -1,124 +1,145 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import "./vendor.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import "./share/util/common.js";
|
|
4
|
+
import "./share/util/plot.js";
|
|
5
|
+
import "./share/util/color.js";
|
|
6
|
+
import "./button/draw.js";
|
|
7
|
+
import "./share/hook/use-dark-mode.js";
|
|
8
|
+
import "./share/hook/use-resize-observer.js";
|
|
9
|
+
import "./share/util/event-bus.js";
|
|
10
|
+
import "./share/hook/use-watch-global-css-var.js";
|
|
11
|
+
import "./share/hook/use-index-of-children.js";
|
|
12
|
+
import "./share/util/reactivity.js";
|
|
13
|
+
import "./share/hook/use-transition-end.js";
|
|
14
|
+
import { t as button_default } from "./button/index.js";
|
|
15
|
+
/* empty css */
|
|
16
|
+
import { t as button_group_default } from "./button-group/index.js";
|
|
17
|
+
import { t as link_default } from "./link/index.js";
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
5
20
|
import "./message-box/message-box.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
21
|
+
import { t as message_box_default } from "./message-box/index.js";
|
|
22
|
+
import { t as message_box_wrapped_default } from "./message-box/message-box-wrapped.js";
|
|
23
|
+
import "./share/hook/use-screen-width.js";
|
|
24
|
+
import { t as row_default } from "./row/index.js";
|
|
25
|
+
import { t as col_default } from "./col/index.js";
|
|
26
|
+
import { t as divider_default } from "./divider/index.js";
|
|
27
|
+
import "./share/util/render.js";
|
|
28
|
+
import { t as space_default } from "./space/index.js";
|
|
29
|
+
import { t as grid_default } from "./grid/index.js";
|
|
30
|
+
import { t as grid_item_default } from "./grid-item/index.js";
|
|
31
|
+
import { t as container_default } from "./container/index.js";
|
|
32
|
+
import { t as main_default } from "./main/index.js";
|
|
33
|
+
import { t as aside_default } from "./aside/index.js";
|
|
34
|
+
import { t as header_default } from "./header/index.js";
|
|
35
|
+
import { t as footer_default } from "./footer/index.js";
|
|
36
|
+
import "./share/util/console.js";
|
|
37
|
+
import { i as setThemeColor, n as resetThemeColor, r as setPixelSize, t as resetPixelSize } from "./share/util/theme.js";
|
|
38
|
+
import { t as useThemeMode } from "./share/hook/use-theme-mode.js";
|
|
39
|
+
import { t as icon_default } from "./icon/index.js";
|
|
40
|
+
import "./input/draw.js";
|
|
41
|
+
import "./share/hook/use-composition.js";
|
|
42
|
+
import "./share/hook/use-controlled-mode.js";
|
|
43
|
+
import { t as input_default } from "./input/index.js";
|
|
44
|
+
import "./input-number/draw.js";
|
|
45
|
+
import { t as input_number_default } from "./input-number/index.js";
|
|
46
|
+
import "./textarea/draw.js";
|
|
47
|
+
import "./share/hook/use-textarea-height.js";
|
|
48
|
+
import { t as textarea_default } from "./textarea/index.js";
|
|
49
|
+
import "./tag/draw.js";
|
|
50
|
+
import { t as tag_default } from "./tag/index.js";
|
|
51
|
+
import { t as input_group_default } from "./input-group/index.js";
|
|
52
|
+
import "./input-group-label/draw.js";
|
|
53
|
+
import { t as input_group_label_default } from "./input-group-label/index.js";
|
|
54
|
+
import "./input-tag/draw.js";
|
|
55
|
+
import "./popup-content/draw.js";
|
|
56
|
+
/* empty css */
|
|
57
|
+
/* empty css */
|
|
58
|
+
import "./share/hook/use-click-outside-listener.js";
|
|
59
|
+
import { i as imageDataToDataURL } from "./share/util/dom.js";
|
|
60
|
+
/* empty css */
|
|
61
|
+
import "./share/hook/use-cancelable-delay.js";
|
|
62
|
+
/* empty css */
|
|
63
|
+
import { t as popover_default } from "./popover/index.js";
|
|
64
|
+
import { t as input_tag_default } from "./input-tag/index.js";
|
|
65
|
+
import { t as tooltip_default } from "./tooltip/index.js";
|
|
66
|
+
import { t as empty_default } from "./empty/index.js";
|
|
67
|
+
import "./auto-complete/draw.js";
|
|
68
|
+
import { t as virtual_list_default } from "./virtual-list/index.js";
|
|
69
|
+
/* empty css */
|
|
70
|
+
import { t as auto_complete_default } from "./auto-complete/index.js";
|
|
71
|
+
import { t as mask_default } from "./mask/index.js";
|
|
72
|
+
import { t as spin_default } from "./spin/index.js";
|
|
73
|
+
import "./select/draw.js";
|
|
74
|
+
import { t as select_default } from "./select/index.js";
|
|
75
|
+
import "./share/hook/use-lazy-load.js";
|
|
76
|
+
import "./share/hook/use-window-resize-listener.js";
|
|
77
|
+
import { t as image_default } from "./image/index.js";
|
|
78
|
+
import "./avatar/draw.js";
|
|
79
|
+
import { t as avatar_default } from "./avatar/index.js";
|
|
80
|
+
import { t as form_default } from "./form/index.js";
|
|
81
|
+
import { t as form_item_default } from "./form-item/index.js";
|
|
82
|
+
import { t as pixelateImage } from "./pixelate/pixel.js";
|
|
83
|
+
import "./switch/draw.js";
|
|
84
|
+
import "./share/hook/use-smooth-transition.js";
|
|
85
|
+
import { t as switch_default } from "./switch/index.js";
|
|
86
|
+
import "./slider/draw.js";
|
|
87
|
+
import "./slider/util.js";
|
|
88
|
+
import { t as slider_default } from "./slider/index.js";
|
|
89
|
+
import "./radio/draw.js";
|
|
90
|
+
import { t as radio_default } from "./radio/index.js";
|
|
91
|
+
/* empty css */
|
|
92
|
+
import { t as radio_group_default } from "./radio-group/index.js";
|
|
93
|
+
import "./checkbox/draw.js";
|
|
94
|
+
import { t as checkbox_default } from "./checkbox/index.js";
|
|
95
|
+
import { t as checkbox_group_default } from "./checkbox-group/index.js";
|
|
96
|
+
import { t as text_outline_default } from "./text-outline/index.js";
|
|
97
|
+
import { t as useForm } from "./form/use-form.js";
|
|
98
|
+
import { n as lib_default, t as install } from "./entry.js";
|
|
99
|
+
function _typeof(o) {
|
|
100
|
+
"@babel/helpers - typeof";
|
|
101
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
102
|
+
return typeof o$1;
|
|
103
|
+
} : function(o$1) {
|
|
104
|
+
return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
|
|
105
|
+
}, _typeof(o);
|
|
106
|
+
}
|
|
107
|
+
function toPrimitive(t, r) {
|
|
108
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
109
|
+
var e = t[Symbol.toPrimitive];
|
|
110
|
+
if (void 0 !== e) {
|
|
111
|
+
var i = e.call(t, r || "default");
|
|
112
|
+
if ("object" != _typeof(i)) return i;
|
|
113
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
114
|
+
}
|
|
115
|
+
return ("string" === r ? String : Number)(t);
|
|
116
|
+
}
|
|
117
|
+
function toPropertyKey(t) {
|
|
118
|
+
var i = toPrimitive(t, "string");
|
|
119
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
120
|
+
}
|
|
121
|
+
function _defineProperty(e, r, t) {
|
|
122
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
123
|
+
value: t,
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
configurable: !0,
|
|
126
|
+
writable: !0
|
|
127
|
+
}) : e[r] = t, e;
|
|
128
|
+
}
|
|
129
|
+
var jsContent = "(function() {\n const Q = /\\.|\\[(\\d+)\\]/;\n function O(n) {\n return n.split(Q).filter(Boolean);\n }\n function d(n) {\n return n !== null && (typeof n == \"object\" || typeof n == \"function\");\n }\n function f(n, e, t) {\n const s = O(e), o = s.length;\n let i = n;\n for (let c = 0; c < o; c++) if (d(i)) i = i[s[c]];\n else return t;\n return t ?? i;\n }\n function y(n) {\n return typeof n == \"string\" || n instanceof String;\n }\n function Ee(n, e) {\n let t = Infinity, s = n[0];\n const o = n.length;\n for (let i = 0; i < o; i++) {\n const c = e !== void 0 ? y(e) ? f(n[i], e) : e(n[i], i, n) : n[i];\n c < t && (t = c, s = n[i]);\n }\n return s;\n }\n Math.PI, Math.PI * 3 / 2, Math.PI * 3 / 2, Math.PI * 2, Math.PI / 2, Math.PI / 2, Math.PI;\n 1 / Math.sqrt(3);\n function createLRU(max) {\n if (!Number.isInteger(max) || max <= 0) throw new RangeError(\"max must be a positive integer\");\n const cache = /* @__PURE__ */ new Map();\n return {\n get(key) {\n const val = cache.get(key);\n if (val === void 0) return void 0;\n cache.delete(key);\n cache.set(key, val);\n return val;\n },\n set(key, value) {\n if (cache.has(key)) cache.delete(key);\n else if (cache.size >= max) cache.delete(cache.keys().next().value);\n cache.set(key, value);\n },\n delete(key) {\n return cache.delete(key);\n },\n clear() {\n cache.clear();\n },\n has(key) {\n return cache.has(key);\n },\n get size() {\n return cache.size;\n }\n };\n }\n createLRU(120);\n createLRU(60);\n const blendWithBackground = (rgba, bg) => {\n const alpha = rgba.a / 255;\n return {\n r: (rgba.r * alpha + bg.r * (1 - alpha)) / 255,\n g: (rgba.g * alpha + bg.g * (1 - alpha)) / 255,\n b: (rgba.b * alpha + bg.b * (1 - alpha)) / 255\n };\n };\n function rgbaEuclideanDistance(color1, color2, background = {\n r: 255,\n g: 255,\n b: 255\n }) {\n const blended1 = blendWithBackground(color1, background);\n const blended2 = blendWithBackground(color2, background);\n const deltaR = blended1.r - blended2.r;\n const deltaG = blended1.g - blended2.g;\n const deltaB = blended1.b - blended2.b;\n return Math.sqrt(deltaR ** 2 + deltaG ** 2 + deltaB ** 2);\n }\n self.onmessage = async (e) => {\n const { imageData, pixelSize, palette, background } = e.data;\n const { width, height, data } = imageData;\n const resultData = new ImageData(width, height);\n const size = Math.max(1, Math.floor(pixelSize));\n for (let y$1 = 0; y$1 < height; y$1 += size) for (let x = 0; x < width; x += size) {\n let r = 0, g = 0, b = 0, a = 0;\n let count = 0;\n for (let py = y$1; py < Math.min(y$1 + size, height); py++) for (let px = x; px < Math.min(x + size, width); px++) {\n const index = (py * width + px) * 4;\n const pixelAlpha = data[index + 3];\n if (pixelAlpha === 0) continue;\n r += data[index];\n g += data[index + 1];\n b += data[index + 2];\n a += pixelAlpha;\n count++;\n }\n if (count === 0) continue;\n r = Math.floor(r / count);\n g = Math.floor(g / count);\n b = Math.floor(b / count);\n a = Math.floor(a / count);\n let finalColor;\n if (palette && palette.length > 0) finalColor = Ee(palette, (item) => {\n return rgbaEuclideanDistance(item, {\n r,\n g,\n b,\n a\n }, background);\n });\n else finalColor = {\n r,\n g,\n b,\n a\n };\n for (let py = y$1; py < Math.min(y$1 + size, height); py++) for (let px = x; px < Math.min(x + size, width); px++) {\n const index = (py * width + px) * 4;\n resultData.data[index] = finalColor.r;\n resultData.data[index + 1] = finalColor.g;\n resultData.data[index + 2] = finalColor.b;\n resultData.data[index + 3] = finalColor.a;\n }\n }\n self.postMessage({\n type: \"complete\",\n imageData: resultData\n });\n };\n})();\n";
|
|
130
|
+
var blob = typeof self !== "undefined" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", jsContent], { type: "text/javascript;charset=utf-8" });
|
|
131
|
+
function WorkerWrapper(options) {
|
|
132
|
+
let objURL;
|
|
133
|
+
try {
|
|
134
|
+
objURL = blob && (self.URL || self.webkitURL).createObjectURL(blob);
|
|
135
|
+
if (!objURL) throw "";
|
|
136
|
+
const worker = new Worker(objURL, { name: options === null || options === void 0 ? void 0 : options.name });
|
|
137
|
+
worker.addEventListener("error", () => {
|
|
138
|
+
(self.URL || self.webkitURL).revokeObjectURL(objURL);
|
|
139
|
+
});
|
|
140
|
+
return worker;
|
|
141
|
+
} catch (e) {
|
|
142
|
+
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(jsContent), { name: options === null || options === void 0 ? void 0 : options.name });
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export { aside_default as Aside, auto_complete_default as AutoComplete, avatar_default as Avatar, button_default as Button, button_group_default as ButtonGroup, checkbox_default as Checkbox, checkbox_group_default as CheckboxGroup, col_default as Col, container_default as Container, divider_default as Divider, empty_default as Empty, footer_default as Footer, form_default as Form, form_item_default as FormItem, grid_default as Grid, grid_item_default as GridItem, header_default as Header, icon_default as Icon, image_default as Image, input_default as Input, input_group_default as InputGroup, input_group_label_default as InputGroupLabel, input_number_default as InputNumber, input_tag_default as InputTag, link_default as Link, main_default as Main, mask_default as Mask, message_box_default as Message, message_box_wrapped_default as MessageBox, popover_default as Popover, radio_default as Radio, radio_group_default as RadioGroup, row_default as Row, select_default as Select, slider_default as Slider, space_default as Space, spin_default as Spin, switch_default as Switch, tag_default as Tag, text_outline_default as TextOutline, textarea_default as Textarea, tooltip_default as Tooltip, virtual_list_default as VirtualList, lib_default as default, imageDataToDataURL, install, _defineProperty as n, pixelateImage, resetPixelSize, resetThemeColor, setPixelSize, setThemeColor, WorkerWrapper as t, useForm, useThemeMode };
|
package/es/input/draw.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RgbaColor } from '../share/type';
|
|
2
|
-
export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, center: [number, number][], borderRadius: number[], rad: [number, number][], borderColor: RgbaColor, pixelSize: number, inner: boolean, first: boolean, last: boolean) => void;
|
|
2
|
+
export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, center: [number, number][], borderRadius: number[], rad: [number, number][], borderColor: RgbaColor, pixelSize: number, inner: boolean, first: boolean, last: boolean, nextIsTextButton: boolean) => void;
|
package/es/input/draw.js
CHANGED
|
@@ -1,52 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const drawBorder = (ctx, width, height, center, borderRadius, rad, borderColor, pixelSize, inner, first, last) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
width - pixelSize,
|
|
27
|
-
center[1][1],
|
|
28
|
-
pixelSize,
|
|
29
|
-
center[2][1] - center[1][1] + pixelSize
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
if (center[3][0] < center[2][0] + pixelSize) {
|
|
33
|
-
ctx.fillRect(
|
|
34
|
-
center[3][0],
|
|
35
|
-
height - pixelSize,
|
|
36
|
-
center[2][0] - center[3][0] + pixelSize,
|
|
37
|
-
pixelSize
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
if (center[3][1] + pixelSize > center[0][1] && !(inner && !first)) {
|
|
41
|
-
ctx.fillRect(0, center[0][1], pixelSize, center[3][1] - center[0][1] + pixelSize);
|
|
42
|
-
}
|
|
43
|
-
if (inner && !first) {
|
|
44
|
-
ctx.fillRect(pixelSize / 2, 0, pixelSize / 2, height);
|
|
45
|
-
}
|
|
46
|
-
if (inner && !last) {
|
|
47
|
-
ctx.fillRect(width - 2 * pixelSize - 1, 0, pixelSize, height);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
drawBorder as d
|
|
1
|
+
import { a as drawCircle } from "../share/util/plot.js";
|
|
2
|
+
import { a as rgbaColor2string } from "../share/util/color.js";
|
|
3
|
+
const drawBorder = (ctx, width, height, center, borderRadius, rad, borderColor, pixelSize, inner, first, last, nextIsTextButton) => {
|
|
4
|
+
ctx.fillStyle = rgbaColor2string(borderColor);
|
|
5
|
+
for (let i = 0; i < 4; i++) if (borderRadius[i] > pixelSize) {
|
|
6
|
+
if (i === 1 || i === 2 ? inner && last || !inner : true) drawCircle(ctx, center[i][0], center[i][1], borderRadius[i], rad[i][0], rad[i][1], pixelSize);
|
|
7
|
+
}
|
|
8
|
+
if (center[1][0] + pixelSize > center[0][0]) {
|
|
9
|
+
let length = center[1][0] - center[0][0] + pixelSize;
|
|
10
|
+
if (inner && !last) length -= pixelSize;
|
|
11
|
+
ctx.fillRect(center[0][0], 0, length, pixelSize);
|
|
12
|
+
}
|
|
13
|
+
if (center[2][1] + pixelSize > center[1][1] && (inner && last || !inner)) ctx.fillRect(width - pixelSize, center[1][1], pixelSize, center[2][1] - center[1][1] + pixelSize);
|
|
14
|
+
if (center[3][0] < center[2][0] + pixelSize) {
|
|
15
|
+
let length = center[2][0] - center[3][0] + pixelSize;
|
|
16
|
+
if (inner && !last) length -= pixelSize;
|
|
17
|
+
ctx.fillRect(center[3][0], height - pixelSize, length, pixelSize);
|
|
18
|
+
}
|
|
19
|
+
if ((!inner || first) && center[3][1] + pixelSize > center[0][1]) ctx.fillRect(0, center[0][1], pixelSize, center[3][1] - center[0][1] + pixelSize);
|
|
20
|
+
if (inner && !first) ctx.fillRect(pixelSize / 2, 0, pixelSize / 2, height);
|
|
21
|
+
if (inner && !last) {
|
|
22
|
+
let length = pixelSize;
|
|
23
|
+
if (nextIsTextButton) length /= 2;
|
|
24
|
+
ctx.fillRect(width - 2 * pixelSize - 1, 0, length, height);
|
|
25
|
+
}
|
|
52
26
|
};
|
|
27
|
+
export { drawBorder as t };
|
package/es/input/index.css
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
div.px-input {
|
|
2
|
-
font-size: var(--text-size);
|
|
3
|
-
}
|
|
4
1
|
.px-input {
|
|
5
2
|
--input-size: var(--px-medium-size);
|
|
6
|
-
--px-medium-padding-x: var(--px-interval-2);
|
|
7
|
-
--px-large-padding-x: var(--px-interval-3);
|
|
8
|
-
--px-small-padding-x: var(--px-interval-2);
|
|
9
|
-
--padding-x-size: var(--px-medium-padding-x);
|
|
10
|
-
--text-size: var(--px-medium-font-size);
|
|
11
3
|
z-index: 0;
|
|
12
4
|
position: relative;
|
|
13
5
|
background-color: transparent;
|
|
@@ -16,16 +8,10 @@ div.px-input {
|
|
|
16
8
|
border-style: solid;
|
|
17
9
|
color: var(--px-neutral-10);
|
|
18
10
|
display: flex;
|
|
19
|
-
padding: 0 var(--padding-x-size);
|
|
20
11
|
box-sizing: border-box;
|
|
21
12
|
height: var(--input-size);
|
|
22
13
|
cursor: text;
|
|
23
|
-
|
|
24
|
-
.px-input__inner {
|
|
25
|
-
padding-right: calc(var(--padding-x-size) + 1px + 1 * var(--px-bit));
|
|
26
|
-
}
|
|
27
|
-
.px-input__inner:last-child {
|
|
28
|
-
padding-right: var(--padding-x-size);
|
|
14
|
+
transition: 0.25s all;
|
|
29
15
|
}
|
|
30
16
|
.px-input-inner {
|
|
31
17
|
height: 100%;
|
|
@@ -33,8 +19,7 @@ div.px-input {
|
|
|
33
19
|
background-color: transparent;
|
|
34
20
|
box-sizing: border-box;
|
|
35
21
|
width: 100%;
|
|
36
|
-
|
|
37
|
-
line-height: var(--px-line-height);
|
|
22
|
+
line-height: 1.5;
|
|
38
23
|
font-family: var(--px-font);
|
|
39
24
|
padding: 0;
|
|
40
25
|
}
|
|
@@ -49,15 +34,92 @@ div.px-input {
|
|
|
49
34
|
color: var(--px-neutral-8);
|
|
50
35
|
opacity: 1;
|
|
51
36
|
}
|
|
37
|
+
.px-input.px-input__small {
|
|
38
|
+
padding-right: 8px;
|
|
39
|
+
padding-left: 8px;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
}
|
|
42
|
+
.px-input.px-input__small .px-input-inner {
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
}
|
|
45
|
+
.px-input.px-input__small.px-input__inner {
|
|
46
|
+
padding-right: calc(8px + 1px + 1 * var(--px-bit));
|
|
47
|
+
}
|
|
48
|
+
.px-input.px-input__small.px-input__inner:last-child {
|
|
49
|
+
padding-right: 8px;
|
|
50
|
+
}
|
|
51
|
+
.px-input.px-input__small .px-input-close-wrapper .px-input-icon-placeholder {
|
|
52
|
+
width: 12px;
|
|
53
|
+
height: 12px;
|
|
54
|
+
}
|
|
55
|
+
.px-input.px-input__small .px-input-close-wrapper .px-input-icon {
|
|
56
|
+
width: 12px;
|
|
57
|
+
height: 12px;
|
|
58
|
+
}
|
|
59
|
+
.px-input.px-input__small .px-input-password-wrapper .px-input-icon,
|
|
60
|
+
.px-input.px-input__small .px-input-loading-wrapper .px-input-icon {
|
|
61
|
+
width: 12px;
|
|
62
|
+
height: 12px;
|
|
63
|
+
}
|
|
64
|
+
.px-input.px-input__medium {
|
|
65
|
+
padding-right: 8px;
|
|
66
|
+
padding-left: 8px;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
}
|
|
69
|
+
.px-input.px-input__medium .px-input-inner {
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
}
|
|
72
|
+
.px-input.px-input__medium.px-input__inner {
|
|
73
|
+
padding-right: calc(8px + 1px + 1 * var(--px-bit));
|
|
74
|
+
}
|
|
75
|
+
.px-input.px-input__medium.px-input__inner:last-child {
|
|
76
|
+
padding-right: 8px;
|
|
77
|
+
}
|
|
78
|
+
.px-input.px-input__medium .px-input-close-wrapper .px-input-icon-placeholder {
|
|
79
|
+
width: 14px;
|
|
80
|
+
height: 14px;
|
|
81
|
+
}
|
|
82
|
+
.px-input.px-input__medium .px-input-close-wrapper .px-input-icon {
|
|
83
|
+
width: 14px;
|
|
84
|
+
height: 14px;
|
|
85
|
+
}
|
|
86
|
+
.px-input.px-input__medium .px-input-password-wrapper .px-input-icon,
|
|
87
|
+
.px-input.px-input__medium .px-input-loading-wrapper .px-input-icon {
|
|
88
|
+
width: 14px;
|
|
89
|
+
height: 14px;
|
|
90
|
+
}
|
|
91
|
+
.px-input.px-input__large {
|
|
92
|
+
padding-right: 12px;
|
|
93
|
+
padding-left: 12px;
|
|
94
|
+
font-size: 15px;
|
|
95
|
+
}
|
|
96
|
+
.px-input.px-input__large .px-input-inner {
|
|
97
|
+
font-size: 15px;
|
|
98
|
+
}
|
|
99
|
+
.px-input.px-input__large.px-input__inner {
|
|
100
|
+
padding-right: calc(12px + 1px + 1 * var(--px-bit));
|
|
101
|
+
}
|
|
102
|
+
.px-input.px-input__large.px-input__inner:last-child {
|
|
103
|
+
padding-right: 12px;
|
|
104
|
+
}
|
|
105
|
+
.px-input.px-input__large .px-input-close-wrapper .px-input-icon-placeholder {
|
|
106
|
+
width: 15px;
|
|
107
|
+
height: 15px;
|
|
108
|
+
}
|
|
109
|
+
.px-input.px-input__large .px-input-close-wrapper .px-input-icon {
|
|
110
|
+
width: 15px;
|
|
111
|
+
height: 15px;
|
|
112
|
+
}
|
|
113
|
+
.px-input.px-input__large .px-input-password-wrapper .px-input-icon,
|
|
114
|
+
.px-input.px-input__large .px-input-loading-wrapper .px-input-icon {
|
|
115
|
+
width: 15px;
|
|
116
|
+
height: 15px;
|
|
117
|
+
}
|
|
52
118
|
.px-input__large {
|
|
53
|
-
--padding-x-size: var(--px-large-padding-x);
|
|
54
|
-
--text-size: var(--px-large-font-size);
|
|
55
119
|
--input-size: var(--px-large-size);
|
|
56
120
|
}
|
|
57
121
|
.px-input__small {
|
|
58
|
-
--padding-x-size: var(--px-small-padding-x);
|
|
59
122
|
--input-size: var(--px-small-size);
|
|
60
|
-
--text-size: var(--px-small-font-size);
|
|
61
123
|
}
|
|
62
124
|
.px-input__disabled {
|
|
63
125
|
cursor: not-allowed;
|
|
@@ -77,22 +139,16 @@ div.px-input {
|
|
|
77
139
|
align-items: center;
|
|
78
140
|
}
|
|
79
141
|
.px-input-prefix-wrapper {
|
|
80
|
-
margin-right:
|
|
142
|
+
margin-right: 8px;
|
|
81
143
|
}
|
|
82
144
|
.px-input-count-wrapper,
|
|
83
145
|
.px-input-suffix-wrapper,
|
|
84
146
|
.px-input-loading-wrapper,
|
|
85
147
|
.px-input-close-wrapper,
|
|
86
148
|
.px-input-password-wrapper {
|
|
87
|
-
margin-left:
|
|
88
|
-
}
|
|
89
|
-
.px-input-close-wrapper .px-input-icon-placeholder {
|
|
90
|
-
width: var(--text-size);
|
|
91
|
-
height: var(--text-size);
|
|
149
|
+
margin-left: 8px;
|
|
92
150
|
}
|
|
93
151
|
.px-input-close-wrapper .px-input-icon {
|
|
94
|
-
width: var(--text-size);
|
|
95
|
-
height: var(--text-size);
|
|
96
152
|
cursor: pointer;
|
|
97
153
|
fill: var(--px-neutral-8);
|
|
98
154
|
transition: 0.25s;
|
|
@@ -104,8 +160,6 @@ div.px-input {
|
|
|
104
160
|
fill: var(--px-neutral-9);
|
|
105
161
|
}
|
|
106
162
|
.px-input-password-wrapper .px-input-icon {
|
|
107
|
-
width: var(--text-size);
|
|
108
|
-
height: var(--text-size);
|
|
109
163
|
cursor: pointer;
|
|
110
164
|
fill: var(--px-neutral-8);
|
|
111
165
|
transition: 0.25s;
|
|
@@ -117,8 +171,6 @@ div.px-input {
|
|
|
117
171
|
fill: var(--px-neutral-9);
|
|
118
172
|
}
|
|
119
173
|
.px-input-loading-wrapper .px-input-icon {
|
|
120
|
-
width: var(--text-size);
|
|
121
|
-
height: var(--text-size);
|
|
122
174
|
fill: var(--px-primary-6);
|
|
123
175
|
}
|
|
124
176
|
.px-input-prefix-wrapper,
|
package/es/input/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { InputProps } from './type';
|
|
1
|
+
import type { InputExpose, InputProps } from './type';
|
|
2
2
|
declare var __VLS_1: {}, __VLS_27: {
|
|
3
|
-
value:
|
|
4
|
-
count:
|
|
3
|
+
value: string | import("parsnip-kit").Nullish;
|
|
4
|
+
count: number;
|
|
5
5
|
maxLength: number | undefined;
|
|
6
6
|
}, __VLS_34: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
@@ -11,32 +11,25 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
} & {
|
|
12
12
|
suffix?: (props: typeof __VLS_34) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_component: import("vue").DefineComponent<InputProps, {
|
|
15
|
-
focus: () => void;
|
|
16
|
-
blur: () => void;
|
|
17
|
-
clear: () => Promise<void>;
|
|
18
|
-
select: () => void;
|
|
19
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
-
input: (value: string, e: Event) => any;
|
|
21
|
-
change: (value: string, e?: Event | undefined) => any;
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<InputProps, InputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
15
|
clear: (value: string) => any;
|
|
16
|
+
change: (value: string, e?: Event | undefined) => any;
|
|
23
17
|
blur: (e: FocusEvent) => any;
|
|
18
|
+
input: (value: string, e: Event) => any;
|
|
24
19
|
focus: (e: FocusEvent) => any;
|
|
25
20
|
"update:modelValue": (value: string) => any;
|
|
26
21
|
}, string, import("vue").PublicProps, Readonly<InputProps> & Readonly<{
|
|
27
|
-
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
28
|
-
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
29
22
|
onClear?: ((value: string) => any) | undefined;
|
|
23
|
+
onChange?: ((value: string, e?: Event | undefined) => any) | undefined;
|
|
30
24
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
25
|
+
onInput?: ((value: string, e: Event) => any) | undefined;
|
|
31
26
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
32
27
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
33
28
|
}>, {
|
|
34
|
-
shape: "default" | "round";
|
|
35
|
-
size: "medium" | "large" | "small";
|
|
36
29
|
disabled: boolean;
|
|
30
|
+
readonly: boolean;
|
|
37
31
|
loading: boolean;
|
|
38
32
|
password: boolean;
|
|
39
|
-
readonly: boolean;
|
|
40
33
|
clearable: boolean;
|
|
41
34
|
showCount: boolean;
|
|
42
35
|
status: "success" | "warning" | "error" | "normal";
|