@xtdev/xt-miniprogram-ui 1.2.60 → 1.2.63
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/libs/package.json +1 -0
- package/libs/xt-button/README.md +60 -0
- package/libs/xt-button/index.js +116 -0
- package/libs/xt-button/index.json +7 -0
- package/libs/xt-button/index.wxml +31 -0
- package/libs/xt-button/index.wxss +70 -0
- package/libs/xt-card-cell/README.md +67 -0
- package/libs/xt-card-cell/index.js +43 -0
- package/libs/xt-card-cell/index.json +6 -0
- package/libs/xt-card-cell/index.wxml +34 -0
- package/libs/xt-card-cell/index.wxss +89 -0
- package/libs/xt-cell/README.md +41 -0
- package/libs/xt-cell/index.js +42 -0
- package/libs/xt-cell/index.json +7 -0
- package/libs/xt-cell/index.wxml +12 -0
- package/libs/xt-cell/index.wxss +50 -0
- package/libs/xt-date-picker/README.md +77 -0
- package/libs/xt-date-picker/index.js +443 -0
- package/libs/xt-date-picker/index.json +7 -0
- package/libs/xt-date-picker/index.wxml +58 -0
- package/libs/xt-date-picker/index.wxss +118 -0
- package/libs/xt-date-picker-loop/README.md +77 -0
- package/libs/xt-date-picker-loop/index.js +684 -0
- package/libs/xt-date-picker-loop/index.json +8 -0
- package/libs/xt-date-picker-loop/index.wxml +61 -0
- package/libs/xt-date-picker-loop/index.wxss +117 -0
- package/libs/xt-dialog/README.md +157 -0
- package/libs/xt-dialog/index.js +142 -0
- package/libs/xt-dialog/index.json +5 -0
- package/libs/xt-dialog/index.wxml +64 -0
- package/libs/xt-dialog/index.wxss +129 -0
- package/libs/xt-form/index.js +83 -0
- package/libs/xt-form/index.json +5 -0
- package/libs/xt-form/index.wxml +67 -0
- package/libs/xt-form/index.wxss +141 -0
- package/libs/xt-icon/README.md +39 -0
- package/libs/xt-icon/index.js +25 -0
- package/libs/xt-icon/index.json +5 -0
- package/libs/xt-icon/index.wxml +2 -0
- package/libs/xt-icon/index.wxss +159 -0
- package/libs/xt-popover/README.md +71 -0
- package/libs/xt-popover/index.js +209 -0
- package/libs/xt-popover/index.json +7 -0
- package/libs/xt-popover/index.wxml +43 -0
- package/libs/xt-popover/index.wxss +135 -0
- package/libs/xt-search/README.md +55 -0
- package/libs/xt-search/index.js +88 -0
- package/libs/xt-search/index.json +7 -0
- package/libs/xt-search/index.wxml +17 -0
- package/libs/xt-search/index.wxss +82 -0
- package/libs/xt-stepper/README.md +52 -0
- package/libs/xt-stepper/index.js +158 -0
- package/libs/xt-stepper/index.json +5 -0
- package/libs/xt-stepper/index.wxml +11 -0
- package/libs/xt-stepper/index.wxss +77 -0
- package/libs/xt-steps/README.md +79 -0
- package/libs/xt-steps/index.js +37 -0
- package/libs/xt-steps/index.json +7 -0
- package/libs/xt-steps/index.wxml +34 -0
- package/libs/xt-steps/index.wxss +186 -0
- package/libs/xt-tabs/README.md +98 -0
- package/libs/xt-tabs/index.js +35 -0
- package/libs/xt-tabs/index.json +6 -0
- package/libs/xt-tabs/index.wxml +10 -0
- package/libs/xt-tabs/index.wxss +76 -0
- package/libs/xt-tag/README.md +65 -0
- package/libs/xt-tag/index.js +38 -0
- package/libs/xt-tag/index.json +7 -0
- package/libs/xt-tag/index.wxml +5 -0
- package/libs/xt-tag/index.wxss +36 -0
- package/libs/xt-toast/README.md +65 -0
- package/libs/xt-toast/index.js +85 -0
- package/libs/xt-toast/index.json +7 -0
- package/libs/xt-toast/index.wxml +6 -0
- package/libs/xt-toast/index.wxss +27 -0
- package/libs/xt-uploader/README.md +46 -0
- package/libs/xt-uploader/index.js +233 -0
- package/libs/xt-uploader/index.json +7 -0
- package/libs/xt-uploader/index.wxml +15 -0
- package/libs/xt-uploader/index.wxss +68 -0
- package/libs/xt-uploader/utils.js +69 -0
- package/package.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: Mr.Hu
|
|
3
|
+
* @Date: 2024-01-04 16:02:07
|
|
4
|
+
* @Description:
|
|
5
|
+
* @LastEditors: Mr.Hu
|
|
6
|
+
-->
|
|
7
|
+
# 时间选择器
|
|
8
|
+
|
|
9
|
+
### 介绍
|
|
10
|
+
用于选择单个时间点或时间范围
|
|
11
|
+
|
|
12
|
+
### 效果图
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
### 引入
|
|
16
|
+
在app.json或页面配置json中引入
|
|
17
|
+
```
|
|
18
|
+
"usingComponents": {
|
|
19
|
+
"xt-date-picker": "@xtdev/xt-miniprogram-ui/xt-date-picker",
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 代码演示
|
|
24
|
+
|
|
25
|
+
### 基础用法
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
<xt-date-picker show="{{true}}" />
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 指定为按日筛选
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
<xt-date-picker show="{{true}}" type="date" />
|
|
37
|
+
```
|
|
38
|
+
### 指定最小和最大可选日期
|
|
39
|
+

|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
<xt-date-picker show="{{true}}" minDate="2023-4-1" maxDate="2024-4-1"/>
|
|
43
|
+
```
|
|
44
|
+
### 指定选择器默认选中日期
|
|
45
|
+

|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
<xt-date-picker show="{{true}}" currentDate="2022-4-1"/>
|
|
49
|
+
```
|
|
50
|
+
### 展示切换模式按钮
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
<xt-date-picker show="{{true}}" showChangeTab="{{true}}"/>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## API
|
|
58
|
+
|
|
59
|
+
#### xt-date-picker props
|
|
60
|
+
|
|
61
|
+
| 参数 | 说明 | 类型 |
|
|
62
|
+
| ----------- | ----------- | ---------- |
|
|
63
|
+
| show | 是否显示时间选择器,默认false | `Boolean` |
|
|
64
|
+
| title | 选择器标题 | `String` |
|
|
65
|
+
| type | 选择模式,默认`dateRange`(可选值为`date`、`dateRange`) | `String` |
|
|
66
|
+
| minDate | 最小可选日期 | `String` |
|
|
67
|
+
| maxDate | 最大可选日期 | `String` |
|
|
68
|
+
| currentDate | 选择器默认选中的日期,默认为当天 | `Number` |
|
|
69
|
+
| showChangeTab | 是否展示切换模式按钮,默认false | `Boolean` |
|
|
70
|
+
| confirmButtonText | 确认按钮文字 | `String` |
|
|
71
|
+
| cancelButtonText | 取消按钮文字 | `String` |
|
|
72
|
+
|
|
73
|
+
## Event
|
|
74
|
+
|
|
75
|
+
| 事件名 | 说明 | 回调参数 |
|
|
76
|
+
| ----------- | ----------- | ----------- |
|
|
77
|
+
| getDateValue | 点击确认按钮时触发 | `String` |
|