@xtdev/xt-miniprogram-ui 1.2.57 → 1.2.60
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/package.json +1 -1
- package/libs/package.json +0 -1
- package/libs/xt-button/README.md +0 -60
- package/libs/xt-button/index.js +0 -116
- package/libs/xt-button/index.json +0 -7
- package/libs/xt-button/index.wxml +0 -31
- package/libs/xt-button/index.wxss +0 -70
- package/libs/xt-card-cell/README.md +0 -67
- package/libs/xt-card-cell/index.js +0 -43
- package/libs/xt-card-cell/index.json +0 -6
- package/libs/xt-card-cell/index.wxml +0 -34
- package/libs/xt-card-cell/index.wxss +0 -89
- package/libs/xt-cell/README.md +0 -41
- package/libs/xt-cell/index.js +0 -42
- package/libs/xt-cell/index.json +0 -7
- package/libs/xt-cell/index.wxml +0 -12
- package/libs/xt-cell/index.wxss +0 -50
- package/libs/xt-date-picker/README.md +0 -77
- package/libs/xt-date-picker/index.js +0 -443
- package/libs/xt-date-picker/index.json +0 -7
- package/libs/xt-date-picker/index.wxml +0 -58
- package/libs/xt-date-picker/index.wxss +0 -118
- package/libs/xt-date-picker-loop/README.md +0 -77
- package/libs/xt-date-picker-loop/index.js +0 -684
- package/libs/xt-date-picker-loop/index.json +0 -8
- package/libs/xt-date-picker-loop/index.wxml +0 -61
- package/libs/xt-date-picker-loop/index.wxss +0 -117
- package/libs/xt-dialog/README.md +0 -157
- package/libs/xt-dialog/index.js +0 -142
- package/libs/xt-dialog/index.json +0 -5
- package/libs/xt-dialog/index.wxml +0 -64
- package/libs/xt-dialog/index.wxss +0 -129
- package/libs/xt-form/index.js +0 -83
- package/libs/xt-form/index.json +0 -5
- package/libs/xt-form/index.wxml +0 -67
- package/libs/xt-form/index.wxss +0 -141
- package/libs/xt-icon/README.md +0 -39
- package/libs/xt-icon/index.js +0 -25
- package/libs/xt-icon/index.json +0 -5
- package/libs/xt-icon/index.wxml +0 -2
- package/libs/xt-icon/index.wxss +0 -159
- package/libs/xt-popover/README.md +0 -71
- package/libs/xt-popover/index.js +0 -209
- package/libs/xt-popover/index.json +0 -7
- package/libs/xt-popover/index.wxml +0 -42
- package/libs/xt-popover/index.wxss +0 -135
- package/libs/xt-search/README.md +0 -55
- package/libs/xt-search/index.js +0 -88
- package/libs/xt-search/index.json +0 -7
- package/libs/xt-search/index.wxml +0 -17
- package/libs/xt-search/index.wxss +0 -82
- package/libs/xt-stepper/README.md +0 -52
- package/libs/xt-stepper/index.js +0 -158
- package/libs/xt-stepper/index.json +0 -5
- package/libs/xt-stepper/index.wxml +0 -11
- package/libs/xt-stepper/index.wxss +0 -77
- package/libs/xt-steps/README.md +0 -79
- package/libs/xt-steps/index.js +0 -37
- package/libs/xt-steps/index.json +0 -7
- package/libs/xt-steps/index.wxml +0 -34
- package/libs/xt-steps/index.wxss +0 -186
- package/libs/xt-tabs/README.md +0 -98
- package/libs/xt-tabs/index.js +0 -35
- package/libs/xt-tabs/index.json +0 -6
- package/libs/xt-tabs/index.wxml +0 -10
- package/libs/xt-tabs/index.wxss +0 -76
- package/libs/xt-tag/README.md +0 -65
- package/libs/xt-tag/index.js +0 -38
- package/libs/xt-tag/index.json +0 -7
- package/libs/xt-tag/index.wxml +0 -5
- package/libs/xt-tag/index.wxss +0 -36
- package/libs/xt-toast/README.md +0 -65
- package/libs/xt-toast/index.js +0 -85
- package/libs/xt-toast/index.json +0 -7
- package/libs/xt-toast/index.wxml +0 -6
- package/libs/xt-toast/index.wxss +0 -27
- package/libs/xt-uploader/README.md +0 -46
- package/libs/xt-uploader/index.js +0 -233
- package/libs/xt-uploader/index.json +0 -7
- package/libs/xt-uploader/index.wxml +0 -15
- package/libs/xt-uploader/index.wxss +0 -68
- package/libs/xt-uploader/utils.js +0 -69
package/libs/xt-form/index.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
// src/xt-form/index.js
|
|
2
|
-
Component({
|
|
3
|
-
/**
|
|
4
|
-
* 组件的属性列表
|
|
5
|
-
*/
|
|
6
|
-
properties: {
|
|
7
|
-
item: {
|
|
8
|
-
type: Object,
|
|
9
|
-
value: {
|
|
10
|
-
key: '', // 必传,输入框的key值,唯一性
|
|
11
|
-
title: '', // 标题
|
|
12
|
-
value: '', // 展示的值
|
|
13
|
-
maxlength: -1, // 默认为-1
|
|
14
|
-
placeholder: '', // 输入框为空时占位符
|
|
15
|
-
// 输入框类型:input-普通输入框 select-选择框 inputBtn-带按钮 inputUnit-带单位
|
|
16
|
-
inputType: '',
|
|
17
|
-
unit: '', // 单位输入框的单位文案
|
|
18
|
-
btnText: '', // 按钮输入框的按钮文案
|
|
19
|
-
icon: '', // 带icon选择框,icon的链接地址
|
|
20
|
-
iconSize: '', // incon大小类型: big-定位或其它图标 small-右箭头
|
|
21
|
-
error: '', // 输入框下方的错误提示信息文案
|
|
22
|
-
showError: false, // 是否展示 error信息
|
|
23
|
-
type: '', // 输入框的输入类型, 非必传,不传则默认为文本
|
|
24
|
-
disabled: false,
|
|
25
|
-
backColor: '', // 背景色,默认#f5f5f5
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 组件的初始数据
|
|
32
|
-
*/
|
|
33
|
-
data: {
|
|
34
|
-
focus: false, // 是否聚焦
|
|
35
|
-
value: '', // 输入框的值
|
|
36
|
-
type: 'text', // 输入框的输入类型, 默认为文本
|
|
37
|
-
maxlength: -1, // 默认没有maxlength
|
|
38
|
-
disabled: false, // 默认不禁用
|
|
39
|
-
backColor: '#f5f5f5', // 默认灰色
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 组件的方法列表
|
|
44
|
-
*/
|
|
45
|
-
methods: {
|
|
46
|
-
onFocus() {
|
|
47
|
-
this.setData({
|
|
48
|
-
focus: true
|
|
49
|
-
})
|
|
50
|
-
},
|
|
51
|
-
onBlur(e) {
|
|
52
|
-
let item = e.currentTarget.dataset.item;
|
|
53
|
-
item.value = this.data.value;
|
|
54
|
-
this.setData({
|
|
55
|
-
focus: false
|
|
56
|
-
})
|
|
57
|
-
this.triggerEvent('onBlur', item);
|
|
58
|
-
},
|
|
59
|
-
onInputChange(e) {
|
|
60
|
-
let item = e.currentTarget.dataset.item;
|
|
61
|
-
this.setData({
|
|
62
|
-
value: e.detail.value
|
|
63
|
-
})
|
|
64
|
-
this.triggerEvent('onInputChange', item);
|
|
65
|
-
},
|
|
66
|
-
// 点击选择框
|
|
67
|
-
onOpenSelect(e) {
|
|
68
|
-
let item = e.currentTarget.dataset.item;
|
|
69
|
-
if (item.disabled) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
this.triggerEvent('onOpenSelect', item);
|
|
73
|
-
},
|
|
74
|
-
// 点击输入框中的按钮
|
|
75
|
-
onBtnClick(e) {
|
|
76
|
-
let item = e.currentTarget.dataset.item;
|
|
77
|
-
if (item.disabled) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
this.triggerEvent('onBtnClick', item);
|
|
81
|
-
},
|
|
82
|
-
}
|
|
83
|
-
})
|
package/libs/xt-form/index.json
DELETED
package/libs/xt-form/index.wxml
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<!-- 标题 -->
|
|
2
|
-
<view wx:if="{{item.title}}" class="xt-input-title {{focus?'title-hover': item.showError?'error-hover':''}}">{{item.title}}<text wx:if="{{item.require}}" class="require {{focus?'title-hover':''}}">*</text></view>
|
|
3
|
-
<!-- 默认输入框 -->
|
|
4
|
-
<input
|
|
5
|
-
wx:if="{{item.inputType === 'input'}}"
|
|
6
|
-
type="{{item.type || type}}"
|
|
7
|
-
value="{{item.value}}"
|
|
8
|
-
placeholder="{{item.placeholder}}"
|
|
9
|
-
bindfocus="onFocus"
|
|
10
|
-
bindblur="onBlur"
|
|
11
|
-
bindinput="onInputChange"
|
|
12
|
-
data-item="{{item}}"
|
|
13
|
-
disabled="{{item.disabled || disabled}}"
|
|
14
|
-
maxlength="{{item.maxlength || maxlength}}"
|
|
15
|
-
class="xt-input xt-default"
|
|
16
|
-
style="background-color: {{item.backColor || backColor}}"
|
|
17
|
-
/>
|
|
18
|
-
<!-- 带单位输入框 -->
|
|
19
|
-
<view class="xt-input-div" style="background-color: {{item.backColor || backColor}}" wx:if="{{item.inputType === 'inputUnit'}}">
|
|
20
|
-
<input
|
|
21
|
-
type="{{item.type || type}}"
|
|
22
|
-
value="{{item.value}}"
|
|
23
|
-
placeholder="{{item.placeholder}}"
|
|
24
|
-
bindfocus="onFocus"
|
|
25
|
-
bindblur="onBlur"
|
|
26
|
-
bindinput="onInputChange"
|
|
27
|
-
data-item="{{item}}"
|
|
28
|
-
disabled="{{item.disabled || disabled}}"
|
|
29
|
-
maxlength="{{item.maxlength || maxlength}}"
|
|
30
|
-
class="xt-input-unit"
|
|
31
|
-
/>
|
|
32
|
-
<view class="xt-inputunit-text">
|
|
33
|
-
{{item.unit}}
|
|
34
|
-
</view>
|
|
35
|
-
</view>
|
|
36
|
-
<!-- 带按钮输入框 -->
|
|
37
|
-
<view class="xt-input-div" style="background-color: {{item.backColor || backColor}}" wx:if="{{item.inputType === 'inputBtn'}}">
|
|
38
|
-
<input
|
|
39
|
-
value="{{item.value}}"
|
|
40
|
-
type="{{item.type || type}}"
|
|
41
|
-
placeholder="{{item.placeholder}}"
|
|
42
|
-
bindfocus="onFocus"
|
|
43
|
-
bindblur="onBlur"
|
|
44
|
-
bindinput="onInputChange"
|
|
45
|
-
data-item="{{item}}"
|
|
46
|
-
disabled="{{item.disabled || disabled}}"
|
|
47
|
-
maxlength="{{item.maxlength || maxlength}}"
|
|
48
|
-
class="xt-input-btn"
|
|
49
|
-
/>
|
|
50
|
-
<view class="xt-inputbtn-text" bindtap="onBtnClick" data-item="{{item}}">
|
|
51
|
-
{{item.btnText}}
|
|
52
|
-
</view>
|
|
53
|
-
</view>
|
|
54
|
-
<!-- 选择框 -->
|
|
55
|
-
<view bindtap="onOpenSelect" data-item="{{item}}" class="xt-select {{item.iconSize}} " wx:if="{{item.inputType === 'select'}}">
|
|
56
|
-
<view class="xt-select-input {{item.value?'':'xt-placeholder'}}" style="background-color: {{item.backColor || backColor}}">
|
|
57
|
-
{{item.value?item.value:item.placeholder}}
|
|
58
|
-
</view>
|
|
59
|
-
<image wx:if="{{!item.disabled}}" class="xt-input-icon " src="{{item.icon}}"></image>
|
|
60
|
-
</view>
|
|
61
|
-
<!-- 错误提示 -->
|
|
62
|
-
<view class="error-div" wx:if="{{item.error && item.showError && !focus}}">
|
|
63
|
-
<image class='error-img' src="https://img.tanjiu.cn/home/B3xFaxewJHAJXmwErFFd3c8YhwjAdRcy.png" mode=""/>
|
|
64
|
-
<view class="error-text">{{item.error}}</view>
|
|
65
|
-
</view>
|
|
66
|
-
<!-- 自定义内容 -->
|
|
67
|
-
<slot></slot>
|
package/libs/xt-form/index.wxss
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/* input:默认 开始 */
|
|
2
|
-
.xt-input-title {
|
|
3
|
-
font-size: 34rpx;
|
|
4
|
-
line-height: 48rpx;
|
|
5
|
-
font-weight: 800;
|
|
6
|
-
color: #000000;
|
|
7
|
-
margin-bottom: 16rpx;
|
|
8
|
-
}
|
|
9
|
-
.require {
|
|
10
|
-
color: #FF4D4D;
|
|
11
|
-
}
|
|
12
|
-
.title-hover {
|
|
13
|
-
color: #6622AA;
|
|
14
|
-
}
|
|
15
|
-
.error-hover {
|
|
16
|
-
color: #FF4D4D;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.xt-input {
|
|
20
|
-
width: 100%;
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
font-size: 40rpx;
|
|
23
|
-
line-height: 56rpx;
|
|
24
|
-
border-radius: 12rpx;
|
|
25
|
-
}
|
|
26
|
-
.xt-default {
|
|
27
|
-
height: 96rpx;
|
|
28
|
-
padding: 0 16rpx;
|
|
29
|
-
}
|
|
30
|
-
/* input:带按钮或单位 */
|
|
31
|
-
.xt-input-div {
|
|
32
|
-
width: 100%;
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
border-radius: 12rpx;
|
|
36
|
-
}
|
|
37
|
-
.xt-input-div input{
|
|
38
|
-
flex: 1;
|
|
39
|
-
}
|
|
40
|
-
.xt-input-btn {
|
|
41
|
-
height: 112rpx;
|
|
42
|
-
font-size: 40rpx;
|
|
43
|
-
line-height: 56rpx;
|
|
44
|
-
padding: 0 16rpx;
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
}
|
|
47
|
-
.xt-inputbtn-text {
|
|
48
|
-
font-size: 34rpx;
|
|
49
|
-
line-height: 48rpx;
|
|
50
|
-
padding: 16rpx 32rpx;
|
|
51
|
-
box-sizing: border-box;
|
|
52
|
-
background-color: #6722AB;
|
|
53
|
-
color: white;
|
|
54
|
-
border-radius: 120rpx;
|
|
55
|
-
height: 80rpx;
|
|
56
|
-
margin-right: 24rpx;
|
|
57
|
-
font-weight: 800;
|
|
58
|
-
}
|
|
59
|
-
/* 单位 */
|
|
60
|
-
.xt-input-unit {
|
|
61
|
-
height: 96rpx;
|
|
62
|
-
font-size: 40rpx;
|
|
63
|
-
line-height: 56rpx;
|
|
64
|
-
padding: 0 16rpx;
|
|
65
|
-
box-sizing: border-box;
|
|
66
|
-
}
|
|
67
|
-
.xt-inputunit-text {
|
|
68
|
-
font-size: 40rpx;
|
|
69
|
-
line-height: 96rpx;
|
|
70
|
-
box-sizing: border-box;
|
|
71
|
-
color: #000000;
|
|
72
|
-
height: 96rpx;
|
|
73
|
-
margin-right: 32rpx;
|
|
74
|
-
}
|
|
75
|
-
/* select:开始 */
|
|
76
|
-
.xt-select {
|
|
77
|
-
position: relative;
|
|
78
|
-
width: 100%;
|
|
79
|
-
height: auto;
|
|
80
|
-
}
|
|
81
|
-
.xt-select-input {
|
|
82
|
-
width: 100%;
|
|
83
|
-
font-size: 40rpx;
|
|
84
|
-
line-height: 56rpx;
|
|
85
|
-
box-sizing: border-box;
|
|
86
|
-
border-radius: 12rpx;
|
|
87
|
-
}
|
|
88
|
-
.xt-placeholder {
|
|
89
|
-
color: #727272;
|
|
90
|
-
}
|
|
91
|
-
.xt-input-icon {
|
|
92
|
-
position: absolute;
|
|
93
|
-
top: 50%;
|
|
94
|
-
right: 16rpx;
|
|
95
|
-
transform: translate(0%, -50%);
|
|
96
|
-
}
|
|
97
|
-
/* 右边小图标 */
|
|
98
|
-
.small view{
|
|
99
|
-
padding: 20rpx 48rpx 20rpx 16rpx;
|
|
100
|
-
}
|
|
101
|
-
.small image{
|
|
102
|
-
width: 32rpx;
|
|
103
|
-
height: 32rpx;
|
|
104
|
-
}
|
|
105
|
-
/* 右边大图标 */
|
|
106
|
-
.big view{
|
|
107
|
-
padding: 20rpx 80rpx 20rpx 16rpx;
|
|
108
|
-
}
|
|
109
|
-
.big image{
|
|
110
|
-
width: 48rpx;
|
|
111
|
-
height: 48rpx;
|
|
112
|
-
}
|
|
113
|
-
/* select:结束 */
|
|
114
|
-
/* textarea */
|
|
115
|
-
.xt-textarea {
|
|
116
|
-
box-sizing: border-box;
|
|
117
|
-
width: 100%;
|
|
118
|
-
padding: 20rpx 16rpx;
|
|
119
|
-
font-size: 40rpx;
|
|
120
|
-
line-height: 56rpx;
|
|
121
|
-
border-radius: 12rpx;
|
|
122
|
-
/* min-height: 96rpx; */
|
|
123
|
-
}
|
|
124
|
-
/* */
|
|
125
|
-
.error-div {
|
|
126
|
-
display: flex;
|
|
127
|
-
}
|
|
128
|
-
.error-img {
|
|
129
|
-
width: 32rpx;
|
|
130
|
-
height: 32rpx;
|
|
131
|
-
margin-right: 8rpx;
|
|
132
|
-
margin-top: 14rpx;
|
|
133
|
-
}
|
|
134
|
-
.error-text {
|
|
135
|
-
font-size: 32rpx;
|
|
136
|
-
line-height: 44rpx;
|
|
137
|
-
color: #ff4d4d;
|
|
138
|
-
flex: 1;
|
|
139
|
-
margin-top: 8rpx;
|
|
140
|
-
word-break: break-all;
|
|
141
|
-
}
|
package/libs/xt-icon/README.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Icon图标
|
|
2
|
-
|
|
3
|
-
### 介绍
|
|
4
|
-
基于字体的图标集,具体查看iconfont
|
|
5
|
-
|
|
6
|
-
###效果图
|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
### 引入
|
|
10
|
-
在app.json或页面配置json中引入
|
|
11
|
-
```
|
|
12
|
-
"usingComponents": {
|
|
13
|
-
"xt-icon": "@xtdev/xt-miniprogram-ui/xt-icon",
|
|
14
|
-
}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## 代码演示
|
|
18
|
-
|
|
19
|
-
### 基础用法
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
<xt-icon icon="wenhao"></xt-icon>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### 图标大小
|
|
26
|
-
设置 `size` 属性控制图标大小
|
|
27
|
-
```
|
|
28
|
-
<xt-icon icon="wenhao" size="{{32}}">
|
|
29
|
-
</xt-card-cell>
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
##API
|
|
33
|
-
|
|
34
|
-
####xt-icon props
|
|
35
|
-
|
|
36
|
-
| 参数 | 说明 | 类型 |
|
|
37
|
-
| ----------- | ----------- | ---------- |
|
|
38
|
-
| icon | 图标名称,具体值见iconfont | `String` |
|
|
39
|
-
| size | 图标大小,单位rpx | `Number` |
|
package/libs/xt-icon/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// pages/components/xt-icon.js
|
|
2
|
-
Component({
|
|
3
|
-
/**
|
|
4
|
-
* 组件的属性列表
|
|
5
|
-
*/
|
|
6
|
-
properties: {
|
|
7
|
-
icon: {
|
|
8
|
-
type: String,
|
|
9
|
-
},
|
|
10
|
-
size: {
|
|
11
|
-
type: Number,
|
|
12
|
-
value: 28,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 组件的初始数据
|
|
18
|
-
*/
|
|
19
|
-
data: {},
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 组件的方法列表
|
|
23
|
-
*/
|
|
24
|
-
methods: {},
|
|
25
|
-
});
|
package/libs/xt-icon/index.json
DELETED
package/libs/xt-icon/index.wxml
DELETED
package/libs/xt-icon/index.wxss
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "iconfont"; /* Project id 4088939 */
|
|
3
|
-
src: url('https://at.alicdn.com/t/c/font_4088939_jcdv8i40wy.woff2?t=1690182324093') format('woff2'),
|
|
4
|
-
url('https://at.alicdn.com/t/c/font_4088939_jcdv8i40wy.woff?t=1690182324093') format('woff'),
|
|
5
|
-
url('https://at.alicdn.com/t/c/font_4088939_jcdv8i40wy.ttf?t=1690182324093') format('truetype');
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.iconfont {
|
|
9
|
-
font-family: "iconfont" !important;
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
line-height: 1;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
-webkit-font-smoothing: antialiased;
|
|
14
|
-
-moz-osx-font-smoothing: grayscale;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.icon-dingwei:before {
|
|
18
|
-
content: "\e61e";
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.icon-weixing:before {
|
|
22
|
-
content: "\e61f";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.icon-qianbao:before {
|
|
26
|
-
content: "\e620";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.icon-liushui:before {
|
|
30
|
-
content: "\e621";
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.icon-tongguo:before {
|
|
34
|
-
content: "\e622";
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.icon-yinhangka:before {
|
|
38
|
-
content: "\e624";
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.icon-fangfu:before {
|
|
42
|
-
content: "\e625";
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.icon-saomiao:before {
|
|
46
|
-
content: "\e626";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.icon-tixing:before {
|
|
50
|
-
content: "\e627";
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.icon-shibai-xiao:before {
|
|
54
|
-
content: "\e628";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.icon-shouji:before {
|
|
58
|
-
content: "\e629";
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.icon-kabao:before {
|
|
62
|
-
content: "\e62a";
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.icon-paizhao:before {
|
|
66
|
-
content: "\e62b";
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.icon-shaixuan-yuan:before {
|
|
70
|
-
content: "\e62c";
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.icon-arrow:before {
|
|
74
|
-
content: "\e62d";
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.icon-xingzhuangjiehe:before {
|
|
78
|
-
content: "\e60e";
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.icon-shibai-kongxin:before {
|
|
82
|
-
content: "\e60f";
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.icon-jingao-kongxin:before {
|
|
86
|
-
content: "\e614";
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.icon-dengdai-kongxin:before {
|
|
90
|
-
content: "\e615";
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.icon-dengdai:before {
|
|
94
|
-
content: "\e616";
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.icon-shibai-da:before {
|
|
98
|
-
content: "\e61d";
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.icon-jia-xuanzhong:before {
|
|
102
|
-
content: "\e683";
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.icon-jian-xuanzhong:before {
|
|
106
|
-
content: "\e684";
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.icon-xiala:before {
|
|
110
|
-
content: "\e685";
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.icon-shangla:before {
|
|
114
|
-
content: "\e686";
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.icon-jinggao:before {
|
|
118
|
-
content: "\e687";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.icon-weixuanzhong1:before {
|
|
122
|
-
content: "\e688";
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.icon-daohang:before {
|
|
126
|
-
content: "\e60d";
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.icon-shouqi:before {
|
|
130
|
-
content: "\e610";
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.icon-shaixuan:before {
|
|
134
|
-
content: "\e611";
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.icon-shanchu:before {
|
|
138
|
-
content: "\e612";
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.icon-sousuo:before {
|
|
142
|
-
content: "\e613";
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.icon-zhengque:before {
|
|
146
|
-
content: "\e617";
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.icon-wenhao-xiao:before {
|
|
150
|
-
content: "\e618";
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.icon-youjiantou:before {
|
|
154
|
-
content: "\e619";
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.icon-zhankai:before {
|
|
158
|
-
content: "\e61b";
|
|
159
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Popover 底部弹窗
|
|
2
|
-
|
|
3
|
-
### 介绍
|
|
4
|
-
底部操作弹窗
|
|
5
|
-
|
|
6
|
-
###效果图
|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
### 引入
|
|
10
|
-
在app.json或页面配置json中引入
|
|
11
|
-
```
|
|
12
|
-
"usingComponents": {
|
|
13
|
-
"xt-popover": "@xtdev/xt-miniprogram-ui/xt-popover",
|
|
14
|
-
}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## 代码演示
|
|
18
|
-
|
|
19
|
-
### 基础用法
|
|
20
|
-
|
|
21
|
-
#### 操作样式
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
<xt-popover show="{{isShow1}}" itemTextKey="name" operates="{{operates}}" type="{{type}}" bind:onChooseItemClick="chooseItemClick" bind:onClose="closePopover"></xt-popover>
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
#### 文本样式
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
<xt-popover title="Popover 弹出框-文本样式" show="{{isShow2}}" type="{{type}}" textContent="{{textContent}}" bind:onClose="closePopover" bind:onConfirm="confirm"></xt-popover>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
#### 选择样式-单选
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
<xt-popover title="Popover 弹出框-选择样式-单选" show="{{isShow3}}" type="{{type}}" itemTextKey="areaName" contrastId="areaId" bind:onConfirm="confirm" sourceData="{{sourceData}}" selectData="{{selectData}}" bind:onChooseItemClick="chooseItemClick" bind:onClose="closePopover"></xt-popover>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
#### 选择样式-多选
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
<xt-popover title=" Popover 弹出框-选择样式-多选" show="{{isShow4}}" type="{{type}}" itemTextKey="areaName" contrastId="areaId" bind:onConfirm="confirm" sourceData="{{sourceData}}" selectData="{{selectData}}" bind:onChooseItemClick="chooseItemClick" bind:onClose="closePopover"></xt-popover>
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## API
|
|
46
|
-
|
|
47
|
-
#### xt-popover props
|
|
48
|
-
|
|
49
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
50
|
-
| ----------- | ----------- | ---------- | ------------ |
|
|
51
|
-
| type | 弹窗类型,可选值为 `operate` `text` `single` `multiple` | string | `operate`
|
|
52
|
-
| zIndx | z-index 层级 | number | `999`
|
|
53
|
-
| title | 弹窗标题 | string | `无`
|
|
54
|
-
| show | 是否展示弹窗 | boolean | `false`
|
|
55
|
-
| showCloseIcon | 是否展示弹窗关闭图标 | boolean | `true`
|
|
56
|
-
| textContent | 弹窗类型为 `text` 的文本内容 | string | `无`
|
|
57
|
-
| itemTextKey | 弹窗类型为 `operate` `single` `multiple` 的文本内容的 key | string | `无`
|
|
58
|
-
| operates | 弹窗类型为 `operate` 时的操作数组 | array | `无`
|
|
59
|
-
| sourceData | 总的数据 | array | `[]`
|
|
60
|
-
| selectData | 选中的数据 | array | `[]`
|
|
61
|
-
| contrastId | 用于是否选中数据对比的依据 | string | `无`
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
####Events
|
|
66
|
-
|
|
67
|
-
| 事件名 | 说明 | 回调参数 |
|
|
68
|
-
| ---------------- | ------------- | ---------------------- |
|
|
69
|
-
| bind:onChooseItemClick | 弹窗类型为 `operate` `single` `multiple` 点击没有项触发的事件 | event.detail.chooseItem 为选择的数据
|
|
70
|
-
| bind:onClose | 点击关闭icon触发的事件
|
|
71
|
-
bind:onConfirm | 弹窗类型为 `text` `multiple` 时点击确定触发的事件 | event.detail.chooseData
|