Commit 8c926dce authored by GuanHua's avatar GuanHua

fix: 添加装修国际化组件和修改装修组件版本号

parent d0d25dbd
......@@ -69,7 +69,7 @@
"@linkseeks/design-core": "^1.0.0",
"@linkseeks/design-react": "^1.0.0",
"@linkseeks/design-react-web": "^1.0.0",
"@linkseeks/design-ui": "^1.0.2",
"@linkseeks/design-ui": "^1.0.3",
"@turf/turf": "^6.4.0",
"@types/crypto-js": "^4.0.1",
"@types/js-cookie": "^2.2.6",
......
......@@ -2,7 +2,7 @@
export const mallLayoutConfig = {
key: "0",
"0": {
"componentName": "MallLayout",
"componentName": "LocaleProvide",
"props": {
"style": {
"width": "100%",
......
import { ComponentSchemaType, PROPS_TYPES } from '@linkseeks/design-core';;
const LocaleProvide: ComponentSchemaType = {
propsConfig: {
children: {
label: '文本内容',
type: PROPS_TYPES.string,
},
},
};
export default LocaleProvide;
......@@ -59,6 +59,7 @@ import MallHeader from './MallHeader'
import OwnMainNav from './OwnMainNav'
import MobileBrand from './MobileBrand'
import MallMainNav from './MallMainNav'
import LocaleProvide from './LocaleProvide'
export default {
View,
......@@ -112,4 +113,5 @@ export default {
MallHeader,
OwnMainNav,
...MobileBrand,
LocaleProvide,
}
......@@ -2,7 +2,7 @@
export const mallLayoutConfig = {
key: "0",
"0": {
"componentName": "MallLayout",
"componentName": "LocaleProvide",
"props": {
"style": {
"width": "100%",
......
......@@ -2,6 +2,15 @@ import { ComponentSchemaType, PROPS_SETTING_TYPES, PROPS_TYPES } from '@linkseek
import { getIntl } from 'umi'
const intl = getIntl()
const LocaleProvide: ComponentSchemaType = {
propsConfig: {
children: {
label: '文本内容',
type: PROPS_TYPES.string,
},
},
};
const HeaderNav: {[key: string]: ComponentSchemaType} = {
HeaderNav: {
propsConfig: {
......@@ -134,6 +143,7 @@ const ProductContainer: ComponentSchemaType = {
};
export default {
LocaleProvide,
...HeaderNav,
...SecondaryNavigation,
...SimpleCommodity,
......
......@@ -95,7 +95,7 @@ const template = {
*/
const mallLayoutConfig: PageConfigType = {
"0": {
"componentName": "div",
"componentName": "LocaleProvide",
title: intl.formatMessage({ id: 'editor.node.tree' }),
"props": {
"style": {
......
......@@ -24,7 +24,7 @@ export const defaultHeaderNavData = [
export const channelLayoutConfig : PageConfigType = {
'0': {
componentName: 'MallLayout',
componentName: 'LocaleProvide',
props: {
style: {
"width": "100%",
......
......@@ -15,7 +15,7 @@ const intl = getIntl()
export const channelLayoutConfig : PageConfigType = {
'0': {
componentName: 'MallLayout',
componentName: 'LocaleProvide',
props: {
style: {
"width": "100%",
......
......@@ -7,7 +7,7 @@ const intl = getIntl()
export const shopLayoutConfig : PageConfigType = {
'0': {
componentName: 'MallLayout',
componentName: 'LocaleProvide',
props: {
style: {
"width": "100%",
......
......@@ -10,7 +10,7 @@ const intl = getIntl();
const mallLayoutConfig: PageConfigType = {
"0": {
"componentName": "MallLayout",
"componentName": "LocaleProvide",
title: `${intl.formatMessage({ id: 'activePage.compoentTree'})}`,
"props": {
"style": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment