Add previews for the category list and product search (https://github.com/woocommerce/woocommerce-blocks/pull/1123)

* Enable preview for product search block

* Enable category preview
This commit is contained in:
Mike Jolley 2019-11-05 10:32:53 +00:00 committed by GitHub
parent a7beb3b845
commit a1e6184bee
2 changed files with 10 additions and 2 deletions

View File

@ -27,7 +27,11 @@ registerBlockType( 'woocommerce/product-categories', {
supports: {
align: [ 'wide', 'full' ],
},
example: {
attributes: {
hasCount: true,
},
},
attributes: {
/**
* Whether to show the product count in each category.

View File

@ -30,7 +30,11 @@ registerBlockType( 'woocommerce/product-search', {
supports: {
align: [ 'wide', 'full' ],
},
example: {
attributes: {
hasLabel: true,
},
},
attributes: {
/**
* Whether to show the field label.