mix-public 1.0.0 → 1.0.2
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 +8 -2
- package/mixRender.css +2 -0
- package/mixRender.js +12 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
mixApptype: mixApptype, // app类型: web android ios
|
|
30
30
|
mixDeviceInfo: mixDeviceInfo // 项目版本号: 服务端的版本标识
|
|
31
31
|
});
|
|
32
|
-
import '
|
|
32
|
+
import 'mix-public/mixRender.css'; // 引入web端app基础样式
|
|
33
33
|
mixPublicLib // 为原生基础调用方法,可在页面使用
|
|
34
|
-
```
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### 更新记录
|
|
38
|
+
- v1.0.0 项目初始化
|
|
39
|
+
- v1.0.1 调整文档调用方式
|
|
40
|
+
- v1.0.2 调整publicLib调用方式(区分类app样式及单公共调用方法)
|
package/mixRender.css
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
justify-content: center;
|
|
39
39
|
}
|
|
40
40
|
#mix-navigation .mix-navigation-left {
|
|
41
|
+
min-width: 15vw;
|
|
41
42
|
display: flex;
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
justify-content: center;
|
|
71
72
|
}
|
|
72
73
|
#mix-navigation .mix-navigation-right{
|
|
74
|
+
min-width: 15vw;
|
|
73
75
|
display: flex;
|
|
74
76
|
}
|
|
75
77
|
|
package/mixRender.js
CHANGED
|
@@ -26,16 +26,19 @@ const renderBasic = () => {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export default (op) => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
const justMethod = op.justMethod || false
|
|
30
|
+
const mixAppParameter = {
|
|
31
|
+
mixIsWeb: op.mixApptype === "" || op.mixApptype === "web",
|
|
32
|
+
mixProjectType: op.mixProjectType || "",
|
|
33
|
+
mixVersion: op.mixVersion || "",
|
|
34
|
+
mixAppKey: op.mixAppKey || "",
|
|
35
|
+
mixApptype: op.mixApptype || "web",
|
|
36
|
+
mixDeviceInfo: op.mixDeviceInfo || ""
|
|
37
|
+
};
|
|
38
|
+
if(!justMethod){
|
|
37
39
|
renderBasic();
|
|
38
40
|
mixNavigation(mixAppParameter);
|
|
39
41
|
mixTabbar(mixAppParameter);
|
|
40
|
-
|
|
42
|
+
}
|
|
43
|
+
return mixPublicLib(mixAppParameter.mixIsWeb)
|
|
41
44
|
};
|