{"id":10006143,"date":"2022-08-09T13:08:42","date_gmt":"2022-08-09T05:08:42","guid":{"rendered":"https:\/\/ityet.com\/?p=10006143"},"modified":"2022-08-09T13:08:42","modified_gmt":"2022-08-09T05:08:42","slug":"%e4%bd%bf%e7%94%a8vue-js%e7%bc%96%e5%86%99%e5%91%bd%e4%bb%a4%e8%a1%8c%e7%95%8c%e9%9d%a2%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91cli%e7%9a%84%e5%88%a9%e5%99%a8","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006143","title":{"rendered":"\u4f7f\u7528Vue.js\u7f16\u5199\u547d\u4ee4\u884c\u754c\u9762,\u524d\u7aef\u5f00\u53d1CLI\u7684\u5229\u5668"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u5927\u5bb6\u597d,\u6211\u662f<a href=\"https:\/\/link.segmentfault.com\/?enc=%2FI8cF2Yc3L%2FCjSw4y5IMgA%3D%3D.O7bVdKrC9kl6HV34DQYpQj8CxTqHGvkwPKkhikMTYrw%3D\" rel=\"nofollow\">webfansplz<\/a>.\u7ee7<a href=\"https:\/\/link.segmentfault.com\/?enc=Pw5eNbAIazbrxtQIzIolvw%3D%3D.CsWJl4xFxqxFyOAD%2FQF1AZf8T3ZxH%2FZJUJFM8rPyf71puNksiE9b2vm170nuHTvt\" rel=\"nofollow\">\u5c06 Vue \u6e32\u67d3\u5230\u5d4c\u5165\u5f0f\u6db2\u6676\u5c4f<\/a>\u540e,\u4eca\u5929\u8981\u8ddf\u5927\u5bb6\u5206\u4eab\u7684\u662f\u5982\u4f55\u5c06Vue\u6e32\u67d3\u5230\u547d\u4ee4\u884c\u5de5\u5177 :).\u5173\u4e8e\u547d\u4ee4\u884c\u5de5\u5177,\u5927\u5bb6\u5e94\u8be5\u90fd\u6bd4\u8f83\u719f\u6089\u4e86,\u6bd4\u5982vue-cli\u3001Vite\u7b49.\u6211\u4eec\u5728\u7f16\u5199\u524d\u7aef\u5e94\u7528\u9762\u5411\u7528\u6237\u65f6,\u901a\u5e38\u4f1a\u975e\u5e38\u5173\u6ce8\u7528\u6237\u4f53\u9a8c,\u4f5c\u4e3a\u5f00\u53d1\u8005,\u6211\u4eec\u5728\u4f7f\u7528\u5de5\u5177\u65f6,\u5b83\u7ed9\u4e88\u6211\u4eec\u7684\u5f00\u53d1\u8005\u4f53\u9a8c(DX)\u6211\u4eec\u4e5f\u4f1a\u5341\u5206\u5173\u6ce8. \u73b0\u4ee3\u524d\u7aef\u5de5\u7a0b\u5316\u79bb\u4e0d\u5f00CLI\u7684\u5f00\u53d1\u4e0e\u4f7f\u7528\u3001\u90a3\u4e48\u662f\u5426\u80fd\u6709\u8f83\u4f4e\u6210\u672c\u7684\u65b9\u6848\u80fd\u8ba9\u524d\u7aef\u5c0f\u4f19\u4f34\u5feb\u901f\u5f00\u53d1CLI,\u5927\u5bb6\u53ef\u4ee5\u50cf\u7f16\u5199\u524d\u7aef\u5e94\u7528\u4e00\u6837\u641e\u5b9a\u5b83.\u56e0\u6b64,<a href=\"https:\/\/link.segmentfault.com\/?enc=z3EnjgytCh5vBqkqCju1hQ%3D%3D.E8mOs5yu2i04qCpkaTUOTpgf6XxwwyEy0%2BujljDZOzGNkxcN%2Bxq1PGRqOwMe%2FdYP\" rel=\"nofollow\">Temir<\/a>\u5e94\u8fd0\u800c\u751f.<\/p>\n<h2>Temir<\/h2>\n<h3>\u4ecb\u7ecd<\/h3>\n<p><a href=\"https:\/\/link.segmentfault.com\/?enc=%2FFOfdSfOaYwRIerJr%2B1pKQ%3D%3D.lCYtLkkM3cSQuvu9lw7D9tyT2xljUOk53S9%2Bpn1j874fKxL9hin32QH0mgaqJw%2FH\" rel=\"nofollow\">Temir<\/a>,\u4e00\u4e2a\u7528Vue\u7ec4\u4ef6\u6765\u7f16\u5199\u547d\u4ee4\u884c\u754c\u9762\u5e94\u7528\u7684\u5de5\u5177.\u5f00\u53d1\u8005\u53ea\u9700\u8981\u4f7f\u7528Vue\u5c31\u53ef\u4ee5\u7f16\u5199\u547d\u4ee4\u884c\u5e94\u7528,\u4e0d\u9700\u8981\u4efb\u4f55\u989d\u5916\u7684\u5b66\u4e60\u6210\u672c.<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288658\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code class=\"ts\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport { ref } from '@vue\/runtime-core'\nimport { TBox, TText } from '@temir\/core'\nconst counter = ref(0)\nsetInterval(() =&gt; {\n  counter.value++\n}, 100)\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TBox&gt;\n    &lt;TText color=&quot;green&quot;&gt;\n      {{ counter }} tests passed\n    &lt;\/TText&gt;\n  &lt;\/TBox&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<h3>\u7ec4\u4ef6<\/h3>\n<p><a href=\"https:\/\/link.segmentfault.com\/?enc=hlmZxALWfE%2FGoDPawEVqyg%3D%3D.oPJKbhS85Yq6LeXkuV3e7dQdxqr8KW2BU72oUd52JHKtb5BpsNfqLHLP0Ua7HGY5\" rel=\"nofollow\">Temir<\/a>\u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u7840\u7ec4\u4ef6\u5e2e\u52a9\u5f00\u53d1\u8005\u7f16\u5199\u4e0e\u6269\u5c55\u547d\u4ee4\u884c\u5de5\u5177:<\/p>\n<h4>\u6587\u672c\u7ec4\u4ef6 (Text)<\/h4>\n<p>\u6587\u672c\u7ec4\u4ef6\u53ef\u4ee5\u663e\u793a\u6587\u672c,\u5c06\u5176\u6837\u5f0f\u66f4\u6539\u4e3a\u7c97\u4f53\u3001\u4e0b\u5212\u7ebf\u3001\u659c\u4f53\u6216\u5220\u9664\u7ebf.<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288659\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code class=\"ts\">&lt;TText color=&quot;green&quot;&gt;\n  I am green\n&lt;\/TText&gt;\n\n&lt;TText color=&quot;black&quot; background-color=&quot;white&quot;&gt;\n  I am black on white\n&lt;\/TText&gt;\n\n&lt;TText color=&quot;white&quot;&gt;\n  I am white\n&lt;\/TText&gt;\n\n&lt;TText :bold=&quot;true&quot;&gt;\n  I am bold\n&lt;\/TText&gt;\n\n&lt;TText :italic=&quot;true&quot;&gt;\n  I am italic\n&lt;\/TText&gt;\n\n&lt;TText :underline=&quot;true&quot;&gt;\n  I am underline\n&lt;\/TText&gt;\n\n&lt;TText :strikethrough=&quot;true&quot;&gt;\n  I am strikethrough\n&lt;\/TText&gt;\n\n&lt;TText :inverse=&quot;true&quot;&gt;\n  I am inversed\n&lt;\/TText&gt;<\/code><\/pre>\n<h4>\u76d2\u5b50\u7ec4\u4ef6 (Box)<\/h4>\n<p><code>&lt;Box&gt;<\/code>\u662f\u6784\u5efa\u5e03\u5c40\u5fc5\u4e0d\u53ef\u5c11\u7684Temir\u7ec4\u4ef6.\u5c31\u50cf\u5728\u6d4f\u89c8\u5668\u4e2d<code>&lt;div style='display: flex'&gt;.<\/code>\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e9b\u6784\u5efa\u5e03\u5c40\u7684\u5e38\u7528\u5c5e\u6027,\u6bd4\u5982\u5c3a\u5bf8\u3001\u5185\u5916\u8fb9\u8ddd\u3001\u5bf9\u9f50\u65b9\u5f0f\u7b49.<\/p>\n<pre><code class=\"ts\">&lt;template&gt;\n  &lt;TBox justify-content=&quot;flex-start&quot;&gt;\n    &lt;TText&gt;X&lt;\/TText&gt;\n  &lt;\/TBox&gt;\n  \/\/ [X      ]\n\n  &lt;TBox justify-content=&quot;center&quot;&gt;\n    &lt;TText&gt;X&lt;\/TText&gt;\n  &lt;\/TBox&gt;\n  \/\/ [   X   ]\n\n  &lt;TBox justify-content=&quot;flex-end&quot;&gt;\n    &lt;TText&gt;X&lt;\/TText&gt;\n  &lt;\/TBox&gt;\n  \/\/ [      X]\n\n  &lt;TBox justify-content=&quot;space-between&quot;&gt;\n    &lt;TText&gt;X&lt;\/TText&gt;\n    &lt;TText&gt;Y&lt;\/TText&gt;\n  &lt;\/TBox&gt;\n  \/\/ [X      Y]\n\n  &lt;TBox justify-content=&quot;space-around&quot;&gt;\n    &lt;TText&gt;X&lt;\/TText&gt;\n    &lt;TText&gt;Y&lt;\/TText&gt;\n  &lt;\/TBox&gt;\n  \/\/ [  X   Y  ]\n&lt;\/template&gt;<\/code><\/pre>\n<h4>\u6362\u884c\u7ec4\u4ef6 (Newline)<\/h4>\n<p>\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u6362\u884c\u7b26(\/n)\u3002 \u5fc5\u987b\u5728<code>&lt;Text&gt;<\/code>\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u3002<\/p>\n<pre><code class=\"ts\">&lt;script&gt;\nimport { TBox, TNewline, TText } from '@temir\/core'\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TBox&gt;\n    &lt;TText&gt;\n      &lt;TText color=&quot;green&quot;&gt;\n        Hello\n      &lt;\/TText&gt;\n      &lt;TNewline \/&gt;\n      &lt;TText color=&quot;red&quot;&gt;\n        World\n      &lt;\/TText&gt;\n    &lt;\/TText&gt;\n  &lt;\/TBox&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<h4>\u586b\u5145\u7ec4\u4ef6 (Spacer)<\/h4>\n<p>\u6cbf\u5176\u5305\u542b\u5e03\u5c40\u7684\u4e3b\u8f74\u5c55\u5f00\u7684\u7075\u6d3b\u7a7a\u95f4\u3002 \u4f5c\u4e3a\u586b\u5145\u5143\u7d20\u4e4b\u95f4\u6240\u6709\u53ef\u7528\u7a7a\u95f4\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u5b83\u975e\u5e38\u6709\u7528\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5728\u5177\u6709\u9ed8\u8ba4\u4f38\u7f29\u65b9\u5411(<code>row<\/code>)\u7684<code>&lt;Box&gt;<\/code>\u4e2d\u4f7f\u7528<code>&lt;Spacer&gt;<\/code>\u5c06\u628a&#8221;Left&#8221;\u5b9a\u4f4d\u5230\u5de6\u8fb9\uff0c\u5e76\u5c06&#8221;Right&#8221;\u63a8\u5230\u53f3\u8fb9\u3002<\/p>\n<pre><code class=\"ts\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport { TBox, TSpacer, TText } from '@temir\/core'\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TBox&gt;\n    &lt;TText&gt;Left&lt;\/TText&gt;\n    &lt;TSpacer \/&gt;\n    &lt;TText&gt;Right&lt;\/TText&gt;\n  &lt;\/TBox&gt;\n&lt;\/template&gt;\n<\/code><\/pre>\n<h4>\u8d85\u94fe\u63a5\u7ec4\u4ef6 (Link)<\/h4>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288660\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code class=\"ts\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport { TBox, TText } from '@temir\/core'\nimport TLink from '@temir\/link'\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TBox\n    :margin=&quot;5&quot;\n    width=&quot;20&quot;\n    border-style=&quot;round&quot;\n    justify-content=&quot;center&quot;\n  &gt;\n    &lt;TLink url=&quot;https:\/\/github.com&quot;&gt;\n      &lt;TText color=&quot;yellow&quot;&gt;\n        Hi\n      &lt;\/TText&gt;\n      &lt;TText color=&quot;cyan&quot;&gt;\n        Github\n      &lt;\/TText&gt;\n    &lt;\/TLink&gt;\n  &lt;\/TBox&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<h4>\u52a0\u8f7d\u4e2d\u7ec4\u4ef6 (Spinner)<\/h4>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288661\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code class=\"ts\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport { TBox, TText } from '@temir\/core'\nimport TSpinner from '@temir\/spinner'\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TBox\n    :margin=&quot;5&quot;\n    width=&quot;20&quot;\n    border-style=&quot;round&quot;\n    justify-content=&quot;center&quot;\n  &gt;\n    &lt;TText&gt;\n      &lt;TText color=&quot;yellow&quot;&gt;\n        &lt;TSpinner \/&gt;\n      &lt;\/TText&gt;\n      Loading\n    &lt;\/TText&gt;\n  &lt;\/TBox&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<h4>\u6807\u7b7e\u9875\u7ec4\u4ef6 (Tab)<\/h4>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288662\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code class=\"ts\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport { computed, ref } from '@vue\/runtime-core'\nimport { TBox, TText } from '@temir\/core'\nimport { TTab, TTabs } from '@temir\/tab'\n\nconst tabs = ['Vue', 'React', 'Angular', 'Solid', 'Svelte']\nconst activeIndex = ref(0)\nconst selectedText = computed(() =&gt; tabs[activeIndex.value])\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TBox&gt;\n    &lt;TText&gt;\n      Selected Text :\n      &lt;TText color=&quot;red&quot;&gt;\n        {{ selectedText }}\n      &lt;\/TText&gt;\n    &lt;\/TText&gt;\n  &lt;\/TBox&gt;\n\n  &lt;TBox&gt;\n    &lt;TTabs :on-change=&quot;(index) =&gt; activeIndex = +index&quot;&gt;\n      &lt;TTab v-for=&quot;item in tabs&quot; :key=&quot;item&quot;&gt;\n        {{ item }}\n      &lt;\/TTab&gt;\n    &lt;\/TTabs&gt;\n  &lt;\/TBox&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<h4>\u9009\u62e9\u7ec4\u4ef6<\/h4>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288663\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code class=\"ts\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport TSelectInput from '@temir\/select-input'\n\nconst items = [\n  {\n    label: 'Vue',\n    value: 'Vue',\n  },\n  {\n    label: 'Vite',\n    value: 'Vite',\n  },\n  {\n    label: 'Temir',\n    value: 'Temir',\n  },\n]\nfunction onSelect(value) {\n  console.log('selected', value)\n}\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TSelectInput :items=&quot;items&quot; :on-select=&quot;onSelect&quot; \/&gt;\n&lt;\/template&gt;\n<\/code><\/pre>\n<h3>\u5b89\u88c5<\/h3>\n<pre><code class=\"sh\">npm install @temir\/core<\/code><\/pre>\n<h3>\u4f7f\u7528<\/h3>\n<pre><code class=\"ts\">&lt;script lang=&quot;ts&quot; setup&gt;\nimport { ref } from '@vue\/runtime-core'\nimport { TBox, TText } from '@temir\/core'\nconst counter = ref(0)\nsetInterval(() =&gt; {\n  counter.value++\n}, 100)\n&lt;\/script&gt;\n\n&lt;template&gt;\n  &lt;TBox&gt;\n    &lt;TText color=&quot;green&quot;&gt;\n      {{ counter }} tests passed\n    &lt;\/TText&gt;\n  &lt;\/TBox&gt;\n&lt;\/template&gt;<\/code><\/pre>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288664\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>HMR\u652f\u6301<\/h3>\n<p>\u524d\u9762\u6211\u4eec\u63d0\u5230\u4e86\u5f00\u53d1\u8005\u4f53\u9a8c(DX),\u5728\u73b0\u5728\u7684\u524d\u7aef\u5de5\u7a0b\u4e2d,\u5bf9\u5f00\u53d1\u8005\u5f88\u6709\u5e2e\u52a9\u4e14\u63d0\u6548\u7684\u5c31\u662fHMR,\u8fd9\u4e48\u9999\u7684\u4e1c\u897f<a href=\"https:\/\/link.segmentfault.com\/?enc=NO%2B0absHn%2BFFcvC0Kiol0A%3D%3D.GjKU3iATMt%2FxLBt3XgP6AfNR26zqW1Kex7mAsMsgMhEmzUQ93Iid9TB3yGZm1iyY\" rel=\"nofollow\">Temir<\/a>\u6ca1\u6709\u7406\u7531\u4e0d\u62e5\u6709\u5b83,\u8bdd\u4e0d\u591a\u8bf4,\u76f4\u63a5\u5c55\u793a:<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288665\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u5f00\u7bb1\u5373\u7528<\/h3>\n<p>\u4f7f\u7528<a href=\"https:\/\/link.segmentfault.com\/?enc=JHdwgyUNoDaT2PXO%2Bd4jyA%3D%3D.k02L%2BOLAwExFhQ24clOUMuv22bQ3Kt%2B%2Fc1Tr7YyHFF24K%2F3%2BxPCeCz4oPQALLPoM\" rel=\"nofollow\">Temir<\/a>\u5b9a\u5236\u5316CLI\u975e\u5e38\u7b80\u5355,\u6211\u4eec\u63d0\u4f9b\u4e86<a href=\"https:\/\/link.segmentfault.com\/?enc=RiD9ohz7riCiIg6BnDxzWw%3D%3D.fgndKMdVPjNXEJspYSSwJ1h8gud1vHDQUfX4sqt%2F4sdmhV1OkKHpRSGzaWvfaRfnkGScuNYZC05oAaBjTgDI4Q%3D%3D\" rel=\"nofollow\">@temir\/cli<\/a>\u5e2e\u52a9\u4f60\u5feb\u901f\u6784\u5efa\u4e00\u4e2a\u57fa\u4e8e<a href=\"https:\/\/link.segmentfault.com\/?enc=dH39v7QjUJzpzhwkXHqq4w%3D%3D.sTNhVYgGqAC2DSNkeVQlsRQ17SQYVBVDGDRDy%2BVLGtGWjcBUf5iVYF8gzespM1Bk\" rel=\"nofollow\">Temir<\/a>\u7684CLI.<\/p>\n<pre><code class=\"ts\">mkdir my-temir-cli\n\ncd my-temir-cli\n\ntouch main.ts\n\nnpm install @temir\/cl\n\n# Dev (\u5f00\u53d1)\n\ntemir main.ts\n\n# Build (\u6253\u5305)\n\ntemir build main.ts<\/code><\/pre>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u8fd9\u4e2a <a href=\"https:\/\/link.segmentfault.com\/?enc=k0K15ZIxrtJJ5B5cikGK9w%3D%3D.tRXm0hHBbSf8%2B0PlOzmLIRoDeE02%2FM1qR7fZohrObERfrrolwsGwtxyXXUuMB%2BHB27PSQ7SMwl0EVgrJQxscng%3D%3D\" rel=\"nofollow\">\u4f8b\u5b50<\/a> \u6765\u5feb\u901f\u5f00\u59cb\uff0c\u4f60\u4e5f\u53ef\u4ee5\u6253\u5f00 <a href=\"https:\/\/link.segmentfault.com\/?enc=pPZRH%2BW1qodF2vWLMAB4YQ%3D%3D.R7X350KMr5vCOsRsnJOXMM%2BUyP3LQBftLmds3n9jfms6GfkcM5ShoA6%2BWOPeO97e\" rel=\"nofollow\">repl.it sandbox<\/a>\u6765\u5728\u7ebf\u4f53\u9a8c\u548c\u5c1d\u8bd5\u5b83\u3002<\/p>\n<h2>\u6f14\u793a<\/h2>\n<h3><a href=\"https:\/\/link.segmentfault.com\/?enc=PKM0r4Ikzw%2BGh2WA4MRpCA%3D%3D.u%2BfxYrte5nqGfbu31LD6Uxndf3NqqQLhM5FbrrEryAbM739Ug6lp4aTnolULOl%2F4Tu8UXL8MoqIXApWZjl4SNA%3D%3D\" rel=\"nofollow\">Hi Temir<\/a><\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288666\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3><a href=\"https:\/\/link.segmentfault.com\/?enc=v0Py8EcnffQ6k7eOLi5UMg%3D%3D.a6ajhL%2FfPdFDRgvvrVk3bLiI7CetXxIk%2FXxNzb%2BafIul9YOHVL%2FWNZqQlOaU34o964la4KXX%2BonUThXOHyr%2Baw%3D%3D\" rel=\"nofollow\">Borders<\/a><\/h3>\n<h3><a href=\"https:\/\/link.segmentfault.com\/?enc=4f%2FpMaT0S8TcZ%2BD2V6MVhA%3D%3D.n2d2edFoazPZkQLk0TMp5JWp675p4L8JQsJw5hxfxg0J05iPnXTpRge%2FvoAX3lBv7j2SvykSW%2FUQ7DGPllbSpQ%3D%3D\" rel=\"nofollow\">Table<\/a><\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288667\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3><a href=\"https:\/\/link.segmentfault.com\/?enc=wu2LQOwhJK1%2F97tGlGd2Hg%3D%3D.%2FL15eC%2BxkLALwv6cc%2BTHfqTYeqfbGy5gHzAdU72ABeQoObZnwoLCNekd61rU4PHs6KY5jIwb%2BohgZq34QyeO2w%3D%3D\" rel=\"nofollow\">Vitest<\/a><\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288668\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u5b9e\u73b0<\/h2>\n<ul>\n<li>createRenderer<\/li>\n<\/ul>\n<p>Temir\u7684\u5b9e\u73b0\u4e3b\u8981\u5f97\u76ca\u4e8eVue3\u51fa\u8272\u7684\u8de8\u5e73\u53f0\u80fd\u529b,\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<a href=\"https:\/\/link.segmentfault.com\/?enc=y2pOHstROi5YW3PfQLo7VA%3D%3D.r8DEhz%2Bm3zHffMbzgITmV0t8MJtTQSxm9hcdXYDCYdPU9TQ6VNdCqnaG6HanyHFBo3JTj362hcnqcCCienAanQ%3D%3D\" rel=\"nofollow\">createRenderer<\/a> API\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6e32\u67d3\u5668,\u901a\u8fc7\u521b\u5efa\u5bbf\u4e3b\u73af\u5883\u4e2d\u5bf9\u5e94\u7684Node\u548cElement,\u5e76\u5bf9\u5143\u7d20\u8fdb\u884c\u589e\u5220\u6539\u67e5\u64cd\u4f5c.<\/p>\n<ul>\n<li>Yoga<\/li>\n<\/ul>\n<p>Vue\u63d0\u4f9b\u4e86\u8dd1\u5728\u547d\u4ee4\u884c\u754c\u9762\u7684\u63a5\u53e3,\u90a3\u6211\u4eec\u5c31\u8fd8\u7f3a\u5c11\u4e00\u4e2a\u5e03\u5c40\u5f15\u64ce\u5c31\u80fd\u628aVue<br \/>\u8dd1\u5728\u547d\u4ee4\u884c\u5de5\u5177\u4e86.Temir\u4f7f\u7528\u4e86Yoga,\u4e00\u6b3eFlexbox\u5e03\u5c40\u5f15\u64ce.\u4f7f\u7528\u4f60\u5728\u6784\u5efa\u6d4f\u89c8\u5668\u5e94\u7528\u65f6\u4f7f\u7528\u8fc7\u7684\u7c7b\u4f3cCSS\u7684\u5c5e\u6027\uff0c\u4e3a\u4f60\u7684CLI\u6784\u5efa\u51fa\u8272\u7684\u7528\u6237\u754c\u9762\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042288669\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u81f4\u8c22<\/h2>\n<ul>\n<li>\u8fd9\u4e2a\u9879\u76ee\u7684\u7075\u611f\u6765\u6e90\u4e8e<a href=\"https:\/\/link.segmentfault.com\/?enc=jw5KVMhBtvKW2EO96vfgTQ%3D%3D.LBkExKa7nPeqk99nf51GZcbCpL6Hurn2W4ss1wwL3WdBmZIZk99g%2FFE0A0TkL5eA\" rel=\"nofollow\">ink<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=avlV8brM%2BNv2XxE%2FaC9NGw%3D%3D.0vsSeOj1X0ZDQWuXttQ3IObtzWRlZKiGmq3WPI6NAfuiHd9Z12xQakrnMguQnFjh\" rel=\"nofollow\">vite-node<\/a>\u4e3a\u5b9e\u73b0HMR\u63d0\u4f9b\u4e86\u5f3a\u529b\u7684\u652f\u6301<\/li>\n<\/ul>\n<h2>\u7ed3\u8bed<\/h2>\n<p>\u6587\u7ae0\u5230\u8fd9\u91cc\u5c31\u7ed3\u675f\u4e86,\u5982\u679c\u6211\u7684\u6587\u7ae0\u548c\u9879\u76ee\u5bf9\u4f60\u6709\u6240\u542f\u53d1\u548c\u5e2e\u52a9,\u8bf7\u7ed9\u4e00\u4e2a<a href=\"https:\/\/link.segmentfault.com\/?enc=FsSDs4YVYRp4tBNYii0mLQ%3D%3D.74jqlCx6UbT6K%2BBjQzTU4mIrNbqlDIIDxK7qLa%2FpvQ0BU%2BxU9rmJcy4zfCKAF2sV\" rel=\"nofollow\">star<\/a>\u652f\u6301\u4f5c\u8005 \u270c<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042288656\">https:\/\/segmentfault.com\/a\/1190000042288656<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5927\u5bb6\u597d,\u6211\u662fwebfansplz.\u7ee7\u5c06 Vue \u6e32\u67d3\u5230\u5d4c\u5165\u5f0f\u6db2\u6676\u5c4f\u540e,\u4eca\u5929\u8981\u8ddf\u5927\u5bb6\u5206\u4eab\u7684\u662f\u5982\u4f55\u5c06Vue\u6e32 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006143","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006143"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006143\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}