@zfqh/uniapp 0.1.6 → 0.1.8
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/CHANGELOG.md +16 -0
- package/lib/styles/flex-nvue.scss +65 -0
- package/lib/styles/{flex.scss → flex-vue.scss} +0 -9
- package/lib/styles/index.scss +5 -3
- package/lib/styles/layout-nvue.scss +12 -0
- package/lib/styles/{layout.scss → layout-vue.scss} +0 -4
- package/lib/utils/uni.js +0 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.1.8](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.1.7...@zfqh/uniapp@0.1.8) (2026-06-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zfqh/uniapp
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.7](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.1.6...@zfqh/uniapp@0.1.7) (2026-06-19)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @zfqh/uniapp
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.1.6](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.1.5...@zfqh/uniapp@0.1.6) (2026-06-18)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @zfqh/uniapp
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.flex {
|
|
2
|
+
flex-direction: row;
|
|
3
|
+
}
|
|
4
|
+
.flex-inline {
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
}
|
|
7
|
+
.flex-row {
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
}
|
|
10
|
+
.flex-row-reverse {
|
|
11
|
+
flex-direction: row-reverse;
|
|
12
|
+
}
|
|
13
|
+
.flex-col {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
.flex-col-reverse {
|
|
17
|
+
flex-direction: column-reverse;
|
|
18
|
+
}
|
|
19
|
+
.flex-wrap {
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
}
|
|
22
|
+
.flex-nowrap {
|
|
23
|
+
flex-wrap: nowrap;
|
|
24
|
+
}
|
|
25
|
+
.flex-wrap-reverse {
|
|
26
|
+
flex-wrap: wrap-reverse;
|
|
27
|
+
}
|
|
28
|
+
@for $n from 0 through 8 {
|
|
29
|
+
.flex-#{$n} {
|
|
30
|
+
flex: $n;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.flex-none {
|
|
34
|
+
flex: 0;
|
|
35
|
+
}
|
|
36
|
+
.items-start {
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
}
|
|
39
|
+
.items-end {
|
|
40
|
+
align-items: flex-end;
|
|
41
|
+
}
|
|
42
|
+
.items-center {
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
.items-stretch {
|
|
46
|
+
align-items: stretch;
|
|
47
|
+
}
|
|
48
|
+
.items-baseline {
|
|
49
|
+
align-items: baseline;
|
|
50
|
+
}
|
|
51
|
+
.justify-start {
|
|
52
|
+
justify-content: flex-start;
|
|
53
|
+
}
|
|
54
|
+
.justify-end {
|
|
55
|
+
justify-content: flex-end;
|
|
56
|
+
}
|
|
57
|
+
.justify-center {
|
|
58
|
+
justify-content: center;
|
|
59
|
+
}
|
|
60
|
+
.justify-between {
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
}
|
|
63
|
+
.justify-around {
|
|
64
|
+
justify-content: space-around;
|
|
65
|
+
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
/* #ifdef H5 */
|
|
2
1
|
page {
|
|
3
|
-
/* #endif */
|
|
4
2
|
.flex {
|
|
5
|
-
/* #ifndef APP-NVUE */
|
|
6
3
|
display: flex;
|
|
7
|
-
/* #endif */
|
|
8
4
|
flex-direction: row;
|
|
9
5
|
}
|
|
10
6
|
.flex-inline {
|
|
11
|
-
/* #ifndef APP-NVUE */
|
|
12
7
|
display: inline-flex;
|
|
13
|
-
/* #endif */
|
|
14
8
|
flex-direction: row;
|
|
15
9
|
}
|
|
16
10
|
.flex-row {
|
|
@@ -72,7 +66,4 @@ page {
|
|
|
72
66
|
.justify-around {
|
|
73
67
|
justify-content: space-around;
|
|
74
68
|
}
|
|
75
|
-
/* #ifdef H5 */
|
|
76
69
|
}
|
|
77
|
-
/* #endif */
|
|
78
|
-
|
package/lib/styles/index.scss
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
@import './border.scss';
|
|
3
3
|
@import './bg.scss';
|
|
4
4
|
@import './text.scss';
|
|
5
|
-
@import './layout.scss';
|
|
6
|
-
@import './flex.scss';
|
|
7
5
|
/* #ifndef APP-NVUE */
|
|
8
6
|
@import './reset-vue.scss';
|
|
9
7
|
@import './text-vue.scss';
|
|
8
|
+
@import './layout-vue.scss';
|
|
9
|
+
@import './flex-vue.scss';
|
|
10
10
|
/* #endif */
|
|
11
11
|
/* #ifdef APP-NVUE */
|
|
12
|
-
@import './text-nvue.scss';
|
|
12
|
+
@import './text-nvue.scss';
|
|
13
|
+
@import './layout-nvue.scss';
|
|
14
|
+
@import './flex-nvue.scss';
|
|
13
15
|
/* #endif */
|
package/lib/utils/uni.js
CHANGED
|
@@ -6,7 +6,6 @@ import { brand } from '../configs/brand';
|
|
|
6
6
|
import mp from '../configs/mp';
|
|
7
7
|
import color from '../configs/color';
|
|
8
8
|
import { IS_WEBVIEW_ENV, SYSTEM_INFO } from './consts';
|
|
9
|
-
import { getPage } from './pages';
|
|
10
9
|
import query from './query';
|
|
11
10
|
// #ifndef H5
|
|
12
11
|
uni.webView = uni;
|
|
@@ -50,13 +49,6 @@ uni.navigateBack = (options = {}) => {
|
|
|
50
49
|
// webview内没有上页,则触发原生返回
|
|
51
50
|
uni.webView?.navigateBack(options);
|
|
52
51
|
}
|
|
53
|
-
else if (!IS_WEBVIEW_ENV &&
|
|
54
|
-
((length > 1 && delta >= length) || (length === 1 && !getPage('index')?.includes(pages[0].route)))) {
|
|
55
|
-
// 非首页返回则跳转到首页
|
|
56
|
-
uni.reLaunch({
|
|
57
|
-
url: getPage('index'),
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
52
|
else {
|
|
61
53
|
navigateBack(options);
|
|
62
54
|
}
|