feat: custon do placeholder criado mais ainda não funcionando

This commit is contained in:
Adilson Fernando Neves Ornellas 2023-01-28 16:39:26 -03:00
parent 59dac4f6dc
commit d0176b72ea
6 changed files with 24 additions and 2 deletions

3
react/PlaceholderCep.ts Normal file
View File

@ -0,0 +1,3 @@
import PlaceholderCep from "./components/PlaceholderCep/PlaceholderCep";
export default PlaceholderCep;

View File

@ -0,0 +1,15 @@
const PlaceholderCep = () => {
if (typeof document !== "undefined") {
// document.getElementsByClassName("vtex-address-form-4-x-hideDecorators")[0].setAttribute("placeholder", "Digite seu CEP");
// .placeholder = "Digite seu CEP"
};
return "" ;
};
export default PlaceholderCep;

View File

@ -7,5 +7,5 @@
"moduleResolution": "node",
"target": "es2017"
},
"include": ["./typings/*.d.ts", "./**/*.tsx", "./**/*.ts"]
"include": ["./typings/*.d.ts", "./**/*.tsx", "./**/*.ts", "components/PlaceholderCep/PlaceholderCep.tsx"]
}

View File

@ -22,7 +22,8 @@
// "product-questions-and-answers",
"rich-text#titleSlick",
"list-context.product-list#demo"
"list-context.product-list#demo",
"PlaceholderCep"
]
},
"html#breadcrumb": {

View File

@ -8,5 +8,8 @@
},
"pixCustom": {
"component": "pixCustom"
},
"PlaceholderCep": {
"component": "PlaceholderCep"
}
}