@vtj/materials 0.10.1-alpha.5 → 0.10.1-alpha.7
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/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +2 -2
- package/dist/assets/uni-ui/index.umd.js +3 -3
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/deps/uni-h5/style.css +1 -1
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/package.json +5 -5
- package/src/uni-h5/style.scss +0 -1
- package/src/uni-ui/components/badge.ts +5 -1
- package/src/uni-ui/components/breadcrumb.ts +76 -0
- package/src/uni-ui/components/calendar.ts +63 -0
- package/src/uni-ui/components/card.ts +113 -0
- package/src/uni-ui/components/collapse.ts +118 -0
- package/src/uni-ui/components/combox.ts +51 -0
- package/src/uni-ui/components/countdown.ts +92 -0
- package/src/uni-ui/components/dataCheckbox.ts +104 -0
- package/src/uni-ui/components/dataPicker.ts +146 -0
- package/src/uni-ui/components/dataSelect.ts +68 -0
- package/src/uni-ui/components/dateformat.ts +42 -0
- package/src/uni-ui/components/datetimePicker.ts +103 -0
- package/src/uni-ui/components/drawer.ts +38 -0
- package/src/uni-ui/components/easyinput.ts +159 -0
- package/src/uni-ui/components/fab.ts +89 -0
- package/src/uni-ui/components/fav.ts +65 -0
- package/src/uni-ui/components/filePicker.ts +127 -0
- package/src/uni-ui/components/forms.ts +209 -0
- package/src/uni-ui/components/goodsNav.ts +31 -0
- package/src/uni-ui/components/grid.ts +104 -0
- package/src/uni-ui/components/group.ts +50 -0
- package/src/uni-ui/components/icons.ts +47 -0
- package/src/uni-ui/components/index.ts +89 -1
- package/src/uni-ui/components/indexedList.ts +51 -0
- package/src/uni-ui/components/link.ts +60 -0
- package/src/uni-ui/components/list.ts +259 -0
- package/src/uni-ui/components/loadMore.ts +61 -0
- package/src/uni-ui/components/navbar.ts +121 -0
- package/src/uni-ui/components/noticeBar.ts +83 -0
- package/src/uni-ui/components/numberbox.ts +49 -0
- package/src/uni-ui/components/pagination.ts +59 -0
- package/src/uni-ui/components/popup.ts +206 -0
- package/src/uni-ui/components/rate.ts +89 -0
- package/src/uni-ui/components/row.ts +126 -0
- package/src/uni-ui/components/searchBar.ts +84 -0
- package/src/uni-ui/components/section.ts +68 -0
- package/src/uni-ui/components/segmentedControl.ts +48 -0
- package/src/uni-ui/components/steps.ts +55 -0
- package/src/uni-ui/components/swipeAction.ts +133 -0
- package/src/uni-ui/components/swiperDot.ts +114 -0
- package/src/uni-ui/components/table.ts +132 -0
- package/src/uni-ui/components/tag.ts +56 -0
- package/src/uni-ui/components/title.ts +49 -0
- package/src/uni-ui/components/tooltip.ts +32 -0
- package/src/uni-ui/components/transition.ts +49 -0
- package/src/uni-ui/index.ts +30 -13
- package/src/uni-ui/lib/uni-col/uni-col.vue +324 -0
- package/src/uni-ui/lib/uni-data-select/uni-data-select.vue +590 -0
- package/src/uni-ui/lib/uni-easyinput/common.js +54 -0
- package/src/uni-ui/lib/uni-easyinput/uni-easyinput.vue +790 -0
- package/src/uni-ui/lib/uni-forms-item/uni-forms-item.vue +630 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/en.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hans.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hant.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +231 -0
- package/src/uni-ui/lib/uni-icons/uni-icons.uvue +91 -0
- package/src/uni-ui/lib/uni-icons/uni-icons.vue +114 -0
- package/src/uni-ui/lib/uni-icons/uniicons.css +664 -0
- package/src/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
- package/src/uni-ui/lib/uni-icons/uniicons_file.ts +664 -0
- package/src/uni-ui/lib/uni-icons/uniicons_file_vue.js +649 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +144 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +404 -0
- package/src/uni-ui/lib/uni-list/uni-list.vue +123 -0
- package/src/uni-ui/lib/uni-list/uni-refresh.vue +65 -0
- package/src/uni-ui/lib/uni-list/uni-refresh.wxs +87 -0
- package/src/uni-ui/lib/uni-popup-dialog/keypress.js +45 -0
- package/src/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +324 -0
- package/src/uni-ui/lib/uni-rate/uni-rate.vue +361 -0
- package/src/uni-ui/lib/uni-table/uni-table.vue +496 -0
- package/src/uni-ui/lib/uni-td/uni-td.vue +99 -0
- package/src/uni-ui/lib/uni-th/uni-th.vue +310 -283
- package/src/uni-ui/lib/uni-tr/uni-tr.vue +194 -170
- package/src/version.ts +2 -2
- package/dist/deps/@vtj/uni/index.umd.js +0 -7
@@ -1,184 +1,208 @@
|
|
1
1
|
<template>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
<!-- #ifdef H5 -->
|
3
|
+
<!-- <tr class="uni-table-tr">
|
4
|
+
<th
|
5
|
+
v-if="selection === 'selection' && ishead"
|
6
|
+
class="checkbox"
|
7
|
+
:class="{ 'tr-table--border': border }">
|
8
|
+
<table-checkbox
|
9
|
+
:checked="checked"
|
10
|
+
:indeterminate="indeterminate"
|
11
|
+
:disabled="disabled"
|
12
|
+
@checkboxSelected="checkboxSelected"></table-checkbox>
|
13
|
+
</th>
|
14
|
+
<slot></slot> -->
|
15
|
+
<!-- <uni-th class="th-fixed">123</uni-th> -->
|
16
|
+
<!-- </tr> -->
|
17
|
+
<!-- #endif -->
|
18
|
+
<!-- #ifndef H5 -->
|
19
|
+
<view class="uni-table-tr">
|
20
|
+
<view
|
21
|
+
v-if="selection === 'selection'"
|
22
|
+
class="checkbox"
|
23
|
+
:class="{ 'tr-table--border': border }">
|
24
|
+
<table-checkbox
|
25
|
+
:checked="checked"
|
26
|
+
:indeterminate="indeterminate"
|
27
|
+
:disabled="disabled"
|
28
|
+
@checkboxSelected="checkboxSelected"></table-checkbox>
|
29
|
+
</view>
|
30
|
+
<slot></slot>
|
31
|
+
</view>
|
32
|
+
<!-- #endif -->
|
21
33
|
</template>
|
22
34
|
|
23
35
|
<script>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
36
|
+
import tableCheckbox from './table-checkbox.vue';
|
37
|
+
/**
|
38
|
+
* Tr 表格行组件
|
39
|
+
* @description 表格行组件 仅包含 th,td 组件
|
40
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=
|
41
|
+
*/
|
42
|
+
export default {
|
43
|
+
name: 'uniTr',
|
44
|
+
components: {
|
45
|
+
tableCheckbox
|
46
|
+
},
|
47
|
+
props: {
|
48
|
+
disabled: {
|
49
|
+
type: Boolean,
|
50
|
+
default: false
|
51
|
+
},
|
52
|
+
keyValue: {
|
53
|
+
type: [String, Number],
|
54
|
+
default: ''
|
55
|
+
}
|
56
|
+
},
|
57
|
+
options: {
|
58
|
+
// #ifdef MP-TOUTIAO
|
59
|
+
virtualHost: false,
|
60
|
+
// #endif
|
61
|
+
// #ifndef MP-TOUTIAO
|
62
|
+
virtualHost: true
|
63
|
+
// #endif
|
64
|
+
},
|
65
|
+
data() {
|
66
|
+
return {
|
67
|
+
value: false,
|
68
|
+
border: false,
|
69
|
+
selection: false,
|
70
|
+
widthThArr: [],
|
71
|
+
ishead: true,
|
72
|
+
checked: false,
|
73
|
+
indeterminate: false
|
74
|
+
};
|
75
|
+
},
|
76
|
+
created() {
|
77
|
+
this.root = this.getTable();
|
78
|
+
this.head = this.getTable('uniThead');
|
79
|
+
if (this.head) {
|
80
|
+
this.ishead = false;
|
81
|
+
this.head.init(this);
|
82
|
+
}
|
83
|
+
this.border = this.root.border;
|
84
|
+
this.selection = this.root.type;
|
85
|
+
this.root.trChildren.push(this);
|
86
|
+
const rowData = this.root.data.find(
|
87
|
+
(v) => v[this.root.rowKey] === this.keyValue
|
88
|
+
);
|
89
|
+
if (rowData) {
|
90
|
+
this.rowData = rowData;
|
91
|
+
}
|
92
|
+
this.root.isNodata();
|
93
|
+
},
|
94
|
+
mounted() {
|
95
|
+
if (this.widthThArr.length > 0) {
|
96
|
+
const selectionWidth = this.selection === 'selection' ? 50 : 0;
|
97
|
+
this.root.minWidth =
|
98
|
+
Number(this.widthThArr.reduce((a, b) => Number(a) + Number(b))) +
|
99
|
+
selectionWidth;
|
100
|
+
}
|
101
|
+
},
|
102
|
+
// #ifndef VUE3
|
103
|
+
destroyed() {
|
104
|
+
const index = this.root.trChildren.findIndex((i) => i === this);
|
105
|
+
this.root.trChildren.splice(index, 1);
|
106
|
+
this.root.isNodata();
|
107
|
+
},
|
108
|
+
// #endif
|
109
|
+
// #ifdef VUE3
|
110
|
+
unmounted() {
|
111
|
+
const index = this.root.trChildren.findIndex((i) => i === this);
|
112
|
+
this.root.trChildren.splice(index, 1);
|
113
|
+
this.root.isNodata();
|
114
|
+
},
|
115
|
+
// #endif
|
116
|
+
methods: {
|
117
|
+
minWidthUpdate(width) {
|
118
|
+
this.widthThArr.push(width);
|
119
|
+
if (this.widthThArr.length > 0) {
|
120
|
+
const selectionWidth = this.selection === 'selection' ? 50 : 0;
|
121
|
+
this.root.minWidth =
|
122
|
+
Number(this.widthThArr.reduce((a, b) => Number(a) + Number(b))) +
|
123
|
+
selectionWidth;
|
124
|
+
}
|
125
|
+
},
|
126
|
+
// 选中
|
127
|
+
checkboxSelected(e) {
|
128
|
+
let rootData = this.root.data.find(
|
129
|
+
(v) => v[this.root.rowKey] === this.keyValue
|
130
|
+
);
|
131
|
+
this.checked = e.checked;
|
132
|
+
this.root.check(
|
133
|
+
rootData || this,
|
134
|
+
e.checked,
|
135
|
+
rootData ? this.keyValue : null
|
136
|
+
);
|
137
|
+
},
|
138
|
+
change(e) {
|
139
|
+
this.root.trChildren.forEach((item) => {
|
140
|
+
if (item === this) {
|
141
|
+
this.root.check(this, e.detail.value.length > 0 ? true : false);
|
142
|
+
}
|
143
|
+
});
|
144
|
+
},
|
145
|
+
/**
|
146
|
+
* 获取父元素实例
|
147
|
+
*/
|
148
|
+
getTable(name = 'uniTable') {
|
149
|
+
let parent = this.$parent;
|
150
|
+
let parentName = parent.$options.name;
|
151
|
+
while (parentName !== name) {
|
152
|
+
parent = parent.$parent;
|
153
|
+
if (!parent) return false;
|
154
|
+
parentName = parent.$options.name;
|
155
|
+
}
|
156
|
+
return parent;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
};
|
136
160
|
</script>
|
137
161
|
|
138
162
|
<style lang="scss">
|
139
|
-
|
163
|
+
$border-color: #ebeef5;
|
140
164
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
165
|
+
.uni-table-tr {
|
166
|
+
/* #ifndef APP-NVUE */
|
167
|
+
display: table-row;
|
168
|
+
transition: all 0.3s;
|
169
|
+
box-sizing: border-box;
|
170
|
+
/* #endif */
|
171
|
+
}
|
148
172
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
173
|
+
.checkbox {
|
174
|
+
padding: 0 8px;
|
175
|
+
width: 26px;
|
176
|
+
padding-left: 12px;
|
177
|
+
/* #ifndef APP-NVUE */
|
178
|
+
display: table-cell;
|
179
|
+
vertical-align: middle;
|
180
|
+
/* #endif */
|
181
|
+
color: #333;
|
182
|
+
font-weight: 500;
|
183
|
+
border-bottom: 1px $border-color solid;
|
184
|
+
font-size: 14px;
|
185
|
+
// text-align: center;
|
186
|
+
}
|
163
187
|
|
164
|
-
|
165
|
-
|
166
|
-
|
188
|
+
.tr-table--border {
|
189
|
+
border-right: 1px $border-color solid;
|
190
|
+
}
|
167
191
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
192
|
+
/* #ifndef APP-NVUE */
|
193
|
+
.uni-table-tr {
|
194
|
+
::v-deep .uni-table-th {
|
195
|
+
&.table--border:last-child {
|
196
|
+
// border-right: none;
|
197
|
+
}
|
198
|
+
}
|
175
199
|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
200
|
+
::v-deep .uni-table-td {
|
201
|
+
&.table--border:last-child {
|
202
|
+
// border-right: none;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
182
206
|
|
183
|
-
|
207
|
+
/* #endif */
|
184
208
|
</style>
|
package/src/version.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/materials
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.10.1-alpha.
|
5
|
+
* @version 0.10.1-alpha.7
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export const version = '0.10.1-alpha.
|
8
|
+
export const version = '0.10.1-alpha.7';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
(function(r,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("@vtj/renderer")):typeof define=="function"&&define.amd?define(["exports","@vtj/renderer"],f):(r=typeof globalThis<"u"?globalThis:r||self,f(r.VtjUni={},r.renderer))})(this,function(r,f){"use strict";/**!
|
2
|
-
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
|
-
* @name @vtj/uni
|
4
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.10.1-alpha.5
|
6
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
|
-
*/const P="0.10.1-alpha.5",A=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],O=["onLoad","onShow","onReady","onHide","onUnload","onResize","onPullDownRefresh","onReachBottom","onTabItemTap","onShareAppMessage","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onShareTimeline","onAddToFavorites","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],T="/pages",U={name:"VTJ",appid:"__UNI__1FC118B",description:"VTJ移动跨端项目",versionName:"1.0.0",versionCode:"100",transformPx:!1,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:{},"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:{enable:!1},vueVersion:"3"},N={pages:[],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}}};function L(e){const[t,...n]=e;return[t.toLowerCase(),...n].join("").replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}function I(e){let{manifestJson:t={},pagesJson:n={},routes:o=[]}=e;const i=o.map(c=>{const{path:a,style:p,needLogin:_}=c;return{path:a,style:p,needLogin:_}});return{...e,manifestJson:Object.assign({},U,t),pagesJson:Object.assign({},N,n,{pages:i})}}const m={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function S(e){const t={},n={black:"#000000",white:"#ffffff"};for(const o in e)m[o]&&(t[m[o]]=o==="navigationBarTextStyle"?n[e[o]]||n.black:e[o]);return t}function h(e){const t={};for(const n in e)m[n]||(t[n]=e[n]);return t}function V(e){var o;const n=e.split("?")[0].match(/\#\/pages\/([\w\W]*)/i);return(o=n==null?void 0:n[1])!=null?o:""}function k(e){var n;const t=e.h5;return((n=t==null?void 0:t.router)==null?void 0:n.mode)||"hash"}function W(e){var t,n,o;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((n=e.leftWindow)!=null&&n.path),rightWindow:!!((o=e.rightWindow)!=null&&o.path)}}function j(e){const{pagesJson:t={}}=e,{globalStyle:n,pages:o=[]}=t;return!!(n!=null&&n.enablePullDownRefresh||o.find(i=>{var c;return!!((c=i.style)!=null&&c.enablePullDownRefresh)}))}function G(e){const{pagesJson:t={}}=e,{globalStyle:n,pages:o=[]}=t;let i=!1;return(n==null?void 0:n.navigationStyle)==="custom"?(i=!0,o.find(c=>{var a;return((a=c.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):o.every(c=>{var a;return((a=c.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function D(e){var p;const t=G(e),n={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:o={}}=e,{globalStyle:i,pages:c=[]}=o;if(t)return n;n.navigationBar=!0;const a=(p=i==null?void 0:i.h5)==null?void 0:p.titleNView;return c.find(_=>{var s,u,d;return!!((d=(u=(s=_.style)==null?void 0:s.h5)==null?void 0:u.titleNView)!=null&&d.buttons.length)})&&(n.navigationBarButtons=!0),(a!=null&&a.searchInput||c.find(_=>{var s,u,d;return!!((d=(u=(s=_.style)==null?void 0:s.h5)==null?void 0:u.titleNView)!=null&&d.searchInput)}))&&(n.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||c.find(_=>{var s,u,d;return((d=(u=(s=_.style)==null?void 0:s.h5)==null?void 0:u.titleNView)==null?void 0:d.type)==="transparent"}))&&(n.navigationBarTransparent=!0),n}function R(e,t=window){var l,E,g,b;const{pagesJson:n={},manifestJson:o={}}=e,{topWindow:i,leftWindow:c,rightWindow:a}=W(n),{navigationBar:p,navigationBarButtons:_,navigationBarSearchInput:s,navigationBarTransparent:u}=D(e),d={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:k(o),__UNI_FEATURE_PAGES__:!!((l=n.pages)!=null&&l.length),__UNI_FEATURE_TABBAR__:!!((g=(E=n.tabBar)==null?void 0:E.list)!=null&&g.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((b=n.tabBar)!=null&&b.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:c,__UNI_FEATURE_RIGHTWINDOW__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:p,__UNI_FEATURE_PULL_DOWN_REFRESH__:j(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:_,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:s,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:u};Object.entries(d).forEach(([z,X])=>{t[z]=X})}const M="4.45";function C(e,t=window){var d,l;const{pagesJson:n={},manifestJson:o={}}=e,{easycom:i={}}=n,{appid:c="",name:a="",versionCode:p="",versionName:_=""}=o,s=n.globalStyle,u=((d=o.h5)==null?void 0:d.router)||{};t.__uniConfig={easycom:i,globalStyle:{...h(s),navigationBar:S(s),isNVue:!1},compilerVersion:M,appId:c,appName:a,appVersion:_,appVersionCode:String(p),async:{loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0,...((l=o.h5)==null?void 0:l.async)||{}},debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4,...o.networkTimeout||{}},sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:{mode:"hash",base:"/",assets:"assets",routerBase:u.base||"/",...u},darkmode:!1,themeConfig:{},tabBar:n.tabBar?{position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0,...n.tabBar}:void 0}}function w(e,t=window){const{UniServiceJSBridge:n,UniViewJSBridge:o,getApp:i,uni:c,getCurrentPages:a,upx2px:p,setupPage:_}=e;t.UniServiceJSBridge=n,t.UniViewJSBridge=o,t.getApp=i,t.uni=c,t.wx=c,t.getCurrentPages=a,t.upx2px=p,t.__setupPage=s=>_(s)}function J(e,t,n){const{defineAsyncComponent:o,openBlock:i,createBlock:c,withCtx:a,createVNode:p}=e,{PageComponent:_,setupPage:s,getApp:u}=t;return{mpType:"page",setup(){var g;const d=u(),l=((g=d==null?void 0:d.$route)==null?void 0:g.query)||{},E=typeof n=="function"?o(n):n;return()=>(i(),c(_,null,{page:a(()=>[p(s(E),Object.assign({},l,{ref:"page"}),null,512)]),_:1}))}}}function H(e,t,n){var d;const{path:o,style:i={},meta:c={},home:a}=t,_=(((d=e.tabBar)==null?void 0:d.list)||[]).findIndex(l=>l.pagePath===o),s=_>-1,u=n===0;return{isTabBar:s,tabBarIndex:_,isQuit:a!=null?a:u,isEntry:a!=null?a:u,navigationBar:{type:"default",...S(i)},isNVue:!1,route:o,...c}}function B(e,t,n,o,i=window){const c=n.map((a,p)=>{const _=H(o,a,p),s=J(e,t,a.component),{path:u}=a;return{path:u,alias:u,meta:_,component:s}});i.__uniRoutes=c,i.__uniLayout={}}function y(e,t,n=window){f.adoptedStyleSheets(n,String(e),t)}function v(e,t){if(!t)return;["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(o=>{const i=t[o];e.component(o,i)})}function x(e){const t=I(e),{Vue:n,App:o,UniH5:i,routes:c=[],pagesJson:a={},manifestJson:p={},window:_,css:s=""}=t,{plugin:u,setupApp:d}=i;R(t,_),C(t,_),w(i,_),B(n,i,c,a,_),y(p.appid||Date.now(),s,_);const l=n.createApp(d(o));return l.use(v,i),l.use(u),l}function $(e,t){const n={};return Object.entries(e).forEach(([o,i])=>{A.includes(o)&&i&&(n[o]=t(i))}),n}async function q(e,t=!1,n=T){var a,p,_;const o=((a=e.project)==null?void 0:a.pages)||[],i=[];for(const s of o){const u=await e.getDsl(s.id);if(!u)continue;const{renderer:d}=e.createDslRenderer(u),l=((p=e.project)==null?void 0:p.homepage)===s.id;i.push({id:s.id,path:`${n}/${s.id}`,component:d,style:{navigationBarTitleText:s.title,...s.style},needLogin:s.needLogin,home:l})}const c=i.find(s=>!!s.home)||i[0];if(c){const s=n===T?"/":n;i.unshift({...c,path:s})}if(t){const s=((_=e.project)==null?void 0:_.blocks)||[];for(const u of s){const d=await e.getDsl(u.id);if(!d)continue;const{renderer:l}=e.createDslRenderer(d);i.push({id:u.id,path:`${n}/${u.id}`,component:l,style:{navigationStyle:"custom"}})}}return i}function K(){if(window.uni)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{window.uni.hideLoading()}}}function F(e,t="",n="warning"){window.uni&&window.uni.showModal({title:t,content:e,showCancel:!1})}function Y(e){F(e)}r.APP_LIFE_CYCLE=A,r.MANIFEST_JSON=U,r.PAGES_JSON=N,r.PAGE_LIFE_CYCLES_LIST=O,r.ROUTE_PAGE_BASE_PATH=T,r.alert=Y,r.createUniAppComponent=$,r.createUniRoutes=q,r.getFileId=V,r.getGobalStyle=h,r.getNavigationBar=S,r.injectUniCSS=y,r.injectUniConfig=C,r.injectUniFeatures=R,r.injectUniGlobal=w,r.injectUniRoutes=B,r.install=v,r.loading=K,r.mergeOptions=I,r.navigationBarMaps=m,r.notify=F,r.setupUniApp=x,r.toKebabCase=L,r.version=P,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|