mix-public 1.0.3 → 1.0.4

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/README.md CHANGED
@@ -45,4 +45,5 @@
45
45
  - v1.0.0 项目初始化
46
46
  - v1.0.1 调整文档调用方式
47
47
  - v1.0.2 调整publicLib调用方式(区分类app样式及单公共调用方法)
48
- - v1.0.3 添加pag依赖(调整单独调用方法参数)
48
+ - v1.0.3 添加pag依赖(调整单独调用方法参数)
49
+ - v1.0.4 title模块添加背景色配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mix-public",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "use mix-app",
5
5
  "main": "mixRender.js",
6
6
  "scripts": {
@@ -6,6 +6,7 @@ export default (op) => {
6
6
  const currentObj = res;
7
7
  if(currentObj && currentObj.showTitle){
8
8
  titleModule.style.display = 'flex'
9
+ titleModule.style.backgroundColor = "#" + currentObj.backgroudColor
9
10
  // 自定义标题内容
10
11
  if(currentObj.title){
11
12
  const title = document.querySelector(".mix-navigation-title");