@fonixtree/magic-design 0.0.28 → 0.0.29

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.
Files changed (148) hide show
  1. package/es/common/ButtonIconLayout/index.js +4 -2
  2. package/es/common/ImageModal/index.js +5 -3
  3. package/es/common/ImagePicker/index.js +6 -4
  4. package/es/common/LinkModal/FilteredProductModal/index.js +12 -10
  5. package/es/common/LinkModal/ProductDetailPage/index.js +5 -3
  6. package/es/common/LinkModal/index.js +7 -5
  7. package/es/common/ProductModal/index.js +26 -24
  8. package/es/common/ProductSource/index.js +6 -2
  9. package/es/common/UrlPicker/index.js +3 -1
  10. package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -6
  11. package/es/composite-comp/bol/components/Carousel/mobile/index.less +11 -9
  12. package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -24
  13. package/es/composite-comp/bol/components/Carousel/pc/index.less +0 -8
  14. package/es/composite-comp/bol/components/ImageText/mobile/index.js +3 -2
  15. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  16. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
  17. package/es/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
  18. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
  19. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
  20. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  21. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
  22. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -6
  23. package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
  24. package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
  25. package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
  26. package/es/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
  27. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
  28. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
  29. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  30. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
  31. package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
  32. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
  33. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
  34. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
  35. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
  36. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
  37. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  38. package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
  39. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
  40. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
  41. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
  42. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +9 -7
  43. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
  44. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
  45. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  46. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
  47. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
  48. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +6 -19
  49. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
  50. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
  51. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
  52. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
  53. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
  54. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
  55. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
  56. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
  57. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
  58. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
  59. package/es/constants/index.js +1 -1
  60. package/es/core/Designer/CompListPanel/index.js +4 -2
  61. package/es/core/Designer/ConfigPanel/index.js +3 -1
  62. package/es/core/Designer/PageCompList/index.js +4 -4
  63. package/es/core/Designer/QuickMenuBar/index.js +17 -61
  64. package/es/core/Designer/index.js +10 -14
  65. package/es/locale/en/en.json +121 -0
  66. package/es/locale/id/id.json +121 -0
  67. package/es/locale/index.js +12 -5
  68. package/es/meta-comp/components/Image/index.js +0 -5
  69. package/es/meta-comp/config-panels/ButtonConfig/index.js +23 -21
  70. package/es/meta-comp/config-panels/ImageConfig/index.js +8 -6
  71. package/es/meta-comp/config-panels/TextConfig/index.js +14 -12
  72. package/es/mobx/Store.js +2 -2
  73. package/lib/common/ButtonIconLayout/index.js +4 -2
  74. package/lib/common/ImageModal/index.js +5 -3
  75. package/lib/common/ImagePicker/index.js +6 -4
  76. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -10
  77. package/lib/common/LinkModal/ProductDetailPage/index.js +5 -3
  78. package/lib/common/LinkModal/index.js +7 -5
  79. package/lib/common/ProductModal/index.js +26 -24
  80. package/lib/common/ProductSource/index.js +6 -2
  81. package/lib/common/UrlPicker/index.js +3 -1
  82. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -6
  83. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +11 -9
  84. package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -24
  85. package/lib/composite-comp/bol/components/Carousel/pc/index.less +0 -8
  86. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -2
  87. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
  88. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
  89. package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
  90. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
  91. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
  92. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  93. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
  94. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -6
  95. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
  96. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
  97. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
  98. package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
  99. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
  100. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
  101. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
  102. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
  103. package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
  104. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
  105. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
  106. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
  107. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
  108. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
  109. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
  110. package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
  111. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
  112. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
  113. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
  114. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +9 -7
  115. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
  116. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
  117. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  118. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
  119. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
  120. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +6 -19
  121. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
  122. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
  123. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
  124. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
  125. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
  126. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
  127. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
  128. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
  129. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
  130. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
  131. package/lib/constants/index.js +1 -1
  132. package/lib/core/Designer/CompListPanel/index.js +4 -2
  133. package/lib/core/Designer/ConfigPanel/index.js +3 -1
  134. package/lib/core/Designer/PageCompList/index.js +4 -4
  135. package/lib/core/Designer/QuickMenuBar/index.js +17 -61
  136. package/lib/core/Designer/index.js +10 -14
  137. package/lib/locale/en/en.json +121 -0
  138. package/lib/locale/id/id.json +121 -0
  139. package/lib/locale/index.js +12 -5
  140. package/lib/meta-comp/components/Image/index.js +0 -5
  141. package/lib/meta-comp/config-panels/ButtonConfig/index.js +23 -21
  142. package/lib/meta-comp/config-panels/ImageConfig/index.js +8 -6
  143. package/lib/meta-comp/config-panels/TextConfig/index.js +14 -12
  144. package/lib/mobx/Store.js +2 -2
  145. package/package.json +3 -80
  146. package/README.md +0 -311
  147. package/es/assets/fonts/.DS_Store +0 -0
  148. package/lib/assets/fonts/.DS_Store +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
