sard-uniapp 1.25.2 → 1.25.4
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/CHANGELOG.md +18 -0
- package/README.md +15 -0
- package/components/calendar-input/README.md +1 -3
- package/components/calendar-input/calendar-input.d.ts +2 -0
- package/components/calendar-input/calendar-input.vue +11 -1
- package/components/calendar-input/common.d.ts +152 -0
- package/components/cascader-input/README.md +1 -5
- package/components/cascader-input/cascader-input.d.ts +2 -0
- package/components/cascader-input/cascader-input.vue +11 -1
- package/components/cascader-input/common.d.ts +116 -0
- package/components/checkbox-input/README.md +1 -3
- package/components/checkbox-input/checkbox-input.d.ts +2 -0
- package/components/checkbox-input/checkbox-input.vue +11 -1
- package/components/checkbox-input/common.d.ts +128 -0
- package/components/datetime-picker-input/README.md +1 -3
- package/components/datetime-picker-input/common.d.ts +116 -0
- package/components/datetime-picker-input/datetime-picker-input.d.ts +2 -0
- package/components/datetime-picker-input/datetime-picker-input.vue +11 -1
- package/components/datetime-range-picker-input/README.md +1 -3
- package/components/datetime-range-picker-input/common.d.ts +120 -0
- package/components/datetime-range-picker-input/datetime-range-picker-input.d.ts +2 -0
- package/components/datetime-range-picker-input/datetime-range-picker-input.vue +11 -1
- package/components/input/index.scss +2 -0
- package/components/picker-input/README.md +1 -7
- package/components/picker-input/common.d.ts +102 -0
- package/components/picker-input/picker-input.d.ts +2 -0
- package/components/picker-input/picker-input.vue +11 -2
- package/components/popout-input/README.md +5 -3
- package/components/popout-input/common.d.ts +63 -1
- package/components/popout-input/index.scss +0 -1
- package/components/popout-input/popout-input.d.ts +2 -0
- package/components/popout-input/popout-input.vue +4 -2
- package/components/popout-input/variables.scss +0 -1
- package/components/radio-input/README.md +1 -3
- package/components/radio-input/common.d.ts +122 -0
- package/components/radio-input/radio-input.d.ts +2 -0
- package/components/radio-input/radio-input.vue +11 -1
- package/components/tree-node/tree-node.vue +3 -1
- package/components/watermark/watermark.vue +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.25.4](https://github.com/sutras/sard-uniapp/compare/v1.25.3...v1.25.4) (2025-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* *-input 类组件新增input前置/后置插槽 ([98d879b](https://github.com/sutras/sard-uniapp/commit/98d879bea01faa8f7c72f6c24f59e42e9da165ef))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.25.3](https://github.com/sutras/sard-uniapp/compare/v1.25.2...v1.25.3) (2025-11-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 修复ios微信端水印渲染失败问题 ([0bea433](https://github.com/sutras/sard-uniapp/commit/0bea433bf0246bbbb1f4cf7701fb75a2879aed90))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.25.2](https://github.com/sutras/sard-uniapp/compare/v1.25.1...v1.25.2) (2025-11-11)
|
|
2
20
|
|
|
3
21
|
|
package/README.md
CHANGED
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
<p align="center">sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库。</p>
|
|
8
8
|
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://www.npmjs.com/package/sard-uniapp"><img src="https://img.shields.io/npm/dm/sard-uniapp.svg" alt="Total Downloads"></a>
|
|
11
|
+
<a href="https://github.com/sutras/sard-uniapp/tags"><img src="https://img.shields.io/npm/v/sard-uniapp.svg" alt="Latest Release"></a>
|
|
12
|
+
<a href="https://github.com/sutras/sard-uniapp/graphs/contributors"><img src="https://img.shields.io/github/contributors/sutras/sard-uniapp" alt="Contributors"></a>
|
|
13
|
+
<a href="https://github.com/sutras/sard-uniapp/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
9
16
|
<p align="center">
|
|
10
17
|
国内:📖 <a href="http://sard.wzt.zone/sard-uniapp-docs">文档</a>
|
|
11
18
|
🧑🏻🏫 <a href="http://sard.wzt.zone/sard-uniapp-docs/mobile/">案例演示</a>
|
|
@@ -156,3 +163,11 @@ npm run release
|
|
|
156
163
|
- 将 gitee 发行版 apk 资源链接转换为二维码图片
|
|
157
164
|
- 将图片更新到 `sard-assets` 项目,并发布到 npm
|
|
158
165
|
- 最后等待 http://fastly.jsdelivr.net 链接生效
|
|
166
|
+
|
|
167
|
+
## 贡献者
|
|
168
|
+
|
|
169
|
+
感谢这些优秀的人:
|
|
170
|
+
|
|
171
|
+
<p align="center">
|
|
172
|
+
<a href="https://www.npmjs.com/package/sard-uniapp"><img src="https://contrib.rocks/image?repo=sutras/sard-uniapp&columns=10&anon=1" alt="Contributors"></a>
|
|
173
|
+
</p>
|
|
@@ -65,9 +65,7 @@ import CalendarInput from 'sard-uniapp/components/calendar-input/calendar-input.
|
|
|
65
65
|
|
|
66
66
|
### CalendarInputSlots
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
| ---------------------- | ---------- | ---------- |
|
|
70
|
-
| arrow <sup>1.22+</sup> | 自定义箭头 | () => void |
|
|
68
|
+
继承 [`PopoutInputSlots`](./popout-input#PopoutInputSlots)
|
|
71
69
|
|
|
72
70
|
### CalendarInputEmits
|
|
73
71
|
|
|
@@ -38,9 +38,11 @@ declare const __VLS_component: import("vue").DefineComponent<CalendarInputProps,
|
|
|
38
38
|
resettable: boolean;
|
|
39
39
|
placeholder: string;
|
|
40
40
|
clearable: boolean;
|
|
41
|
+
internalPrepend: number;
|
|
41
42
|
multiline: boolean;
|
|
42
43
|
arrow: string;
|
|
43
44
|
arrowFamily: string;
|
|
45
|
+
internalAppend: number;
|
|
44
46
|
internalArrow: number;
|
|
45
47
|
inputProps: import("../input/common.js").InputProps;
|
|
46
48
|
outletFormat: string;
|
|
@@ -9,11 +9,19 @@
|
|
|
9
9
|
:root-style="rootStyle"
|
|
10
10
|
:arrow="arrow"
|
|
11
11
|
:internal-arrow="$slots.arrow ? 1 : 0"
|
|
12
|
+
:internal-prepend="$slots.prepend ? 1 : 0"
|
|
13
|
+
:internal-append="$slots.append ? 1 : 0"
|
|
12
14
|
:input-props="inputProps"
|
|
13
15
|
@clear="onClear"
|
|
14
16
|
@click="show"
|
|
15
17
|
>
|
|
16
|
-
<template
|
|
18
|
+
<template #prepend>
|
|
19
|
+
<slot name="prepend"></slot>
|
|
20
|
+
</template>
|
|
21
|
+
<template #append>
|
|
22
|
+
<slot name="append"></slot>
|
|
23
|
+
</template>
|
|
24
|
+
<template #arrow>
|
|
17
25
|
<slot name="arrow"></slot>
|
|
18
26
|
</template>
|
|
19
27
|
<sar-calendar-popout
|
|
@@ -153,6 +161,8 @@ export default _defineComponent({
|
|
|
153
161
|
multiline: { type: Boolean, required: false },
|
|
154
162
|
arrow: { type: String, required: false },
|
|
155
163
|
arrowFamily: { type: String, required: false },
|
|
164
|
+
internalPrepend: { type: Number, required: false },
|
|
165
|
+
internalAppend: { type: Number, required: false },
|
|
156
166
|
internalArrow: { type: Number, required: false },
|
|
157
167
|
inputProps: { type: Object, required: false }
|
|
158
168
|
}, defaultCalendarInputProps()),
|
|
@@ -37,9 +37,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
37
37
|
readonly: boolean;
|
|
38
38
|
placeholder: string;
|
|
39
39
|
clearable: boolean;
|
|
40
|
+
internalPrepend: number;
|
|
40
41
|
multiline: boolean;
|
|
41
42
|
arrow: string;
|
|
42
43
|
arrowFamily: string;
|
|
44
|
+
internalAppend: number;
|
|
43
45
|
internalArrow: number;
|
|
44
46
|
inputProps: import("../input").InputProps;
|
|
45
47
|
}) => string)) | undefined;
|
|
@@ -75,9 +77,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
75
77
|
readonly: boolean;
|
|
76
78
|
placeholder: string;
|
|
77
79
|
clearable: boolean;
|
|
80
|
+
internalPrepend: number;
|
|
78
81
|
multiline: boolean;
|
|
79
82
|
arrow: string;
|
|
80
83
|
arrowFamily: string;
|
|
84
|
+
internalAppend: number;
|
|
81
85
|
internalArrow: number;
|
|
82
86
|
inputProps: import("../input").InputProps;
|
|
83
87
|
}) => () => any)) | undefined;
|
|
@@ -113,9 +117,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
113
117
|
readonly: boolean;
|
|
114
118
|
placeholder: string;
|
|
115
119
|
clearable: boolean;
|
|
120
|
+
internalPrepend: number;
|
|
116
121
|
multiline: boolean;
|
|
117
122
|
arrow: string;
|
|
118
123
|
arrowFamily: string;
|
|
124
|
+
internalAppend: number;
|
|
119
125
|
internalArrow: number;
|
|
120
126
|
inputProps: import("../input").InputProps;
|
|
121
127
|
}) => boolean) | undefined;
|
|
@@ -151,9 +157,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
151
157
|
readonly: boolean;
|
|
152
158
|
placeholder: string;
|
|
153
159
|
clearable: boolean;
|
|
160
|
+
internalPrepend: number;
|
|
154
161
|
multiline: boolean;
|
|
155
162
|
arrow: string;
|
|
156
163
|
arrowFamily: string;
|
|
164
|
+
internalAppend: number;
|
|
157
165
|
internalArrow: number;
|
|
158
166
|
inputProps: import("../input").InputProps;
|
|
159
167
|
}) => string) | undefined;
|
|
@@ -189,9 +197,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
189
197
|
readonly: boolean;
|
|
190
198
|
placeholder: string;
|
|
191
199
|
clearable: boolean;
|
|
200
|
+
internalPrepend: number;
|
|
192
201
|
multiline: boolean;
|
|
193
202
|
arrow: string;
|
|
194
203
|
arrowFamily: string;
|
|
204
|
+
internalAppend: number;
|
|
195
205
|
internalArrow: number;
|
|
196
206
|
inputProps: import("../input").InputProps;
|
|
197
207
|
}) => boolean) | undefined;
|
|
@@ -227,9 +237,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
227
237
|
readonly: boolean;
|
|
228
238
|
placeholder: string;
|
|
229
239
|
clearable: boolean;
|
|
240
|
+
internalPrepend: number;
|
|
230
241
|
multiline: boolean;
|
|
231
242
|
arrow: string;
|
|
232
243
|
arrowFamily: string;
|
|
244
|
+
internalAppend: number;
|
|
233
245
|
internalArrow: number;
|
|
234
246
|
inputProps: import("../input").InputProps;
|
|
235
247
|
}) => boolean) | undefined;
|
|
@@ -265,9 +277,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
265
277
|
readonly: boolean;
|
|
266
278
|
placeholder: string;
|
|
267
279
|
clearable: boolean;
|
|
280
|
+
internalPrepend: number;
|
|
268
281
|
multiline: boolean;
|
|
269
282
|
arrow: string;
|
|
270
283
|
arrowFamily: string;
|
|
284
|
+
internalAppend: number;
|
|
271
285
|
internalArrow: number;
|
|
272
286
|
inputProps: import("../input").InputProps;
|
|
273
287
|
}) => string) | undefined;
|
|
@@ -303,9 +317,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
303
317
|
readonly: boolean;
|
|
304
318
|
placeholder: string;
|
|
305
319
|
clearable: boolean;
|
|
320
|
+
internalPrepend: number;
|
|
306
321
|
multiline: boolean;
|
|
307
322
|
arrow: string;
|
|
308
323
|
arrowFamily: string;
|
|
324
|
+
internalAppend: number;
|
|
309
325
|
internalArrow: number;
|
|
310
326
|
inputProps: import("../input").InputProps;
|
|
311
327
|
}) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | null | undefined;
|
|
@@ -341,9 +357,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
341
357
|
readonly: boolean;
|
|
342
358
|
placeholder: string;
|
|
343
359
|
clearable: boolean;
|
|
360
|
+
internalPrepend: number;
|
|
344
361
|
multiline: boolean;
|
|
345
362
|
arrow: string;
|
|
346
363
|
arrowFamily: string;
|
|
364
|
+
internalAppend: number;
|
|
347
365
|
internalArrow: number;
|
|
348
366
|
inputProps: import("../input").InputProps;
|
|
349
367
|
}) => boolean) | undefined;
|
|
@@ -379,9 +397,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
379
397
|
readonly: boolean;
|
|
380
398
|
placeholder: string;
|
|
381
399
|
clearable: boolean;
|
|
400
|
+
internalPrepend: number;
|
|
382
401
|
multiline: boolean;
|
|
383
402
|
arrow: string;
|
|
384
403
|
arrowFamily: string;
|
|
404
|
+
internalAppend: number;
|
|
385
405
|
internalArrow: number;
|
|
386
406
|
inputProps: import("../input").InputProps;
|
|
387
407
|
}) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | null) | undefined;
|
|
@@ -417,9 +437,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
417
437
|
readonly: boolean;
|
|
418
438
|
placeholder: string;
|
|
419
439
|
clearable: boolean;
|
|
440
|
+
internalPrepend: number;
|
|
420
441
|
multiline: boolean;
|
|
421
442
|
arrow: string;
|
|
422
443
|
arrowFamily: string;
|
|
444
|
+
internalAppend: number;
|
|
423
445
|
internalArrow: number;
|
|
424
446
|
inputProps: import("../input").InputProps;
|
|
425
447
|
}) => string)) | undefined;
|
|
@@ -455,9 +477,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
455
477
|
readonly: boolean;
|
|
456
478
|
placeholder: string;
|
|
457
479
|
clearable: boolean;
|
|
480
|
+
internalPrepend: number;
|
|
458
481
|
multiline: boolean;
|
|
459
482
|
arrow: string;
|
|
460
483
|
arrowFamily: string;
|
|
484
|
+
internalAppend: number;
|
|
461
485
|
internalArrow: number;
|
|
462
486
|
inputProps: import("../input").InputProps;
|
|
463
487
|
}) => "multiple" | "single" | "range")) | undefined;
|
|
@@ -493,9 +517,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
493
517
|
readonly: boolean;
|
|
494
518
|
placeholder: string;
|
|
495
519
|
clearable: boolean;
|
|
520
|
+
internalPrepend: number;
|
|
496
521
|
multiline: boolean;
|
|
497
522
|
arrow: string;
|
|
498
523
|
arrowFamily: string;
|
|
524
|
+
internalAppend: number;
|
|
499
525
|
internalArrow: number;
|
|
500
526
|
inputProps: import("../input").InputProps;
|
|
501
527
|
}) => string | string[] | Date | Date[])) | undefined;
|
|
@@ -531,9 +557,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
531
557
|
readonly: boolean;
|
|
532
558
|
placeholder: string;
|
|
533
559
|
clearable: boolean;
|
|
560
|
+
internalPrepend: number;
|
|
534
561
|
multiline: boolean;
|
|
535
562
|
arrow: string;
|
|
536
563
|
arrowFamily: string;
|
|
564
|
+
internalAppend: number;
|
|
537
565
|
internalArrow: number;
|
|
538
566
|
inputProps: import("../input").InputProps;
|
|
539
567
|
}) => Date) | undefined;
|
|
@@ -569,9 +597,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
569
597
|
readonly: boolean;
|
|
570
598
|
placeholder: string;
|
|
571
599
|
clearable: boolean;
|
|
600
|
+
internalPrepend: number;
|
|
572
601
|
multiline: boolean;
|
|
573
602
|
arrow: string;
|
|
574
603
|
arrowFamily: string;
|
|
604
|
+
internalAppend: number;
|
|
575
605
|
internalArrow: number;
|
|
576
606
|
inputProps: import("../input").InputProps;
|
|
577
607
|
}) => Date) | undefined;
|
|
@@ -607,9 +637,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
607
637
|
readonly: boolean;
|
|
608
638
|
placeholder: string;
|
|
609
639
|
clearable: boolean;
|
|
640
|
+
internalPrepend: number;
|
|
610
641
|
multiline: boolean;
|
|
611
642
|
arrow: string;
|
|
612
643
|
arrowFamily: string;
|
|
644
|
+
internalAppend: number;
|
|
613
645
|
internalArrow: number;
|
|
614
646
|
inputProps: import("../input").InputProps;
|
|
615
647
|
}) => Date) | undefined;
|
|
@@ -645,9 +677,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
645
677
|
readonly: boolean;
|
|
646
678
|
placeholder: string;
|
|
647
679
|
clearable: boolean;
|
|
680
|
+
internalPrepend: number;
|
|
648
681
|
multiline: boolean;
|
|
649
682
|
arrow: string;
|
|
650
683
|
arrowFamily: string;
|
|
684
|
+
internalAppend: number;
|
|
651
685
|
internalArrow: number;
|
|
652
686
|
inputProps: import("../input").InputProps;
|
|
653
687
|
}) => (date: Date) => boolean)) | undefined;
|
|
@@ -683,9 +717,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
683
717
|
readonly: boolean;
|
|
684
718
|
placeholder: string;
|
|
685
719
|
clearable: boolean;
|
|
720
|
+
internalPrepend: number;
|
|
686
721
|
multiline: boolean;
|
|
687
722
|
arrow: string;
|
|
688
723
|
arrowFamily: string;
|
|
724
|
+
internalAppend: number;
|
|
689
725
|
internalArrow: number;
|
|
690
726
|
inputProps: import("../input").InputProps;
|
|
691
727
|
}) => number)) | undefined;
|
|
@@ -721,9 +757,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
721
757
|
readonly: boolean;
|
|
722
758
|
placeholder: string;
|
|
723
759
|
clearable: boolean;
|
|
760
|
+
internalPrepend: number;
|
|
724
761
|
multiline: boolean;
|
|
725
762
|
arrow: string;
|
|
726
763
|
arrowFamily: string;
|
|
764
|
+
internalAppend: number;
|
|
727
765
|
internalArrow: number;
|
|
728
766
|
inputProps: import("../input").InputProps;
|
|
729
767
|
}) => () => void)) | undefined;
|
|
@@ -759,9 +797,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
759
797
|
readonly: boolean;
|
|
760
798
|
placeholder: string;
|
|
761
799
|
clearable: boolean;
|
|
800
|
+
internalPrepend: number;
|
|
762
801
|
multiline: boolean;
|
|
763
802
|
arrow: string;
|
|
764
803
|
arrowFamily: string;
|
|
804
|
+
internalAppend: number;
|
|
765
805
|
internalArrow: number;
|
|
766
806
|
inputProps: import("../input").InputProps;
|
|
767
807
|
}) => number)) | undefined;
|
|
@@ -797,9 +837,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
797
837
|
readonly: boolean;
|
|
798
838
|
placeholder: string;
|
|
799
839
|
clearable: boolean;
|
|
840
|
+
internalPrepend: number;
|
|
800
841
|
multiline: boolean;
|
|
801
842
|
arrow: string;
|
|
802
843
|
arrowFamily: string;
|
|
844
|
+
internalAppend: number;
|
|
803
845
|
internalArrow: number;
|
|
804
846
|
inputProps: import("../input").InputProps;
|
|
805
847
|
}) => (day: import("../calendar").CalendarDay) => void)) | undefined;
|
|
@@ -835,9 +877,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
835
877
|
readonly: boolean;
|
|
836
878
|
placeholder: string;
|
|
837
879
|
clearable: boolean;
|
|
880
|
+
internalPrepend: number;
|
|
838
881
|
multiline: boolean;
|
|
839
882
|
arrow: string;
|
|
840
883
|
arrowFamily: string;
|
|
884
|
+
internalAppend: number;
|
|
841
885
|
internalArrow: number;
|
|
842
886
|
inputProps: import("../input").InputProps;
|
|
843
887
|
}) => boolean)) | undefined;
|
|
@@ -873,9 +917,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
873
917
|
readonly: boolean;
|
|
874
918
|
placeholder: string;
|
|
875
919
|
clearable: boolean;
|
|
920
|
+
internalPrepend: number;
|
|
876
921
|
multiline: boolean;
|
|
877
922
|
arrow: string;
|
|
878
923
|
arrowFamily: string;
|
|
924
|
+
internalAppend: number;
|
|
879
925
|
internalArrow: number;
|
|
880
926
|
inputProps: import("../input").InputProps;
|
|
881
927
|
}) => boolean)) | undefined;
|
|
@@ -911,9 +957,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
911
957
|
readonly: boolean;
|
|
912
958
|
placeholder: string;
|
|
913
959
|
clearable: boolean;
|
|
960
|
+
internalPrepend: number;
|
|
914
961
|
multiline: boolean;
|
|
915
962
|
arrow: string;
|
|
916
963
|
arrowFamily: string;
|
|
964
|
+
internalAppend: number;
|
|
917
965
|
internalArrow: number;
|
|
918
966
|
inputProps: import("../input").InputProps;
|
|
919
967
|
}) => string)) | undefined;
|
|
@@ -949,9 +997,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
949
997
|
readonly: boolean;
|
|
950
998
|
placeholder: string;
|
|
951
999
|
clearable: boolean;
|
|
1000
|
+
internalPrepend: number;
|
|
952
1001
|
multiline: boolean;
|
|
953
1002
|
arrow: string;
|
|
954
1003
|
arrowFamily: string;
|
|
1004
|
+
internalAppend: number;
|
|
955
1005
|
internalArrow: number;
|
|
956
1006
|
inputProps: import("../input").InputProps;
|
|
957
1007
|
}) => string)) | undefined;
|
|
@@ -987,9 +1037,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
987
1037
|
readonly: boolean;
|
|
988
1038
|
placeholder: string;
|
|
989
1039
|
clearable: boolean;
|
|
1040
|
+
internalPrepend: number;
|
|
990
1041
|
multiline: boolean;
|
|
991
1042
|
arrow: string;
|
|
992
1043
|
arrowFamily: string;
|
|
1044
|
+
internalAppend: number;
|
|
993
1045
|
internalArrow: number;
|
|
994
1046
|
inputProps: import("../input").InputProps;
|
|
995
1047
|
}) => string)) | undefined;
|
|
@@ -1025,9 +1077,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1025
1077
|
readonly: boolean;
|
|
1026
1078
|
placeholder: string;
|
|
1027
1079
|
clearable: boolean;
|
|
1080
|
+
internalPrepend: number;
|
|
1028
1081
|
multiline: boolean;
|
|
1029
1082
|
arrow: string;
|
|
1030
1083
|
arrowFamily: string;
|
|
1084
|
+
internalAppend: number;
|
|
1031
1085
|
internalArrow: number;
|
|
1032
1086
|
inputProps: import("../input").InputProps;
|
|
1033
1087
|
}) => string)) | undefined;
|
|
@@ -1063,9 +1117,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1063
1117
|
readonly: boolean;
|
|
1064
1118
|
placeholder: string;
|
|
1065
1119
|
clearable: boolean;
|
|
1120
|
+
internalPrepend: number;
|
|
1066
1121
|
multiline: boolean;
|
|
1067
1122
|
arrow: string;
|
|
1068
1123
|
arrowFamily: string;
|
|
1124
|
+
internalAppend: number;
|
|
1069
1125
|
internalArrow: number;
|
|
1070
1126
|
inputProps: import("../input").InputProps;
|
|
1071
1127
|
}) => boolean)) | undefined;
|
|
@@ -1101,9 +1157,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1101
1157
|
readonly: boolean;
|
|
1102
1158
|
placeholder: string;
|
|
1103
1159
|
clearable: boolean;
|
|
1160
|
+
internalPrepend: number;
|
|
1104
1161
|
multiline: boolean;
|
|
1105
1162
|
arrow: string;
|
|
1106
1163
|
arrowFamily: string;
|
|
1164
|
+
internalAppend: number;
|
|
1107
1165
|
internalArrow: number;
|
|
1108
1166
|
inputProps: import("../input").InputProps;
|
|
1109
1167
|
}) => boolean)) | undefined;
|
|
@@ -1139,9 +1197,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1139
1197
|
readonly: boolean;
|
|
1140
1198
|
placeholder: string;
|
|
1141
1199
|
clearable: boolean;
|
|
1200
|
+
internalPrepend: number;
|
|
1142
1201
|
multiline: boolean;
|
|
1143
1202
|
arrow: string;
|
|
1144
1203
|
arrowFamily: string;
|
|
1204
|
+
internalAppend: number;
|
|
1145
1205
|
internalArrow: number;
|
|
1146
1206
|
inputProps: import("../input").InputProps;
|
|
1147
1207
|
}) => string)) | undefined;
|
|
@@ -1177,12 +1237,54 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1177
1237
|
readonly: boolean;
|
|
1178
1238
|
placeholder: string;
|
|
1179
1239
|
clearable: boolean;
|
|
1240
|
+
internalPrepend: number;
|
|
1180
1241
|
multiline: boolean;
|
|
1181
1242
|
arrow: string;
|
|
1182
1243
|
arrowFamily: string;
|
|
1244
|
+
internalAppend: number;
|
|
1183
1245
|
internalArrow: number;
|
|
1184
1246
|
inputProps: import("../input").InputProps;
|
|
1185
1247
|
}) => boolean)) | undefined;
|
|
1248
|
+
internalPrepend?: (number | ((props: {
|
|
1249
|
+
outletFormat: string;
|
|
1250
|
+
valueOnClear: () => any;
|
|
1251
|
+
visible: boolean;
|
|
1252
|
+
title: string;
|
|
1253
|
+
showConfirm: boolean;
|
|
1254
|
+
validateEvent: boolean;
|
|
1255
|
+
popoutClass: string;
|
|
1256
|
+
popoutStyle: import("vue").StyleValue;
|
|
1257
|
+
resettable: boolean;
|
|
1258
|
+
rootStyle: import("vue").StyleValue;
|
|
1259
|
+
rootClass: string;
|
|
1260
|
+
type: import("../calendar").CalendarType;
|
|
1261
|
+
modelValue: Date | Date[] | string | string[];
|
|
1262
|
+
min: Date;
|
|
1263
|
+
max: Date;
|
|
1264
|
+
currentDate: Date;
|
|
1265
|
+
disabledDate: (date: Date) => boolean;
|
|
1266
|
+
maxDays: number;
|
|
1267
|
+
overMaxDays: () => void;
|
|
1268
|
+
weekStartsOn: number;
|
|
1269
|
+
formatter: (day: import("../calendar").CalendarDay) => void;
|
|
1270
|
+
allowSameDay: boolean;
|
|
1271
|
+
severalMonths: boolean;
|
|
1272
|
+
valueFormat: string;
|
|
1273
|
+
startDateText: string;
|
|
1274
|
+
endDateText: string;
|
|
1275
|
+
sameDateText: string;
|
|
1276
|
+
disabled: boolean;
|
|
1277
|
+
readonly: boolean;
|
|
1278
|
+
placeholder: string;
|
|
1279
|
+
clearable: boolean;
|
|
1280
|
+
internalPrepend: number;
|
|
1281
|
+
multiline: boolean;
|
|
1282
|
+
arrow: string;
|
|
1283
|
+
arrowFamily: string;
|
|
1284
|
+
internalAppend: number;
|
|
1285
|
+
internalArrow: number;
|
|
1286
|
+
inputProps: import("../input").InputProps;
|
|
1287
|
+
}) => number)) | undefined;
|
|
1186
1288
|
multiline?: (boolean | ((props: {
|
|
1187
1289
|
outletFormat: string;
|
|
1188
1290
|
valueOnClear: () => any;
|
|
@@ -1215,9 +1317,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1215
1317
|
readonly: boolean;
|
|
1216
1318
|
placeholder: string;
|
|
1217
1319
|
clearable: boolean;
|
|
1320
|
+
internalPrepend: number;
|
|
1218
1321
|
multiline: boolean;
|
|
1219
1322
|
arrow: string;
|
|
1220
1323
|
arrowFamily: string;
|
|
1324
|
+
internalAppend: number;
|
|
1221
1325
|
internalArrow: number;
|
|
1222
1326
|
inputProps: import("../input").InputProps;
|
|
1223
1327
|
}) => boolean)) | undefined;
|
|
@@ -1253,9 +1357,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1253
1357
|
readonly: boolean;
|
|
1254
1358
|
placeholder: string;
|
|
1255
1359
|
clearable: boolean;
|
|
1360
|
+
internalPrepend: number;
|
|
1256
1361
|
multiline: boolean;
|
|
1257
1362
|
arrow: string;
|
|
1258
1363
|
arrowFamily: string;
|
|
1364
|
+
internalAppend: number;
|
|
1259
1365
|
internalArrow: number;
|
|
1260
1366
|
inputProps: import("../input").InputProps;
|
|
1261
1367
|
}) => string)) | undefined;
|
|
@@ -1291,12 +1397,54 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1291
1397
|
readonly: boolean;
|
|
1292
1398
|
placeholder: string;
|
|
1293
1399
|
clearable: boolean;
|
|
1400
|
+
internalPrepend: number;
|
|
1294
1401
|
multiline: boolean;
|
|
1295
1402
|
arrow: string;
|
|
1296
1403
|
arrowFamily: string;
|
|
1404
|
+
internalAppend: number;
|
|
1297
1405
|
internalArrow: number;
|
|
1298
1406
|
inputProps: import("../input").InputProps;
|
|
1299
1407
|
}) => string)) | undefined;
|
|
1408
|
+
internalAppend?: (number | ((props: {
|
|
1409
|
+
outletFormat: string;
|
|
1410
|
+
valueOnClear: () => any;
|
|
1411
|
+
visible: boolean;
|
|
1412
|
+
title: string;
|
|
1413
|
+
showConfirm: boolean;
|
|
1414
|
+
validateEvent: boolean;
|
|
1415
|
+
popoutClass: string;
|
|
1416
|
+
popoutStyle: import("vue").StyleValue;
|
|
1417
|
+
resettable: boolean;
|
|
1418
|
+
rootStyle: import("vue").StyleValue;
|
|
1419
|
+
rootClass: string;
|
|
1420
|
+
type: import("../calendar").CalendarType;
|
|
1421
|
+
modelValue: Date | Date[] | string | string[];
|
|
1422
|
+
min: Date;
|
|
1423
|
+
max: Date;
|
|
1424
|
+
currentDate: Date;
|
|
1425
|
+
disabledDate: (date: Date) => boolean;
|
|
1426
|
+
maxDays: number;
|
|
1427
|
+
overMaxDays: () => void;
|
|
1428
|
+
weekStartsOn: number;
|
|
1429
|
+
formatter: (day: import("../calendar").CalendarDay) => void;
|
|
1430
|
+
allowSameDay: boolean;
|
|
1431
|
+
severalMonths: boolean;
|
|
1432
|
+
valueFormat: string;
|
|
1433
|
+
startDateText: string;
|
|
1434
|
+
endDateText: string;
|
|
1435
|
+
sameDateText: string;
|
|
1436
|
+
disabled: boolean;
|
|
1437
|
+
readonly: boolean;
|
|
1438
|
+
placeholder: string;
|
|
1439
|
+
clearable: boolean;
|
|
1440
|
+
internalPrepend: number;
|
|
1441
|
+
multiline: boolean;
|
|
1442
|
+
arrow: string;
|
|
1443
|
+
arrowFamily: string;
|
|
1444
|
+
internalAppend: number;
|
|
1445
|
+
internalArrow: number;
|
|
1446
|
+
inputProps: import("../input").InputProps;
|
|
1447
|
+
}) => number)) | undefined;
|
|
1300
1448
|
internalArrow?: (number | ((props: {
|
|
1301
1449
|
outletFormat: string;
|
|
1302
1450
|
valueOnClear: () => any;
|
|
@@ -1329,9 +1477,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1329
1477
|
readonly: boolean;
|
|
1330
1478
|
placeholder: string;
|
|
1331
1479
|
clearable: boolean;
|
|
1480
|
+
internalPrepend: number;
|
|
1332
1481
|
multiline: boolean;
|
|
1333
1482
|
arrow: string;
|
|
1334
1483
|
arrowFamily: string;
|
|
1484
|
+
internalAppend: number;
|
|
1335
1485
|
internalArrow: number;
|
|
1336
1486
|
inputProps: import("../input").InputProps;
|
|
1337
1487
|
}) => number)) | undefined;
|
|
@@ -1367,9 +1517,11 @@ export declare const defaultCalendarInputProps: () => {
|
|
|
1367
1517
|
readonly: boolean;
|
|
1368
1518
|
placeholder: string;
|
|
1369
1519
|
clearable: boolean;
|
|
1520
|
+
internalPrepend: number;
|
|
1370
1521
|
multiline: boolean;
|
|
1371
1522
|
arrow: string;
|
|
1372
1523
|
arrowFamily: string;
|
|
1524
|
+
internalAppend: number;
|
|
1373
1525
|
internalArrow: number;
|
|
1374
1526
|
inputProps: import("../input").InputProps;
|
|
1375
1527
|
}) => import("../input").InputProps) | undefined;
|
|
@@ -47,11 +47,7 @@ import CascaderInput from 'sard-uniapp/components/cascader-input/cascader-input.
|
|
|
47
47
|
|
|
48
48
|
### CascaderInputSlots
|
|
49
49
|
|
|
50
|
-
继承 [`CascaderPopoutSlots`](./cascader-popout#CascaderPopoutSlots)
|
|
51
|
-
|
|
52
|
-
| 插槽 | 描述 | 属性 |
|
|
53
|
-
| ---------------------- | ---------- | ---------- |
|
|
54
|
-
| arrow <sup>1.22+</sup> | 自定义箭头 | () => void |
|
|
50
|
+
继承 [`CascaderPopoutSlots`](./cascader-popout#CascaderPopoutSlots)和[`PopoutInputSlots`](./popout-input#PopoutInputSlots)
|
|
55
51
|
|
|
56
52
|
### CascaderInputEmits
|
|
57
53
|
|
|
@@ -25,9 +25,11 @@ declare const __VLS_component: import("vue").DefineComponent<CascaderInputProps,
|
|
|
25
25
|
resettable: boolean;
|
|
26
26
|
placeholder: string;
|
|
27
27
|
clearable: boolean;
|
|
28
|
+
internalPrepend: number;
|
|
28
29
|
multiline: boolean;
|
|
29
30
|
arrow: string;
|
|
30
31
|
arrowFamily: string;
|
|
32
|
+
internalAppend: number;
|
|
31
33
|
internalArrow: number;
|
|
32
34
|
inputProps: import("../input/common.js").InputProps;
|
|
33
35
|
fieldKeys: CascaderFieldKeys;
|
|
@@ -10,11 +10,19 @@
|
|
|
10
10
|
:root-style="rootStyle"
|
|
11
11
|
:arrow="arrow"
|
|
12
12
|
:internal-arrow="$slots.arrow ? 1 : 0"
|
|
13
|
+
:internal-prepend="$slots.prepend ? 1 : 0"
|
|
14
|
+
:internal-append="$slots.append ? 1 : 0"
|
|
13
15
|
:input-props="inputProps"
|
|
14
16
|
@clear="onClear"
|
|
15
17
|
@click="show"
|
|
16
18
|
>
|
|
17
|
-
<template
|
|
19
|
+
<template #prepend>
|
|
20
|
+
<slot name="prepend"></slot>
|
|
21
|
+
</template>
|
|
22
|
+
<template #append>
|
|
23
|
+
<slot name="append"></slot>
|
|
24
|
+
</template>
|
|
25
|
+
<template #arrow>
|
|
18
26
|
<slot name="arrow"></slot>
|
|
19
27
|
</template>
|
|
20
28
|
<sar-cascader-popout
|
|
@@ -136,6 +144,8 @@ export default _defineComponent({
|
|
|
136
144
|
multiline: { type: Boolean, required: false },
|
|
137
145
|
arrow: { type: String, required: false },
|
|
138
146
|
arrowFamily: { type: String, required: false },
|
|
147
|
+
internalPrepend: { type: Number, required: false },
|
|
148
|
+
internalAppend: { type: Number, required: false },
|
|
139
149
|
internalArrow: { type: Number, required: false },
|
|
140
150
|
inputProps: { type: Object, required: false }
|
|
141
151
|
}, defaultCascaderInputProps()),
|