File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 * @value basic 基础卡片
5151 * @value style 图文卡片
5252 * @value title 标题卡片
53- * @property {Boolean} isFull = [true | false] 卡片内容是否通栏,为 true 时将去除padding值
53+ * @property {Boolean} isFull = [true | false] 卡片内容是否通栏,true 时将去除padding值
5454 * @property {Boolean} isShadow = [true | false] 卡片内容是否开启阴影
5555 * @event {Function} click 点击 Card 触发事件
5656 * @example < uni- card title= " 标题文字" thumbnail= " https://img-cdn-qiniu.dcloud.net.cn/new-page/uni.png" extra= " 额外信息" note= " Tips" > 内容主体,可自定义内容及样式< / uni- card>
Original file line number Diff line number Diff line change 2222
2323<script >
2424 import uniIcons from ' ../uni-icons/uni-icons.vue'
25+ /**
26+ * CollapseItem 折叠面板子组件
27+ * @description 折叠面板子组件
28+ * @property {String} title 标题文字
29+ * @property {String} thumb 标题左侧缩略图
30+ * @property {Boolean} disabled = [true|false] 是否展开面板
31+ * @property {Boolean} showAnimation = [true|false] 开启动画
32+ */
2533 export default {
2634 name: ' UniCollapseItem' ,
2735 components: {
Original file line number Diff line number Diff line change 44 </view >
55</template >
66<script >
7+ /**
8+ * Collapse 折叠面板
9+ * @description 展示可以折叠 / 展开的内容区域
10+ * @tutorial https://ext.dcloud.net.cn/plugin?id=23
11+ * @property {Boolean} accordion = [true|false] 是否开启手风琴效果是否开启手风琴效果
12+ * @event {Function} change 切换面板时触发,activeNames(Array):展开状态的uniCollapseItem的 name 值
13+ */
714 export default {
815 name: ' UniCollapse' ,
916 props: {
Original file line number Diff line number Diff line change 1111 </view >
1212</template >
1313<script >
14+ /**
15+ * Countdown 倒计时
16+ * @description 倒计时组件
17+ * @tutorial https://ext.dcloud.net.cn/plugin?id=25
18+ * @property {String} backgroundColor 背景色
19+ * @property {String} color 文字颜色
20+ * @property {Number} day 天数
21+ * @property {Number} hour 小时
22+ * @property {Number} minute 分钟
23+ * @property {Number} second 秒
24+ * @property {Boolean} showDay = [true|false] 是否显示天数
25+ * @property {Boolean} showColon = [true|false] 是否以冒号为分隔符
26+ * @property {String} splitorColor 分割符号颜色
27+ * @event {Function} timeup 倒计时时间到触发事件
28+ * @example < uni- countdown : day= " 1" : hour= " 1" : minute= " 12" : second= " 40" >< / uni- countdown>
29+ */
1430 export default {
1531 name: ' UniCountdown' ,
1632 props: {
Original file line number Diff line number Diff line change 88</template >
99
1010<script >
11+ /**
12+ * Drawer 抽屉
13+ * @description 抽屉侧滑菜单
14+ * @tutorial https://ext.dcloud.net.cn/plugin?id=26
15+ * @property {Boolean} visible = [true|false] Drawer的显示状态
16+ * @property {Boolean} mask = [true | false] 是否显示遮罩
17+ * @property {Boolean} mode = [left | right] Drawer 滑出位置
18+ * @value left 从左侧滑出
19+ * @value right 从右侧侧滑出
20+ * @event {Function} close 组件关闭时触发事件
21+ */
1122 export default {
1223 name: ' UniDrawer' ,
1324 props: {
Original file line number Diff line number Diff line change 4040 // #ifdef APP-NVUE
4141 platform = uni .getSystemInfoSync ().platform
4242 // #endif
43+
44+ /**
45+ * Fab 悬浮按钮
46+ * @description 点击可展开一个图形按钮菜单
47+ * @tutorial https://ext.dcloud.net.cn/plugin?id=144
48+ * @property {Object} pattern 可选样式配置项
49+ * @property {Object} horizontal = [left | right] 水平对齐方式
50+ * @value left 左对齐
51+ * @value right 右对齐
52+ * @property {Object} vertical = [bottom | top] 垂直对齐方式
53+ * @value bottom 下对齐
54+ * @value top 上对齐
55+ * @property {Object} direction = [horizontal | vertical] 展开菜单显示方式
56+ * @value horizontal 水平显示
57+ * @value vertical 垂直显示
58+ * @property {Array} content 展开菜单内容配置项
59+ * @event {Function} trigger 展开菜单点击事件,返回点击信息
60+ */
4361 export default {
4462 name: ' UniFab' ,
4563 props: {
Original file line number Diff line number Diff line change 1414
1515<script >
1616 import uniIcons from " ../uni-icons/uni-icons.vue" ;
17+
18+ /**
19+ * Fav 收藏按钮
20+ * @description 用于收藏功能,可点击切换选中、不选中的状态
21+ * @tutorial https://ext.dcloud.net.cn/plugin?id=864
22+ * @property {Boolean} star = [true|false] 按钮是否带星星
23+ * @property {String} bgColor 未收藏时的背景色
24+ * @property {String} bgColorChecked 已收藏时的背景色
25+ * @property {String} fgColor 未收藏时的文字颜色
26+ * @property {String} fgColorChecked 已收藏时的文字颜色
27+ * @property {Boolean} circle = [true|false] 是否为圆角
28+ * @property {Boolean} checked = [true|false] 是否为已收藏
29+ * @property {Object} contentText = [true|false] 收藏按钮文字
30+ * @event {Function} click 点击 fav按钮触发事件
31+ * @example < uni- fav : checked= " true" / >
32+ */
1733 export default {
1834 name: " UniFav" ,
1935 components: {
Original file line number Diff line number Diff line change 2323</template >
2424
2525<script >
26+ /**
27+ * GoodsNav 商品导航
28+ * @description 商品加入购物车、立即购买等
29+ * @tutorial https://ext.dcloud.net.cn/plugin?id=865
30+ * @property {Array} options 组件参数
31+ * @property {Array} buttonGroup 组件按钮组参数
32+ * @property {Boolean} fill = [true | false] 组件按钮组参数
33+ * @event {Function} click 左侧点击事件
34+ * @event {Function} buttonClick 右侧按钮组点击事件
35+ * @example < uni- goods- nav : fill= " true" options= " " buttonGroup= " buttonGroup" @click= " " @buttonClick= " " / >
36+ */
2637 export default {
2738 name: ' UniGoodsNav' ,
2839 props: {
Original file line number Diff line number Diff line change 77</template >
88
99<script >
10+ /**
11+ * GridItem 宫格
12+ * @description 宫格组件
13+ * @tutorial https://ext.dcloud.net.cn/plugin?id=27
14+ * @property {Number} index 子组件的唯一标识 ,点击gird会返回当前的标识
15+ */
1016 export default {
1117 name: ' UniGridItem' ,
1218 inject: [' grid' ],
Original file line number Diff line number Diff line change 1010 // #ifdef APP-NVUE
1111 const dom = uni .requireNativePlugin (' dom' );
1212 // #endif
13+
14+ /**
15+ * Grid 宫格
16+ * @description 宫格组件
17+ * @tutorial https://ext.dcloud.net.cn/plugin?id=27
18+ * @property {Number} column 每列显示个数
19+ * @property {String} borderColor 边框颜色
20+ * @property {Boolean} showBorder 是否显示边框
21+ * @property {Boolean} square 是否方形显示
22+ * @property {Boolean} Boolean 点击背景是否高亮
23+ * @event {Function} change 点击 grid 触发,e={detail:{index:0}},index 为当前点击 gird 下标
24+ */
1325 export default {
1426 name: ' UniGrid' ,
1527 props: {
You can’t perform that action at this time.
0 commit comments