76952b78.9a46562d.js 7.2 KB
Newer Older
X
xiongchun 已提交
1
"use strict";(self.webpackChunkpangu_website=self.webpackChunkpangu_website||[]).push([[8758],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>f});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),c=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},s=function(e){var t=c(e.components);return r.createElement(i.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(n),d=a,f=u["".concat(i,".").concat(d)]||u[d]||m[d]||o;return n?r.createElement(f,p(p({ref:t},s),{},{components:n})):r.createElement(f,p({ref:t},s))}));function f(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,p=new Array(o);p[0]=d;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[u]="string"==typeof e?e:a,p[1]=l;for(var c=2;c<o;c++)p[c]=n[c];return r.createElement.apply(null,p)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},2042:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>p,default:()=>u,frontMatter:()=>o,metadata:()=>l,toc:()=>c});var r=n(7462),a=(n(7294),n(3905));const o={title:"\u5feb\u901f\u5165\u95e8\u6307\u5357",tags:["\u76d8\u53e4 APP Starter"],sidebar_position:3,slug:"/quick-start"},p=void 0,l={unversionedId:"\u5feb\u901f\u5165\u95e8\u6307\u5357",id:"\u5feb\u901f\u5165\u95e8\u6307\u5357",title:"\u5feb\u901f\u5165\u95e8\u6307\u5357",description:"\u76d8\u53e4 APP Starter | \u5feb\u901f\u5165\u95e8\u6307\u5357 | \u76d8\u53e4\u5f00\u53d1\u6846\u67b6",source:"@site/app/\u5feb\u901f\u5165\u95e8\u6307\u5357.md",sourceDirName:".",slug:"/quick-start",permalink:"/app/quick-start",draft:!1,tags:[{label:"\u76d8\u53e4 APP Starter",permalink:"/app/tags/\u76d8\u53e4-app-starter"}],version:"current",lastUpdatedBy:"xiongchun",lastUpdatedAt:1678500158,formattedLastUpdatedAt:"2023\u5e743\u670811\u65e5",sidebarPosition:3,frontMatter:{title:"\u5feb\u901f\u5165\u95e8\u6307\u5357",tags:["\u76d8\u53e4 APP Starter"],sidebar_position:3,slug:"/quick-start"},sidebar:"tutorialSidebar",previous:{title:"\u642d\u5efa\u5f00\u53d1\u73af\u5883",permalink:"/app/how-to-create-environment"},next:{title:"\u90e8\u7f72\u8fd0\u7ef4\u53c2\u8003",permalink:"/app/web-h5"}},i={},c=[{value:"\u914d\u7f6e\u5e95\u90e8\u5bfc\u822a\u83dc\u5355",id:"\u914d\u7f6e\u5e95\u90e8\u5bfc\u822a\u83dc\u5355",level:2},{value:"\u914d\u7f6e\u83dc\u5355\u8282\u70b9\u4fe1\u606f",id:"\u914d\u7f6e\u83dc\u5355\u8282\u70b9\u4fe1\u606f",level:3},{value:"\u914d\u7f6e\u83dc\u5355\u8def\u7531\u4fe1\u606f",id:"\u914d\u7f6e\u83dc\u5355\u8def\u7531\u4fe1\u606f",level:3},{value:"\u65b0\u589e\u4e1a\u52a1\u6a21\u5757\u9875\u9762\u8def\u7531",id:"\u65b0\u589e\u4e1a\u52a1\u6a21\u5757\u9875\u9762\u8def\u7531",level:2},{value:"\u4e0b\u4e00\u6b65",id:"\u4e0b\u4e00\u6b65",level:2}],s={toc:c};function u(e){let{components:t,...n}=e;return(0,a.kt)("wrapper",(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("head",null,(0,a.kt)("title",null,"\u76d8\u53e4 APP Starter | \u5feb\u901f\u5165\u95e8\u6307\u5357 | \u76d8\u53e4\u5f00\u53d1\u6846\u67b6"),(0,a.kt)("meta",{name:"keywords",content:"\u76d8\u53e4 APP Starter | \u5feb\u901f\u5165\u95e8\u6307\u5357 | \u76d8\u53e4\u5f00\u53d1\u6846\u67b6"})),(0,a.kt)("h2",{id:"\u914d\u7f6e\u5e95\u90e8\u5bfc\u822a\u83dc\u5355"},"\u914d\u7f6e\u5e95\u90e8\u5bfc\u822a\u83dc\u5355"),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"\u4ee5\u8303\u4f8b APP \u5e95\u90e8\u7684\u300c\u7ec4\u4ef6\u300d\u5bfc\u822a\u83dc\u5355\u4e3a\u4f8b\uff0c\u8bf4\u660e\u5982\u4f55\u914d\u7f6e\u9996\u9875\u5e95\u90e8\u7684\u5bfc\u822a\u83dc\u5355\u3002")),(0,a.kt)("h3",{id:"\u914d\u7f6e\u83dc\u5355\u8282\u70b9\u4fe1\u606f"},"\u914d\u7f6e\u83dc\u5355\u8282\u70b9\u4fe1\u606f"),(0,a.kt)("p",null,"\u6253\u5f00 pages.json \u914d\u7f6e\u6587\u4ef6\uff0c\u627e\u5230 tabBar \u8282\u70b9\u3002\u5982\u4e0b\u6240\u793a\uff1a"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-json"},'"tabBar": {\n  "color": "#303133",\n  "selectedColor": "#529b2e",\n  "borderStyle": "black",\n  "backgroundColor": "#f4f4f5",\n  "list": [{\n   "pagePath": "pages/example/components",\n   "iconPath": "static/common/img/nav/component.png",\n   "selectedIconPath": "static/common/img/nav/component-selected.png",\n   "text": "\u7ec4\u4ef6"\n   }\n   // ...\u5176\u5b83\u83dc\u5355\u914d\u7f6e...\n  ]\n }\n')),(0,a.kt)("h3",{id:"\u914d\u7f6e\u83dc\u5355\u8def\u7531\u4fe1\u606f"},"\u914d\u7f6e\u83dc\u5355\u8def\u7531\u4fe1\u606f"),(0,a.kt)("p",null,"\u914d\u7f6e\u8def\u5f84 pages/example/components \u7684\u8def\u7531\u4fe1\u606f\u3002\u5728 pages.json \u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u627e\u5230 pages \u8282\u70b9\u3002\u5982\u4e0b\u6240\u793a\uff1a"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-json"},'    "pages": [ \n    //pages\u6570\u7ec4\u4e2d\u7b2c\u4e00\u9879\u8868\u793a\u5e94\u7528\u542f\u52a8\u9875\n        {\n            "path": "pages/example/components",\n            "style": {\n                "navigationBarTitleText": "\u7ec4\u4ef6"\n            }\n        }\n    // ...\u5176\u5b83\u8def\u7531\u914d\u7f6e...\n  ]\n')),(0,a.kt)("p",null,"\u8be5\u8def\u7531\u914d\u7f6e\u5bf9\u5e94\u89c6\u56fe\u6587\u4ef6\uff1apages/example/components.nvue\u3002"),(0,a.kt)("h2",{id:"\u65b0\u589e\u4e1a\u52a1\u6a21\u5757\u9875\u9762\u8def\u7531"},"\u65b0\u589e\u4e1a\u52a1\u6a21\u5757\u9875\u9762\u8def\u7531"),(0,a.kt)("p",null,"\u53c2\u8003 pages.json \u76f8\u5173\u914d\u7f6e\u6587\u4ef6\u5373\u53ef\u3002"),(0,a.kt)("admonition",{type:"tip"},(0,a.kt)("p",{parentName:"admonition"},"\u66f4\u591a\u5173\u4e8e pages.json \u7684\u914d\u7f6e\uff0c\u8bf7\u67e5\u9605 uni-app ",(0,a.kt)("a",{parentName:"p",href:"https://uniapp.dcloud.net.cn/collocation/pages.html"},"\u76f8\u5173\u6587\u6863"),"\u3002")),(0,a.kt)("h2",{id:"\u4e0b\u4e00\u6b65"},"\u4e0b\u4e00\u6b65"),(0,a.kt)("p",null,"\u7ee7\u7eed\u9605\u8bfb\u5176\u5b83\u7ae0\u8282\u83b7\u53d6\u4f60\u60f3\u8981\u7684\u7b54\u6848\u6216\u901a\u8fc7\u6211\u4eec\u7684 ",(0,a.kt)("a",{parentName:"p",href:"/community"},"\u5f00\u53d1\u8005\u793e\u533a")," \u5bfb\u6c42\u66f4\u591a\u5e2e\u52a9\u3002"))}u.isMDXComponent=!0}}]);