Leon 2 éve
szülő
commit
d91c0ef8fa
2 módosított fájl, 44 hozzáadás és 2 törlés
  1. 42 2
      src/app.config.ts
  2. 2 0
      src/components/Inputs.tsx

+ 42 - 2
src/app.config.ts

@@ -1,4 +1,4 @@
-export default defineAppConfig({
+const appConfig = defineAppConfig({
   pages: [
     'pages/Clock',
     'pages/index/index',
@@ -34,7 +34,7 @@ export default defineAppConfig({
       },
       {
         pagePath: 'pages/Activity',
-        text: '第页',
+        text: '第页',
       },
       {
         pagePath: 'pages/Profile',
@@ -51,3 +51,43 @@ export default defineAppConfig({
   },
   darkmode:true
 })
+
+process.env.TARO_ENV === 'weapp' && (appConfig.tabBar = {
+  custom: true,
+    list:[
+      {
+        pagePath: 'pages/Clock',
+        text: '首页',
+
+      },
+      {
+        pagePath: 'pages/Metric',
+        text: '第二页',
+      },
+      {
+        pagePath: 'pages/Profile',
+        text: '第四页',
+      }
+    ]
+})
+
+process.env.TARO_ENV === 'rn' && (appConfig.tabBar = {
+  custom: true,
+    list:[
+      {
+        pagePath: 'pages/Clock',
+        text: '首页',
+
+      },
+      {
+        pagePath: 'pages/Metric',
+        text: '第二页',
+      },
+      {
+        pagePath: 'pages/Profile',
+        text: '第五页',
+      }
+    ]
+})
+
+export default appConfig;

+ 2 - 0
src/components/Inputs.tsx

@@ -29,6 +29,8 @@ export default function Component({
             <Input className={isFocus ? "input input_focus" : "input"}
                 placeholder={placeholder ? placeholder : ''}
                 value={inputValue}
+                secureTextEntry={isSecure ? true : false}
+                textContentType={isSecure ? 'password' : 'none'}
                 type={isSecure ? 'password' : 'text'}
                 onInput={handleInputChange}
                 selectionColor='#AAFF00'