@dcloudio/uni-components 0.0.1-nvue3.3030820220125001

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 (43) hide show
  1. package/LICENSE +202 -0
  2. package/index.js +0 -0
  3. package/lib/custom-tab-bar/custom-tab-bar.vue +126 -0
  4. package/lib/navigation-bar/navigation-bar.vue +159 -0
  5. package/lib/page-meta/page-meta.vue +205 -0
  6. package/lib/page-meta-head/page-meta-head.vue +10 -0
  7. package/lib/uni-match-media/uni-match-media.vue +73 -0
  8. package/lib/unicloud-db/i18n/en.json +6 -0
  9. package/lib/unicloud-db/i18n/es.json +6 -0
  10. package/lib/unicloud-db/i18n/fr.json +6 -0
  11. package/lib/unicloud-db/i18n/index.js +12 -0
  12. package/lib/unicloud-db/i18n/zh-Hans.json +6 -0
  13. package/lib/unicloud-db/i18n/zh-Hant.json +6 -0
  14. package/lib/unicloud-db/unicloud-db.vue +626 -0
  15. package/package.json +24 -0
  16. package/style/button.css +264 -0
  17. package/style/canvas.css +14 -0
  18. package/style/checkbox-group.css +7 -0
  19. package/style/checkbox.css +56 -0
  20. package/style/editor.css +393 -0
  21. package/style/form.css +0 -0
  22. package/style/icon.css +9 -0
  23. package/style/image.css +33 -0
  24. package/style/input.css +87 -0
  25. package/style/label.css +3 -0
  26. package/style/movable-area.css +10 -0
  27. package/style/movable-view.css +13 -0
  28. package/style/navigator.css +45 -0
  29. package/style/picker-view-column.css +99 -0
  30. package/style/picker-view.css +14 -0
  31. package/style/progress.css +25 -0
  32. package/style/radio-group.css +6 -0
  33. package/style/radio.css +53 -0
  34. package/style/resize-sensor.css +33 -0
  35. package/style/rich-text.css +0 -0
  36. package/style/scroll-view.css +90 -0
  37. package/style/slider.css +89 -0
  38. package/style/swiper-item.css +13 -0
  39. package/style/swiper.css +85 -0
  40. package/style/switch.css +111 -0
  41. package/style/text.css +8 -0
  42. package/style/textarea.css +79 -0
  43. package/style/view.css +6 -0
