{"id":31183,"date":"2024-11-25T08:08:12","date_gmt":"2024-11-25T00:08:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31183\/"},"modified":"2024-11-25T08:08:12","modified_gmt":"2024-11-25T00:08:12","slug":"minui-%e7%bb%84%e4%bb%b6%e4%b9%8b-abnor%e5%bc%82%e5%b8%b8%e6%b5%81%e7%bb%84%e4%bb%b6%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31183\/","title":{"rendered":"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3"},"content":{"rendered":"<p>\u672c\u6587\u8981\u548c\u5927\u5bb6\u5206\u4eab\u7684\u662f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f minui \u7ec4\u4ef6\u5e93\u7cfb\u5217\u4e4b abnor \u5f02\u5e38\u6d41\u7ec4\u4ef6\uff0cminui \u662f\u57fa\u4e8e\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7279\u6027\u5f00\u53d1\u800c\u6210\u7684\u4e00\u5957\u7b80\u6d01\u3001\u6613\u7528\u3001\u9ad8\u6548\u7684\u7ec4\u4ef6\u5e93\uff0c\u9002\u7528\u573a\u666f\u5e7f\uff0c\u8986\u76d6\u5c0f\u7a0b\u5e8f\u539f\u751f\u6846\u67b6\u3001\u5404\u79cd\u5c0f\u7a0b\u5e8f\u7ec4\u4ef6\u4e3b\u6d41\u6846\u67b6\u7b49\uff0c\u5e76\u4e14\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n<p>MinUI \u7ec4\u4ef6\u5e93\u5305\u542b\u4e86\u5f88\u591a\u529f\u80fd\u7ec4\u4ef6\uff0c\u5176\u4e2d abnor \u5f02\u5e38\u6d41\u7ec4\u4ef6\u662f\u4e00\u4e2a\u5f88\u5e38\u7528\u7684\u529f\u80fd\u6027\u7ec4\u4ef6\uff0c MinUI \u4e2d abnor \u7ec4\u4ef6\u7684\u6548\u679c\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/b10b408a661fc82fd149df1d8954a7eb-0.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe\" \/><\/span><\/p>\n<p>\u5404\u5f0f\u5404\u6837\u7684\u7c7b\u578b\u90fd\u6709\u54e6\uff0c\u662f\u4e0d\u662f\u770b\u8d77\u6765\u5f88\u65b9\u4fbf\u5f88\u5feb\u6377\u7684\u6837\u5b50(^_^)\u3002\u53ef\u4ee5\u6253\u5f00\u5fae\u4fe1\u626b\u4e00\u626b\u4e0b\u9762\u7684\u5c0f\u7a0b\u5e8f\u4e8c\u7ef4\u7801\u5148\u4e00\u7779\u4e3a\u5feb\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/b10b408a661fc82fd149df1d8954a7eb-1.jpg\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe1\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe1\" \/><\/span><\/p>\n<p>\u4e0b\u9762\u4ecb\u7ecd abnor \u7ec4\u4ef6\u7684\u4f7f\u7528\u65b9\u5f0f\u3002<\/p>\n<p><strong>1\u3001\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u5b89\u88c5 Min-Cli\uff0c\u5982\u5df2\u5b89\u88c5\uff0c\u8bf7\u8fdb\u5165\u5230\u4e0b\u4e00\u6b65\u3002Min-Cli \u7684\u6587\u6863\u8bf7\u731b\u6233\u8fd9\u91cc\uff1aMin-Cli\u4f7f\u7528\u624b\u518c<\/strong><\/p>\n<pre>npm install -g @mindev\/min-cli<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>2\u3001\u521d\u59cb\u5316\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u9879\u76ee\u3002<\/strong><\/p>\n<pre>min init my-project<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u9009\u62e9 <strong>\u65b0\u5efa\u5c0f\u7a0b\u5e8f<\/strong> \u9009\u9879\uff0c\u5373\u53ef\u521d\u59cb\u5316\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u9879\u76ee\u3002\u521b\u5efa\u9879\u76ee\u540e\uff0c\u5728\u7f16\u8f91\u5668\u4e2d\u6253\u5f00\u9879\u76ee\uff0csrc \u76ee\u5f55\u4e3a\u6e90\u7801\u76ee\u5f55\uff0cdist \u76ee\u5f55\u4e3a\u7f16\u8bd1\u540e\u7528\u4e8e\u5728\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u6307\u5b9a\u7684\u76ee\u5f55\u3002\u65b0\u5efa\u7684\u9879\u76ee\u4e2d\u5df2\u6709\u4e00\u4e2a home \u9875\u9762\u3002\u8be6\u7ec6\u6587\u6863\uff1aMin \u521d\u59cb\u5316\u5c0f\u7a0b\u5e8f\u9879\u76ee<\/p>\n<p><strong>3\u3001\u5b89\u88c5 abnor \u7ec4\u4ef6\u3002<\/strong><\/p>\n<p>\u8fdb\u5165\u521a\u624d\u65b0\u5efa\u7684\u5c0f\u7a0b\u5e8f\u9879\u76ee\u7684\u76ee\u5f55\u4e2d\uff1a<\/p>\n<pre>cd my-project<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5b89\u88c5\u7ec4\u4ef6\uff1a<\/p>\n<pre>min install @minui\/wxc-abnor<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>4\u3001\u5f00\u542fdev\u3002<\/strong><\/p>\n<pre>min dev<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5f00\u542f\u4e4b\u540e\uff0c\u4fee\u6539\u6e90\u7801\u540e\u90fd\u4f1a\u91cd\u65b0\u7f16\u8bd1\u3002<\/p>\n<p><strong>5\u3001\u5728\u9875\u9762\u4e2d\u5f15\u5165\u7ec4\u4ef6\u3002<\/strong><\/p>\n<p>\u5728\u7f16\u8f91\u5668\u4e2d\u6253\u5f00 src\/pages \u76ee\u5f55\u4e0b\u7684 home\/index.wxp \u6587\u4ef6\uff0c\u5728 script \u4e2d\u6dfb\u52a0 config \u5b57\u6bb5\uff0c\u914d\u7f6e\u5c0f\u7a0b\u5e8f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5b57\u6bb5\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>export default {\r\n    config: {\r\n        \"usingComponents\": {\r\n            'wxc-abnor': \"@minui\/wxc-abnor\"\r\n        }\r\n    }\r\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>wxc-abnor \u5373\u4e3a\u5f02\u5e38\u6d41\u7ec4\u4ef6\u7684\u6807\u7b7e\u540d\uff0c\u53ef\u4ee5\u5728 wxml \u4e2d\u4f7f\u7528\u3002<\/p>\n<p><strong>6\u3001\u5728 wxml \u4e2d\u4f7f\u7528 wxc-abnor\u6807\u7b7e\u3002<\/strong><\/p>\n<p>\u5728 home\/index.wxp \u6587\u4ef6\u7684 template \u4e2d\u6dfb\u52a0 wxc-abnor \u6807\u7b7e\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;wxc-abnor type=\"SHOP\"&gt;&lt;\/wxc-abnor&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>7\u3001\u6253\u5f00\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u6307\u5b9a dist \u76ee\u5f55\uff0c\u9884\u89c8\u9879\u76ee\u3002<\/strong><\/p>\n<p>home\/index.wxp \u6587\u4ef6\u7684\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre>\n  \r\n\n  \n   \r\n  &lt;wxc-abnor type=\"SHOP\"&gt;&lt;\/wxc-abnor&gt;\r\n\n  \r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/79e90e378a3297adfe63b15627f3061c-2.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe2\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe2\" \/><\/span><\/p>\n<p>\u81f3\u6b64\uff0cminui \u7ec4\u4ef6\u5e93\u7684 abnor \u5f02\u5e38\u6d41\u7ec4\u4ef6\u5728 Min \u5de5\u5177\u751f\u6210\u7684\u5c0f\u7a0b\u5e8f\u9879\u76ee\u4e2d\u7684\u65b9\u6cd5\u5df2\u4ecb\u7ecd\u5b8c\u6bd5\uff0c\u5176\u4ed6\u573a\u666f\uff0c\u5728\u539f\u751f\u5c0f\u7a0b\u5e8f\u6216\u5176\u4ed6\u5c0f\u7a0b\u5e8f\u6846\u67b6\u9879\u76ee\u4e2d\u7684\u4f7f\u7528\u65b9\u5f0f\u8bf7\u79fb\u6b65\u81f3\u5982\u4e0b\u94fe\u63a5\uff1a<\/p>\n<p>\u5728\u5df2\u6709\u5c0f\u7a0b\u5e8f\u9879\u76ee\u4e2d\u4f7f\u7528 MinUI \u7ec4\u4ef6\u4ecb\u7ecd<\/p>\n<p>\u4e86\u89e3\u7ec4\u4ef6\u7684\u4f7f\u7528\u65b9\u5f0f\u540e\uff0c\u4e0b\u9762\u5f00\u59cb\u4ecb\u7ecd abnor \u7ec4\u4ef6\u7684 API \u3002<\/p>\n<p><strong>Abnor\u3010props\u3011<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>\u540d\u79f0<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>type<\/td>\n<td>[\u8bf4\u660e]\uff1a\u5f02\u5e38\u72b6\u6001\u7c7b\u578b\uff0c\u5176\u4f18\u5148\u7ea7\u4f4e\u4e8e\u5176\u4ed6\u5c5e\u6027\u3002<br \/>[\u7c7b\u578b]\uff1aString<br \/>\u9ed8\u8ba4\u503c\uff1a&#8221;&#8221; <br \/>[\u53ef\u9009\u503c]\uff1aREQUEST_ERROR, NOT_FOUND, DATA, FOLLOW, FEED,SHOP, WEIBO, SEARCH, TAG, MESSAGE, LIVE, ORDER, CART, FOOTPRINT, COUPON<\/td>\n<\/tr>\n<tr>\n<td>image<\/td>\n<td>[\u8bf4\u660e]\uff1a\u80cc\u666f\u56fe\u3002\u82e5\u4e0e type \u540c\u65f6\u6307\u5b9a\uff0c\u5c06\u8986\u76d6 type \u5bf9\u5e94\u7684 image \u3002<br \/>[\u7c7b\u578b]\uff1aString<br \/>[\u9ed8\u8ba4\u503c]\uff1a&#8221;&#8221;  <\/td>\n<\/tr>\n<tr>\n<td>title<\/td>\n<td>[\u8bf4\u660e]\uff1a\u6807\u9898\u3002\u82e5\u4e0e type \u540c\u65f6\u6307\u5b9a\uff0c\u5c06\u8986\u76d6 type \u5bf9\u5e94\u7684 title \u3002<br \/>[\u7c7b\u578b]\uff1aString<br \/>[\u9ed8\u8ba4\u503c]\uff1a&#8221;&#8221;  <\/td>\n<\/tr>\n<tr>\n<td>tip<\/td>\n<td>[\u8bf4\u660e]\uff1a\u526f\u6807\u9898\u3002\u82e5\u4e0e type \u540c\u65f6\u6307\u5b9a\uff0c\u5c06\u8986\u76d6 type \u5bf9\u5e94\u7684 tip \u3002<br \/>[\u7c7b\u578b]\uff1aString<br \/>[\u9ed8\u8ba4\u503c]\uff1a&#8221;&#8221;  <\/td>\n<\/tr>\n<tr>\n<td>button<\/td>\n<td>[\u8bf4\u660e]\uff1a\u6309\u94ae\u6587\u6848\u3002\u82e5\u4e0e type \u540c\u65f6\u6307\u5b9a\uff0c\u5c06\u8986\u76d6 type \u5bf9\u5e94\u7684 button \u3002<br \/>[\u7c7b\u578b]\uff1aString<br \/>[\u9ed8\u8ba4\u503c]\uff1a&#8221;&#8221;  <\/td>\n<\/tr>\n<tr>\n<td>bindabnortap<\/td>\n<td>[\u8bf4\u660e]\uff1a\u6309\u94ae\u4e8b\u4ef6\u3002\u82e5\u914d\u7f6e\u4e86 button \u5c5e\u6027\uff0c\u5219\u9700\u8981\u6307\u5b9a\u4e8b\u4ef6\u3002\u5176\u4e2d REQUEST_ERROR, NOT_FOUND \u4e24\u79cd type \u4e2d\u5747\u8bbe\u7f6e\u4e86\u9ed8\u8ba4\u7684\u6309\u94ae\u6587\u6848<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u66f4\u591ademo<\/strong><\/p>\n<p><strong>1\u3001\u7f51\u7edc\u5f02\u5e38<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"REQUEST_ERROR\" bind:abnortap=\"onAbnorTap\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\nexport default {\r\n  config: {\r\n    usingComponents: {\r\n      'wxc-abnor': '@minui\/wxc-abnor'\r\n    }\r\n  },\r\n  data: {},\r\n  onAbnorTap() {\r\n      wx.showToast({\r\n        title: 'success',\r\n        duration: 2000\r\n      });\r\n    }\r\n}\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/79e90e378a3297adfe63b15627f3061c-3.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe3\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe3\" \/><\/span><\/p>\n<p><strong>2\u3001\u9875\u9762\u4e0d\u5b58\u5728<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"NOT_FOUND\" bind:abnortap=\"onAbnorTap\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {},\r\n    onAbnorTap() {\r\n        wx.showToast({\r\n          title: 'back',\r\n          duration: 2000\r\n        });\r\n      }\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/0db7e7795706074796921e0f897189cb-4.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe4\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe4\" \/><\/span><\/p>\n<p><strong>3\u3001\u81ea\u5b9a\u4e49\u6570\u636e<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor\r\n    type=\"REQUEST_ERROR\"\r\n    image=\"{{image}}\"\r\n    title=\"{{title}}\"\r\n    tip=\"{{tip}}\"\r\n    button=\"{{button}}\"\r\n    bind:abnortap=\"onAbnorTap\"\r\n  &gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {\r\n      image: 'https:\/\/s10.mogucdn.com\/p2\/161213\/upload_76h1c5hjc8heecjehlfgekjdl2ki0_514x260.png',\r\n      title: '\u81ea\u5b9a\u4e49\u6807\u9898',\r\n      tip: '\u81ea\u5b9a\u4e49\u526f\u6807\u9898',\r\n      button: '\u70b9\u6211'\r\n    },\r\n    onAbnorTap() {\r\n        wx.showToast({\r\n          title: 'custom',\r\n          duration: 2000\r\n        });\r\n      }\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/0db7e7795706074796921e0f897189cb-5.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe5\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe5\" \/><\/span><\/p>\n<p><strong>4\u3001\u7a7a\u6570\u636e\u72b6\u6001<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"DATA\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/3990f8cb90c41c9cdad4e3fa2cf08bd0-6.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe6\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe6\" \/><\/span><\/p>\n<p><strong>5\u3001\u65e0\u5173\u6ce8\u6570\u636e<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"FOLLOW\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {},\r\n    methods: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/3990f8cb90c41c9cdad4e3fa2cf08bd0-7.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe7\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe7\" \/><\/span><\/p>\n<p><strong>6\u3001\u65e0\u53cd\u9988\u6570\u636e<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"FOLLOW\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/fa6979016a3309f4d4827168f44a78e9-8.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe8\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe8\" \/><\/span><\/p>\n<p><strong>7\u3001\u65e0\u641c\u7d22\u6570\u636e<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"SEARCH\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/fa6979016a3309f4d4827168f44a78e9-9.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe9\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe9\" \/><\/span><\/p>\n<p><strong>8\u3001\u65e0\u6d88\u606f\u901a\u77e5<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"FOLLOW\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/a623723a35face23335d590152695b6d-10.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe10\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe10\" \/><\/span><\/p>\n<p><strong>9\u3001\u7a7a\u8ba2\u5355\u5217\u8868<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"ORDER\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/a623723a35face23335d590152695b6d-11.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe11\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe11\" \/><\/span><\/p>\n<p><strong>10\u3001\u7a7a\u8d2d\u7269\u8f66<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"CART\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/a623723a35face23335d590152695b6d-12.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe12\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe12\" \/><\/span><\/p>\n<p><strong>11\u3001\u7a7a\u8db3\u8ff9<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"FOOTPRINT\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/4089ba1ab5193920b636211ddfaf6856-13.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe13\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe13\" \/><\/span><\/p>\n<p><strong>12\u3001\u65e0\u4f18\u60e0\u5238\u6570\u636e<\/strong><\/p>\n<pre>&lt;template&gt;\r\n  &lt;wxc-abnor type=\"COUPON\"&gt;&lt;\/wxc-abnor&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\n  export default {\r\n    config: {\r\n      usingComponents: {\r\n        'wxc-abnor': '@minui\/wxc-abnor'\r\n      }\r\n    },\r\n    data: {}\r\n  }\r\n&lt;\/script&gt;\r\n\r\n&lt;style&gt;\r\n&lt;\/style&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u56fe\u793a\uff1a<\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/054\/025\/4089ba1ab5193920b636211ddfaf6856-14.png\" class=\"aligncenter\" title=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe14\" alt=\"MinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u63d2\u56fe14\" \/><\/span><\/p>\n<p>\u8f7d\u5165\u4e2d&#8230;<\/p>\n<p><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fMinUI \u7ec4\u4ef6\u4e4b abnor\u5f02\u5e38\u6d41\u7ec4\u4ef6\u8be6\u89e3\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u8981\u548c\u5927\u5bb6\u5206\u4eab\u7684\u662f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f minui \u7ec4\u4ef6\u5e93\u7cfb\u5217\u4e4b abnor \u5f02\u5e38\u6d41\u7ec4\u4ef6\uff0cminui \u662f\u57fa\u4e8e\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7279\u6027\u5f00\u53d1\u800c\u6210\u7684\u4e00\u5957\u7b80\u6d01\u3001\u6613\u7528\u3001\u9ad8\u6548\u7684\u7ec4\u4ef6\u5e93\uff0c\u9002\u7528\u573a\u666f\u5e7f\uff0c\u8986\u76d6\u5c0f\u7a0b\u5e8f\u539f\u751f\u6846\u67b6\u3001\u5404\u79cd\u5c0f\u7a0b\u5e8f\u7ec4\u4ef6\u4e3b\u6d41\u6846\u67b6\u7b49\uff0c\u5e76\u4e14\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002 MinUI \u7ec4\u4ef6\u5e93\u5305\u542b\u4e86\u5f88\u591a\u529f\u80fd\u7ec4\u4ef6\uff0c\u5176\u4e2d abnor \u5f02\u5e38\u6d41\u7ec4\u4ef6\u662f\u4e00\u4e2a\u5f88\u5e38\u7528\u7684\u529f\u80fd\u6027\u7ec4\u4ef6\uff0c MinUI \u4e2d abnor \u7ec4\u4ef6\u7684\u6548\u679c\u56fe\u5982\u4e0b\uff1a \u5404\u5f0f\u5404\u6837\u7684\u7c7b\u578b\u90fd\u6709\u54e6\uff0c\u662f\u4e0d\u662f\u770b\u8d77\u6765\u5f88\u65b9\u4fbf\u5f88\u5feb\u6377\u7684\u6837\u5b50(^_^)\u3002\u53ef\u4ee5\u6253\u5f00\u5fae\u4fe1\u626b\u4e00\u626b\u4e0b\u9762\u7684\u5c0f\u7a0b\u5e8f\u4e8c\u7ef4\u7801\u5148\u4e00\u7779\u4e3a\u5feb\uff1a \u4e0b\u9762\u4ecb\u7ecd abnor \u7ec4\u4ef6\u7684\u4f7f\u7528\u65b9\u5f0f\u3002 1\u3001\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u5b89\u88c5 Min-Cli\uff0c\u5982\u5df2\u5b89\u88c5\uff0c\u8bf7\u8fdb\u5165\u5230\u4e0b\u4e00\u6b65\u3002Min-Cli \u7684\u6587\u6863\u8bf7\u731b\u6233\u8fd9\u91cc\uff1aMin-Cli\u4f7f\u7528\u624b\u518c npm install -g @mindev\/min-cli \u767b\u5f55\u540e\u590d\u5236 2\u3001\u521d\u59cb\u5316\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u9879\u76ee\u3002 min init my-project \u767b\u5f55\u540e\u590d\u5236 \u9009\u62e9 \u65b0\u5efa\u5c0f\u7a0b\u5e8f \u9009\u9879\uff0c\u5373\u53ef\u521d\u59cb\u5316\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u9879\u76ee\u3002\u521b\u5efa\u9879\u76ee\u540e\uff0c\u5728\u7f16\u8f91\u5668\u4e2d\u6253\u5f00\u9879\u76ee\uff0csrc \u76ee\u5f55\u4e3a\u6e90\u7801\u76ee\u5f55\uff0cdist \u76ee\u5f55\u4e3a\u7f16\u8bd1\u540e\u7528\u4e8e\u5728\u5fae\u4fe1\u5f00\u53d1\u8005\u5de5\u5177\u4e2d\u6307\u5b9a\u7684\u76ee\u5f55\u3002\u65b0\u5efa\u7684\u9879\u76ee\u4e2d\u5df2\u6709\u4e00\u4e2a home \u9875\u9762\u3002\u8be6\u7ec6\u6587\u6863\uff1aMin \u521d\u59cb\u5316\u5c0f\u7a0b\u5e8f\u9879\u76ee 3\u3001\u5b89\u88c5 abnor \u7ec4\u4ef6\u3002 \u8fdb\u5165\u521a\u624d\u65b0\u5efa\u7684\u5c0f\u7a0b\u5e8f\u9879\u76ee\u7684\u76ee\u5f55\u4e2d\uff1a cd my-project \u767b\u5f55\u540e\u590d\u5236 \u5b89\u88c5\u7ec4\u4ef6\uff1a min install @minui\/wxc-abnor \u767b\u5f55\u540e\u590d\u5236 4\u3001\u5f00\u542fdev\u3002 min dev \u767b\u5f55\u540e\u590d\u5236 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-31183","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=31183"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31183\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}