[{"data":1,"prerenderedAt":1362},["ShallowReactive",2],{"knowledge-routes":3,"zh:footer-pages":643,"zh:\u002Fshopify\u002Fthemes\u002Fdawn\u002Fquantity-input":656,"zh:\u002Fshopify\u002Fthemes\u002Fdawn\u002Fquantity-input:navigation":1322,"zh:graph:\u002Fshopify\u002Fthemes\u002Fdawn\u002Fquantity-input":1340},{"en":4,"zh":32},[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],"\u002Fshopify\u002Fshopify-app-boundaries","\u002Fshopify\u002Fshopify-app-distribution","\u002Fshopify\u002Fshopify-app-environment-strategy","\u002Fshopify\u002Fshopify-app-review-access","\u002Fshopify\u002Fshopify-app-usage-billing","\u002Fshopify\u002Fshopify-multiple-apps-shared-backend","\u002Fshopify\u002Fshopify-oauth-redirect-callback","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fadd-to-cart-race","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcomponent-base","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fkeyed-hydration","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Flayout-thrashing","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fliquid-smart-contrast","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsection-rendering-morph","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fview-transitions","\u002Fshopify\u002Ftopics\u002Fapps-integrations","\u002Fdomains\u002Facquisition-marketing","\u002Fdomains\u002Fcustomer-service","\u002Fdomains\u002Fdata-analytics","\u002Fdomains\u002Ffinance-compliance","\u002Fdomains\u002Ffulfillment-logistics","\u002Fdomains\u002Fpayments","\u002Fdomains\u002Fplatform-development","\u002Fdomains\u002Fproduct-pricing","\u002Fdomains\u002Fretention","\u002Fdomains\u002Fstorefront-experience","\u002Fjourney\u002Fconvert","\u002Ffunnel\u002Fintent",[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,5,6,7,8,9,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,10,328,329,11,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,12,387,388,389,390,391,13,392,393,394,14,395,15,16,396,397,398,399,400,401,402,17,403,404,405,18,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,19,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,20,21,22,23,24,25,26,27,28,29,632,633,30,634,635,636,637,638,639,640,31,641,642],"\u002Fcommerce\u002Faccessibility-compliance-baseline","\u002Fcommerce\u002Fad-creative-testing","\u002Fcommerce\u002Fapi-authentication","\u002Fcommerce\u002Fapp-distribution-models","\u002Fcommerce\u002Fassortment-planning","\u002Fcommerce\u002Fattribution-basics","\u002Fcommerce\u002Faudiences-remarketing","\u002Fcommerce\u002Fcampaign-formats","\u002Fcommerce\u002Fcheckout-design","\u002Fcommerce\u002Fcheckout-funnel","\u002Fcommerce\u002Fclearance-sales","\u002Fcommerce\u002Fcohort-analysis","\u002Fcommerce\u002Fconsent-and-advertising","\u002Fcommerce\u002Fconsumer-protection-basics","\u002Fcommerce\u002Fcontent-acquisition","\u002Fcommerce\u002Fcontent-localization","\u002Fcommerce\u002Fcontent-repurposing","\u002Fcommerce\u002Fcross-border-basics","\u002Fcommerce\u002Fcustom-data-modeling","\u002Fcommerce\u002Fcustomer-account-access","\u002Fcommerce\u002Fcustomer-data-platform","\u002Fcommerce\u002Fcustomer-demand-validation","\u002Fcommerce\u002Fcustomer-feedback-analysis","\u002Fcommerce\u002Fcustomer-journey-models","\u002Fcommerce\u002Fcustomer-lifecycle-segmentation","\u002Fcommerce\u002Fcustomer-support-channels","\u002Fcommerce\u002Fdata-collection","\u002Fcommerce\u002Fdata-quality","\u002Fcommerce\u002Fdelivery-promise","\u002Fcommerce\u002Fdomain-dns-tls","\u002Fcommerce\u002Fdtc-customer-journey","\u002Fcommerce\u002Femail-sms-marketing","\u002Fcommerce\u002Fenvironments-permissions","\u002Fcommerce\u002Fevent-tracking-plan","\u002Fcommerce\u002Fexperimentation","\u002Fcommerce\u002Fflash-sales","\u002Fcommerce\u002Ffulfillment-delivery","\u002Fcommerce\u002Fgift-with-purchase-bundles","\u002Fcommerce\u002Fgiveaways-contests","\u002Fcommerce\u002Fheadless-commerce","\u002Fcommerce\u002Fidentity-resolution","\u002Fcommerce\u002Finfluencer-collaborations","\u002Fcommerce\u002Finventory-accuracy","\u002Fcommerce\u002Finventory-basics","\u002Fcommerce\u002Finventory-replenishment","\u002Fcommerce\u002Fjourney-stage-alignment","\u002Fcommerce\u002Floyalty-programs","\u002Fcommerce\u002Fmarketing-budget-pacing","\u002Fcommerce\u002Fmarketing-campaign-review","\u002Fcommerce\u002Fmarketing-contact-frequency","\u002Fcommerce\u002Fmarketing-funnel","\u002Fcommerce\u002Fmedia-asset-management","\u002Fcommerce\u002Fmetric-definitions","\u002Fcommerce\u002Forder-event-ad-spend-grain","\u002Fcommerce\u002Forder-unit-economics","\u002Fcommerce\u002Fpaid-acquisition-signals","\u002Fcommerce\u002Fpartial-page-updates","\u002Fcommerce\u002Fpayment-methods","\u002Fcommerce\u002Fpayments-chargebacks","\u002Fcommerce\u002Fpeak-season-campaigns","\u002Fcommerce\u002Fplatform-extension-points","\u002Fcommerce\u002Fpost-purchase-education","\u002Fcommerce\u002Fpre-orders","\u002Fcommerce\u002Fpricing-discounts","\u002Fcommerce\u002Fprivacy-consent-basics","\u002Fcommerce\u002Fproduct-information","\u002Fcommerce\u002Fproduct-launches-drops","\u002Fcommerce\u002Fproduct-search-visibility","\u002Fcommerce\u002Freferral-programs","\u002Fcommerce\u002Frepeat-purchase-retention","\u002Fcommerce\u002Freturns-refunds","\u002Fcommerce\u002Freverse-logistics","\u002Fcommerce\u002Freview-collection","\u002Fcommerce\u002Fsales-channel-publishing","\u002Fcommerce\u002Fsales-tax-vat-basics","\u002Fcommerce\u002Fshipping-rates-strategy","\u002Fcommerce\u002Fstaff-access-control","\u002Fcommerce\u002Fstorefront-component-lifecycle","\u002Fcommerce\u002Fstorefront-design-tokens","\u002Fcommerce\u002Fstorefront-release-validation","\u002Fcommerce\u002Fstorefront-rendering-performance","\u002Fcommerce\u002Fsubscription-commerce","\u002Fcommerce\u002Fthreshold-promotions","\u002Fcommerce\u002Ftransactional-notifications","\u002Fcommerce\u002Furl-redirects","\u002Fcommerce\u002Fusage-based-billing","\u002Fcommerce\u002Fwebhooks","\u002Fcommerce\u002Fwin-back","\u002Fcontent-types\u002Fbrand-story","\u002Fcontent-types\u002Fbrand-values","\u002Fcontent-types\u002Fcore-message","\u002Fcontent-types\u002Fcustomer-reviews","\u002Fcontent-types\u002Fcustomer-testimonials","\u002Fcontent-types\u002Femail-signup","\u002Fcontent-types\u002Ffaq","\u002Fcontent-types\u002Ffeatured-products","\u002Fcontent-types\u002Fguarantee","\u002Fcontent-types\u002Floyalty-rewards","\u002Fcontent-types\u002Fmedia-coverage","\u002Fcontent-types\u002Fpackage-contents","\u002Fcontent-types\u002Fpayment-options","\u002Fcontent-types\u002Fproduct-categories","\u002Fcontent-types\u002Fproduct-overview","\u002Fcontent-types\u002Fproduct-showcase","\u002Fcontent-types\u002Fproduct-specifications","\u002Fcontent-types\u002Fproduct-video","\u002Fcontent-types\u002Fpromotions","\u002Fcontent-types\u002Fproof-metrics","\u002Fcontent-types\u002Frelated-products","\u002Fcontent-types\u002Fresources","\u002Fcontent-types\u002Fshipping-delivery-info","\u002Fcontent-types\u002Fsocial-follow","\u002Fcontent-types\u002Fsupport-contact","\u002Fcontent-types\u002Fthird-party-reviews","\u002Fcontent-types\u002Ftrust-marks","\u002Fcontent-types\u002Ftypes","\u002Fcontent-types\u002Fuser-generated-content","\u002Felevar\u002Fshopify-delivery-chain","\u002Fgoogle-ads\u002Fdynamic-remarketing-feed","\u002Fgoogle-ads\u002Fenhanced-conversions-boundaries","\u002Fgoogle-ads\u002Ftransaction-id-and-reconciliation","\u002Fgoogle-analytics\u002Fcustom-dimensions-and-reconciliation","\u002Fgoogle-analytics\u002Fecommerce-event-mapping","\u002Fgoogle-analytics\u002Fmeasurement-protocol","\u002Fgoogle-analytics\u002Fpage-view-and-spa","\u002Fgoogle-analytics\u002Fproperty-stream-debugging","\u002Fgoogle-merchant-center\u002Fgoogle-ads-linking","\u002Fgoogle-merchant-center\u002Fproduct-feed-review","\u002Fgoogle-tag-manager\u002Fconsent-trigger-troubleshooting","\u002Fgoogle-tag-manager\u002Fcontainers-and-publishing","\u002Fgoogle-tag-manager\u002Fdata-layer-events","\u002Fgoogle-tag-manager\u002Ftag-stack","\u002Fgorgias\u002Fmacros-automation","\u002Fgorgias\u002Ftickets-orders","\u002Fjudge-me\u002Freview-request-scheduling","\u002Fjudge-me\u002Freview-widget-verification","\u002Fklaviyo\u002Fdelivery-unsubscribe-troubleshooting","\u002Fklaviyo\u002Fflow-triggers-and-filters","\u002Fklaviyo\u002Fsubscription-consent-sources","\u002Fmeta-ads\u002Fcustomer-audience-sync","\u002Fmeta-ads\u002Fpixel-capi-event-mapping","\u002Fmeta-ads\u002Fpurchase-event-duplicates","\u002Fmodules\u002Favailability-notification","\u002Fmodules\u002Fbuy-box","\u002Fmodules\u002Fcart-summary","\u002Fmodules\u002Fcollection-browse-filter","\u002Fmodules\u002Fcookie-consent","\u002Fmodules\u002Fcross-sell-upsell","\u002Fmodules\u002Ffit-guidance","\u002Fmodules\u002Fpage-composition","\u002Fmodules\u002Fpatterns","\u002Fmodules\u002Fproduct-selection","\u002Fmodules\u002Fproduct-support-navigation","\u002Fmodules\u002Fpromotion-redemption","\u002Fmodules\u002Freview-display","\u002Fmodules\u002Fsignup-capture","\u002Fmodules\u002Fsite-search","\u002Fmodules\u002Fsocial-proof-strip","\u002Fmodules\u002Fsubscription-terms-summary","\u002Fmodules\u002Fvariant-media-gallery","\u002Fpaypal\u002Fcheckout-disputes","\u002Fpaypal\u002Frefund-not-received","\u002Fpaypal\u002Fsettlement-reconciliation","\u002Fpresentation\u002Faccordion","\u002Fpresentation\u002Fbadge","\u002Fpresentation\u002Fbanner","\u002Fpresentation\u002Fbefore-after","\u002Fpresentation\u002Fcallout","\u002Fpresentation\u002Fcards","\u002Fpresentation\u002Fcarousel","\u002Fpresentation\u002Fcomparison","\u002Fpresentation\u002Fcountdown-timer","\u002Fpresentation\u002Fdrawer","\u002Fpresentation\u002Fempty-state","\u002Fpresentation\u002Fgrid","\u002Fpresentation\u002Fhero","\u002Fpresentation\u002Fhotspot","\u002Fpresentation\u002Finline-form","\u002Fpresentation\u002Flist","\u002Fpresentation\u002Fmarquee","\u002Fpresentation\u002Fmasonry","\u002Fpresentation\u002Fmedia-gallery","\u002Fpresentation\u002Fmodal","\u002Fpresentation\u002Fnavigation-menu","\u002Fpresentation\u002Foverlay","\u002Fpresentation\u002Fpagination","\u002Fpresentation\u002Fpatterns","\u002Fpresentation\u002Fpopover","\u002Fpresentation\u002Fprogress-bar","\u002Fpresentation\u002Frating-stars","\u002Fpresentation\u002Fscroll-reveal","\u002Fpresentation\u002Fsingle-column","\u002Fpresentation\u002Fskeleton-loader","\u002Fpresentation\u002Fsplit","\u002Fpresentation\u002Fstepper","\u002Fpresentation\u002Fsticky-bar","\u002Fpresentation\u002Fswatch","\u002Fpresentation\u002Ftable","\u002Fpresentation\u002Ftabs","\u002Fpresentation\u002Ftimeline","\u002Fpresentation\u002Ftoast","\u002Fregulations\u002Fca-casl","\u002Fregulations\u002Fca-pipeda-consent","\u002Fregulations\u002Feu-accessibility-act","\u002Fregulations\u002Feu-consumer-rights","\u002Fregulations\u002Feu-gdpr-eprivacy-consent","\u002Fregulations\u002Feu-price-reduction-indication","\u002Fregulations\u002Feu-psd2-sca","\u002Fregulations\u002Feu-ucpd-reviews-ranking","\u002Fregulations\u002Feu-vat-oss-ioss","\u002Fregulations\u002Fuk-consumer-contracts","\u002Fregulations\u002Fuk-consumer-rights","\u002Fregulations\u002Fuk-dmcc-reviews-pricing","\u002Fregulations\u002Fuk-gdpr-pecr-consent","\u002Fregulations\u002Fuk-vat-overseas-sellers","\u002Fregulations\u002Fus-can-spam","\u002Fregulations\u002Fus-consumer-reviews-testimonials","\u002Fregulations\u002Fus-endorsement-guides","\u002Fregulations\u002Fus-mail-order-rule","\u002Fregulations\u002Fus-tcpa-text-consent","\u002Fshopify\u002Farticle","\u002Fshopify\u002Farticle\u002Fbuying-guide-article","\u002Fshopify\u002Farticle\u002Fhow-to-article","\u002Fshopify\u002Fblog","\u002Fshopify\u002Fcart","\u002Fshopify\u002Fcollection","\u002Fshopify\u002Fcollection\u002Fcampaign-collection-page","\u002Fshopify\u002Fcollection\u002Fcategory-collection-page","\u002Fshopify\u002Fdawn-vs-horizon","\u002Fshopify\u002Fdiscount-troubleshooting","\u002Fshopify\u002Femail-platform-comparison","\u002Fshopify\u002Fhomepage","\u002Fshopify\u002Finventory-mismatch","\u002Fshopify\u002Flist-collections","\u002Fshopify\u002Forder-analytics-reconciliation","\u002Fshopify\u002Fpage","\u002Fshopify\u002Fpage\u002Fabout-us","\u002Fshopify\u002Fpage\u002Fbrand-story","\u002Fshopify\u002Fpage\u002Fcampaign-landing","\u002Fshopify\u002Fpage\u002Fcontact-us","\u002Fshopify\u002Fpage\u002Ffaq","\u002Fshopify\u002Fpage\u002Fgiveaway","\u002Fshopify\u002Fpage\u002Floyalty-program","\u002Fshopify\u002Fpage\u002Forder-tracking","\u002Fshopify\u002Fpage\u002Fpolicies","\u002Fshopify\u002Fpage\u002Fpress","\u002Fshopify\u002Fpage\u002Freviews","\u002Fshopify\u002Fpage\u002Fshipping-returns","\u002Fshopify\u002Fpage\u002Fsize-guide","\u002Fshopify\u002Fpage\u002Fstore-locator","\u002Fshopify\u002Fpayment-gateway-comparison","\u002Fshopify\u002Fpreorder-delay-troubleshooting","\u002Fshopify\u002Fproduct","\u002Fshopify\u002Fproduct\u002Ffit-sensitive-product-page","\u002Fshopify\u002Fproduct\u002Fpreorder-subscription-page","\u002Fshopify\u002Fproduct\u002Fproduct-drop-page","\u002Fshopify\u002Fproduct\u002Fstandard-product-page","\u002Fshopify\u002Freview-options-comparison","\u002Fshopify\u002Fsearch","\u002Fshopify\u002Fshipping-rate-troubleshooting","\u002Fshopify\u002Fshopify-admin-api-graphql","\u002Fshopify\u002Fshopify-admin-map","\u002Fshopify\u002Fshopify-amount-check","\u002Fshopify\u002Fshopify-analytics-reports","\u002Fshopify\u002Fshopify-b2b","\u002Fshopify\u002Fshopify-bundles","\u002Fshopify\u002Fshopify-checkout-customization","\u002Fshopify\u002Fshopify-collections-publishing","\u002Fshopify\u002Fshopify-custom-data","\u002Fshopify\u002Fshopify-customer-accounts","\u002Fshopify\u002Fshopify-customer-privacy","\u002Fshopify\u002Fshopify-customer-segments","\u002Fshopify\u002Fshopify-discounts","\u002Fshopify\u002Fshopify-domains-dns","\u002Fshopify\u002Fshopify-ecosystem","\u002Fshopify\u002Fshopify-ecosystem-analysis","\u002Fshopify\u002Fshopify-entry-map","\u002Fshopify\u002Fshopify-file-sync-diff","\u002Fshopify\u002Fshopify-files-media","\u002Fshopify\u002Fshopify-flow","\u002Fshopify\u002Fshopify-follow-on-shop","\u002Fshopify\u002Fshopify-fraud-disputes","\u002Fshopify\u002Fshopify-fulfillment-delivery","\u002Fshopify\u002Fshopify-functions-extensions","\u002Fshopify\u002Fshopify-gift-cards","\u002Fshopify\u002Fshopify-headless","\u002Fshopify\u002Fshopify-identities-permissions","\u002Fshopify\u002Fshopify-inventory-locations","\u002Fshopify\u002Fshopify-knowledge-base-method","\u002Fshopify\u002Fshopify-knowledge-source-inventory","\u002Fshopify\u002Fshopify-local-delivery-pickup","\u002Fshopify\u002Fshopify-marketing-channels","\u002Fshopify\u002Fshopify-marketing-messaging","\u002Fshopify\u002Fshopify-markets-shipping","\u002Fshopify\u002Fshopify-multi-currency-pricing","\u002Fshopify\u002Fshopify-navigation-menus","\u002Fshopify\u002Fshopify-notifications-emails","\u002Fshopify\u002Fshopify-online-store-preferences","\u002Fshopify\u002Fshopify-order-payment-status","\u002Fshopify\u002Fshopify-orders-management","\u002Fshopify\u002Fshopify-payments-checkout","\u002Fshopify\u002Fshopify-plans","\u002Fshopify\u002Fshopify-pos","\u002Fshopify\u002Fshopify-product-import-export","\u002Fshopify\u002Fshopify-products-variants","\u002Fshopify\u002Fshopify-purchase-journey","\u002Fshopify\u002Fshopify-purchase-validation","\u002Fshopify\u002Fshopify-returns-refunds","\u002Fshopify\u002Fshopify-sales-channels","\u002Fshopify\u002Fshopify-search-and-discovery","\u002Fshopify\u002Fshopify-selling-plans","\u002Fshopify\u002Fshopify-shipping-rates-labels","\u002Fshopify\u002Fshopify-storefront","\u002Fshopify\u002Fshopify-storefront-performance","\u002Fshopify\u002Fshopify-storefront-seo-framework","\u002Fshopify\u002Fshopify-tagging-options","\u002Fshopify\u002Fshopify-taxes-duties","\u002Fshopify\u002Fshopify-theme-management","\u002Fshopify\u002Fshopify-translation-localization","\u002Fshopify\u002Fshopify-url-redirects","\u002Fshopify\u002Fshopify-verification-priorities","\u002Fshopify\u002Fshopify-web-pixels","\u002Fshopify\u002Fshopify-webhooks-events","\u002Fshopify\u002Fsubscription-app-comparison","\u002Fshopify\u002Ftheme\u002Farchitecture","\u002Fshopify\u002Ftheme\u002Fcapability-modules","\u002Fshopify\u002Ftheme\u002Fcontent-architecture","\u002Fshopify\u002Ftheme\u002Fdecision-patterns-and-states","\u002Fshopify\u002Ftheme\u002Fdelivery-framework","\u002Fshopify\u002Ftheme\u002Fglobal-regions","\u002Fshopify\u002Ftheme\u002Flayout","\u002Fshopify\u002Ftheme\u002Flocales","\u002Fshopify\u002Ftheme\u002Fsettings","\u002Fshopify\u002Ftheme\u002Ftemplates","\u002Fshopify\u002Fthemes\u002Fdawn\u002Faccessibility-patterns","\u002Fshopify\u002Fthemes\u002Fdawn\u002Farchitecture","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fbuy-form-and-availability","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcart-drawer-notification","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcolor-schemes","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcontent-sections-and-animations","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcountdown-timer","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fcustom-elements-pubsub","\u002Fshopify\u002Fthemes\u002Fdawn\u002Ffacets-and-pagination","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fheader-navigation","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fhtml-update-utility","\u002Fshopify\u002Fthemes\u002Fdawn\u002Floading-performance","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fnewsletter-and-badges","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fpredictive-search","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fproduct-media","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fquantity-input","\u002Fshopify\u002Fthemes\u002Fdawn\u002Frecommendations","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fsection-rendering","\u002Fshopify\u002Fthemes\u002Fdawn\u002Ftheme-editor-events","\u002Fshopify\u002Fthemes\u002Fdawn\u002Fvariant-update-protocol","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Farchitecture","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fbadges-reviews-signup","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fbuying","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcart","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcollection-search","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fcontent-modules","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Ffacets-and-pagination","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fheader-navigation","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Flayout","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fmarquee-slideshow-animations","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fmedia-zoom-and-hotspots","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fpredictive-search","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fproduct-cards","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fproduct-page","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Freading-source","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Frecommendations","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fsticky-add-to-cart-and-availability","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fstyles","\u002Fshopify\u002Fthemes\u002Fhorizon\u002Fvariants","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fbehavior-components","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fcart-events","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fdialog-element","\u002Fshopify\u002Fthemes\u002Fimpact","\u002Fshopify\u002Fthemes\u002Fimpact\u002Flazy-media-player","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fsection-spacing-collapsing","\u002Fshopify\u002Fthemes\u002Fimpact\u002Fvariant-picker-rerender","\u002Fshopify\u002Fthemes","\u002Fshopify\u002Fthemes\u002Fpattern-coverage","\u002Fshopify\u002Fwebhook-delivery-troubleshooting","\u002Ftasks\u002Fadd-product-custom-fields","\u002Ftasks\u002Fanalyse-a-repeat-purchase-cohort","\u002Ftasks\u002Fanalyze-customer-feedback","\u002Ftasks\u002Fanswer-order-status-inquiries","\u002Ftasks\u002Faudit-marketing-contact-pressure","\u002Ftasks\u002Fbuild-a-content-calendar","\u002Ftasks\u002Fcalculate-order-contribution","\u002Ftasks\u002Fcalculate-promotion-margin","\u002Ftasks\u002Fclean-up-a-marketing-list","\u002Ftasks\u002Fcollect-and-display-customer-reviews","\u002Ftasks\u002Fconfigure-sales-tax-or-vat","\u002Ftasks\u002Fconfigure-site-search-and-filters","\u002Ftasks\u002Fdefine-repeat-purchase-metrics","\u002Ftasks\u002Fdesign-loyalty-points-rules","\u002Ftasks\u002Fdiagnose-storefront-performance","\u002Ftasks\u002Fenable-and-test-a-payment-method","\u002Ftasks\u002Fevaluate-and-install-an-app","\u002Ftasks\u002Fhandle-a-delayed-order","\u002Ftasks\u002Fhandle-subscription-pause-and-cancellation","\u002Ftasks\u002Fintegrate-and-verify-a-webhook","\u002Ftasks\u002Flaunch-a-referral-program","\u002Ftasks\u002Fplan-a-discount-campaign","\u002Ftasks\u002Fplan-a-peak-season-campaign","\u002Ftasks\u002Fplan-a-product-assortment","\u002Ftasks\u002Fplan-a-win-back-campaign","\u002Ftasks\u002Fplan-an-ad-creative-test","\u002Ftasks\u002Fplan-inventory-replenishment","\u002Ftasks\u002Fplan-post-purchase-education","\u002Ftasks\u002Fprocess-a-refund","\u002Ftasks\u002Fprocess-returned-goods","\u002Ftasks\u002Fpublish-privacy-notice","\u002Ftasks\u002Freconcile-orders-and-analytics","\u002Ftasks\u002Frespond-to-a-chargeback","\u002Ftasks\u002Frespond-to-a-negative-review","\u002Ftasks\u002Freview-a-marketing-campaign","\u002Ftasks\u002Freview-creator-deliverables","\u002Ftasks\u002Freview-marketing-budget-pacing","\u002Ftasks\u002Freview-product-page-module-order","\u002Ftasks\u002Frun-a-cycle-count","\u002Ftasks\u002Frun-a-giveaway","\u002Ftasks\u002Frun-a-post-purchase-survey","\u002Ftasks\u002Frun-an-accessibility-baseline","\u002Ftasks\u002Fsend-back-in-stock-notifications","\u002Ftasks\u002Fseparate-development-environments","\u002Ftasks\u002Fset-shipping-rates","\u002Ftasks\u002Fset-up-a-pre-order","\u002Ftasks\u002Fset-up-a-welcome-flow","\u002Ftasks\u002Fset-up-conversion-tracking","\u002Ftasks\u002Fset-up-cookie-consent","\u002Ftasks\u002Fset-up-presales-support","\u002Ftasks\u002Ftag-campaign-links","\u002Ftasks\u002Ftest-a-purchase","\u002Ftasks\u002Fvalidate-a-customer-need","\u002Ftasks\u002Fvalidate-audience-sync","\u002Ftasks\u002Fwrite-a-creator-brief","\u002Ftasks\u002Fwrite-a-return-policy","\u002Ftasks\u002Fwrite-an-event-tracking-plan","\u002Ftasks\u002Fwrite-product-use-and-care-guide","\u002Fterms\u002Fabove-the-fold","\u002Fterms\u002Faccess-scope","\u002Fterms\u002Faccessible-rich-internet-applications","\u002Fterms\u002Famericans-with-disabilities-act","\u002Fterms\u002Fapi-versioning","\u002Fterms\u002Fattribution-model","\u002Fterms\u002Fattribution-window","\u002Fterms\u002Faverage-order-value","\u002Fterms\u002Faverage-resolution-time","\u002Fterms\u002Fbackorder","\u002Fterms\u002Fblack-friday-cyber-monday","\u002Fterms\u002Fbreak-even-point","\u002Fterms\u002Fbusiness-to-business","\u002Fterms\u002Fbusiness-to-consumer","\u002Fterms\u002Fbuy-now-pay-later","\u002Fterms\u002Fcall-to-action","\u002Fterms\u002Fcart-abandonment-rate","\u002Fterms\u002Fcash-flow","\u002Fterms\u002Fcash-on-delivery","\u002Fterms\u002Fchargeback","\u002Fterms\u002Fclick-through-rate","\u002Fterms\u002Fcohort","\u002Fterms\u002Fcontent-delivery-network","\u002Fterms\u002Fcontent-security-policy","\u002Fterms\u002Fcontribution-margin","\u002Fterms\u002Fconversion-rate","\u002Fterms\u002Fconversion-rate-optimization","\u002Fterms\u002Fcost-of-goods-sold","\u002Fterms\u002Fcost-per-action","\u002Fterms\u002Fcost-per-click","\u002Fterms\u002Fcost-per-mille","\u002Fterms\u002Fcross-selling","\u002Fterms\u002Fcumulative-layout-shift","\u002Fterms\u002Fcustomer-acquisition-cost","\u002Fterms\u002Fcustomer-churn-rate","\u002Fterms\u002Fcustomer-effort-score","\u002Fterms\u002Fcustomer-lifetime-value","\u002Fterms\u002Fcustomer-relationship-management","\u002Fterms\u002Fcustomer-retention-rate","\u002Fterms\u002Fcustomer-satisfaction-score","\u002Fterms\u002Fdays-of-supply","\u002Fterms\u002Fdelivered-at-place","\u002Fterms\u002Fdelivered-duty-paid","\u002Fterms\u002Fdirect-to-consumer","\u002Fterms\u002Fdomain-name-system-record","\u002Fterms\u002Femail-delivery-rate","\u002Fterms\u002Feuropean-accessibility-act","\u002Fterms\u002Fevent","\u002Fterms\u002Ffeature-flag","\u002Fterms\u002Ffirst-contact-resolution","\u002Fterms\u002Ffirst-response-time","\u002Fterms\u002Fgeneral-data-protection-regulation","\u002Fterms\u002Fglobal-trade-item-number","\u002Fterms\u002Fgross-margin","\u002Fterms\u002Fgross-merchandise-value","\u002Fterms\u002Fgross-profit","\u002Fterms\u002Fharmonized-system-code","\u002Fterms\u002Fhash-based-message-authentication-code","\u002Fterms\u002Fideal-customer-profile","\u002Fterms\u002Fidempotency-key","\u002Fterms\u002Fimport-one-stop-shop","\u002Fterms\u002Finteraction-to-next-paint","\u002Fterms\u002Finventory-record-accuracy","\u002Fterms\u002Flanded-cost","\u002Fterms\u002Flargest-contentful-paint","\u002Fterms\u002Flead-time","\u002Fterms\u002Fminimum-order-quantity","\u002Fterms\u002Fmonth-to-date","\u002Fterms\u002Fmonthly-recurring-revenue","\u002Fterms\u002Fnet-promoter-score","\u002Fterms\u002Fnet-sales","\u002Fterms\u002Foauth-2-authorization-framework","\u002Fterms\u002Fpayment-authorization","\u002Fterms\u002Fpayment-capture","\u002Fterms\u002Fpayment-settlement","\u002Fterms\u002Fpoint-of-sale","\u002Fterms\u002Fpre-order","\u002Fterms\u002Fproduct-bundle","\u002Fterms\u002Fproduct-detail-page","\u002Fterms\u002Fproduct-market-fit","\u002Fterms\u002Fproduct-variant","\u002Fterms\u002Frate-limiting","\u002Fterms\u002Freactivation-rate","\u002Fterms\u002Frecency-frequency-monetary","\u002Fterms\u002Frefund","\u002Fterms\u002Freorder-point","\u002Fterms\u002Frepeat-purchase-rate","\u002Fterms\u002Fresponsive-web-design","\u002Fterms\u002Freturn-on-ad-spend","\u002Fterms\u002Freturn-rate","\u002Fterms\u002Frevenue-per-session","\u002Fterms\u002Fsafety-stock","\u002Fterms\u002Fsearch-engine-marketing","\u002Fterms\u002Fsearch-engine-optimization","\u002Fterms\u002Fsell-through-rate","\u002Fterms\u002Fservice-level-agreement","\u002Fterms\u002Fsession","\u002Fterms\u002Fstaging-environment","\u002Fterms\u002Fstock-keeping-unit","\u002Fterms\u002Fstrong-customer-authentication","\u002Fterms\u002Fsubscription-churn-rate","\u002Fterms\u002Ftelevision-commercial","\u002Fterms\u002Fthird-party-logistics","\u002Fterms\u002Fthree-domain-secure","\u002Fterms\u002Fticket-backlog","\u002Fterms\u002Ftls-certificate","\u002Fterms\u002Funique-selling-proposition","\u002Fterms\u002Funsubscribe-rate","\u002Fterms\u002Fup-selling","\u002Fterms\u002Furchin-tracking-module","\u002Fterms\u002Fuser","\u002Fterms\u002Fuser-generated-content","\u002Fterms\u002Fvalue-added-tax","\u002Fterms\u002Fweb-content-accessibility-guidelines","\u002Fterms\u002Fwebhook","\u002Fwordpress\u002Ftemplates-and-content","\u002Fwordpress\u002Ftheme-json-and-patterns","\u002Fshopify\u002Ftopics\u002Fcustomers","\u002Fshopify\u002Ftopics\u002Fdata-automation","\u002Fshopify\u002Ftopics\u002Fecosystem","\u002Fshopify\u002Ftopics\u002Fofficial-themes","\u002Fshopify\u002Ftopics\u002Fpage-composition-patterns","\u002Fshopify\u002Ftopics\u002Fproducts-content","\u002Fshopify\u002Ftopics\u002Fstore-management","\u002Fshopify\u002Ftopics\u002Fstorefront","\u002Fshopify\u002Ftopics\u002Fstorefront-content-types","\u002Fshopify\u002Ftopics\u002Fstorefront-modules","\u002Fshopify\u002Ftopics\u002Fstorefront-pages","\u002Fshopify\u002Ftopics\u002Ftransactions","\u002Fcommerce\u002Fpaths\u002Fcampaign-planning","\u002Fcommerce\u002Fpaths\u002Fcampaign-tracking","\u002Fcommerce\u002Fpaths\u002Fcommerce-concepts","\u002Fcommerce\u002Fpaths\u002Fcommerce-terms-foundation","\u002Fcommerce\u002Fpaths\u002Fcompliance-baseline","\u002Fcommerce\u002Fpaths\u002Fconsent-and-tracking","\u002Fcommerce\u002Fpaths\u002Fcustomer-demand-validation","\u002Fcommerce\u002Fpaths\u002Fecommerce-tracking-implementation","\u002Fcommerce\u002Fpaths\u002Fmarketing-measurement","\u002Fcommerce\u002Fpaths\u002Forder-unit-economics","\u002Fcommerce\u002Fpaths\u002Fplatform-development-foundations","\u002Fcommerce\u002Fpaths\u002Fplatform-integration-foundations","\u002Fcommerce\u002Fpaths\u002Fpost-purchase-operations","\u002Fcommerce\u002Fpaths\u002Fproduct-to-purchase","\u002Fcommerce\u002Fpaths\u002Frepeat-purchase-cohorts","\u002Fcommerce\u002Fpaths\u002Fretention-operations","\u002Fcommerce\u002Fpaths\u002Fshipping-and-service","\u002Fcommerce\u002Fpaths\u002Ftrustworthy-commerce-data","\u002Fshopify\u002Fpaths\u002Fbuild-your-store","\u002Fshopify\u002Fpaths\u002Fcontent-foundations","\u002Fshopify\u002Fpaths\u002Fdawn","\u002Fshopify\u002Fpaths\u002Fofficial-themes","\u002Fshopify\u002Fpaths\u002Fpage-recipes","\u002Fshopify\u002Fpaths\u002Fplatform-basics","\u002Fshopify\u002Fpaths\u002Fpresentation-accessibility","\u002Fshopify\u002Fpaths\u002Fstorefront-platform-mechanisms","\u002Fshopify\u002Fpaths\u002Ftheme-foundations","\u002Fshopify\u002Fpaths\u002Ftheme-pattern-audit","\u002Fshopify\u002Fpaths\u002Fvalidate-purchase-tracking","\u002Fjourney\u002Fdiscover","\u002Fjourney\u002Fevaluate","\u002Fjourney\u002Frepurchase","\u002Fjourney\u002Fuse","\u002Fjourney\u002Fengage","\u002Fjourney\u002Fdeliver","\u002Ffunnel\u002Fawareness","\u002Ffunnel\u002Finterest","\u002Ffunnel\u002Fconsideration","\u002Ffunnel\u002Fpurchase","\u002Ffunnel\u002Fengage",[644,648,652],{"id":645,"path":646,"title":647},"zh_sitePages\u002Fabout.md","\u002Fabout","关于 WooDawn",{"id":649,"path":650,"title":651},"zh_sitePages\u002Flegal\u002Fprivacy.md","\u002Flegal\u002Fprivacy","隐私说明",{"id":653,"path":654,"title":655},"zh_sitePages\u002Flegal\u002Fterms.md","\u002Flegal\u002Fterms","内容使用说明",{"document":657,"isArticle":1284},{"id":658,"title":659,"abbreviations":660,"aliases":661,"answers":662,"appliesTo":663,"articleType":664,"body":665,"businessModel":1273,"constrainedBy":1274,"currency":1275,"description":1276,"discussionUrl":663,"domains":1277,"evidenceStatus":1279,"extension":1280,"funnel":1281,"implements":1283,"indexable":1284,"measuredBy":1285,"meta":1286,"metric":663,"navigation":1284,"needs":1287,"originalSources":1288,"path":382,"regions":1289,"related":1290,"reviewAfter":663,"roles":1291,"seo":1293,"seoImage":1294,"seoTitle":663,"sources":1295,"stages":1299,"status":1301,"stem":1302,"supersededBy":663,"tags":1303,"term":663,"themeSources":1308,"tools":1315,"updatedAt":1317,"uses":1318,"verification":1319,"verifiedAt":1320,"__hash__":1321},"zh_articles\u002Fshopify\u002Fthemes\u002Fdawn\u002Fquantity-input.md","Dawn 数量选择器：规则、事件与浏览器验证",[],[],[],null,"guide",{"type":666,"value":667,"toc":1261},"minimark",[668,692,697,717,721,732,810,824,827,842,879,1058,1076,1079,1090,1093,1103,1109,1200,1209,1212,1215,1222,1225,1229,1233,1236,1251,1254,1257],[669,670,671,672,676,677,687,688,691],"p",{},"本文以 Dawn ",[673,674,675],"strong",{},"v15.3.0","（固定提交 ",[678,679,683],"a",{"href":680,"rel":681},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Ftree\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47",[682],"nofollow",[684,685,686],"code",{},"ecb06c3","）讲解实现；迁移到 ",[673,689,690],{},"v16.0.0"," 时，参阅文末列出的文件差异。实验结论仅适用于各节注明的对象，不能直接用于新版；本文未完成真实店铺集成及新版性能、辅助技术测试。",[693,694,696],"h2",{"id":695},"v1530-源码讲解","v15.3.0 源码讲解",[669,698,699,700,702,703,706,707,710,711,716],{},"本例固定在 Dawn ",[684,701,675],{},"、commit ",[684,704,705],{},"ecb06c31f1423fced1b3ea6ef7e1cb2143f04e47","。研究对象是 ",[684,708,709],{},"quantity-input"," 的基本浏览器行为；它不是完整商品页或购物车测试。",[678,712,715],{"href":713,"rel":714},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fglobal.js#L217-L280",[682],"固定源码","。",[718,719,720],"h3",{"id":720},"前台控件和后台配置",[669,722,723,724,727,728,731],{},"商品页的数量区域包含减号、数字输入框和加号。这个版本在 ",[684,725,726],{},"main-product"," 中提供 ",[684,729,730],{},"quantity_selector"," 区块，schema 将它限制为一个实例；实际购买规则从选中变体读取，随后还可能由商品信息组件按购物车数量调整。",[733,734,735,751],"table",{},[736,737,738],"thead",{},[739,740,741,745,748],"tr",{},[742,743,744],"th",{},"内容",[742,746,747],{},"来源",[742,749,750],{},"核对入口",[752,753,754,768,781,797],"tbody",{},[739,755,756,760,763],{},[757,758,759],"td",{},"是否出现及排列位置",[757,761,762],{},"商品模板与区块配置",[757,764,765],{},[684,766,767],{},"templates\u002Fproduct.json",[739,769,770,773,776],{},[757,771,772],{},"初始最小值、最大值、步长",[757,774,775],{},"选中变体的数量规则",[757,777,778],{},[684,779,780],{},"sections\u002Fmain-product.liquid",[739,782,783,786,792],{},[757,784,785],{},"加减与输入事件",[757,787,788,791],{},[684,789,790],{},"QuantityInput"," 类",[757,793,794],{},[684,795,796],{},"assets\u002Fglobal.js",[739,798,799,802,805],{},[757,800,801],{},"购物车数量影响后的边界",[757,803,804],{},"商品信息组件",[757,806,807],{},[684,808,809],{},"assets\u002Fproduct-info.js",[669,811,812,817,818,823],{},[678,813,816],{"href":814,"rel":815},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fmain-product.liquid#L230-L287",[682],"商品页输出","与",[678,819,822],{"href":820,"rel":821},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fproduct-info.js#L314-L340",[682],"边界更新方法","应一起阅读。",[718,825,826],{"id":826},"一次点击怎样改变输入",[669,828,829,830,833,834,837,838,841],{},"构造函数在当前组件内部找到输入框和按钮，并监听 ",[684,831,832],{},"change"," 与 ",[684,835,836],{},"click","。连接时检查边界并订阅 ",[684,839,840],{},"quantity-update","，移除时取消订阅。",[669,843,844,845,848,849,852,853,855,856,859,860,863,864,866,867,869,870,872,873,876,877,716],{},"点击加号通常调用输入框的 ",[684,846,847],{},"stepUp()","，减号调用 ",[684,850,851],{},"stepDown()","；值变化时派发可冒泡的 ",[684,854,832],{}," 事件。另有两条特殊处理：",[684,857,858],{},"data-min"," 大于 ",[684,861,862],{},"step"," 且当前值为 0 时，点击加号直接把值设为 ",[684,865,858],{},"，不调用 ",[684,868,847],{},"；从最小购买量减少时，派发 ",[684,871,832],{}," 之后再把值设回输入框的 ",[684,874,875],{},"min","，这次赋值不再派发 ",[684,878,832],{},[880,881,886],"pre",{"className":882,"code":883,"language":884,"meta":885,"style":885},"language-mermaid shiki shiki-themes github-light","flowchart TB\n  accTitle: 一次点击内的处理顺序\n  accDescr: 点击加号时，若值为 0 且 data-min 大于 step，直接设为 data-min，否则调用 stepUp；点击减号调用 stepDown。值变化时才派发可冒泡的 change 事件，同步监听器此刻读到步进后的值；从最小购买量减少时，之后才回到输入框的 min，这次赋值不再派发 change，所以最终值可能与同步监听器读到的不同。\n  click{\"点击哪个按钮？\"}\n  zero{\"值为 0 且\u003Cbr\u002F>data-min 大于 step？\"}\n  setmin[\"直接设为 data-min\u003Cbr\u002F>不调用 stepUp()\"]\n  up[\"stepUp()\"]\n  down[\"stepDown()\"]\n  changed{\"值变化了？\"}\n  change[\"派发可冒泡的 change 事件\"]\n  listener[\"同步监听器此刻读取输入值\u003Cbr\u002F>例：min=0、data-min=3，\u003Cbr\u002F>从 3 减少时读到 2\"]\n  fromMin{\"减号，且点击前\u003Cbr\u002F>值等于 data-min？\"}\n  reset[\"回到输入框的 min\u003Cbr\u002F>此赋值不再派发 change\u003Cbr\u002F>例：点击处理结束后值为 0\"]\n  done[\"点击处理结束\"]\n  click -->|\"加号\"| zero\n  click -->|\"减号\"| down\n  zero -->|\"是\"| setmin\n  zero -->|\"否\"| up\n  setmin --> changed\n  up --> changed\n  down --> changed\n  changed -->|\"是\"| change\n  changed -->|\"否：不派发\"| fromMin\n  change --> listener\n  listener -->|\"之后\"| fromMin\n  fromMin -->|\"是\"| reset\n  fromMin -->|\"否\"| done\n  reset --> done\n","mermaid","",[684,887,888,896,902,908,914,920,926,932,938,944,950,956,962,968,974,980,986,992,998,1004,1010,1016,1022,1028,1034,1040,1046,1052],{"__ignoreMap":885},[889,890,893],"span",{"class":891,"line":892},"line",1,[889,894,895],{},"flowchart TB\n",[889,897,899],{"class":891,"line":898},2,[889,900,901],{},"  accTitle: 一次点击内的处理顺序\n",[889,903,905],{"class":891,"line":904},3,[889,906,907],{},"  accDescr: 点击加号时，若值为 0 且 data-min 大于 step，直接设为 data-min，否则调用 stepUp；点击减号调用 stepDown。值变化时才派发可冒泡的 change 事件，同步监听器此刻读到步进后的值；从最小购买量减少时，之后才回到输入框的 min，这次赋值不再派发 change，所以最终值可能与同步监听器读到的不同。\n",[889,909,911],{"class":891,"line":910},4,[889,912,913],{},"  click{\"点击哪个按钮？\"}\n",[889,915,917],{"class":891,"line":916},5,[889,918,919],{},"  zero{\"值为 0 且\u003Cbr\u002F>data-min 大于 step？\"}\n",[889,921,923],{"class":891,"line":922},6,[889,924,925],{},"  setmin[\"直接设为 data-min\u003Cbr\u002F>不调用 stepUp()\"]\n",[889,927,929],{"class":891,"line":928},7,[889,930,931],{},"  up[\"stepUp()\"]\n",[889,933,935],{"class":891,"line":934},8,[889,936,937],{},"  down[\"stepDown()\"]\n",[889,939,941],{"class":891,"line":940},9,[889,942,943],{},"  changed{\"值变化了？\"}\n",[889,945,947],{"class":891,"line":946},10,[889,948,949],{},"  change[\"派发可冒泡的 change 事件\"]\n",[889,951,953],{"class":891,"line":952},11,[889,954,955],{},"  listener[\"同步监听器此刻读取输入值\u003Cbr\u002F>例：min=0、data-min=3，\u003Cbr\u002F>从 3 减少时读到 2\"]\n",[889,957,959],{"class":891,"line":958},12,[889,960,961],{},"  fromMin{\"减号，且点击前\u003Cbr\u002F>值等于 data-min？\"}\n",[889,963,965],{"class":891,"line":964},13,[889,966,967],{},"  reset[\"回到输入框的 min\u003Cbr\u002F>此赋值不再派发 change\u003Cbr\u002F>例：点击处理结束后值为 0\"]\n",[889,969,971],{"class":891,"line":970},14,[889,972,973],{},"  done[\"点击处理结束\"]\n",[889,975,977],{"class":891,"line":976},15,[889,978,979],{},"  click -->|\"加号\"| zero\n",[889,981,983],{"class":891,"line":982},16,[889,984,985],{},"  click -->|\"减号\"| down\n",[889,987,989],{"class":891,"line":988},17,[889,990,991],{},"  zero -->|\"是\"| setmin\n",[889,993,995],{"class":891,"line":994},18,[889,996,997],{},"  zero -->|\"否\"| up\n",[889,999,1001],{"class":891,"line":1000},19,[889,1002,1003],{},"  setmin --> changed\n",[889,1005,1007],{"class":891,"line":1006},20,[889,1008,1009],{},"  up --> changed\n",[889,1011,1013],{"class":891,"line":1012},21,[889,1014,1015],{},"  down --> changed\n",[889,1017,1019],{"class":891,"line":1018},22,[889,1020,1021],{},"  changed -->|\"是\"| change\n",[889,1023,1025],{"class":891,"line":1024},23,[889,1026,1027],{},"  changed -->|\"否：不派发\"| fromMin\n",[889,1029,1031],{"class":891,"line":1030},24,[889,1032,1033],{},"  change --> listener\n",[889,1035,1037],{"class":891,"line":1036},25,[889,1038,1039],{},"  listener -->|\"之后\"| fromMin\n",[889,1041,1043],{"class":891,"line":1042},26,[889,1044,1045],{},"  fromMin -->|\"是\"| reset\n",[889,1047,1049],{"class":891,"line":1048},27,[889,1050,1051],{},"  fromMin -->|\"否\"| done\n",[889,1053,1055],{"class":891,"line":1054},28,[889,1056,1057],{},"  reset --> done\n",[669,1059,1060,1061,1063,1064,833,1066,1068,1069,1072,1073,1075],{},"这解释了为什么不能只看 HTML 的 ",[684,1062,875],{}," 属性：",[684,1065,875],{},[684,1067,858],{}," 在某些调用场景中承担不同角色。这个版本的控件用 ",[684,1070,1071],{},"disabled"," CSS 类显示按钮边界，并没有同时设置原生 ",[684,1074,1071],{}," 属性。",[718,1077,1078],{"id":1078},"可重跑的独立实验",[669,1080,1081],{},[1082,1083],"img",{"alt":1084,"decoding":1085,"height":1086,"loading":1087,"src":1088,"width":1089},"Dawn 数量控件独立实验，展示普通数量与最小购买量两组测试夹具","async",720,"lazy","\u002Fimages\u002Farticles\u002Fdawn-quantity.jpg",1280,[669,1091,1092],{},"2026-09-19 截取的独立实验初始界面。图中是本地测试夹具，不连接 Shopify、不生成订单，也不代表实际店铺验收结果。",[669,1094,1095,1099,1100,1102],{},[678,1096,1098],{"href":1097},"\u002Fexamples\u002Fdawn-quantity\u002Findex.html","打开数量控件实验","，点击“运行全部检查”。实验复制了固定版本的事件订阅代码，并原样提取 ",[684,1101,790],{}," 类；HTML 是本地测试夹具，不是 Shopify 渲染结果。源码文件哈希保存在实验的“源码基线”链接中，Dawn MIT 许可证随代码保留。",[669,1104,1105,1106,716],{},"2026-09-10 在 macOS 的 Codex 内置浏览器执行，12 项检查全部通过。这里的“通过”表示实际结果符合下表描述，",[673,1107,1108],{},"不是宣称所有行为都适合直接作为业务校验",[733,1110,1111,1121],{},[736,1112,1113],{},[739,1114,1115,1118],{},[742,1116,1117],{},"条件",[742,1119,1120],{},"观察结果",[752,1122,1123,1141,1149,1165,1176,1184,1192],{},[739,1124,1125,1138],{},[757,1126,1127,1128,1131,1132,1131,1135],{},"A：",[684,1129,1130],{},"min=1","、",[684,1133,1134],{},"max=5",[684,1136,1137],{},"step=1",[757,1139,1140],{},"按钮正常加减，达到边界后保持边界值",[739,1142,1143,1146],{},[757,1144,1145],{},"同时存在 A、B",[757,1147,1148],{},"A 的按钮不改变 B 的值",[739,1150,1151,1162],{},[757,1152,1153,1154,1131,1157,1131,1160],{},"B：",[684,1155,1156],{},"min=0",[684,1158,1159],{},"data-min=3",[684,1161,1137],{},[757,1163,1164],{},"从 0 增加到 3，从 3 减少后最终回到 0",[739,1166,1167,1170],{},[757,1168,1169],{},"B 从 3 减少",[757,1171,1172,1173,1175],{},"同步 ",[684,1174,832],{}," 监听器读到 2，点击处理结束后输入值为 0",[739,1177,1178,1181],{},[757,1179,1180],{},"A 手工输入 8",[757,1182,1183],{},"控件保留 8，浏览器将输入标为超出上限",[739,1185,1186,1189],{},[757,1187,1188],{},"修改上限后发布数量事件",[757,1190,1191],{},"按钮边界样式重新计算",[739,1193,1194,1197],{},[757,1195,1196],{},"移除并重新插入 B",[757,1198,1199],{},"订阅先减少一个，再恢复原数量",[669,1201,1202,1203,1205,1206,1208],{},"同步事件值的差异来自代码顺序：先步进并派发 ",[684,1204,832],{},"，再执行回到 ",[684,1207,875],{}," 的特殊赋值。下游若延后读取值，可能观察到不同结果；这不能直接推导为店铺提交了错误数量，需要连同实际调用方和提交请求验证。",[718,1210,1211],{"id":1211},"定制入口与验证重点",[669,1213,1214],{},"只改文字和样式时，先保留输入标识、按钮名称与关联关系。若增加事件订阅，不要假定同步监听器总能读到最终值；明确要观察哪一个阶段，并对特殊最小值分支重复测试。",[669,1216,1217,1218,1221],{},"如果需要增强按钮无障碍状态或输入约束，分别检查键盘、边界提示、手工输入和实际表单验证。不要仅凭 ",[684,1219,1220],{},".disabled"," 的外观宣称按钮已被原生禁用，也不要把浏览器控件当作服务端交易规则的替代品。",[669,1223,1224],{},"本实验没有改动 Dawn 原始交互代码。店铺中的规则变更、变体切换、真实加购、服务端拒绝与错误提示仍未验证；进入这些层次时，应记录请求和页面结果，而不是复用本实验的“12 项通过”。",[693,1226,1228],{"id":1227},"版本差异v1530-v1600","版本差异：v15.3.0 → v16.0.0",[718,1230,1232],{"id":1231},"v1600控件周围的状态与标签变化","v16.0.0：控件周围的状态与标签变化",[669,1234,1235],{},"QuantityInput 的点击算法未在 global.js 差异中改写；变化在其消费者与可访问名称。main-product 加入 quantity-label 隐藏文本，product-info 更新数量标签时同步 aria-labelledby 和引用文本；购物车使用 line key 参与标准行变更事件。",[669,1237,1238,1239,1131,1243,1131,1247,716],{},"差异涉及的文件：",[678,1240,796],{"href":1241,"rel":1242},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204\u002Fassets\u002Fglobal.js",[682],[678,1244,809],{"href":1245,"rel":1246},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204\u002Fassets\u002Fproduct-info.js",[682],[678,1248,780],{"href":1249,"rel":1250},"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204\u002Fsections\u002Fmain-product.liquid",[682],[718,1252,1253],{"id":1253},"迁移检查",[669,1255,1256],{},"上述 12 项独立实验结果限于 v15.3.0 固定提交；在 v16.0.0 中需重新测试，并增加购物车已购数量标签、变体刷新与失败样例。",[1258,1259,1260],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":885,"searchDepth":898,"depth":898,"links":1262},[1263,1269],{"id":695,"depth":898,"text":696,"children":1264},[1265,1266,1267,1268],{"id":720,"depth":904,"text":720},{"id":826,"depth":904,"text":826},{"id":1078,"depth":904,"text":1078},{"id":1211,"depth":904,"text":1211},{"id":1227,"depth":898,"text":1228,"children":1270},[1271,1272],{"id":1231,"depth":904,"text":1232},{"id":1253,"depth":904,"text":1253},"dtc",[],"historical","以 Dawn v15.3.0 固定源码讲解数量选择器：规则、事件与浏览器验证，附 v16.0.0 文件差异与迁移检查。",[1278],"storefront-experience","partial","md",[1282],"intent",[176],true,[],{},[],[],[],[],[1292],"developer",{"title":659,"description":1276},{"src":1088,"alt":1084,"width":1089,"height":1086},[1241,1245,1249,680,1296,1297,1298],"https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fglobal.js","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fsections\u002Fmain-product.liquid","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Fblob\u002Fecb06c31f1423fced1b3ea6ef7e1cb2143f04e47\u002Fassets\u002Fproduct-info.js",[1300],"convert","published","shopify\u002Fthemes\u002Fdawn\u002Fquantity-input",[1304,1305,1306,1307,690],"Dawn","Shopify","源码解析","15.3.0",[1309,1313],{"theme":1310,"version":1311,"url":1312},"dawn","v16.0.0 · bc39a7d2024f1e5c14c42f855bd3552b4913e204","https:\u002F\u002Fgithub.com\u002FShopify\u002Fdawn\u002Ftree\u002Fbc39a7d2024f1e5c14c42f855bd3552b4913e204",{"theme":1310,"version":1314,"url":680},"v15.3.0 · ecb06c31f1423fced1b3ea6ef7e1cb2143f04e47",[1316],"shopify","2026-10-23",[],"依据所列固定提交分析源码；版本差异、独立实验和店铺集成验证的范围分别见正文，不将旧版结果直接用于其他版本。","2026-10-15","_NlDlqJIHliGPqenb9NV7At7z70Kgv7DH9lYLKPz2oY",{"topic":1323,"paths":1326},{"featured":1324,"title":1325,"path":594},[413,368,382,387,400,389,405,399,391,390,395,404,392,401,370,369,383,380,375,376,381,379,372,384,386,377,374,371,378,367,385,373,398,393,402,394,403,397,396,388,414,13,17,14,18,12,16,15,361],"官方主题解析",[1327],{"id":1328,"path":623,"title":1329,"steps":1330},"zh_paths\u002Fshopify\u002Fpaths\u002Fdawn.md","Dawn 16.0.0 对照：从架构到数量控件",[1331,1334,1337],{"path":413,"required":1284,"objective":1332,"check":1333},"固定研究范围","能区分通用概念、固定源码与店铺实测。",{"path":368,"required":1284,"objective":1335,"check":1336},"追踪商品页架构","能从 product.json 找到分区及数量交互入口。",{"path":382,"required":1284,"objective":1338,"check":1339},"复现数量边界","能运行实验并解释通过结果的适用范围。",{"titles":1341,"toolNames":1343,"domainPaths":1356,"reverse":1357},{"\u002Fmodules\u002Fbuy-box":1342},"购买区模块：价格、选项、数量与加购",{"elevar":1344,"google-ads":1345,"google-analytics":1346,"google-merchant-center":1347,"google-tag-manager":1348,"gorgias":1349,"judge-me":1350,"klaviyo":1351,"meta-ads":1352,"paypal":1353,"shopify":1305,"woocommerce":1354,"wordpress":1355},"Elevar","Google Ads","Google Analytics","Google Merchant Center","Google Tag Manager","Gorgias","Judge.me","Klaviyo","Meta Ads","PayPal","WooCommerce","WordPress",[20,21,22,23,24,25,26,27,28,29],{"implements":1358,"measuredBy":1359,"needs":1360,"constrainedBy":1361},[],[],[],[],1792741342592]