@@ -9,11 +9,12 @@
9
9
  "typings": "lib/index.js",
10
10
  "scripts": {
11
11
  "start": "node scripts/start.js",
12
+ "cl": "node ./bin/createLocale.js create",
12
13
  "pub": "sh ./bin/publish.sh",
13
14
  "build": "node scripts/build.js",
14
15
  "iconfont": "node ./bin/iconfont.js update",
15
16
  "export": "rm -rf dist && npx rollup --config ./config/rollup.config.js",
16
- "compile": "rc-tools run compile --src=src/components --babel-runtime && cp -r ./src/components/assets/fonts ./es/assets&& cp -r ./src/components/assets/fonts ./lib/assets",
17
+ "compile": "sh ./bin/compile.sh",
17
18
  "push:h5": "cp -r ./pub-dist/es ../eshoph5_pto/node_modules/@fonixtree/magic-design/",
18
19
  "push:biz": "cp -r ./pub-dist/es ../bizme/node_modules/@fonixtree/magic-design/"
19
20
  },
@@ -34,84 +35,6 @@
34
35
  "replace": "^1.2.1",
35
36
  "slick-carousel": "^1.8.1"
36
37
  },
37
- "devDependencies": {
38
- "@babel/core": "^7.16.0",
39
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
40
- "@rollup/plugin-babel": "^5.3.1",
41
- "@rollup/plugin-commonjs": "^22.0.0",
42
- "@rollup/plugin-image": "^2.1.1",
43
- "@rollup/plugin-json": "^4.1.0",
44
- "@rollup/plugin-node-resolve": "^13.3.0",
45
- "@svgr/webpack": "^5.5.0",
46
- "@types/axios": "^0.14.0",
47
- "@types/lodash": "^4.14.182",
48
- "@types/node": "^17.0.36",
49
- "@types/react": "^18.0.9",
50
- "@types/react-color": "^3.0.6",
51
- "@types/react-dom": "^18.0.5",
52
- "@types/uuid": "^8.3.4",
53
- "@typescript-eslint/eslint-plugin": "^5.27.1",
54
- "add": "^2.0.6",
55
- "babel-loader": "^8.2.3",
56
- "babel-plugin-named-asset-import": "^0.3.8",
57
- "babel-preset-react-app": "^10.0.1",
58
- "bfj": "^7.0.2",
59
- "browserslist": "^4.18.1",
60
- "camelcase": "^6.2.1",
61
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
62
- "child_process": "^1.0.2",
63
- "classnames": "^2.3.1",
64
- "css-loader": "^6.5.1",
65
- "css-minimizer-webpack-plugin": "^3.2.0",
66
- "dotenv": "^10.0.0",
67
- "dotenv-expand": "^5.1.0",
68
- "eslint": "7",
69
- "eslint-config-next": "^12.1.6",
70
- "eslint-config-react-app": "^7.0.1",
71
- "eslint-webpack-plugin": "^3.1.1",
72
- "extract-zip": "^2.0.1",
73
- "file-loader": "^6.2.0",
74
- "fs-extra": "^10.0.0",
75
- "html-webpack-plugin": "^5.5.0",
76
- "http-proxy-middleware": "^2.0.6",
77
- "identity-obj-proxy": "^3.0.0",
78
- "less": "3.13.1",
79
- "less-loader": "^11.0.0",
80
- "mini-css-extract-plugin": "^2.4.5",
81
- "mv": "^2.1.1",
82
- "ora": "^4.1.1",
83
- "postcss": "^8.4.4",
84
- "postcss-flexbugs-fixes": "^5.0.2",
85
- "postcss-loader": "^6.2.1",
86
- "postcss-normalize": "^10.0.1",
87
- "postcss-preset-env": "^7.0.1",
88
- "postcss-px-to-viewport": "^1.1.1",
89
- "postcss-selector-namespace": "^3.0.1",
90
- "prompts": "^2.4.2",
91
- "rc-tools": "^9.6.1-alpha.1",
92
- "react-app-polyfill": "^3.0.0",
93
- "react-dev-utils": "^12.0.1",
94
- "react-refresh": "^0.11.0",
95
- "resolve": "^1.20.0",
96
- "resolve-url-loader": "^4.0.0",
97
- "rollup-plugin-dts": "^4.2.2",
98
- "rollup-plugin-peer-deps-external": "^2.2.4",
99
- "rollup-plugin-postcss": "^4.0.2",
100
- "rollup-plugin-styles": "^4.0.0",
101
- "rollup-plugin-typescript2": "^0.32.1",
102
- "sass-loader": "^12.3.0",
103
- "semver": "^7.3.5",
104
- "source-map-loader": "^3.0.0",
105
- "style-loader": "^3.3.1",
106
- "tailwindcss": "^3.0.2",
107
- "terser-webpack-plugin": "^5.2.5",
108
- "typescript": "^4.7.2",
109
- "web-vitals": "^2.1.4",
110
- "webpack": "^5.64.4",
111
- "webpack-dev-server": "^4.6.0",
112
- "webpack-manifest-plugin": "^4.0.2",
113
- "workbox-webpack-plugin": "^6.4.1"
114
- },
115
38
  "files": [
116
39
  "es",
117
40
  "lib",
package/README.md DELETED
@@ -1,311 +0,0 @@
1
- # 设计器二期
2
-
3
- ## 1、基本概念
4
-
5
- ### 1.1、元组件:构成复合组件的最小单位
6
-
7
- Text、Image、Button、Divider、Video 等
8
-
9
- ### 1.2、复合组件:由若干个元组件构成的一个大组件
10
-
11
- Text、Banner、Image Gallery、Image and Text、Carousel、Reward、Newsletter 等
12
-
13
- ### 1.3、业务公共组件:项目中复用的公共组件
14
-
15
- 所有的公共组件需要开放 value 和 onChange Api(除 Button、Iconfont)
16
-
17
- Button、Iconfont、AlignSelecter、Collapse、ColorPicker、ImagePicker、LayoutSelecter、Slider、UrlPicker
18
-
19
- ## 2、元组件
20
-
21
- ### 2.1
22
-
23
- 元组件类型:
24
-
25
- TEXT、IMAGE、BUTTON、DIVIDER、VIDEO
26
-
27
- 元组件报文格式:
28
-
29
- ```json
30
- {
31
- id:'xxxx' //元组件key
32
- type: 'TYPE', //元组件类型
33
- style:{
34
- fontFamily:'xxx', //字体
35
- ...css //属性名称尽量使用标准css名称
36
- },
37
- hoverStyle:{
38
-
39
- }
40
- }
41
- ```
42
-
43
- 动态设置 hover 效果
44
-
45
- onMouseEnter={e => { e.target.style.color = 'red'; }}
46
-
47
- onMouseLeave={e => { e.target.style.color = 'white'; }}
48
-
49
- 文本可编辑
50
-
51
- contenteditable="true"
52
-
53
- ### 2.2 、元组件报文
54
-
55
- #### Text
56
-
57
- ```json
58
- {
59
- id:'xxxx' //元组件key
60
- type: 'TYPE', //元组件类型
61
- content:'this is text',
62
- style:{
63
- fontFamily:'xxx', //字体
64
- fontSize: '14px',
65
- width: '200px',
66
- ...css
67
- }
68
- }
69
- ```
70
-
71
- #### Image
72
-
73
- ```json
74
- {
75
- id:'xxxx' //元组件key
76
- type: 'IMAGE', //元组件类型
77
- name:'123.png',
78
- src:'../image.png', //图片地址
79
- url:'www.baidu.com', //图片跳转地址
80
- style:{
81
- width: '200px',
82
- ...css
83
- },
84
- hoverStyle:{ //hover 类型为new时保存src,类型为enlarge时保存scale
85
- scale: '2',
86
- src:'../image1.png',
87
- }
88
- }
89
- ```
90
-
91
- #### Button
92
-
93
- ```json
94
- {
95
- id:'xxxx' //元组件key
96
- type: 'BUTTON', //元组件类型
97
- name:'Submit',
98
- url: 'www.baidu.com',
99
- style:{
100
- buttonIconSrc:'../img.png',
101
- buttonIconPlace: 'left',
102
- color:'#FEFEFE',
103
- border: '1px solid red',
104
- borderRadius:'10px',
105
- fontFamily:'xxx', //字体
106
- fontSize: '14px',
107
- ...css
108
- },
109
- hoverStyle {
110
- color:'#FEFEFE',
111
- border: '1px solid red',
112
- fontFamily:'xxx', //字体
113
- fontSize: '14px',
114
- ...css
115
- }
116
- }
117
- ```
118
-
119
- ## 2、复合组件
120
-
121
- ### 2.1
122
-
123
- 元组件类型:
124
-
125
- TEXT、BANNER、IMAGE_GALLERT、IMAGE_TEXT、CAROUSEL、REWARD、NEWSLETTER
126
-
127
- 复合组件报文格式:
128
-
129
- ```json
130
- {
131
- id:'xxxx' //复合组件key
132
- type: 'TYPE', //复合组件类型
133
- setting:{ //开关类型的配置及属性配置放在这里
134
- autoplays: 3, //3秒轮播
135
- },
136
- groupSource:[], //元组件集合组数据放在这里
137
- metas:{
138
- title:{
139
- open:false,
140
- type:'IMAGE'
141
- ...metaCompJson
142
- },
143
- subTitle:{
144
- open:false,
145
- type:'IMAGE'
146
- ...metaCompJson
147
- }
148
- },
149
- customize:{
150
- layout:'',
151
- background:{
152
-
153
- }
154
- }
155
- }
156
- ```
157
-
158
- #### Text
159
-
160
- ```js
161
- {
162
- id: 'xxxx', //复合组件key
163
- type: 'TEXT', //复合组件类型
164
- setting:{
165
- layout:'left', // 模块布局 left/center/right ,每一个layout可能都是一个不同的组件
166
- title:{
167
- type:'TEXT'
168
- ...metaCompJson
169
- },
170
- subtitle:{
171
- type:'TEXT'
172
- ...metaCompJson
173
- },
174
- },
175
- source:[
176
- { //此处可以抽出业务组件
177
- title:{
178
- type:'TEXT'
179
- ...metaCompJson
180
- },
181
- content:{
182
- type:'TEXT'
183
- ...metaCompJson
184
- }
185
- }
186
- ],
187
- style:{
188
- align:'left', //文本布局 left/center/right
189
- backgroundColor: 'red',
190
- backgroundImage:'../image.png'
191
- }
192
- }
193
- ```
194
-
195
- #### Banner
196
-
197
- modifySetting
198
-
199
- ```json
200
- {
201
- "comositeId": "1111",
202
-
203
- "value": {
204
- "autoplays": 4
205
- }
206
- }
207
- ```
208
-
209
- ```json
210
- {
211
- id: 'xxxx',
212
- type: 'BANNER',
213
- setting:{
214
- open:false
215
- autoplays: 3, //3秒轮播
216
- arrows:{ // 滚动箭头
217
- open:false,
218
- color:'red',
219
- size:'',
220
- hoverSize:'',
221
- hoverColor:'green',
222
- },
223
- dots:{ //面板指示点
224
- open:false,
225
- color: 'red',
226
- size:'',
227
- hoverSize:''
228
- hoverColor:'green',
229
- },
230
- },
231
- groupSource:[
232
- { //此处可以作为一个业务组件
233
- id:'xxxxx',
234
- image:{
235
- open:false,
236
- type:'IMAGE'
237
- ...metaCompJson
238
- },
239
- title:{
240
- open:false,
241
- type:'TEXT',
242
- ...metaCompJson
243
- },
244
- content:{
245
- open:false,
246
- type:'TEXT',
247
- ...metaCompJson
248
- },
249
- button:{
250
- type:'BUTTON',
251
- ...metaCompJson
252
- },
253
- secondaryButton:{
254
- type:'BUTTON',
255
- ...metaCompJson
256
- },
257
- layout:'center',
258
- align:'left',
259
- //文本布局 left/center/right
260
- }
261
- ]
262
- }
263
- ```
264
-
265
- #### Image Gallery
266
-
267
- ```json
268
-
269
- ```
270
-
271
- #### Image and Text
272
-
273
- ```json
274
- {
275
- id:'xxxx'
276
- type: 'IMAGE_TEXT',
277
- setting:{
278
- layout:'left',
279
- title:{},
280
- subtitle:{},
281
- button:{},
282
- secondaryButton:{}
283
- },
284
- source:[
285
-
286
- ],
287
- style:{
288
- align:'left',
289
- backgroundColor:'red',
290
- backgroundImage:'./img.png'
291
- }
292
- }
293
- ```
294
-
295
- 疑问:
296
-
297
- Text 元组件
298
-
299
- 文字链接配置好之后,怎么删除
300
-
301
- 链接配置的规则,按单词还是字符
302
-
303
- image 元组件
304
-
305
- 属性控制进度条和输入框是否要限制最大最小值
306
-
307
- button 元组件
308
-
309
- 是否需要 icon 的 hover 效果
310
-
311
- banner 中的 text Align 放在元组件里?
Binary file
Binary file