ywana-core8 0.0.248 → 0.0.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/text.js +1 -4
package/package.json
CHANGED
package/src/html/text.js
CHANGED
@@ -17,9 +17,6 @@ export const TEXTFORMATS = {
|
|
17
17
|
export const Text = ({ format, children }) => {
|
18
18
|
|
19
19
|
const site = useContext(SiteContext)
|
20
|
-
|
21
|
-
console.log('xxx',format, site)
|
22
|
-
|
23
20
|
let value = children
|
24
21
|
|
25
22
|
if (site) {
|
@@ -31,7 +28,7 @@ export const Text = ({ format, children }) => {
|
|
31
28
|
|
32
29
|
const formatter = Intl.NumberFormat()
|
33
30
|
switch (format) {
|
34
|
-
case
|
31
|
+
case TEXTFORMATS.NUMERIC: value = formatter.format(children); break;
|
35
32
|
}
|
36
33
|
|
37
34
|
return children ? <span>{value}</span> : ''
|