{"id":110616,"date":"2026-09-29T05:08:43","date_gmt":"2026-09-28T21:08:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/110616.html"},"modified":"2026-09-29T05:08:43","modified_gmt":"2026-09-28T21:08:43","slug":"%e4%b8%80%e7%9b%8f%e6%a6%ab%e5%8d%af%e9%b2%81%e7%8f%ad%e9%94%81%e7%9a%84%e4%b8%a5%e4%b8%9d%e5%90%88%e7%bc%9d%e4%b8%8e%e5%89%8d%e7%ab%af%e7%bb%84%e4%bb%b6%e6%8e%a5%e5%8f%a3%e5%a5%91%e7%ba%a6%e8%ae%be","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/110616.html","title":{"rendered":"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1"},"content":{"rendered":"<h2>\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260928210842-6abad75a39cb6.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u7f8e\u9662\u4f20\u7edf\u6728\u4f5c\u4e0e\u7a7a\u95f4\u6784\u9020\u5de5\u574a\u91cc&#xff0c;\u8001\u5e08\u66fe\u53d1\u7ed9\u6bcf\u4f4d\u540c\u5b66\u4e00\u5957\u672a\u7ecf\u6253\u78e8\u7684\u4f20\u7edf\u516d\u67f1**\u201c\u9c81\u73ed\u9501&#xff08;\u53c8\u79f0\u5b54\u660e\u9501 \/ Luban Lock&#xff09;\u201d**\u3002<\/p>\n<p>\u6563\u843d\u5728\u5de5\u4f5c\u53f0\u4e0a\u7684&#xff0c;\u662f\u516d\u6839\u957f\u5bbd\u5b8c\u5168\u76f8\u540c\u7684\u7ea2\u6728\u65b9\u6761\u3002<\/p>\n<p>\u521d\u770b\u4e4b\u4e0b&#xff0c;\u8fd9\u516d\u6839\u6728\u6761\u5f62\u6001\u5404\u5f02\u3001\u751a\u81f3\u663e\u5f97\u6709\u4e9b\u6b8b\u7f3a\u7834\u635f&#xff1a;\u6bcf\u4e00\u6839\u6728\u6761\u7684\u4e2d\u95f4\u90e8\u5206&#xff0c;\u90fd\u88ab\u9c81\u73ed\u5228\u548c\u96d5\u523b\u5200\u51ff\u51fa\u4e86\u6df1\u6d45\u4e0d\u4e00\u7684\u65b9\u5f62\u51f9\u69fd\u3001\u51f8\u53f0\u4e0e\u7f3a\u53e3\u2014\u2014\u8fd9\u5c31\u662f\u4e2d\u56fd\u53e4\u4ee3\u5efa\u7b51\u4e0e\u5bb6\u5177\u5de5\u827a\u4e2d\u6d41\u4f20\u6570\u5343\u5e74\u7684\u6700\u9ad8\u667a\u6167\u2014\u2014\u201c\u69ab\u536f&#xff08;Mortise and Tenon&#xff09;\u201d\u3002<\/p>\n<p>\u5728\u7ec4\u88c5\u9c81\u73ed\u9501\u7684\u8fc7\u7a0b\u4e2d&#xff0c;\u4e0d\u7528\u4e00\u9897\u94c1\u9489&#xff0c;\u4e0d\u7528\u4e00\u9897\u87ba\u4e1d&#xff0c;\u4e5f\u4e0d\u6d82\u62b9\u4e00\u6ef4\u5316\u5b66\u80f6\u6c34&#xff1a;<\/p>\n<ul>\n<li>\u7b2c\u4e00\u6839\u201c\u62b1\u67f1\u201d\u4e0e\u7b2c\u4e8c\u6839\u201c\u7acb\u67f1\u201d\u5728\u7a7a\u95f4\u4e2d\u6b63\u4ea4\u9519\u4f4d\u54ac\u5408&#xff1b;<\/li>\n<li>\u7b2c\u4e09\u6839\u4e0e\u7b2c\u56db\u6839\u987a\u7740\u9884\u7559\u7684\u6ed1\u69fd\u987a\u7545\u63a8\u5165&#xff0c;\u51f9\u51f8\u4e4b\u95f4\u516c\u5dee\u4e25\u5bc6\u63a7\u5236\u5728\u5fae\u7c73\u7ea7\u522b&#xff1b;<\/li>\n<li>\u5f53\u63a8\u5165\u6700\u540e\u4e00\u6839\u8d77\u7740\u9501\u5b9a\u5168\u76d8\u4f5c\u7528\u7684\u201c\u9501\u82af\u67f1&#xff08;Key Stick&#xff09;\u201d\u7684\u4e00\u77ac\u95f4&#xff0c;\u201c\u5494\u54d2\u201d\u4e00\u58f0\u5fae\u54cd\u2014\u2014<\/li>\n<li>\u539f\u672c\u516d\u6839\u6447\u6447\u6b32\u5760\u7684\u677e\u6563\u6728\u6761&#xff0c;\u77ac\u95f4\u5728\u4e09\u7ef4\u7a7a\u95f4\u4e2d\u4e92\u76f8\u5236\u7ea6\u3001\u4e92\u76f8\u652f\u6491\u3001\u7d27\u5bc6\u54ac\u6b7b\u4e3a\u4e00\u4e2a\u575a\u5982\u78d0\u77f3\u3001\u6d51\u7136\u4e00\u4f53\u7684\u7edd\u5999\u7acb\u65b9\u4f53&#xff01;<\/li>\n<\/ul>\n<p>\u53e4\u8bed\u6709\u4e91&#xff1a;\u201c\u69ab\u536f\u4e07\u5e94&#xff0c;\u9634\u9633\u4e92\u751f&#xff0c;\u6263\u7ed3\u81ea\u575a&#xff0c;\u4e0d\u7528\u9489\u80f6\u800c\u767e\u4ee3\u4e0d\u673d\u3002\u201d<\/p>\n<p>\u516d\u6839\u6728\u6761&#xff0c;\u6bcf\u4e00\u5904\u7684\u51f8\u8d77&#xff08;\u69ab&#xff09;\u90fd\u7cbe\u51c6\u5bf9\u5e94\u7740\u53e6\u4e00\u5904\u7684\u51f9\u9677&#xff08;\u536f&#xff09;&#xff0c;\u5f7c\u6b64\u4e4b\u95f4\u65e2\u4fdd\u6301\u7740\u72ec\u7acb\u7684\u7269\u7406\u8fb9\u754c&#xff0c;\u53c8\u5728\u5951\u7ea6\u54ac\u5408\u540e\u5c55\u73b0\u51fa\u60ca\u4eba\u7684\u7cfb\u7edf\u5b8c\u6574\u6027\u3002<\/p>\n<p>\u591a\u5e74\u4e4b\u540e&#xff0c;\u5f53\u6211\u5728\u5927\u524d\u7aef\u67b6\u6784\u4e2d\u4e3a\u4e00\u5957\u4f01\u4e1a\u7ea7\u8bbe\u8ba1\u7cfb\u7edf\u8bbe\u8ba1\u590d\u5408\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6&#xff08;Compound Component Contract &amp; Inversion of Control&#xff09; \u65f6&#xff0c;\u6211\u603b\u4f1a\u60f3\u8d77\u5de5\u4f5c\u53f0\u4e0a\u90a3\u4e00\u76cf\u4e25\u4e1d\u5408\u7f1d\u7684\u7ea2\u6728\u9c81\u73ed\u9501\u3002<\/p>\n<p>\u5728\u5f88\u591a\u7c97\u7cd9\u7684\u524d\u7aef\u7ec4\u4ef6\u8bbe\u8ba1\u4e2d&#xff0c;\u7ec4\u4ef6\u63a5\u53e3\u5f80\u5f80\u5145\u65a5\u7740\u4e25\u91cd\u7684\u201c\u7528\u94c1\u9489\u786c\u7838&#xff08;Prop Drilling &amp; Monolithic Bloat&#xff09;\u201d&#xff1a;<\/p>\n<ul>\n<li>\u4e00\u4e2a &lt;Select \/&gt; \u4e0b\u62c9\u7ec4\u4ef6&#xff0c;\u5f00\u53d1\u8005\u5b9a\u4e49\u4e86\u6574\u6574 50 \u591a\u4e2a\u5e9e\u6742\u7684 props&#xff08;isSearchable, hasIcon, customDropdownHeader, footerButtonText, onOptionHoverSelect&#8230;&#xff09;&#xff1b;<\/li>\n<li>\u6240\u6709\u7684\u529f\u80fd\u50cf\u4e00\u5806\u70c2\u6ce5\u88ab\u6b7b\u6b7b\u710a\u6b7b\u5728\u4e00\u4e2a\u5de8\u578b\u7ec4\u4ef6\u5185\u90e8&#xff1b;<\/li>\n<li>\u4e1a\u52a1\u65b9\u4e00\u65e6\u60f3\u5728\u4e24\u4e2a\u9009\u9879\u4e2d\u95f4\u63d2\u5165\u4e00\u6761\u5206\u5272\u7ebf&#xff0c;\u6216\u8005\u5fae\u8c03\u9009\u9879\u56fe\u6807\u7684\u4f4d\u7f6e&#xff0c;\u7ec4\u4ef6\u76f4\u63a5\u762b\u75ea\u5931\u7075&#xff0c;\u4e0d\u5f97\u4e0d\u7ee7\u7eed\u8ffd\u52a0\u7b2c 51 \u4e2a\u5e03\u5c14\u503c props \u8fdb\u884c\u4e11\u964b\u7684\u6253\u8865\u4e01&#xff01;<\/li>\n<\/ul>\n<p>\u5c06\u4f20\u7edf\u9c81\u73ed\u9501\u201c\u51f9\u51f8\u54ac\u5408\u3001\u63a7\u5236\u53cd\u8f6c\u3001\u9501\u82af\u81ea\u9501\u201d\u7684\u69ab\u536f\u5951\u7ea6\u54f2\u5b66\u5f15\u5165\u73b0\u4ee3\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u8bbe\u8ba1&#xff0c;\u6211\u4eec\u5c31\u80fd\u7528 React Context \/ Vue Provide-Inject \u6253\u9020\u51fa\u5982\u53e4\u5178\u69ab\u536f\u822c\u65e2\u7075\u6d3b\u591a\u53d8\u3001\u53c8\u4e25\u5bc6\u81ea\u6d3d\u7684\u590d\u5408\u7ec4\u4ef6\u7cfb\u7edf\u3002<\/p>\n<h4>\u9c81\u73ed\u9501\u69ab\u536f\u5728\u590d\u5408\u7ec4\u4ef6&#xff08;Compound Components&#xff09;\u4e2d\u7684\u5951\u7ea6\u6620\u5c04<\/h4>\n<p>\u4e00\u4e2a\u5177\u5907\u69ab\u536f\u7ea7\u5de5\u4e1a\u7f8e\u611f\u7684\u590d\u5408\u7ec4\u4ef6\u7cfb\u7edf&#xff0c;\u5fc5\u987b\u5c06\u5e9e\u5927\u7684\u63a7\u5236\u6743\u4e0b\u653e&#xff0c;\u62c6\u89e3\u4e3a\u4e00\u7ec4\u62e5\u6709\u660e\u786e\u51f9\u51f8\u5951\u7ea6\u7684\u5b50\u7ec4\u4ef6&#xff1a;<\/p>\n<p>                    \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n                    \u2502               \u7236\u7ea7\u5916\u58f3\u5bb9\u5668: &lt;Select.Root&gt;                \u2502<br \/>\n                    \u2502               (\u76f8\u5f53\u4e8e\u9c81\u73ed\u9501\u7684\u57fa\u5e95\u62b1\u67f1\u4e0e\u7acb\u67f1)            \u2502<br \/>\n                    \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                                                 \u2502<br \/>\n          \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n          \u25bc                                      \u25bc                                      \u25bc<br \/>\n[\u89e6\u53d1\u5668\u69ab\u69fd: &lt;Select.Trigger&gt;]        [\u4e0b\u62c9\u6d6e\u5c42\u69ab\u69fd: &lt;Select.Content&gt;]        [\u9009\u9879\u54ac\u5408\u5355\u5143: &lt;Select.Item&gt;]<br \/>\n  &#8211; \u627f\u8f7d\u70b9\u51fb\u5c55\u5f00\u903b\u8f91                     &#8211; \u627f\u8f7d Portal \u4e0e\u52a8\u753b\u6302\u8f7d               &#8211; \u627f\u8f7d\u6570\u636e\u9009\u4e2d\u4e0e\u952e\u76d8\u7126\u70b9<br \/>\n  &#8211; \u4e0e Root \u5171\u4eab Context \u51f9\u51f8\u5951\u7ea6        &#8211; \u4e0e Trigger \u4fdd\u6301\u7269\u7406\u5bf9\u9f50              &#8211; \u4e25\u4e1d\u5408\u7f1d\u54ac\u5165 Content \u69fd\u4f4d&#xff01;&#x1f525;<\/p>\n<h4>\u751f\u4ea7\u7ea7\u69ab\u536f\u590d\u5408\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u5b9e\u73b0&#xff08;React\/TypeScript&#xff09;<\/h4>\n<p>\/\/ compound-select-craft.tsx<br \/>\nimport React, { createContext, useContext, useState, useId } from &#039;react&#039;;<\/p>\n<p>\/\/ 1. \u69ab\u536f\u9690\u5f0f\u5951\u7ea6 Context (\u76f8\u5f53\u4e8e\u6728\u6761\u5185\u90e8\u7684\u51f9\u51f8\u51e0\u4f55\u89c4\u683c)<br \/>\ninterface LubanSelectContextType {<br \/>\n  isOpen: boolean;<br \/>\n  setIsOpen: (open: boolean) &#061;&gt; void;<br \/>\n  selectedValue: string | null;<br \/>\n  onSelect: (val: string) &#061;&gt; void;<br \/>\n  baseId: string;<br \/>\n}<\/p>\n<p>const LubanSelectContext &#061; createContext&lt;LubanSelectContextType | null&gt;(null);<\/p>\n<p>function useLubanContract() {<br \/>\n  const ctx &#061; useContext(LubanSelectContext);<br \/>\n  if (!ctx) throw new Error(&#039;&#x1f6a8; [\u9c81\u73ed\u69ab\u536f\u5951\u7ea6\u5f02\u5e38] \u5b50\u7ec4\u4ef6\u5fc5\u987b\u5305\u88f9\u5728 &lt;Select.Root&gt; \u5185\u90e8&#xff01;&#039;);<br \/>\n  return ctx;<br \/>\n}<\/p>\n<p>\/\/ 2. \u6839\u5bb9\u5668 (Root \/ \u6574\u4f53\u7a7a\u95f4\u6846\u67b6)<br \/>\nexport const SelectRoot: React.FC&lt;{<br \/>\n  children: React.ReactNode;<br \/>\n  defaultValue?: string;<br \/>\n  onValueChange?: (val: string) &#061;&gt; void;<br \/>\n}&gt; &#061; ({ children, defaultValue &#061; null, onValueChange }) &#061;&gt; {<br \/>\n  const [isOpen, setIsOpen] &#061; useState(false);<br \/>\n  const [selectedValue, setSelectedValue] &#061; useState&lt;string | null&gt;(defaultValue);<br \/>\n  const baseId &#061; useId();<\/p>\n<p>  const handleSelect &#061; (val: string) &#061;&gt; {<br \/>\n    setSelectedValue(val);<br \/>\n    setIsOpen(false);<br \/>\n    onValueChange?.(val);<br \/>\n  };<\/p>\n<p>  return (<br \/>\n    &lt;LubanSelectContext.Provider<br \/>\n      value&#061;{{ isOpen, setIsOpen, selectedValue, onSelect: handleSelect, baseId }}<br \/>\n    &gt;<br \/>\n      &lt;div className&#061;&#034;relative inline-block w-full max-w-xs&#034;&gt;{children}&lt;\/div&gt;<br \/>\n    &lt;\/LubanSelectContext.Provider&gt;<br \/>\n  );<br \/>\n};<\/p>\n<p>\/\/ 3. \u89e6\u53d1\u5668 (Trigger \/ \u9501\u82af\u7b2c\u4e00\u67f1)<br \/>\nexport const SelectTrigger: React.FC&lt;{ children: React.ReactNode; placeholder?: string }&gt; &#061; ({<br \/>\n  children,<br \/>\n  placeholder &#061; &#039;\u8bf7\u9009\u62e9\u914d\u7f6e\u9879&#8230;&#039;,<br \/>\n}) &#061;&gt; {<br \/>\n  const { isOpen, setIsOpen, selectedValue } &#061; useLubanContract();<\/p>\n<p>  return (<br \/>\n    &lt;button<br \/>\n      type&#061;&#034;button&#034;<br \/>\n      onClick&#061;{() &#061;&gt; setIsOpen(!isOpen)}<br \/>\n      className&#061;&#034;w-full flex items-center justify-between px-4 py-3 bg-slate-900 border border-slate-800 rounded-2xl text-white text-xs font-semibold shadow-lg hover:border-indigo-500\/50 transition-all outline-none focus:ring-2 focus:ring-indigo-500&#034;<br \/>\n    &gt;<br \/>\n      &lt;span&gt;{selectedValue ? children : &lt;span className&#061;&#034;text-slate-500&#034;&gt;{placeholder}&lt;\/span&gt;}&lt;\/span&gt;<br \/>\n      &lt;span className&#061;{&#096;text-slate-400 transition-transform duration-200 ${isOpen ? &#039;rotate-180&#039; : &#039;&#039;}&#096;}&gt;\u25bc&lt;\/span&gt;<br \/>\n    &lt;\/button&gt;<br \/>\n  );<br \/>\n};<\/p>\n<p>\/\/ 4. \u4e0b\u62c9\u5185\u5bb9\u533a (Content \/ \u6d6e\u52a8\u69ab\u69fd)<br \/>\nexport const SelectContent: React.FC&lt;{ children: React.ReactNode }&gt; &#061; ({ children }) &#061;&gt; {<br \/>\n  const { isOpen } &#061; useLubanContract();<br \/>\n  if (!isOpen) return null;<\/p>\n<p>  return (<br \/>\n    &lt;div className&#061;&#034;absolute left-0 right-0 mt-2 p-1.5 bg-slate-950 border border-slate-800 rounded-2xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 space-y-1&#034;&gt;<br \/>\n      {children}<br \/>\n    &lt;\/div&gt;<br \/>\n  );<br \/>\n};<\/p>\n<p>\/\/ 5. \u9009\u9879\u5355\u5143 (Item \/ \u4e25\u4e1d\u5408\u7f1d\u7684\u54ac\u5408\u69ab\u5934)<br \/>\nexport const SelectItem: React.FC&lt;{ value: string; children: React.ReactNode }&gt; &#061; ({<br \/>\n  value,<br \/>\n  children,<br \/>\n}) &#061;&gt; {<br \/>\n  const { selectedValue, onSelect } &#061; useLubanContract();<br \/>\n  const isSelected &#061; selectedValue &#061;&#061;&#061; value;<\/p>\n<p>  return (<br \/>\n    &lt;div<br \/>\n      onClick&#061;{() &#061;&gt; onSelect(value)}<br \/>\n      className&#061;{&#096;flex items-center justify-between px-3.5 py-2.5 rounded-xl text-xs font-medium cursor-pointer select-none transition-colors<br \/>\n        ${isSelected ? &#039;bg-indigo-600 text-white font-bold&#039; : &#039;text-slate-300 hover:bg-slate-900 hover:text-white&#039;}&#096;}<br \/>\n    &gt;<br \/>\n      &lt;span&gt;{children}&lt;\/span&gt;<br \/>\n      {isSelected &amp;&amp; &lt;span className&#061;&#034;text-white text-xs&#034;&gt;\u2713&lt;\/span&gt;}<br \/>\n    &lt;\/div&gt;<br \/>\n  );<br \/>\n};<\/p>\n<p>\/\/ \u547d\u540d\u7a7a\u95f4\u5bfc\u51fa<br \/>\nexport const Select &#061; {<br \/>\n  Root: SelectRoot,<br \/>\n  Trigger: SelectTrigger,<br \/>\n  Content: SelectContent,<br \/>\n  Item: SelectItem,<br \/>\n};<\/p>\n<h4>\u4e1a\u52a1\u4f7f\u7528&#xff1a;\u5982\u540c\u62fc\u88c5\u9c81\u73ed\u9501\u822c\u81ea\u7531\u4e14\u575a\u56fa<\/h4>\n<p>\/\/ App.tsx<br \/>\nexport const DemoApp &#061; () &#061;&gt; {<br \/>\n  return (<br \/>\n    &lt;Select.Root onValueChange&#061;{(val) &#061;&gt; console.log(&#039;\u9009\u4e2d\u9879:&#039;, val)}&gt;<br \/>\n      &lt;Select.Trigger placeholder&#061;&#034;\u6311\u9009\u69ab\u536f\u89c4\u683c&#8230;&#034; \/&gt;<br \/>\n      &lt;Select.Content&gt;<br \/>\n        &lt;Select.Item value&#061;&#034;six-pole&#034;&gt;\u7ecf\u5178\u516d\u67f1\u7ea2\u6728\u9c81\u73ed\u9501&lt;\/Select.Item&gt;<br \/>\n        &lt;Select.Item value&#061;&#034;twelve-pole&#034;&gt;\u5341\u4e8c\u67f1\u5929\u5706\u5730\u65b9\u9501&lt;\/Select.Item&gt;<br \/>\n        &lt;div className&#061;&#034;h-px bg-white\/10 my-1&#034;&gt;&lt;\/div&gt; {\/* \u81ea\u7531\u63d2\u5165\u4efb\u610f\u81ea\u5b9a\u4e49 UI&#xff01; *\/}<br \/>\n        &lt;Select.Item value&#061;&#034;custom-spec&#034;&gt;\u5b9a\u5236\u975e\u6807\u69ab\u536f\u7ed3\u6784&lt;\/Select.Item&gt;<br \/>\n      &lt;\/Select.Content&gt;<br \/>\n    &lt;\/Select.Root&gt;<br \/>\n  );<br \/>\n};<\/p>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u4e00\u76cf\u9c81\u73ed\u9501\u7684\u575a\u4e0d\u53ef\u6467&#xff0c;\u6e90\u4e8e\u516d\u6839\u6728\u6761\u5728\u51f9\u51f8\u54ac\u5408\u4e2d\u8fbe\u6210\u7684\u9ad8\u5ea6\u4e92\u4fe1\u4e0e\u63a7\u5236\u53cd\u8f6c&#xff1b;\u4e00\u5957\u524d\u7aef\u7ec4\u4ef6\u7684\u5386\u4e45\u5f25\u65b0&#xff0c;\u6e90\u4e8e\u5de5\u7a0b\u5e08\u7528\u6e05\u6670\u7684\u4e0a\u4e0b\u6587\u5951\u7ea6\u53d6\u4ee3\u81c3\u80bf\u6df7\u4e71\u7684\u53c2\u6570\u5806\u780c\u3002\u629b\u5f03\u7c97\u66b4\u751f\u786c\u7684\u5355\u4f53\u80d6\u7ec4\u4ef6&#xff0c;\u8df5\u884c\u5982\u4f20\u7edf\u69ab\u536f\u822c\u4e25\u4e1d\u5408\u7f1d\u7684\u590d\u5408\u7ec4\u4ef6\u8bbe\u8ba1\u54f2\u5b66&#xff0c;\u4f60\u7684\u4ee3\u7801\u5e93\u624d\u80fd\u5728\u9762\u5bf9\u5343\u53d8\u4e07\u5316\u7684\u4e1a\u52a1\u7ec4\u5408\u8bc9\u6c42\u65f6&#xff0c;\u5c55\u73b0\u51fa\u5982\u4f20\u4e16\u540d\u6728\u822c\u4e0d\u7528\u9489\u80f6\u5374\u767e\u4ee3\u4e0d\u673d\u7684\u4ece\u5bb9\u79e9\u5e8f\u4e4b\u7f8e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1\u5728\u7f8e\u9662\u4f20\u7edf\u6728\u4f5c\u4e0e\u7a7a\u95f4\u6784\u9020\u5de5\u574a\u91cc&#xff0c;\u8001\u5e08\u66fe\u53d1\u7ed9\u6bcf\u4f4d\u540c\u5b66\u4e00\u5957\u672a\u7ecf\u6253\u78e8\u7684\u4f20\u7edf\u516d\u67f1**\u201c\u9c81\u73ed\u9501&#xff08;\u53c8\u79f0\u5b54\u660e\u9501 \/ Luban Lock&#xff09;\u201d**\u3002<br \/>\n\u6563\u843d\u5728\u5de5\u4f5c\u53f0\u4e0a\u7684&#xff0c;\u662f\u516d\u6839\u957f\u5bbd\u5b8c\u5168\u76f8\u540c\u7684\u7ea2\u6728\u65b9\u6761\u3002<br \/>\n\u521d\u770b\u4e4b\u4e0b&#xff0c;\u8fd9\u516d\u6839\u6728\u6761\u5f62\u6001\u5404\u5f02\u3001\u751a\u81f3\u663e\u5f97\u6709\u4e9b\u6b8b\u7f3a\u7834\u635f&#xff1a;\u6bcf\u4e00\u6839\u6728\u6761\u7684\u4e2d\u95f4\u90e8\u5206&#xff0c;\u90fd\u88ab\u9c81\u73ed\u5228\u548c\u96d5\u523b\u5200\u51ff\u51fa\u4e86\u6df1\u6d45\u4e0d\u4e00\u7684\u65b9\u5f62\u51f9\u69fd\u3001\u51f8\u53f0\u4e0e\u7f3a\u53e3\u2014\u2014\u8fd9\u5c31\u662f\u4e2d\u56fd\u53e4\u4ee3\u5efa\u7b51\u4e0e<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,573,594,50,87],"topic":[],"class_list":["post-110616","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-css","tag-web","tag-50","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/110616.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1\u5728\u7f8e\u9662\u4f20\u7edf\u6728\u4f5c\u4e0e\u7a7a\u95f4\u6784\u9020\u5de5\u574a\u91cc&#xff0c;\u8001\u5e08\u66fe\u53d1\u7ed9\u6bcf\u4f4d\u540c\u5b66\u4e00\u5957\u672a\u7ecf\u6253\u78e8\u7684\u4f20\u7edf\u516d\u67f1**\u201c\u9c81\u73ed\u9501&#xff08;\u53c8\u79f0\u5b54\u660e\u9501 \/ Luban Lock&#xff09;\u201d**\u3002 \u6563\u843d\u5728\u5de5\u4f5c\u53f0\u4e0a\u7684&#xff0c;\u662f\u516d\u6839\u957f\u5bbd\u5b8c\u5168\u76f8\u540c\u7684\u7ea2\u6728\u65b9\u6761\u3002 \u521d\u770b\u4e4b\u4e0b&#xff0c;\u8fd9\u516d\u6839\u6728\u6761\u5f62\u6001\u5404\u5f02\u3001\u751a\u81f3\u663e\u5f97\u6709\u4e9b\u6b8b\u7f3a\u7834\u635f&#xff1a;\u6bcf\u4e00\u6839\u6728\u6761\u7684\u4e2d\u95f4\u90e8\u5206&#xff0c;\u90fd\u88ab\u9c81\u73ed\u5228\u548c\u96d5\u523b\u5200\u51ff\u51fa\u4e86\u6df1\u6d45\u4e0d\u4e00\u7684\u65b9\u5f62\u51f9\u69fd\u3001\u51f8\u53f0\u4e0e\u7f3a\u53e3\u2014\u2014\u8fd9\u5c31\u662f\u4e2d\u56fd\u53e4\u4ee3\u5efa\u7b51\u4e0e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/110616.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-28T21:08:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260928210842-6abad75a39cb6.webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110616.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/110616.html\",\"name\":\"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-28T21:08:43+00:00\",\"dateModified\":\"2026-09-28T21:08:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/110616.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/110616.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110616.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/110616.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1\u5728\u7f8e\u9662\u4f20\u7edf\u6728\u4f5c\u4e0e\u7a7a\u95f4\u6784\u9020\u5de5\u574a\u91cc&#xff0c;\u8001\u5e08\u66fe\u53d1\u7ed9\u6bcf\u4f4d\u540c\u5b66\u4e00\u5957\u672a\u7ecf\u6253\u78e8\u7684\u4f20\u7edf\u516d\u67f1**\u201c\u9c81\u73ed\u9501&#xff08;\u53c8\u79f0\u5b54\u660e\u9501 \/ Luban Lock&#xff09;\u201d**\u3002 \u6563\u843d\u5728\u5de5\u4f5c\u53f0\u4e0a\u7684&#xff0c;\u662f\u516d\u6839\u957f\u5bbd\u5b8c\u5168\u76f8\u540c\u7684\u7ea2\u6728\u65b9\u6761\u3002 \u521d\u770b\u4e4b\u4e0b&#xff0c;\u8fd9\u516d\u6839\u6728\u6761\u5f62\u6001\u5404\u5f02\u3001\u751a\u81f3\u663e\u5f97\u6709\u4e9b\u6b8b\u7f3a\u7834\u635f&#xff1a;\u6bcf\u4e00\u6839\u6728\u6761\u7684\u4e2d\u95f4\u90e8\u5206&#xff0c;\u90fd\u88ab\u9c81\u73ed\u5228\u548c\u96d5\u523b\u5200\u51ff\u51fa\u4e86\u6df1\u6d45\u4e0d\u4e00\u7684\u65b9\u5f62\u51f9\u69fd\u3001\u51f8\u53f0\u4e0e\u7f3a\u53e3\u2014\u2014\u8fd9\u5c31\u662f\u4e2d\u56fd\u53e4\u4ee3\u5efa\u7b51\u4e0e","og_url":"https:\/\/www.wsisp.com\/helps\/110616.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-28T21:08:43+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260928210842-6abad75a39cb6.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/110616.html","url":"https:\/\/www.wsisp.com\/helps\/110616.html","name":"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-28T21:08:43+00:00","dateModified":"2026-09-28T21:08:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/110616.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/110616.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/110616.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e00\u76cf\u69ab\u536f\u9c81\u73ed\u9501\u7684\u4e25\u4e1d\u5408\u7f1d\u4e0e\u524d\u7aef\u7ec4\u4ef6\u63a5\u53e3\u5951\u7ea6\u8bbe\u8ba1"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=110616"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110616\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=110616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=110616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=110616"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=110616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}