@vtj/materials 0.10.1-alpha.6 → 0.10.1

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 (98) hide show
  1. package/dist/assets/antdv/index.umd.js +2 -2
  2. package/dist/assets/charts/index.umd.js +2 -2
  3. package/dist/assets/element/index.umd.js +2 -2
  4. package/dist/assets/ui/index.umd.js +2 -2
  5. package/dist/assets/uni-h5/index.umd.js +2 -2
  6. package/dist/assets/uni-ui/index.umd.js +3 -3
  7. package/dist/assets/vant/index.umd.js +5 -5
  8. package/dist/deps/@vtj/charts/index.umd.js +2 -2
  9. package/dist/deps/@vtj/icons/index.umd.js +2 -2
  10. package/dist/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/deps/@vtj/utils/index.umd.js +2 -2
  12. package/dist/deps/uni-ui/index.umd.js +1 -1
  13. package/dist/deps/uni-ui/style.css +1 -1
  14. package/package.json +6 -6
  15. package/src/uni-ui/components/badge.ts +5 -1
  16. package/src/uni-ui/components/breadcrumb.ts +76 -0
  17. package/src/uni-ui/components/calendar.ts +63 -0
  18. package/src/uni-ui/components/card.ts +113 -0
  19. package/src/uni-ui/components/collapse.ts +118 -0
  20. package/src/uni-ui/components/combox.ts +51 -0
  21. package/src/uni-ui/components/countdown.ts +92 -0
  22. package/src/uni-ui/components/dataCheckbox.ts +104 -0
  23. package/src/uni-ui/components/dataPicker.ts +146 -0
  24. package/src/uni-ui/components/dataSelect.ts +68 -0
  25. package/src/uni-ui/components/dateformat.ts +42 -0
  26. package/src/uni-ui/components/datetimePicker.ts +103 -0
  27. package/src/uni-ui/components/drawer.ts +38 -0
  28. package/src/uni-ui/components/easyinput.ts +159 -0
  29. package/src/uni-ui/components/fab.ts +89 -0
  30. package/src/uni-ui/components/fav.ts +65 -0
  31. package/src/uni-ui/components/filePicker.ts +127 -0
  32. package/src/uni-ui/components/forms.ts +209 -0
  33. package/src/uni-ui/components/goodsNav.ts +31 -0
  34. package/src/uni-ui/components/grid.ts +104 -0
  35. package/src/uni-ui/components/group.ts +50 -0
  36. package/src/uni-ui/components/icons.ts +47 -0
  37. package/src/uni-ui/components/index.ts +89 -1
  38. package/src/uni-ui/components/indexedList.ts +51 -0
  39. package/src/uni-ui/components/link.ts +60 -0
  40. package/src/uni-ui/components/list.ts +259 -0
  41. package/src/uni-ui/components/loadMore.ts +61 -0
  42. package/src/uni-ui/components/navbar.ts +121 -0
  43. package/src/uni-ui/components/noticeBar.ts +83 -0
  44. package/src/uni-ui/components/numberbox.ts +49 -0
  45. package/src/uni-ui/components/pagination.ts +59 -0
  46. package/src/uni-ui/components/popup.ts +206 -0
  47. package/src/uni-ui/components/rate.ts +89 -0
  48. package/src/uni-ui/components/row.ts +126 -0
  49. package/src/uni-ui/components/searchBar.ts +84 -0
  50. package/src/uni-ui/components/section.ts +68 -0
  51. package/src/uni-ui/components/segmentedControl.ts +48 -0
  52. package/src/uni-ui/components/steps.ts +55 -0
  53. package/src/uni-ui/components/swipeAction.ts +133 -0
  54. package/src/uni-ui/components/swiperDot.ts +114 -0
  55. package/src/uni-ui/components/table.ts +132 -0
  56. package/src/uni-ui/components/tag.ts +56 -0
  57. package/src/uni-ui/components/title.ts +49 -0
  58. package/src/uni-ui/components/tooltip.ts +32 -0
  59. package/src/uni-ui/components/transition.ts +49 -0
  60. package/src/uni-ui/index.ts +30 -13
  61. package/src/uni-ui/lib/uni-col/uni-col.vue +324 -0
  62. package/src/uni-ui/lib/uni-data-select/uni-data-select.vue +590 -0
  63. package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +177 -177
  64. package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +947 -947
  65. package/src/uni-ui/lib/uni-datetime-picker/i18n/en.json +22 -22
  66. package/src/uni-ui/lib/uni-datetime-picker/i18n/index.js +7 -7
  67. package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +939 -939
  68. package/src/uni-ui/lib/uni-datetime-picker/util.js +419 -419
  69. package/src/uni-ui/lib/uni-easyinput/common.js +54 -0
  70. package/src/uni-ui/lib/uni-easyinput/uni-easyinput.vue +790 -0
  71. package/src/uni-ui/lib/uni-forms/uni-forms.vue +416 -416
  72. package/src/uni-ui/lib/uni-forms/utils.js +281 -281
  73. package/src/uni-ui/lib/uni-forms/validate.js +485 -485
  74. package/src/uni-ui/lib/uni-forms-item/uni-forms-item.vue +630 -0
  75. package/src/uni-ui/lib/uni-goods-nav/i18n/en.json +6 -0
  76. package/src/uni-ui/lib/uni-goods-nav/i18n/index.js +8 -0
  77. package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hans.json +6 -0
  78. package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hant.json +6 -0
  79. package/src/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +231 -0
  80. package/src/uni-ui/lib/uni-icons/uni-icons.uvue +91 -0
  81. package/src/uni-ui/lib/uni-icons/uni-icons.vue +114 -0
  82. package/src/uni-ui/lib/uni-icons/uniicons.css +664 -0
  83. package/src/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
  84. package/src/uni-ui/lib/uni-icons/uniicons_file.ts +664 -0
  85. package/src/uni-ui/lib/uni-icons/uniicons_file_vue.js +649 -0
  86. package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +144 -0
  87. package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +404 -0
  88. package/src/uni-ui/lib/uni-list/uni-list.vue +123 -0
  89. package/src/uni-ui/lib/uni-list/uni-refresh.vue +65 -0
  90. package/src/uni-ui/lib/uni-list/uni-refresh.wxs +87 -0
  91. package/src/uni-ui/lib/uni-popup-dialog/keypress.js +45 -0
  92. package/src/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +324 -0
  93. package/src/uni-ui/lib/uni-rate/uni-rate.vue +361 -0
  94. package/src/uni-ui/lib/uni-table/uni-table.vue +496 -0
  95. package/src/uni-ui/lib/uni-td/uni-td.vue +99 -0
  96. package/src/uni-ui/lib/uni-th/uni-th.vue +310 -283
  97. package/src/uni-ui/lib/uni-tr/uni-tr.vue +194 -170
  98. package/src/version.ts +2 -2
