v-uni-app-ui 1.0.0 → 1.0.4
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/README.md +147 -0
- package/components/config/css/basic.scss +19 -0
- package/components/config/interface/basic-type.js +16 -0
- package/components/config/interface/components-interface.ts +0 -0
- package/components/config/interface/monitor/components/input-monitor.js +0 -0
- package/components/config/interface/monitor/property-monitor.ts +136 -0
- package/components/config/interface/props/basic-props.ts +88 -0
- package/components/config/interface/props/components/button-props.ts +85 -0
- package/components/config/interface/props/components/input-props.ts +69 -0
- package/components/config/interface/props/props-tools.ts +64 -0
- package/components/config/style/basic.js +346 -0
- package/components/config/style/component-registry.js +142 -0
- package/components/config/style/components/button-style.js +160 -0
- package/components/config/style/components/input-style.js +98 -0
- package/components/config/style/components-style.js +622 -0
- package/components/config/style/property-mapper.js +377 -0
- package/components/config/style/pseudo-processor.js +213 -0
- package/components/config.js +123 -0
- package/components/icon/iconfont.css +87 -0
- package/components/icon/iconfont.js +1 -0
- package/components/icon/iconfont.json +135 -0
- package/components/icon/iconfont.ttf +0 -0
- package/components/icon/iconfont.woff +0 -0
- package/components/icon/iconfont.woff2 +0 -0
- package/components/layout/v-card/v-card.vue +108 -0
- package/components/layout/v-grid/v-grid.vue +162 -0
- package/components/layout/v-icon-grid/v-icon-grid.vue +195 -0
- package/components/layout/v-infinite-scroll/v-infinite-scroll.vue +172 -0
- package/components/layout/v-list/v-list.vue +43 -0
- package/components/layout/v-row/v-row.vue +142 -0
- package/components/layout/v-waterfall/v-waterfall.vue +79 -0
- package/components/model/compound/v-checkbox-group/v-checkbox-group.vue +96 -0
- package/components/model/compound/v-console/v-console.js +20 -0
- package/components/model/compound/v-console/v-console.vue +299 -0
- package/components/model/compound/v-date-time/v-date-time.vue +261 -0
- package/components/model/compound/v-dialog/v-dialog.vue +178 -0
- package/components/model/compound/v-drum-select-picker/v-drum-select-picker.vue +83 -0
- package/components/model/compound/v-form/v-form.vue +226 -0
- package/components/model/compound/v-form-item/v-form-item.vue +255 -0
- package/components/model/compound/v-image/v-image.vue +357 -0
- package/components/model/compound/v-input-desensitize/v-input-desensitize.vue +101 -0
- package/components/model/compound/v-page/v-page.vue +11 -0
- package/components/model/compound/v-pages/v-pages.vue +141 -0
- package/components/model/compound/v-picker-list/v-picker-list.vue +109 -0
- package/components/model/compound/v-popup/v-popup.vue +151 -0
- package/components/model/compound/v-radio-group/v-radio-group.vue +86 -0
- package/components/model/compound/v-select-picker/v-select-picker.vue +202 -0
- package/components/model/compound/v-series-picker-list/v-series-picker-list.vue +221 -0
- package/components/model/compound/v-series-select-picker/v-series-select-picker.vue +203 -0
- package/components/model/compound/v-switch/v-switch.vue +136 -0
- package/components/model/compound/v-tabs-page/v-tabs-page.vue +138 -0
- package/components/model/native/v-badge/v-badge.vue +143 -0
- package/components/model/native/v-button/v-button.vue +81 -0
- package/components/model/native/v-carousel/v-carousel.vue +138 -0
- package/components/model/native/v-checkbox/v-checkbox.vue +215 -0
- package/components/model/native/v-collapse/v-collapse.vue +190 -0
- package/components/model/native/v-header-navigation-bar/v-header-navigation-bar.vue +92 -0
- package/components/model/native/v-input/v-input.vue +163 -0
- package/components/model/native/v-input-code/v-input-code.vue +146 -0
- package/components/model/native/v-loading/v-loading.vue +206 -0
- package/components/model/native/v-menu/v-menu.vue +222 -0
- package/components/model/native/v-menu-slide/v-menu-slide.vue +364 -0
- package/components/model/native/v-min-loading/v-min-loading.vue +80 -0
- package/components/model/native/v-null/v-null.vue +97 -0
- package/components/model/native/v-overlay/v-overlay.vue +96 -0
- package/components/model/native/v-pull-up-refresh/v-pull-up-refresh.vue +157 -0
- package/components/model/native/v-radio/v-radio.vue +138 -0
- package/components/model/native/v-scroll-list/v-scroll-list.vue +169 -0
- package/components/model/native/v-steps/v-steps.vue +253 -0
- package/components/model/native/v-table/v-table.vue +203 -0
- package/components/model/native/v-tabs/v-tabs.vue +235 -0
- package/components/model/native/v-tag/v-tag.vue +206 -0
- package/components/model/native/v-text/v-text.vue +187 -0
- package/components/model/native/v-textarea/v-textarea.vue +178 -0
- package/components/model/native/v-title/v-title.vue +91 -0
- package/components/model/native/v-toast/info.png +0 -0
- package/components/model/native/v-toast/success.png +0 -0
- package/components/model/native/v-toast/v-toast.vue +198 -0
- package/components/model/native/v-toast/warn.png +0 -0
- package/components/model/native/v-upload-file-button/v-upload-file-button.vue +296 -0
- package/components/model/native/v-video/v-video.vue +175 -0
- package/components/model/native/v-window/v-window.vue +158 -0
- package/components/utils/event-modifiers.ts +139 -0
- package/components/utils/validator.ts +451 -0
- package/index.js +372 -0
- package/package.json +25 -93
package/index.js
ADDED
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
// index.js - v-uni-app-ui 组件库主入口文件
|
|
2
|
+
|
|
3
|
+
// 导入所有组件
|
|
4
|
+
import VButton from './components/model/native/v-button/v-button.vue'
|
|
5
|
+
import VTextButton from './components/model/native/v-text-button/v-text-button.vue'
|
|
6
|
+
import VInput from './components/model/native/v-input/v-input.vue'
|
|
7
|
+
import VPickerList from './components/model/compound/v-picker-list/v-picker-list.vue'
|
|
8
|
+
import VSeriesPickerList from './components/model/compound/v-series-picker-list/v-series-picker-list.vue'
|
|
9
|
+
import VRadio from './components/model/native/v-radio/v-radio.vue'
|
|
10
|
+
import VCheckbox from './components/model/native/v-checkbox/v-checkbox.vue'
|
|
11
|
+
import VTextarea from './components/model/native/v-textarea/v-textarea.vue'
|
|
12
|
+
import VTag from './components/model/native/v-tag/v-tag.vue'
|
|
13
|
+
import VBadge from './components/model/native/v-badge/v-badge.vue'
|
|
14
|
+
import VText from './components/model/native/v-text/v-text.vue'
|
|
15
|
+
import VLoading from './components/model/native/v-loading/v-loading.vue'
|
|
16
|
+
import VRow from './components/layout/v-row/v-row.vue'
|
|
17
|
+
import VList from './components/layout/v-list/v-list.vue'
|
|
18
|
+
import VWindow from './components/model/native/v-window/v-window.vue'
|
|
19
|
+
import VDialog from './components/model/compound/v-dialog/v-dialog.vue'
|
|
20
|
+
import VSelectPicker from './components/model/compound/v-select-picker/v-select-picker.vue'
|
|
21
|
+
import VSeriesSelectPicker from './components/model/compound/v-series-select-picker/v-series-select-picker.vue'
|
|
22
|
+
import VTabs from './components/model/native/v-tabs/v-tabs.vue'
|
|
23
|
+
import VCarousel from './components/model/native/v-carousel/v-carousel.vue'
|
|
24
|
+
import VTabsPage from './components/model/compound/v-tabs-page/v-tabs-page.vue'
|
|
25
|
+
import VPages from './components/model/compound/v-pages/v-pages.vue'
|
|
26
|
+
import VInfiniteScroll from './components/layout/v-infinite-scroll/v-infinite-scroll.vue'
|
|
27
|
+
import VRadioGroup from './components/model/compound/v-radio-group/v-radio-group.vue'
|
|
28
|
+
import VCheckboxGroup from './components/model/compound/v-checkbox-group/v-checkbox-group.vue'
|
|
29
|
+
import VUploadFileButton from './components/model/native/v-upload-file-button/v-upload-file-button.vue'
|
|
30
|
+
import VForm from './components/model/compound/v-form/v-form.vue'
|
|
31
|
+
import VFormItem from './components/model/compound/v-form-item/v-form-item.vue'
|
|
32
|
+
import VMenu from './components/model/native/v-menu/v-menu.vue'
|
|
33
|
+
import VMenuSlide from './components/model/native/v-menu-slide/v-menu-slide.vue'
|
|
34
|
+
import VPopup from './components/model/compound/v-popup/v-popup.vue'
|
|
35
|
+
import VGrid from './components/layout/v-grid/v-grid.vue'
|
|
36
|
+
import VIconGrid from './components/layout/v-icon-grid/v-icon-grid.vue'
|
|
37
|
+
import VWaterfall from './components/layout/v-waterfall/v-waterfall.vue'
|
|
38
|
+
import VCard from './components/layout/v-card/v-card.vue'
|
|
39
|
+
import VTable from './components/model/native/v-table/v-table.vue'
|
|
40
|
+
import VOverlay from './components/model/native/v-overlay/v-overlay.vue'
|
|
41
|
+
import VSwitch from './components/model/compound/v-switch/v-switch.vue'
|
|
42
|
+
import VHeaderNavigationBar from './components/model/native/v-header-navigation-bar/v-header-navigation-bar.vue'
|
|
43
|
+
import VMinLoading from './components/model/native/v-min-loading/v-min-loading.vue'
|
|
44
|
+
import VPullUpRefresh from './components/model/native/v-pull-up-refresh/v-pull-up-refresh.vue'
|
|
45
|
+
import VNull from './components/model/native/v-null/v-null.vue'
|
|
46
|
+
import VDateTime from './components/model/compound/v-date-time/v-date-time.vue'
|
|
47
|
+
import VDrumSelectPicker from './components/model/compound/v-drum-select-picker/v-drum-select-picker.vue'
|
|
48
|
+
import VScrollList from './components/model/native/v-scroll-list/v-scroll-list.vue'
|
|
49
|
+
import VInputCode from './components/model/native/v-input-code/v-input-code.vue'
|
|
50
|
+
import VCollapse from './components/model/native/v-collapse/v-collapse.vue'
|
|
51
|
+
import VSteps from './components/model/native/v-steps/v-steps.vue'
|
|
52
|
+
import VTitle from './components/model/native/v-title/v-title.vue'
|
|
53
|
+
import VImage from './components/model/compound/v-image/v-image.vue'
|
|
54
|
+
import VToast from './components/model/native/v-toast/v-toast.vue'
|
|
55
|
+
import VInputDesensitize from './components/model/compound/v-input-desensitize/v-input-desensitize.vue'
|
|
56
|
+
import VConsole from './components/model/compound/v-console/v-console.vue'
|
|
57
|
+
|
|
58
|
+
// 导入配置和 VConsole 初始化函数
|
|
59
|
+
import {
|
|
60
|
+
config
|
|
61
|
+
} from './components/config'
|
|
62
|
+
import {
|
|
63
|
+
initVConsole
|
|
64
|
+
} from './components/model/compound/v-console/v-console.js'
|
|
65
|
+
|
|
66
|
+
// 初始化 VConsole(可选)
|
|
67
|
+
// 注意:在实际项目中,用户可能需要根据环境决定是否初始化
|
|
68
|
+
if (typeof window !== 'undefined') {
|
|
69
|
+
// 可以根据环境变量或配置决定是否初始化
|
|
70
|
+
// initVConsole();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Toast 实例(如果需要全局 Toast)
|
|
74
|
+
let toastInstance = null
|
|
75
|
+
|
|
76
|
+
// 所有组件的集合
|
|
77
|
+
const components = {
|
|
78
|
+
VButton,
|
|
79
|
+
VTextButton,
|
|
80
|
+
VInput,
|
|
81
|
+
VPickerList,
|
|
82
|
+
VSeriesPickerList,
|
|
83
|
+
VRadio,
|
|
84
|
+
VCheckbox,
|
|
85
|
+
VTextarea,
|
|
86
|
+
VTag,
|
|
87
|
+
VBadge,
|
|
88
|
+
VText,
|
|
89
|
+
VLoading,
|
|
90
|
+
VRow,
|
|
91
|
+
VList,
|
|
92
|
+
VWindow,
|
|
93
|
+
VDialog,
|
|
94
|
+
VSelectPicker,
|
|
95
|
+
VSeriesSelectPicker,
|
|
96
|
+
VTabs,
|
|
97
|
+
VCarousel,
|
|
98
|
+
VTabsPage,
|
|
99
|
+
VPages,
|
|
100
|
+
VInfiniteScroll,
|
|
101
|
+
VRadioGroup,
|
|
102
|
+
VCheckboxGroup,
|
|
103
|
+
VUploadFileButton,
|
|
104
|
+
VForm,
|
|
105
|
+
VFormItem,
|
|
106
|
+
VMenu,
|
|
107
|
+
VMenuSlide,
|
|
108
|
+
VPopup,
|
|
109
|
+
VGrid,
|
|
110
|
+
VIconGrid,
|
|
111
|
+
VWaterfall,
|
|
112
|
+
VCard,
|
|
113
|
+
VTable,
|
|
114
|
+
VOverlay,
|
|
115
|
+
VSwitch,
|
|
116
|
+
VHeaderNavigationBar,
|
|
117
|
+
VMinLoading,
|
|
118
|
+
VPullUpRefresh,
|
|
119
|
+
VNull,
|
|
120
|
+
VDateTime,
|
|
121
|
+
VDrumSelectPicker,
|
|
122
|
+
VScrollList,
|
|
123
|
+
VInputCode,
|
|
124
|
+
VCollapse,
|
|
125
|
+
VSteps,
|
|
126
|
+
VTitle,
|
|
127
|
+
VImage,
|
|
128
|
+
VToast,
|
|
129
|
+
VInputDesensitize,
|
|
130
|
+
VConsole
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Vue 3 插件安装函数
|
|
134
|
+
const install = (app, options = {}) => {
|
|
135
|
+
// 批量注册所有组件
|
|
136
|
+
app.component('VButton', VButton)
|
|
137
|
+
app.component('VTextButton', VTextButton)
|
|
138
|
+
app.component('VInput', VInput)
|
|
139
|
+
app.component('VPickerList', VPickerList)
|
|
140
|
+
app.component('VSeriesPickerList', VSeriesPickerList)
|
|
141
|
+
app.component('VRadio', VRadio)
|
|
142
|
+
app.component('VCheckbox', VCheckbox)
|
|
143
|
+
app.component('VTextarea', VTextarea)
|
|
144
|
+
app.component('VTag', VTag)
|
|
145
|
+
app.component('VBadge', VBadge)
|
|
146
|
+
app.component('VText', VText)
|
|
147
|
+
app.component('VLoading', VLoading)
|
|
148
|
+
app.component('VRow', VRow)
|
|
149
|
+
app.component('VList', VList)
|
|
150
|
+
app.component('VWindow', VWindow)
|
|
151
|
+
app.component('VDialog', VDialog)
|
|
152
|
+
app.component('VSelectPicker', VSelectPicker)
|
|
153
|
+
app.component('VSeriesSelectPicker', VSeriesSelectPicker)
|
|
154
|
+
app.component('VTabs', VTabs)
|
|
155
|
+
app.component('VCarousel', VCarousel)
|
|
156
|
+
app.component('VTabsPage', VTabsPage)
|
|
157
|
+
app.component('VPages', VPages)
|
|
158
|
+
app.component('VInfiniteScroll', VInfiniteScroll)
|
|
159
|
+
app.component('VRadioGroup', VRadioGroup)
|
|
160
|
+
app.component('VCheckboxGroup', VCheckboxGroup)
|
|
161
|
+
app.component('VUploadFileButton', VUploadFileButton)
|
|
162
|
+
app.component('VForm', VForm)
|
|
163
|
+
app.component('VFormItem', VFormItem)
|
|
164
|
+
app.component('VMenu', VMenu)
|
|
165
|
+
app.component('VMenuSlide', VMenuSlide)
|
|
166
|
+
app.component('VPopup', VPopup)
|
|
167
|
+
app.component('VGrid', VGrid)
|
|
168
|
+
app.component('VIconGrid', VIconGrid)
|
|
169
|
+
app.component('VWaterfall', VWaterfall)
|
|
170
|
+
app.component('VCard', VCard)
|
|
171
|
+
app.component('VTable', VTable)
|
|
172
|
+
app.component('VOverlay', VOverlay)
|
|
173
|
+
app.component('VSwitch', VSwitch)
|
|
174
|
+
app.component('VHeaderNavigationBar', VHeaderNavigationBar)
|
|
175
|
+
app.component('VMinLoading', VMinLoading)
|
|
176
|
+
app.component('VPullUpRefresh', VPullUpRefresh)
|
|
177
|
+
app.component('VNull', VNull)
|
|
178
|
+
app.component('VDateTime', VDateTime)
|
|
179
|
+
app.component('VDrumSelectPicker', VDrumSelectPicker)
|
|
180
|
+
app.component('VScrollList', VScrollList)
|
|
181
|
+
app.component('VInputCode', VInputCode)
|
|
182
|
+
app.component('VCollapse', VCollapse)
|
|
183
|
+
app.component('VSteps', VSteps)
|
|
184
|
+
app.component('VTitle', VTitle)
|
|
185
|
+
app.component('VImage', VImage)
|
|
186
|
+
app.component('VToast', VToast)
|
|
187
|
+
app.component('VInputDesensitize', VInputDesensitize)
|
|
188
|
+
app.component('VConsole', VConsole)
|
|
189
|
+
|
|
190
|
+
// 提供配置文件
|
|
191
|
+
app.provide('vUniAppUiConfig', config)
|
|
192
|
+
|
|
193
|
+
// 合并用户配置
|
|
194
|
+
if (options.config) {
|
|
195
|
+
const mergedConfig = {
|
|
196
|
+
...config,
|
|
197
|
+
...options.config
|
|
198
|
+
}
|
|
199
|
+
app.provide('vUniAppUiConfig', mergedConfig)
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// 注册全局方法
|
|
203
|
+
// Toast 方法
|
|
204
|
+
app.config.globalProperties.$toast = {
|
|
205
|
+
show: (message, options = {}) => {
|
|
206
|
+
// 这里实现 toast 显示逻辑
|
|
207
|
+
// 实际使用时可能需要通过组件实例调用
|
|
208
|
+
console.log('[v-uni-app-ui] Toast:', message, options)
|
|
209
|
+
// 可以在实际项目中通过 VToast 组件的方法来实现
|
|
210
|
+
return Promise.resolve()
|
|
211
|
+
},
|
|
212
|
+
success: (message, duration = 2000) => {
|
|
213
|
+
return app.config.globalProperties.$toast.show(message, {
|
|
214
|
+
type: 'success',
|
|
215
|
+
duration
|
|
216
|
+
})
|
|
217
|
+
},
|
|
218
|
+
error: (message, duration = 2000) => {
|
|
219
|
+
return app.config.globalProperties.$toast.show(message, {
|
|
220
|
+
type: 'error',
|
|
221
|
+
duration
|
|
222
|
+
})
|
|
223
|
+
},
|
|
224
|
+
info: (message, duration = 2000) => {
|
|
225
|
+
return app.config.globalProperties.$toast.show(message, {
|
|
226
|
+
type: 'info',
|
|
227
|
+
duration
|
|
228
|
+
})
|
|
229
|
+
},
|
|
230
|
+
warning: (message, duration = 2000) => {
|
|
231
|
+
return app.config.globalProperties.$toast.show(message, {
|
|
232
|
+
type: 'warning',
|
|
233
|
+
duration
|
|
234
|
+
})
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Dialog 方法
|
|
239
|
+
app.config.globalProperties.$dialog = {
|
|
240
|
+
show: (options = {}) => {
|
|
241
|
+
console.log('[v-uni-app-ui] Dialog:', options)
|
|
242
|
+
// 实际使用时可能需要通过 VDialog 组件的方法来实现
|
|
243
|
+
return Promise.resolve()
|
|
244
|
+
},
|
|
245
|
+
confirm: (title, content, options = {}) => {
|
|
246
|
+
return app.config.globalProperties.$dialog.show({
|
|
247
|
+
title,
|
|
248
|
+
content,
|
|
249
|
+
showCancelButton: true,
|
|
250
|
+
...options
|
|
251
|
+
})
|
|
252
|
+
},
|
|
253
|
+
alert: (title, content, options = {}) => {
|
|
254
|
+
return app.config.globalProperties.$dialog.show({
|
|
255
|
+
title,
|
|
256
|
+
content,
|
|
257
|
+
showCancelButton: false,
|
|
258
|
+
...options
|
|
259
|
+
})
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Loading 方法
|
|
264
|
+
app.config.globalProperties.$loading = {
|
|
265
|
+
show: (options = {}) => {
|
|
266
|
+
console.log('[v-uni-app-ui] Loading:', options)
|
|
267
|
+
// 返回一个可以关闭 loading 的对象
|
|
268
|
+
return {
|
|
269
|
+
hide: () => {
|
|
270
|
+
console.log('[v-uni-app-ui] Loading hidden')
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
hide: () => {
|
|
275
|
+
console.log('[v-uni-app-ui] All loading hidden')
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// 初始化 VConsole(如果用户传入配置)
|
|
280
|
+
if (options.enableVConsole && typeof window !== 'undefined') {
|
|
281
|
+
try {
|
|
282
|
+
initVConsole()
|
|
283
|
+
console.log('[v-uni-app-ui] VConsole initialized')
|
|
284
|
+
} catch (e) {
|
|
285
|
+
console.warn('[v-uni-app-ui] Failed to init VConsole:', e.message)
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
console.log('[v-uni-app-ui] 组件库已安装,版本:', VERSION)
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// 自动安装(当通过 script 标签引入时)
|
|
293
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
294
|
+
install(window.Vue)
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
// 导出所有组件(用于按需引入)
|
|
299
|
+
export {
|
|
300
|
+
VButton,
|
|
301
|
+
VTextButton,
|
|
302
|
+
VInput,
|
|
303
|
+
VPickerList,
|
|
304
|
+
VSeriesPickerList,
|
|
305
|
+
VRadio,
|
|
306
|
+
VCheckbox,
|
|
307
|
+
VTextarea,
|
|
308
|
+
VTag,
|
|
309
|
+
VBadge,
|
|
310
|
+
VText,
|
|
311
|
+
VLoading,
|
|
312
|
+
VRow,
|
|
313
|
+
VList,
|
|
314
|
+
VWindow,
|
|
315
|
+
VDialog,
|
|
316
|
+
VSelectPicker,
|
|
317
|
+
VSeriesSelectPicker,
|
|
318
|
+
VTabs,
|
|
319
|
+
VCarousel,
|
|
320
|
+
VTabsPage,
|
|
321
|
+
VPages,
|
|
322
|
+
VInfiniteScroll,
|
|
323
|
+
VRadioGroup,
|
|
324
|
+
VCheckboxGroup,
|
|
325
|
+
VUploadFileButton,
|
|
326
|
+
VForm,
|
|
327
|
+
VFormItem,
|
|
328
|
+
VMenu,
|
|
329
|
+
VMenuSlide,
|
|
330
|
+
VPopup,
|
|
331
|
+
VGrid,
|
|
332
|
+
VIconGrid,
|
|
333
|
+
VWaterfall,
|
|
334
|
+
VCard,
|
|
335
|
+
VTable,
|
|
336
|
+
VOverlay,
|
|
337
|
+
VSwitch,
|
|
338
|
+
VHeaderNavigationBar,
|
|
339
|
+
VMinLoading,
|
|
340
|
+
VPullUpRefresh,
|
|
341
|
+
VNull,
|
|
342
|
+
VDateTime,
|
|
343
|
+
VDrumSelectPicker,
|
|
344
|
+
VScrollList,
|
|
345
|
+
VInputCode,
|
|
346
|
+
VCollapse,
|
|
347
|
+
VSteps,
|
|
348
|
+
VTitle,
|
|
349
|
+
VImage,
|
|
350
|
+
VToast,
|
|
351
|
+
VInputDesensitize,
|
|
352
|
+
VConsole,
|
|
353
|
+
config
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// 导出安装函数
|
|
357
|
+
export {
|
|
358
|
+
install
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// 导出组件集合
|
|
362
|
+
export {
|
|
363
|
+
components
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// 默认导出(用于全量引入)
|
|
367
|
+
export default {
|
|
368
|
+
version: '1.0.3',
|
|
369
|
+
install,
|
|
370
|
+
...components,
|
|
371
|
+
config
|
|
372
|
+
}
|
package/package.json
CHANGED
|
@@ -1,108 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v-uni-app-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "uni-app 通用 UI 组件库",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"components",
|
|
8
|
+
"index.js",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
6
11
|
"keywords": [
|
|
7
|
-
"
|
|
8
|
-
"
|
|
12
|
+
"uniapp",
|
|
13
|
+
"uni-app",
|
|
14
|
+
"vue3",
|
|
15
|
+
"vue",
|
|
16
|
+
"components",
|
|
17
|
+
"ui",
|
|
18
|
+
"小程序",
|
|
19
|
+
"移动端",
|
|
20
|
+
"IOS",
|
|
21
|
+
"鸿蒙",
|
|
22
|
+
"H5",
|
|
23
|
+
"uni-app ui"
|
|
9
24
|
],
|
|
10
25
|
"author": "FangBiShan",
|
|
11
26
|
"license": "MIT",
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"vue": "^3.0.0"
|
|
29
|
+
},
|
|
12
30
|
"devDependencies": {
|
|
31
|
+
"@eslint/js": "^9.39.2",
|
|
13
32
|
"@types/uni-app": "^1.4.8",
|
|
14
|
-
"@typescript-eslint/eslint-plugin": "^8.50.1",
|
|
15
|
-
"@typescript-eslint/parser": "^8.50.1",
|
|
16
|
-
"sass": "^1.87.0",
|
|
17
|
-
"scss": "^0.2.4"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"acorn": "^8.15.0",
|
|
21
|
-
"acorn-jsx": "^5.3.2",
|
|
22
|
-
"ajv": "^6.12.6",
|
|
23
|
-
"ansi-styles": "^4.3.0",
|
|
24
|
-
"argparse": "^2.0.1",
|
|
25
|
-
"balanced-match": "^1.0.2",
|
|
26
|
-
"brace-expansion": "^2.0.2",
|
|
27
|
-
"braces": "^3.0.3",
|
|
28
|
-
"callsites": "^3.1.0",
|
|
29
|
-
"chalk": "^4.1.2",
|
|
30
|
-
"chokidar": "^4.0.3",
|
|
31
|
-
"color-convert": "^2.0.1",
|
|
32
|
-
"color-name": "^1.1.4",
|
|
33
|
-
"concat-map": "^0.0.1",
|
|
34
|
-
"cross-spawn": "^7.0.6",
|
|
35
|
-
"debug": "^4.4.3",
|
|
36
|
-
"deep-is": "^0.1.4",
|
|
37
|
-
"detect-libc": "^1.0.3",
|
|
38
|
-
"escape-string-regexp": "^4.0.0",
|
|
39
33
|
"eslint": "^9.39.2",
|
|
40
|
-
"eslint-
|
|
41
|
-
"
|
|
42
|
-
"espree": "^10.4.0",
|
|
43
|
-
"esquery": "^1.6.0",
|
|
44
|
-
"esrecurse": "^4.3.0",
|
|
45
|
-
"estraverse": "^5.3.0",
|
|
46
|
-
"esutils": "^2.0.3",
|
|
47
|
-
"fast-deep-equal": "^3.1.3",
|
|
48
|
-
"fast-json-stable-stringify": "^2.1.0",
|
|
49
|
-
"fast-levenshtein": "^2.0.6",
|
|
50
|
-
"file-entry-cache": "^8.0.0",
|
|
51
|
-
"fill-range": "^7.1.1",
|
|
52
|
-
"find-up": "^5.0.0",
|
|
53
|
-
"flat-cache": "^4.0.1",
|
|
54
|
-
"flatted": "^3.3.3",
|
|
55
|
-
"glob-parent": "^6.0.2",
|
|
56
|
-
"globals": "^14.0.0",
|
|
57
|
-
"has-flag": "^4.0.0",
|
|
58
|
-
"ignore": "^7.0.5",
|
|
59
|
-
"immutable": "^5.1.2",
|
|
60
|
-
"import-fresh": "^3.3.1",
|
|
61
|
-
"imurmurhash": "^0.1.4",
|
|
62
|
-
"is-extglob": "^2.1.1",
|
|
63
|
-
"is-glob": "^4.0.3",
|
|
64
|
-
"is-number": "^7.0.0",
|
|
65
|
-
"isexe": "^2.0.0",
|
|
66
|
-
"js-yaml": "^4.1.1",
|
|
67
|
-
"json-buffer": "^3.0.1",
|
|
68
|
-
"json-schema-traverse": "^0.4.1",
|
|
69
|
-
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
70
|
-
"keyv": "^4.5.4",
|
|
71
|
-
"levn": "^0.4.1",
|
|
72
|
-
"locate-path": "^6.0.0",
|
|
73
|
-
"lodash.merge": "^4.6.2",
|
|
74
|
-
"micromatch": "^4.0.8",
|
|
75
|
-
"minimatch": "^9.0.5",
|
|
76
|
-
"ms": "^2.1.3",
|
|
77
|
-
"natural-compare": "^1.4.0",
|
|
78
|
-
"node-addon-api": "^7.1.1",
|
|
79
|
-
"ometa": "^0.2.2",
|
|
80
|
-
"optionator": "^0.9.4",
|
|
81
|
-
"p-limit": "^3.1.0",
|
|
82
|
-
"p-locate": "^5.0.0",
|
|
83
|
-
"parent-module": "^1.0.1",
|
|
84
|
-
"path-exists": "^4.0.0",
|
|
85
|
-
"path-key": "^3.1.1",
|
|
86
|
-
"picomatch": "^2.3.1",
|
|
87
|
-
"prelude-ls": "^1.2.1",
|
|
88
|
-
"punycode": "^2.3.1",
|
|
89
|
-
"readdirp": "^4.1.2",
|
|
90
|
-
"resolve-from": "^4.0.0",
|
|
91
|
-
"semver": "^7.7.3",
|
|
92
|
-
"shebang-command": "^2.0.0",
|
|
93
|
-
"shebang-regex": "^3.0.0",
|
|
94
|
-
"source-map-js": "^1.2.1",
|
|
95
|
-
"strip-json-comments": "^3.1.1",
|
|
96
|
-
"supports-color": "^7.2.0",
|
|
97
|
-
"tinyglobby": "^0.2.15",
|
|
98
|
-
"to-regex-range": "^5.0.1",
|
|
99
|
-
"ts-api-utils": "^2.1.0",
|
|
100
|
-
"type-check": "^0.4.0",
|
|
34
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
35
|
+
"sass": "^1.97.1",
|
|
101
36
|
"typescript": "^5.9.3",
|
|
102
|
-
"
|
|
103
|
-
"which": "^2.0.2",
|
|
104
|
-
"word-wrap": "^1.2.5",
|
|
105
|
-
"yocto-queue": "^0.1.0"
|
|
37
|
+
"vue-eslint-parser": "^10.2.0"
|
|
106
38
|
},
|
|
107
39
|
"scripts": {
|
|
108
40
|
"test": "echo \"Error: no test specified\" && exit 1"
|