@kengic/uni 0.3.2-beta.10

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 (166) hide show
  1. package/README.md +1 -0
  2. package/dist/index.css +1 -0
  3. package/dist/kengic-uni.js +5 -0
  4. package/dist/src/consts/i18n/en.d.ts +45 -0
  5. package/dist/src/consts/i18n/index.d.ts +90 -0
  6. package/dist/src/consts/i18n/zh_CN.d.ts +45 -0
  7. package/dist/src/consts/index.d.ts +1 -0
  8. package/dist/src/index.d.ts +2 -0
  9. package/dist/src/utils/index.d.ts +1 -0
  10. package/dist/src/utils/kg.util.d.ts +5 -0
  11. package/dist/uni-ui/index.ts +11 -0
  12. package/dist/uni-ui/uni-badge/uni-badge.vue +253 -0
  13. package/dist/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +41 -0
  14. package/dist/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +121 -0
  15. package/dist/uni-ui/uni-calendar/calendar.js +546 -0
  16. package/dist/uni-ui/uni-calendar/i18n/en.json +12 -0
  17. package/dist/uni-ui/uni-calendar/i18n/index.js +8 -0
  18. package/dist/uni-ui/uni-calendar/i18n/zh-Hans.json +12 -0
  19. package/dist/uni-ui/uni-calendar/i18n/zh-Hant.json +12 -0
  20. package/dist/uni-ui/uni-calendar/uni-calendar-item.vue +187 -0
  21. package/dist/uni-ui/uni-calendar/uni-calendar.vue +566 -0
  22. package/dist/uni-ui/uni-calendar/util.js +360 -0
  23. package/dist/uni-ui/uni-card/uni-card.vue +281 -0
  24. package/dist/uni-ui/uni-col/uni-col.vue +317 -0
  25. package/dist/uni-ui/uni-collapse/uni-collapse.vue +147 -0
  26. package/dist/uni-ui/uni-collapse-item/uni-collapse-item.vue +402 -0
  27. package/dist/uni-ui/uni-combox/uni-combox.vue +294 -0
  28. package/dist/uni-ui/uni-countdown/i18n/en.json +6 -0
  29. package/dist/uni-ui/uni-countdown/i18n/index.js +8 -0
  30. package/dist/uni-ui/uni-countdown/i18n/zh-Hans.json +6 -0
  31. package/dist/uni-ui/uni-countdown/i18n/zh-Hant.json +6 -0
  32. package/dist/uni-ui/uni-countdown/uni-countdown.vue +267 -0
  33. package/dist/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +821 -0
  34. package/dist/uni-ui/uni-data-picker/keypress.js +45 -0
  35. package/dist/uni-ui/uni-data-picker/uni-data-picker.vue +551 -0
  36. package/dist/uni-ui/uni-data-pickerview/uni-data-picker.js +622 -0
  37. package/dist/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +323 -0
  38. package/dist/uni-ui/uni-data-select/uni-data-select.vue +517 -0
  39. package/dist/uni-ui/uni-dateformat/date-format.js +200 -0
  40. package/dist/uni-ui/uni-dateformat/uni-dateformat.vue +88 -0
  41. package/dist/uni-ui/uni-datetime-picker/calendar-item.vue +177 -0
  42. package/dist/uni-ui/uni-datetime-picker/calendar.vue +928 -0
  43. package/dist/uni-ui/uni-datetime-picker/i18n/en.json +22 -0
  44. package/dist/uni-ui/uni-datetime-picker/i18n/index.js +8 -0
  45. package/dist/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +22 -0
  46. package/dist/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +22 -0
  47. package/dist/uni-ui/uni-datetime-picker/time-picker.vue +934 -0
  48. package/dist/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1026 -0
  49. package/dist/uni-ui/uni-datetime-picker/util.js +403 -0
  50. package/dist/uni-ui/uni-drawer/keypress.js +45 -0
  51. package/dist/uni-ui/uni-drawer/uni-drawer.vue +181 -0
  52. package/dist/uni-ui/uni-easyinput/common.js +56 -0
  53. package/dist/uni-ui/uni-easyinput/uni-easyinput.vue +660 -0
  54. package/dist/uni-ui/uni-fab/uni-fab.vue +491 -0
  55. package/dist/uni-ui/uni-fav/i18n/en.json +4 -0
  56. package/dist/uni-ui/uni-fav/i18n/index.js +8 -0
  57. package/dist/uni-ui/uni-fav/i18n/zh-Hans.json +4 -0
  58. package/dist/uni-ui/uni-fav/i18n/zh-Hant.json +4 -0
  59. package/dist/uni-ui/uni-fav/uni-fav.vue +161 -0
  60. package/dist/uni-ui/uni-file-picker/choose-and-upload-file.js +224 -0
  61. package/dist/uni-ui/uni-file-picker/uni-file-picker.vue +667 -0
  62. package/dist/uni-ui/uni-file-picker/upload-file.vue +325 -0
  63. package/dist/uni-ui/uni-file-picker/upload-image.vue +292 -0
  64. package/dist/uni-ui/uni-file-picker/utils.js +109 -0
  65. package/dist/uni-ui/uni-forms/uni-forms.vue +398 -0
  66. package/dist/uni-ui/uni-forms/utils.js +293 -0
  67. package/dist/uni-ui/uni-forms/validate.js +486 -0
  68. package/dist/uni-ui/uni-forms-item/uni-forms-item.vue +601 -0
  69. package/dist/uni-ui/uni-goods-nav/i18n/en.json +6 -0
  70. package/dist/uni-ui/uni-goods-nav/i18n/index.js +8 -0
  71. package/dist/uni-ui/uni-goods-nav/i18n/zh-Hans.json +6 -0
  72. package/dist/uni-ui/uni-goods-nav/i18n/zh-Hant.json +6 -0
  73. package/dist/uni-ui/uni-goods-nav/uni-goods-nav.vue +229 -0
  74. package/dist/uni-ui/uni-grid/uni-grid.vue +143 -0
  75. package/dist/uni-ui/uni-grid-item/uni-grid-item.vue +129 -0
  76. package/dist/uni-ui/uni-group/uni-group.vue +134 -0
  77. package/dist/uni-ui/uni-icons/icons.js +1169 -0
  78. package/dist/uni-ui/uni-icons/uni-icons.vue +96 -0
  79. package/dist/uni-ui/uni-icons/uniicons.css +663 -0
  80. package/dist/uni-ui/uni-icons/uniicons.ttf +0 -0
  81. package/dist/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +144 -0
  82. package/dist/uni-ui/uni-indexed-list/uni-indexed-list.vue +367 -0
  83. package/dist/uni-ui/uni-link/uni-link.vue +128 -0
  84. package/dist/uni-ui/uni-list/uni-list.vue +123 -0
  85. package/dist/uni-ui/uni-list/uni-refresh.vue +65 -0
  86. package/dist/uni-ui/uni-list/uni-refresh.wxs +87 -0
  87. package/dist/uni-ui/uni-list-ad/uni-list-ad.vue +107 -0
  88. package/dist/uni-ui/uni-list-chat/uni-list-chat.scss +58 -0
  89. package/dist/uni-ui/uni-list-chat/uni-list-chat.vue +593 -0
  90. package/dist/uni-ui/uni-list-item/uni-list-item.vue +534 -0
  91. package/dist/uni-ui/uni-load-more/i18n/en.json +5 -0
  92. package/dist/uni-ui/uni-load-more/i18n/index.js +8 -0
  93. package/dist/uni-ui/uni-load-more/i18n/zh-Hans.json +5 -0
  94. package/dist/uni-ui/uni-load-more/i18n/zh-Hant.json +5 -0
  95. package/dist/uni-ui/uni-load-more/uni-load-more.vue +399 -0
  96. package/dist/uni-ui/uni-nav-bar/uni-nav-bar.vue +357 -0
  97. package/dist/uni-ui/uni-nav-bar/uni-status-bar.vue +24 -0
  98. package/dist/uni-ui/uni-notice-bar/uni-notice-bar.vue +426 -0
  99. package/dist/uni-ui/uni-number-box/uni-number-box.vue +221 -0
  100. package/dist/uni-ui/uni-pagination/i18n/en.json +5 -0
  101. package/dist/uni-ui/uni-pagination/i18n/es.json +5 -0
  102. package/dist/uni-ui/uni-pagination/i18n/fr.json +5 -0
  103. package/dist/uni-ui/uni-pagination/i18n/index.js +12 -0
  104. package/dist/uni-ui/uni-pagination/i18n/zh-Hans.json +5 -0
  105. package/dist/uni-ui/uni-pagination/i18n/zh-Hant.json +5 -0
  106. package/dist/uni-ui/uni-pagination/uni-pagination.vue +465 -0
  107. package/dist/uni-ui/uni-popup/i18n/en.json +7 -0
  108. package/dist/uni-ui/uni-popup/i18n/index.js +9 -0
  109. package/dist/uni-ui/uni-popup/i18n/zh-Hans.json +7 -0
  110. package/dist/uni-ui/uni-popup/i18n/zh-Hant.json +7 -0
  111. package/dist/uni-ui/uni-popup/keypress.js +45 -0
  112. package/dist/uni-ui/uni-popup/popup.js +23 -0
  113. package/dist/uni-ui/uni-popup/uni-popup.vue +464 -0
  114. package/dist/uni-ui/uni-popup-dialog/keypress.js +45 -0
  115. package/dist/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +275 -0
  116. package/dist/uni-ui/uni-popup-message/uni-popup-message.vue +143 -0
  117. package/dist/uni-ui/uni-popup-share/uni-popup-share.vue +187 -0
  118. package/dist/uni-ui/uni-rate/uni-rate.vue +365 -0
  119. package/dist/uni-ui/uni-row/uni-row.vue +190 -0
  120. package/dist/uni-ui/uni-scss/changelog.md +8 -0
  121. package/dist/uni-ui/uni-scss/index.scss +1 -0
  122. package/dist/uni-ui/uni-scss/package.json +82 -0
  123. package/dist/uni-ui/uni-scss/readme.md +4 -0
  124. package/dist/uni-ui/uni-scss/styles/index.scss +7 -0
  125. package/dist/uni-ui/uni-scss/styles/setting/_border.scss +3 -0
  126. package/dist/uni-ui/uni-scss/styles/setting/_color.scss +66 -0
  127. package/dist/uni-ui/uni-scss/styles/setting/_radius.scss +55 -0
  128. package/dist/uni-ui/uni-scss/styles/setting/_space.scss +56 -0
  129. package/dist/uni-ui/uni-scss/styles/setting/_styles.scss +167 -0
  130. package/dist/uni-ui/uni-scss/styles/setting/_text.scss +24 -0
  131. package/dist/uni-ui/uni-scss/styles/setting/_variables.scss +146 -0
  132. package/dist/uni-ui/uni-scss/styles/tools/functions.scss +19 -0
  133. package/dist/uni-ui/uni-scss/theme.scss +31 -0
  134. package/dist/uni-ui/uni-scss/variables.scss +62 -0
  135. package/dist/uni-ui/uni-search-bar/i18n/en.json +4 -0
  136. package/dist/uni-ui/uni-search-bar/i18n/index.js +8 -0
  137. package/dist/uni-ui/uni-search-bar/i18n/zh-Hans.json +4 -0
  138. package/dist/uni-ui/uni-search-bar/i18n/zh-Hant.json +4 -0
  139. package/dist/uni-ui/uni-search-bar/uni-search-bar.vue +298 -0
  140. package/dist/uni-ui/uni-section/uni-section.vue +167 -0
  141. package/dist/uni-ui/uni-segmented-control/uni-segmented-control.vue +145 -0
  142. package/dist/uni-ui/uni-steps/uni-steps.vue +269 -0
  143. package/dist/uni-ui/uni-swipe-action/uni-swipe-action.vue +60 -0
  144. package/dist/uni-ui/uni-swipe-action-item/bindingx.js +302 -0
  145. package/dist/uni-ui/uni-swipe-action-item/isPC.js +12 -0
  146. package/dist/uni-ui/uni-swipe-action-item/mpalipay.js +195 -0
  147. package/dist/uni-ui/uni-swipe-action-item/mpother.js +260 -0
  148. package/dist/uni-ui/uni-swipe-action-item/mpwxs.js +84 -0
  149. package/dist/uni-ui/uni-swipe-action-item/render.js +270 -0
  150. package/dist/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +347 -0
  151. package/dist/uni-ui/uni-swipe-action-item/wx.wxs +341 -0
  152. package/dist/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +218 -0
  153. package/dist/uni-ui/uni-table/uni-table.vue +455 -0
  154. package/dist/uni-ui/uni-tag/uni-tag.vue +252 -0
  155. package/dist/uni-ui/uni-tbody/uni-tbody.vue +29 -0
  156. package/dist/uni-ui/uni-td/uni-td.vue +90 -0
  157. package/dist/uni-ui/uni-th/filter-dropdown.vue +511 -0
  158. package/dist/uni-ui/uni-th/uni-th.vue +285 -0
  159. package/dist/uni-ui/uni-thead/uni-thead.vue +129 -0
  160. package/dist/uni-ui/uni-title/uni-title.vue +171 -0
  161. package/dist/uni-ui/uni-tooltip/uni-tooltip.vue +68 -0
  162. package/dist/uni-ui/uni-tr/table-checkbox.vue +179 -0
  163. package/dist/uni-ui/uni-tr/uni-tr.vue +171 -0
  164. package/dist/uni-ui/uni-transition/createAnimation.js +131 -0
  165. package/dist/uni-ui/uni-transition/uni-transition.vue +281 -0
  166. package/package.json +90 -0