package/style/form.css ADDED
File without changes
package/style/icon.css ADDED
@@ -0,0 +1,9 @@
1
+ uni-icon {
2
+ display: inline-block;
3
+ font-size: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ uni-icon[hidden] {
8
+ display: none;
9
+ }
@@ -0,0 +1,33 @@
1
+ uni-image {
2
+ width: 320px;
3
+ height: 240px;
4
+ display: inline-block;
5
+ overflow: hidden;
6
+ position: relative;
7
+ }
8
+
9
+ uni-image[hidden] {
10
+ display: none;
11
+ }
12
+
13
+ uni-image > div {
14
+ width: 100%;
15
+ height: 100%;
16
+ background-repeat:no-repeat;
17
+ }
18
+
19
+ uni-image > img {
20
+ -webkit-touch-callout: none;
21
+ user-select: none;
22
+ display: block;
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ width: 100%;
27
+ height: 100%;
28
+ opacity: 0;
29
+ }
30
+
31
+ uni-image > .uni-image-will-change {
32
+ will-change: transform;
33
+ }
@@ -0,0 +1,87 @@
1
+ uni-input {
2
+ display: block;
3
+ font-size: 16px;
4
+ line-height: 1.4em;
5
+ height: 1.4em;
6
+ min-height: 1.4em;
7
+ overflow: hidden;
8
+ }
9
+
10
+ uni-input[hidden] {
11
+ display: none;
12
+ }
13
+
14
+ .uni-input-wrapper,
15
+ .uni-input-placeholder,
16
+ .uni-input-form,
17
+ .uni-input-input {
18
+ outline: none;
19
+ border: none;
20
+ padding: 0;
21
+ margin: 0;
22
+ text-decoration: inherit;
23
+ }
24
+
25
+ .uni-input-wrapper,
26
+ .uni-input-form {
27
+ display: flex;
28
+ position: relative;
29
+ width: 100%;
30
+ height: 100%;
31
+ flex-direction: column;
32
+ justify-content: center;
33
+ }
34
+
35
+ .uni-input-placeholder,
36
+ .uni-input-input {
37
+ width: 100%;
38
+ }
39
+
40
+ .uni-input-placeholder {
41
+ position: absolute;
42
+ top: auto !important;
43
+ left: 0;
44
+ color: gray;
45
+ overflow: hidden;
46
+ text-overflow: clip;
47
+ white-space: pre;
48
+ word-break: keep-all;
49
+ pointer-events: none;
50
+ line-height: inherit;
51
+ }
52
+
53
+ .uni-input-input {
54
+ position: relative;
55
+ display: block;
56
+ height: 100%;
57
+ background: none;
58
+ color: inherit;
59
+ opacity: 1;
60
+ font: inherit;
61
+ line-height: inherit;
62
+ letter-spacing: inherit;
63
+ text-align: inherit;
64
+ text-indent: inherit;
65
+ text-transform: inherit;
66
+ text-shadow: inherit;
67
+ }
68
+
69
+ .uni-input-input[type='search']::-webkit-search-cancel-button,
70
+ .uni-input-input[type="search"]::-webkit-search-decoration {
71
+ display: none;
72
+ }
73
+
74
+ .uni-input-input::-webkit-outer-spin-button,
75
+ .uni-input-input::-webkit-inner-spin-button {
76
+ appearance: none;
77
+ margin: 0;
78
+ }
79
+
80
+ .uni-input-input[type='number'] {
81
+ -moz-appearance: textfield;
82
+ }
83
+
84
+ .uni-input-input:disabled {
85
+ /* 用于重置iOS14以下禁用状态文字颜色 */
86
+ -webkit-text-fill-color: currentcolor;
87
+ }
@@ -0,0 +1,3 @@
1
+ .uni-label-pointer {
2
+ cursor: pointer;
3
+ }
@@ -0,0 +1,10 @@
1
+ uni-movable-area {
2
+ display: block;
3
+ position: relative;
4
+ width: 10px;
5
+ height: 10px;
6
+ }
7
+
8
+ uni-movable-area[hidden] {
9
+ display: none;
10
+ }
@@ -0,0 +1,13 @@
1
+ uni-movable-view {
2
+ display: inline-block;
3
+ width: 10px;
4
+ height: 10px;
5
+ top: 0px;
6
+ left: 0px;
7
+ position: absolute;
8
+ cursor: grab;
9
+ }
10
+
11
+ uni-movable-view[hidden] {
12
+ display: none;
13
+ }
@@ -0,0 +1,45 @@
1
+ uni-navigator {
2
+ height: auto;
3
+ width: auto;
4
+ display: block;
5
+ cursor: pointer;
6
+ }
7
+
8
+ uni-navigator[hidden] {
9
+ display: none;
10
+ }
11
+
12
+ .navigator-hover {
13
+ background-color: rgba(0, 0, 0, 0.1);
14
+ opacity: 0.7;
15
+ }
16
+
17
+ .navigator-wrap {
18
+ text-decoration: none;
19
+ color: inherit;
20
+ cursor: pointer;
21
+ }
22
+
23
+ .navigator-wrap:link {
24
+ text-decoration: none;
25
+ color: inherit;
26
+ cursor: pointer;
27
+ }
28
+
29
+ .navigator-wrap:visited {
30
+ text-decoration: none;
31
+ color: inherit;
32
+ cursor: pointer;
33
+ }
34
+
35
+ .navigator-wrap:hover {
36
+ text-decoration: none;
37
+ color: inherit;
38
+ cursor: pointer;
39
+ }
40
+
41
+ .navigator-wrap:active {
42
+ text-decoration: none;
43
+ color: inherit;
44
+ cursor: pointer;
45
+ }
@@ -0,0 +1,99 @@
1
+ uni-picker-view-column {
2
+ flex: 1;
3
+ position: relative;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ }
7
+
8
+ uni-picker-view-column[hidden] {
9
+ display: none;
10
+ }
11
+
12
+ .uni-picker-view-group {
13
+ height: 100%;
14
+ overflow: hidden;
15
+ }
16
+
17
+ .uni-picker-view-mask {
18
+ transform: translateZ(0);
19
+ }
20
+
21
+ .uni-picker-view-indicator,
22
+ .uni-picker-view-mask {
23
+ position: absolute;
24
+ left: 0;
25
+ width: 100%;
26
+ z-index: 3;
27
+ pointer-events: none;
28
+ }
29
+
30
+ .uni-picker-view-mask {
31
+ top: 0;
32
+ height: 100%;
33
+ margin: 0 auto;
34
+ background: linear-gradient(
35
+ 180deg,
36
+ hsla(0, 0%, 100%, 0.95),
37
+ hsla(0, 0%, 100%, 0.6)
38
+ ),
39
+ linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6));
40
+ background-position: top, bottom;
41
+ background-size: 100% 102px;
42
+ background-repeat: no-repeat;
43
+ }
44
+
45
+ .uni-picker-view-indicator {
46
+ height: 34px;
47
+ /* top: 102px; */
48
+ top: 50%;
49
+ transform: translateY(-50%);
50
+ }
51
+
52
+ .uni-picker-view-content {
53
+ position: absolute;
54
+ top: 0;
55
+ left: 0;
56
+ width: 100%;
57
+ will-change: transform;
58
+ padding: 102px 0;
59
+ cursor: pointer;
60
+ }
61
+
62
+ .uni-picker-view-content > * {
63
+ height: 34px;
64
+ overflow: hidden;
65
+ }
66
+
67
+ .uni-picker-view-indicator:after,
68
+ .uni-picker-view-indicator:before {
69
+ content: ' ';
70
+ position: absolute;
71
+ left: 0;
72
+ right: 0;
73
+ height: 1px;
74
+ color: #e5e5e5;
75
+ }
76
+
77
+ .uni-picker-view-indicator:before {
78
+ top: 0;
79
+ border-top: 1px solid #e5e5e5;
80
+ transform-origin: 0 0;
81
+ transform: scaleY(0.5);
82
+ }
83
+
84
+ .uni-picker-view-indicator:after {
85
+ bottom: 0;
86
+ border-bottom: 1px solid #e5e5e5;
87
+ transform-origin: 0 100%;
88
+ transform: scaleY(0.5);
89
+ }
90
+
91
+ .uni-picker-view-indicator:after,
92
+ .uni-picker-view-indicator:before {
93
+ content: ' ';
94
+ position: absolute;
95
+ left: 0;
96
+ right: 0;
97
+ height: 1px;
98
+ color: #e5e5e5;
99
+ }
@@ -0,0 +1,14 @@
1
+ uni-picker-view {
2
+ display: block;
3
+ }
4
+
5
+ .uni-picker-view-wrapper {
6
+ display: flex;
7
+ position: relative;
8
+ overflow: hidden;
9
+ height: 100%;
10
+ }
11
+
12
+ uni-picker-view[hidden] {
13
+ display: none;
14
+ }
@@ -0,0 +1,25 @@
1
+ uni-progress {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+
6
+ uni-progress[hidden] {
7
+ display: none;
8
+ }
9
+
10
+ .uni-progress-bar {
11
+ flex: 1;
12
+ }
13
+
14
+ .uni-progress-inner-bar {
15
+ width: 0;
16
+ height: 100%;
17
+ }
18
+
19
+ .uni-progress-info {
20
+ margin-top: 0;
21
+ margin-bottom: 0;
22
+ min-width: 2em;
23
+ margin-left: 15px;
24
+ font-size: 16px;
25
+ }
@@ -0,0 +1,6 @@
1
+ uni-radio-group {
2
+ display: block;
3
+ }
4
+ uni-radio-group[hidden] {
5
+ display: none;
6
+ }
@@ -0,0 +1,53 @@
1
+ uni-radio {
2
+ -webkit-tap-highlight-color: transparent;
3
+ display: inline-block;
4
+ cursor: pointer;
5
+ }
6
+
7
+ uni-radio[hidden] {
8
+ display: none;
9
+ }
10
+
11
+ uni-radio[disabled] {
12
+ cursor: not-allowed;
13
+ }
14
+
15
+ .uni-radio-wrapper {
16
+ display: inline-flex;
17
+ align-items: center;
18
+ vertical-align: middle;
19
+ }
20
+
21
+ .uni-radio-input {
22
+ appearance: none;
23
+ margin-right: 5px;
24
+ outline: 0;
25
+ border: 1px solid #d1d1d1;
26
+ background-color: #ffffff;
27
+ border-radius: 50%;
28
+ width: 22px;
29
+ height: 22px;
30
+ position: relative;
31
+ }
32
+
33
+ uni-radio:not([disabled]) .uni-radio-input:hover {
34
+ border-color: #007aff;
35
+ }
36
+
37
+ .uni-radio-input svg {
38
+ color: #ffffff;
39
+ font-size: 18px;
40
+ position: absolute;
41
+ top: 50%;
42
+ left: 50%;
43
+ transform: translate(-50%, -48%) scale(0.73);
44
+ }
45
+
46
+ .uni-radio-input.uni-radio-input-disabled {
47
+ background-color: #e1e1e1;
48
+ border-color: #d1d1d1;
49
+ }
50
+
51
+ .uni-radio-input.uni-radio-input-disabled:before {
52
+ color: #adadad;
53
+ }
@@ -0,0 +1,33 @@
1
+ @keyframes once-show {
2
+ from {
3
+ top: 0;
4
+ }
5
+ }
6
+ uni-resize-sensor,
7
+ uni-resize-sensor > div {
8
+ position: absolute;
9
+ left: 0;
10
+ top: 0;
11
+ right: 0;
12
+ bottom: 0;
13
+ overflow: hidden;
14
+ }
15
+ uni-resize-sensor {
16
+ display: block;
17
+ z-index: -1;
18
+ visibility: hidden;
19
+ animation: once-show 1ms;
20
+ }
21
+ uni-resize-sensor > div > div {
22
+ position: absolute;
23
+ left: 0;
24
+ top: 0;
25
+ }
26
+ uni-resize-sensor > div:first-child > div {
27
+ width: 100000px;
28
+ height: 100000px;
29
+ }
30
+ uni-resize-sensor > div:last-child > div {
31
+ width: 200%;
32
+ height: 200%;
33
+ }
File without changes
@@ -0,0 +1,90 @@
1
+ uni-scroll-view {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ uni-scroll-view[hidden] {
7
+ display: none;
8
+ }
9
+
10
+ .uni-scroll-view {
11
+ position: relative;
12
+ -webkit-overflow-scrolling: touch;
13
+ width: 100%;
14
+ /* display: flex; 时在安卓下会导致scrollWidth和offsetWidth一样 */
15
+ height: 100%;
16
+ max-height: inherit;
17
+ }
18
+
19
+ .uni-scroll-view-content {
20
+ width: 100%;
21
+ height: 100%;
22
+ }
23
+
24
+ .uni-scroll-view-refresher {
25
+ position: relative;
26
+ overflow: hidden;
27
+ }
28
+
29
+ .uni-scroll-view-refresh {
30
+ position: absolute;
31
+ top: 0;
32
+ left: 0;
33
+ right: 0;
34
+ bottom: 0;
35
+ display: flex;
36
+ flex-direction: row;
37
+ justify-content: center;
38
+ align-items: center;
39
+ }
40
+
41
+ .uni-scroll-view-refresh-inner {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ line-height: 0;
46
+ width: 40px;
47
+ height: 40px;
48
+ border-radius: 50%;
49
+ background-color: #fff;
50
+ box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647),
51
+ 0 1px 4px rgba(0, 0, 0, 0.117647);
52
+ }
53
+
54
+ .uni-scroll-view-refresh__spinner {
55
+ transform-origin: center center;
56
+ animation: uni-scroll-view-refresh-rotate 2s linear infinite;
57
+ }
58
+
59
+ .uni-scroll-view-refresh__spinner > circle {
60
+ stroke: currentColor;
61
+ stroke-linecap: round;
62
+ animation: uni-scroll-view-refresh-dash 2s linear infinite;
63
+ }
64
+
65
+ @keyframes uni-scroll-view-refresh-rotate {
66
+ 0% {
67
+ transform: rotate(0deg);
68
+ }
69
+
70
+ 100% {
71
+ transform: rotate(360deg);
72
+ }
73
+ }
74
+
75
+ @keyframes uni-scroll-view-refresh-dash {
76
+ 0% {
77
+ stroke-dasharray: 1, 200;
78
+ stroke-dashoffset: 0;
79
+ }
80
+
81
+ 50% {
82
+ stroke-dasharray: 89, 200;
83
+ stroke-dashoffset: -35px;
84
+ }
85
+
86
+ 100% {
87
+ stroke-dasharray: 89, 200;
88
+ stroke-dashoffset: -124px;
89
+ }
90
+ }
@@ -0,0 +1,89 @@
1
+ uni-slider {
2
+ margin: 10px 18px;
3
+ padding: 0;
4
+ display: block;
5
+ }
6
+
7
+ uni-slider[hidden] {
8
+ display: none;
9
+ }
10
+
11
+ uni-slider .uni-slider-wrapper {
12
+ display: -webkit-flex;
13
+ display: flex;
14
+ -webkit-align-items: center;
15
+ align-items: center;
16
+ min-height: 16px;
17
+ }
18
+
19
+ uni-slider .uni-slider-tap-area {
20
+ -webkit-flex: 1;
21
+ flex: 1;
22
+ padding: 8px 0;
23
+ }
24
+
25
+ uni-slider .uni-slider-handle-wrapper {
26
+ position: relative;
27
+ height: 2px;
28
+ border-radius: 5px;
29
+ background-color: #e9e9e9;
30
+ cursor: pointer;
31
+ transition: background-color 0.3s ease;
32
+ -webkit-tap-highlight-color: transparent;
33
+ }
34
+
35
+ uni-slider .uni-slider-track {
36
+ height: 100%;
37
+ border-radius: 6px;
38
+ background-color: #007aff;
39
+ transition: background-color 0.3s ease;
40
+ }
41
+
42
+ uni-slider .uni-slider-handle,
43
+ uni-slider .uni-slider-thumb {
44
+ position: absolute;
45
+ left: 50%;
46
+ top: 50%;
47
+ cursor: pointer;
48
+ border-radius: 50%;
49
+ transition: border-color 0.3s ease;
50
+ }
51
+
52
+ uni-slider .uni-slider-handle {
53
+ width: 28px;
54
+ height: 28px;
55
+ margin-top: -14px;
56
+ margin-left: -14px;
57
+ background-color: transparent;
58
+ z-index: 3;
59
+ cursor: grab;
60
+ }
61
+
62
+ uni-slider .uni-slider-thumb {
63
+ z-index: 2;
64
+ box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
65
+ }
66
+
67
+ uni-slider .uni-slider-step {
68
+ position: absolute;
69
+ width: 100%;
70
+ height: 2px;
71
+ background: transparent;
72
+ z-index: 1;
73
+ }
74
+
75
+ uni-slider .uni-slider-value {
76
+ width: 3ch;
77
+ color: #888;
78
+ font-size: 14px;
79
+ margin-left: 1em;
80
+ }
81
+
82
+ uni-slider .uni-slider-disabled .uni-slider-track {
83
+ background-color: #ccc;
84
+ }
85
+
86
+ uni-slider .uni-slider-disabled .uni-slider-thumb {
87
+ background-color: #fff;
88
+ border-color: #ccc;
89
+ }
@@ -0,0 +1,13 @@
1
+ uni-swiper-item {
2
+ display: block;
3
+ overflow: hidden;
4
+ will-change: transform;
5
+ position: absolute;
6
+ width: 100%;
7
+ height: 100%;
8
+ cursor: grab;
9
+ }
10
+
11
+ uni-swiper-item[hidden] {
12
+ display: none;
13
+ }