Your Name před 4 roky
rodič
revize
13fd092261

+ 8
- 1
src/compents/Picker/index.jsx Zobrazit soubor

@@ -1,3 +1,10 @@
1
+/**
2
+ * 如果使用此组件, 页面组件必须引用
3
+ * usingComponents: {
4
+ *   "mp-icon": "weui-miniprogram/icon/icon"
5
+ * }
6
+ **/
7
+
1 8
 import React, { useState, useEffect } from 'react'
2 9
 
3 10
 export default props => {
@@ -41,7 +48,7 @@ export default props => {
41 48
     <picker value={pos} range={range} range-key={rangeKey} onChange={handleChange}>
42 49
       <view style="display: flex">
43 50
         <view style="flex: auto">{label ? `${preTitle} ${label}` : placeholder}</view>
44
-        <view style="flex: none">&gt;</view>
51
+        <view style="flex: none"><mp-icon icon="arrow" size={12}></mp-icon></view>
45 52
       </view>
46 53
     </picker>
47 54
   )

+ 3
- 1
src/pages/addimg/index.jsx Zobrazit soubor

@@ -92,7 +92,9 @@ const addimg = (props) => {
92 92
 
93 93
 
94 94
     return <View className='addimg'>
95
-
95
+        <View>
96
+            <button className="weui-btn weui-btn_primary">全选</button>            
97
+        </View>
96 98
 
97 99
         <View >
98 100
             <Layout>

+ 2
- 1
src/pages/index/index.config.js Zobrazit soubor

@@ -4,6 +4,7 @@ export default {
4 4
   enableShareAppMessage: true,
5 5
   usingComponents: {
6 6
     "mp-cells": "weui-miniprogram/cells/cells",
7
-    "mp-cell": "weui-miniprogram/cell/cell"
7
+    "mp-cell": "weui-miniprogram/cell/cell",
8
+    "mp-icon": "weui-miniprogram/icon/icon"
8 9
   }
9 10
 }