@@ -1,177 +1,177 @@
1
- <template>
2
- <view class="uni-calendar-item__weeks-box" :class="{
3
- 'uni-calendar-item--disable':weeks.disable,
4
- 'uni-calendar-item--before-checked-x':weeks.beforeMultiple,
5
- 'uni-calendar-item--multiple': weeks.multiple,
6
- 'uni-calendar-item--after-checked-x':weeks.afterMultiple,
7
- }" @click="choiceDate(weeks)" @mouseenter="handleMousemove(weeks)">
8
- <view class="uni-calendar-item__weeks-box-item" :class="{
9
- 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && (calendar.userChecked || !checkHover),
10
- 'uni-calendar-item--checked-range-text': checkHover,
11
- 'uni-calendar-item--before-checked':weeks.beforeMultiple,
12
- 'uni-calendar-item--multiple': weeks.multiple,
13
- 'uni-calendar-item--after-checked':weeks.afterMultiple,
14
- 'uni-calendar-item--disable':weeks.disable,
15
- }">
16
- <text v-if="selected && weeks.extraInfo" class="uni-calendar-item__weeks-box-circle"></text>
17
- <text class="uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text">{{weeks.date}}</text>
18
- </view>
19
- <view :class="{'uni-calendar-item--today': weeks.isToday}"></view>
20
- </view>
21
- </template>
22
-
23
- <script>
24
- export default {
25
- props: {
26
- weeks: {
27
- type: Object,
28
- default () {
29
- return {}
30
- }
31
- },
32
- calendar: {
33
- type: Object,
34
- default: () => {
35
- return {}
36
- }
37
- },
38
- selected: {
39
- type: Array,
40
- default: () => {
41
- return []
42
- }
43
- },
44
- checkHover: {
45
- type: Boolean,
46
- default: false
47
- }
48
- },
49
- methods: {
50
- choiceDate(weeks) {
51
- this.$emit('change', weeks)
52
- },
53
- handleMousemove(weeks) {
54
- this.$emit('handleMouse', weeks)
55
- }
56
- }
57
- }
58
- </script>
59
-
60
- <style lang="scss" >
61
- $uni-primary: #007aff !default;
62
-
63
- .uni-calendar-item__weeks-box {
64
- flex: 1;
65
- /* #ifndef APP-NVUE */
66
- display: flex;
67
- /* #endif */
68
- flex-direction: column;
69
- justify-content: center;
70
- align-items: center;
71
- margin: 1px 0;
72
- position: relative;
73
- }
74
-
75
- .uni-calendar-item__weeks-box-text {
76
- font-size: 14px;
77
- // font-family: Lato-Bold, Lato;
78
- font-weight: bold;
79
- color: darken($color: $uni-primary, $amount: 40%);
80
- }
81
-
82
- .uni-calendar-item__weeks-box-item {
83
- position: relative;
84
- /* #ifndef APP-NVUE */
85
- display: flex;
86
- /* #endif */
87
- flex-direction: column;
88
- justify-content: center;
89
- align-items: center;
90
- width: 40px;
91
- height: 40px;
92
- /* #ifdef H5 */
93
- cursor: pointer;
94
- /* #endif */
95
- }
96
-
97
-
98
- .uni-calendar-item__weeks-box-circle {
99
- position: absolute;
100
- top: 5px;
101
- right: 5px;
102
- width: 8px;
103
- height: 8px;
104
- border-radius: 8px;
105
- background-color: #dd524d;
106
-
107
- }
108
-
109
- .uni-calendar-item__weeks-box .uni-calendar-item--disable {
110
- cursor: default;
111
- }
112
-
113
- .uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable {
114
- color: #D1D1D1;
115
- }
116
-
117
- .uni-calendar-item--today {
118
- position: absolute;
119
- top: 10px;
120
- right: 17%;
121
- background-color: #dd524d;
122
- width:6px;
123
- height: 6px;
124
- border-radius: 50%;
125
- }
126
-
127
- .uni-calendar-item--extra {
128
- color: #dd524d;
129
- opacity: 0.8;
130
- }
131
-
132
- .uni-calendar-item__weeks-box .uni-calendar-item--checked {
133
- background-color: $uni-primary;
134
- border-radius: 50%;
135
- box-sizing: border-box;
136
- border: 3px solid #fff;
137
- }
138
-
139
- .uni-calendar-item--checked .uni-calendar-item--checked-text {
140
- color: #fff;
141
- }
142
-
143
- .uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
144
- color: #333;
145
- }
146
-
147
- .uni-calendar-item--multiple {
148
- background-color: #F6F7FC;
149
- // color: #fff;
150
- }
151
-
152
- .uni-calendar-item--multiple .uni-calendar-item--before-checked,
153
- .uni-calendar-item--multiple .uni-calendar-item--after-checked {
154
- background-color: $uni-primary;
155
- border-radius: 50%;
156
- box-sizing: border-box;
157
- border: 3px solid #F6F7FC;
158
- }
159
-
160
- .uni-calendar-item--before-checked .uni-calendar-item--checked-text,
161
- .uni-calendar-item--after-checked .uni-calendar-item--checked-text {
162
- color: #fff;
163
- }
164
-
165
- .uni-calendar-item--before-checked-x {
166
- border-top-left-radius: 50px;
167
- border-bottom-left-radius: 50px;
168
- box-sizing: border-box;
169
- background-color: #F6F7FC;
170
- }
171
-
172
- .uni-calendar-item--after-checked-x {
173
- border-top-right-radius: 50px;
174
- border-bottom-right-radius: 50px;
175
- background-color: #F6F7FC;
176
- }
177
- </style>
1
+ <template>
2
+ <view class="uni-calendar-item__weeks-box" :class="{
3
+ 'uni-calendar-item--disable':weeks.disable,
4
+ 'uni-calendar-item--before-checked-x':weeks.beforeMultiple,
5
+ 'uni-calendar-item--multiple': weeks.multiple,
6
+ 'uni-calendar-item--after-checked-x':weeks.afterMultiple,
7
+ }" @click="choiceDate(weeks)" @mouseenter="handleMousemove(weeks)">
8
+ <view class="uni-calendar-item__weeks-box-item" :class="{
9
+ 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && (calendar.userChecked || !checkHover),
10
+ 'uni-calendar-item--checked-range-text': checkHover,
11
+ 'uni-calendar-item--before-checked':weeks.beforeMultiple,
12
+ 'uni-calendar-item--multiple': weeks.multiple,
13
+ 'uni-calendar-item--after-checked':weeks.afterMultiple,
14
+ 'uni-calendar-item--disable':weeks.disable,
15
+ }">
16
+ <text v-if="selected && weeks.extraInfo" class="uni-calendar-item__weeks-box-circle"></text>
17
+ <text class="uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text">{{weeks.date}}</text>
18
+ </view>
19
+ <view :class="{'uni-calendar-item--today': weeks.isToday}"></view>
20
+ </view>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ props: {
26
+ weeks: {
27
+ type: Object,
28
+ default () {
29
+ return {}
30
+ }
31
+ },
32
+ calendar: {
33
+ type: Object,
34
+ default: () => {
35
+ return {}
36
+ }
37
+ },
38
+ selected: {
39
+ type: Array,
40
+ default: () => {
41
+ return []
42
+ }
43
+ },
44
+ checkHover: {
45
+ type: Boolean,
46
+ default: false
47
+ }
48
+ },
49
+ methods: {
50
+ choiceDate(weeks) {
51
+ this.$emit('change', weeks)
52
+ },
53
+ handleMousemove(weeks) {
54
+ this.$emit('handleMouse', weeks)
55
+ }
56
+ }
57
+ }
58
+ </script>
59
+
60
+ <style lang="scss" >
61
+ $uni-primary: #007aff !default;
62
+
63
+ .uni-calendar-item__weeks-box {
64
+ flex: 1;
65
+ /* #ifndef APP-NVUE */
66
+ display: flex;
67
+ /* #endif */
68
+ flex-direction: column;
69
+ justify-content: center;
70
+ align-items: center;
71
+ margin: 1px 0;
72
+ position: relative;
73
+ }
74
+
75
+ .uni-calendar-item__weeks-box-text {
76
+ font-size: 14px;
77
+ // font-family: Lato-Bold, Lato;
78
+ font-weight: bold;
79
+ color: darken($color: $uni-primary, $amount: 40%);
80
+ }
81
+
82
+ .uni-calendar-item__weeks-box-item {
83
+ position: relative;
84
+ /* #ifndef APP-NVUE */
85
+ display: flex;
86
+ /* #endif */
87
+ flex-direction: column;
88
+ justify-content: center;
89
+ align-items: center;
90
+ width: 40px;
91
+ height: 40px;
92
+ /* #ifdef H5 */
93
+ cursor: pointer;
94
+ /* #endif */
95
+ }
96
+
97
+
98
+ .uni-calendar-item__weeks-box-circle {
99
+ position: absolute;
100
+ top: 5px;
101
+ right: 5px;
102
+ width: 8px;
103
+ height: 8px;
104
+ border-radius: 8px;
105
+ background-color: #dd524d;
106
+
107
+ }
108
+
109
+ .uni-calendar-item__weeks-box .uni-calendar-item--disable {
110
+ cursor: default;
111
+ }
112
+
113
+ .uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable {
114
+ color: #D1D1D1;
115
+ }
116
+
117
+ .uni-calendar-item--today {
118
+ position: absolute;
119
+ top: 10px;
120
+ right: 17%;
121
+ background-color: #dd524d;
122
+ width:6px;
123
+ height: 6px;
124
+ border-radius: 50%;
125
+ }
126
+
127
+ .uni-calendar-item--extra {
128
+ color: #dd524d;
129
+ opacity: 0.8;
130
+ }
131
+
132
+ .uni-calendar-item__weeks-box .uni-calendar-item--checked {
133
+ background-color: $uni-primary;
134
+ border-radius: 50%;
135
+ box-sizing: border-box;
136
+ border: 3px solid #fff;
137
+ }
138
+
139
+ .uni-calendar-item--checked .uni-calendar-item--checked-text {
140
+ color: #fff;
141
+ }
142
+
143
+ .uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
144
+ color: #333;
145
+ }
146
+
147
+ .uni-calendar-item--multiple {
148
+ background-color: #F6F7FC;
149
+ // color: #fff;
150
+ }
151
+
152
+ .uni-calendar-item--multiple .uni-calendar-item--before-checked,
153
+ .uni-calendar-item--multiple .uni-calendar-item--after-checked {
154
+ background-color: $uni-primary;
155
+ border-radius: 50%;
156
+ box-sizing: border-box;
157
+ border: 3px solid #F6F7FC;
158
+ }
159
+
160
+ .uni-calendar-item--before-checked .uni-calendar-item--checked-text,
161
+ .uni-calendar-item--after-checked .uni-calendar-item--checked-text {
162
+ color: #fff;
163
+ }
164
+
165
+ .uni-calendar-item--before-checked-x {
166
+ border-top-left-radius: 50px;
167
+ border-bottom-left-radius: 50px;
168
+ box-sizing: border-box;
169
+ background-color: #F6F7FC;
170
+ }
171
+
172
+ .uni-calendar-item--after-checked-x {
173
+ border-top-right-radius: 50px;
174
+ border-bottom-right-radius: 50px;
175
+ background-color: #F6F7FC;
176
+ }
177
+ </style>