@@ -0,0 +1,357 @@
1
+ <template>
2
+ <view class="uni-navbar" :class="{'uni-dark':dark, 'uni-nvue-fixed': fixed}">
3
+ <view class="uni-navbar__content" :class="{ 'uni-navbar--fixed': fixed, 'uni-navbar--shadow': shadow, 'uni-navbar--border': border }"
4
+ :style="{ 'background-color': themeBgColor, 'border-bottom-color':themeColor }" >
5
+ <status-bar v-if="statusBar" />
6
+ <view :style="{ color: themeColor,backgroundColor: themeBgColor ,height:navbarHeight}"
7
+ class="uni-navbar__header">
8
+ <view @tap="onClickLeft" class="uni-navbar__header-btns uni-navbar__header-btns-left"
9
+ :style="{width:leftIconWidth}">
10
+ <slot name="left">
11
+ <view class="uni-navbar__content_view" v-if="leftIcon.length > 0">
12
+ <uni-icons :color="themeColor" :type="leftIcon" size="20" />
13
+ </view>
14
+ <view :class="{ 'uni-navbar-btn-icon-left': !leftIcon.length > 0 }" class="uni-navbar-btn-text"
15
+ v-if="leftText.length">
16
+ <text :style="{ color: themeColor, fontSize: '12px' }">{{ leftText }}</text>
17
+ </view>
18
+ </slot>
19
+ </view>
20
+ <view class="uni-navbar__header-container " @tap="onClickTitle">
21
+ <slot>
22
+ <view class="uni-navbar__header-container-inner" v-if="title.length>0">
23
+ <text class="uni-nav-bar-text uni-ellipsis-1"
24
+ :style="{color: themeColor }">{{ title }}</text>
25
+ </view>
26
+ </slot>
27
+ </view>
28
+ <view @click="onClickRight" class="uni-navbar__header-btns uni-navbar__header-btns-right"
29
+ :style="{width:rightIconWidth}">
30
+ <slot name="right">
31
+ <view v-if="rightIcon.length">
32
+ <uni-icons :color="themeColor" :type="rightIcon" size="22" />
33
+ </view>
34
+ <view class="uni-navbar-btn-text" v-if="rightText.length && !rightIcon.length">
35
+ <text class="uni-nav-bar-right-text" :style="{ color: themeColor}">{{ rightText }}</text>
36
+ </view>
37
+ </slot>
38
+ </view>
39
+ </view>
40
+ </view>
41
+ <!-- #ifndef APP-NVUE -->
42
+ <view class="uni-navbar__placeholder" v-if="fixed">
43
+ <status-bar v-if="statusBar" />
44
+ <view class="uni-navbar__placeholder-view" :style="{ height:navbarHeight}" />
45
+ </view>
46
+ <!-- #endif -->
47
+ </view>
48
+ </template>
49
+
50
+ <script>
51
+ import statusBar from "./uni-status-bar.vue";
52
+ const getVal = (val) => typeof val === 'number' ? val + 'px' : val;
53
+
54
+ /**
55
+ *
56
+ *
57
+ * NavBar 自定义导航栏
58
+ * @description 导航栏组件,主要用于头部导航
59
+ * @tutorial https://ext.dcloud.net.cn/plugin?id=52
60
+ * @property {Boolean} dark 开启黑暗模式
61
+ * @property {String} title 标题文字
62
+ * @property {String} leftText 左侧按钮文本
63
+ * @property {String} rightText 右侧按钮文本
64
+ * @property {String} leftIcon 左侧按钮图标(图标类型参考 [Icon 图标](http://ext.dcloud.net.cn/plugin?id=28) type 属性)
65
+ * @property {String} rightIcon 右侧按钮图标(图标类型参考 [Icon 图标](http://ext.dcloud.net.cn/plugin?id=28) type 属性)
66
+ * @property {String} color 图标和文字颜色
67
+ * @property {String} backgroundColor 导航栏背景颜色
68
+ * @property {Boolean} fixed = [true|false] 是否固定顶部
69
+ * @property {Boolean} statusBar = [true|false] 是否包含状态栏
70
+ * @property {Boolean} shadow = [true|false] 导航栏下是否有阴影
71
+ * @property {Boolean} stat 是否开启统计标题上报
72
+ * @event {Function} clickLeft 左侧按钮点击时触发
73
+ * @event {Function} clickRight 右侧按钮点击时触发
74
+ * @event {Function} clickTitle 中间标题点击时触发
75
+ */
76
+ export default {
77
+ name: "UniNavBar",
78
+ components: {
79
+ statusBar
80
+ },
81
+ emits: ['clickLeft', 'clickRight', 'clickTitle'],
82
+ props: {
83
+ dark: {
84
+ type: Boolean,
85
+ default: false
86
+ },
87
+ title: {
88
+ type: String,
89
+ default: ""
90
+ },
91
+ leftText: {
92
+ type: String,
93
+ default: ""
94
+ },
95
+ rightText: {
96
+ type: String,
97
+ default: ""
98
+ },
99
+ leftIcon: {
100
+ type: String,
101
+ default: ""
102
+ },
103
+ rightIcon: {
104
+ type: String,
105
+ default: ""
106
+ },
107
+ fixed: {
108
+ type: [Boolean, String],
109
+ default: false
110
+ },
111
+ color: {
112
+ type: String,
113
+ default: ""
114
+ },
115
+ backgroundColor: {
116
+ type: String,
117
+ default: ""
118
+ },
119
+ statusBar: {
120
+ type: [Boolean, String],
121
+ default: false
122
+ },
123
+ shadow: {
124
+ type: [Boolean, String],
125
+ default: false
126
+ },
127
+ border: {
128
+ type: [Boolean, String],
129
+ default: true
130
+ },
131
+ height: {
132
+ type: [Number, String],
133
+ default: 44
134
+ },
135
+ leftWidth: {
136
+ type: [Number, String],
137
+ default: 60
138
+ },
139
+ rightWidth: {
140
+ type: [Number, String],
141
+ default: 60
142
+ },
143
+ stat: {
144
+ type: [Boolean, String],
145
+ default: ''
146
+ }
147
+ },
148
+ computed: {
149
+ themeBgColor() {
150
+ if (this.dark) {
151
+ // 默认值
152
+ if (this.backgroundColor) {
153
+ return this.backgroundColor
154
+ } else {
155
+ return this.dark ? '#333' : '#FFF'
156
+ }
157
+ }
158
+ return this.backgroundColor || '#FFF'
159
+ },
160
+ themeColor() {
161
+ if (this.dark) {
162
+ // 默认值
163
+ if (this.color) {
164
+ return this.color
165
+ } else {
166
+ return this.dark ? '#fff' : '#333'
167
+ }
168
+ }
169
+ return this.color || '#333'
170
+ },
171
+ navbarHeight() {
172
+ return getVal(this.height)
173
+ },
174
+ leftIconWidth() {
175
+ return getVal(this.leftWidth)
176
+ },
177
+ rightIconWidth() {
178
+ return getVal(this.rightWidth)
179
+ }
180
+ },
181
+ mounted() {
182
+ if (uni.report && this.stat && this.title !== '') {
183
+ uni.report('title', this.title)
184
+ }
185
+ },
186
+ methods: {
187
+ onClickLeft() {
188
+ this.$emit("clickLeft");
189
+ },
190
+ onClickRight() {
191
+ this.$emit("clickRight");
192
+ },
193
+ onClickTitle() {
194
+ this.$emit("clickTitle");
195
+ }
196
+ }
197
+ };
198
+ </script>
199
+
200
+ <style lang="scss" scoped>
201
+ $nav-height: 44px;
202
+
203
+ .uni-nvue-fixed {
204
+ /* #ifdef APP-NVUE */
205
+ position: sticky;
206
+ /* #endif */
207
+ }
208
+ .uni-navbar {
209
+ // box-sizing: border-box;
210
+ }
211
+
212
+ .uni-nav-bar-text {
213
+ /* #ifdef APP-PLUS */
214
+ font-size: 34rpx;
215
+ /* #endif */
216
+ /* #ifndef APP-PLUS */
217
+ font-size: 14px;
218
+ /* #endif */
219
+ }
220
+
221
+ .uni-nav-bar-right-text {
222
+ font-size: 12px;
223
+ }
224
+
225
+ .uni-navbar__content {
226
+ position: relative;
227
+ // background-color: #fff;
228
+ // box-sizing: border-box;
229
+ background-color: transparent;
230
+ }
231
+
232
+ .uni-navbar__content_view {
233
+ // box-sizing: border-box;
234
+ }
235
+
236
+ .uni-navbar-btn-text {
237
+ /* #ifndef APP-NVUE */
238
+ display: flex;
239
+ /* #endif */
240
+ flex-direction: column;
241
+ justify-content: flex-start;
242
+ align-items: center;
243
+ line-height: 12px;
244
+ }
245
+
246
+ .uni-navbar__header {
247
+ /* #ifndef APP-NVUE */
248
+ display: flex;
249
+ /* #endif */
250
+ padding: 0 10px;
251
+ flex-direction: row;
252
+ height: $nav-height;
253
+ font-size: 12px;
254
+ }
255
+
256
+ .uni-navbar__header-btns {
257
+ /* #ifndef APP-NVUE */
258
+ overflow: hidden;
259
+ display: flex;
260
+ /* #endif */
261
+ flex-wrap: nowrap;
262
+ flex-direction: row;
263
+ width: 120rpx;
264
+ // padding: 0 6px;
265
+ justify-content: center;
266
+ align-items: center;
267
+ /* #ifdef H5 */
268
+ cursor: pointer;
269
+ /* #endif */
270
+ }
271
+
272
+ .uni-navbar__header-btns-left {
273
+ /* #ifndef APP-NVUE */
274
+ display: flex;
275
+ /* #endif */
276
+ width: 120rpx;
277
+ justify-content: flex-start;
278
+ align-items: center;
279
+ }
280
+
281
+ .uni-navbar__header-btns-right {
282
+ /* #ifndef APP-NVUE */
283
+ display: flex;
284
+ /* #endif */
285
+ flex-direction: row;
286
+ // width: 150rpx;
287
+ // padding-right: 30rpx;
288
+ justify-content: flex-end;
289
+ align-items: center;
290
+ }
291
+
292
+ .uni-navbar__header-container {
293
+ /* #ifndef APP-NVUE */
294
+ display: flex;
295
+ /* #endif */
296
+ flex: 1;
297
+ padding: 0 10px;
298
+ overflow: hidden;
299
+ }
300
+
301
+ .uni-navbar__header-container-inner {
302
+ /* #ifndef APP-NVUE */
303
+ display: flex;
304
+ /* #endif */
305
+ flex: 1;
306
+ flex-direction: row;
307
+ align-items: center;
308
+ justify-content: center;
309
+ font-size: 12px;
310
+ overflow: hidden;
311
+ // box-sizing: border-box;
312
+ }
313
+
314
+
315
+ .uni-navbar__placeholder-view {
316
+ height: $nav-height;
317
+ }
318
+
319
+ .uni-navbar--fixed {
320
+ position: fixed;
321
+ z-index: 998;
322
+ /* #ifdef H5 */
323
+ left: var(--window-left);
324
+ right: var(--window-right);
325
+ /* #endif */
326
+ /* #ifndef H5 */
327
+ left: 0;
328
+ right: 0;
329
+ /* #endif */
330
+
331
+ }
332
+
333
+ .uni-navbar--shadow {
334
+ box-shadow: 0 1px 6px #ccc;
335
+ }
336
+
337
+ .uni-navbar--border {
338
+ border-bottom-width: 1rpx;
339
+ border-bottom-style: solid;
340
+ border-bottom-color: #eee;
341
+ }
342
+
343
+ .uni-ellipsis-1 {
344
+ overflow: hidden;
345
+ /* #ifndef APP-NVUE */
346
+ white-space: nowrap;
347
+ text-overflow: ellipsis;
348
+ /* #endif */
349
+ /* #ifdef APP-NVUE */
350
+ lines: 1;
351
+ text-overflow: ellipsis;
352
+ /* #endif */
353
+ }
354
+
355
+ // 暗主题配置
356
+ .uni-dark {}
357
+ </style>
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <view :style="{ height: statusBarHeight }" class="uni-status-bar">
3
+ <slot />
4
+ </view>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: 'UniStatusBar',
10
+ data() {
11
+ return {
12
+ statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px'
13
+ }
14
+ }
15
+ }
16
+ </script>
17
+
18
+ <style lang="scss" >
19
+ .uni-status-bar {
20
+ // width: 750rpx;
21
+ height: 20px;
22
+ // height: var(--status-bar-height);
23
+ }
24
+ </style>