view-ui-plus-derive 0.0.2 → 0.0.3
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 +37 -11
- package/dist/index.js +849 -851
- package/dist/umd/en-US.js +1 -0
- package/dist/umd/index.css +1 -0
- package/dist/umd/index.d.ts +1 -0
- package/dist/umd/index.js +1 -0
- package/dist/umd/iview-mod.js +1 -0
- package/dist/umd/zh-CN.js +1 -0
- package/package.json +18 -15
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# view-ui-plus-derive
|
|
2
2
|
|
|
3
|
-
基于view-ui-plus
|
|
3
|
+
基于vue 3.5+与view-ui-plus的组件&优化扩展等
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm
|
|
8
|
+
npm i view-ui-plus-derive
|
|
9
9
|
|
|
10
10
|
or
|
|
11
11
|
|
|
@@ -14,7 +14,21 @@ yarn add view-ui-plus-derive
|
|
|
14
14
|
|
|
15
15
|
[TOC]
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
### CDN引入
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<link rel="stylesheet" href="https://unpkg.com/view-ui-plus/dist/styles/viewuiplus.css">
|
|
21
|
+
<link rel="stylesheet" href="https://unpkg.com/view-ui-plus-derive/dist/umd/index.css">
|
|
22
|
+
<script src="https://unpkg.com/vue"></script>
|
|
23
|
+
<script src="https://unpkg.com/view-ui-plus"></script>
|
|
24
|
+
<script src="https://unpkg.com/view-ui-plus-derive/dist/umd/index.js"></script>
|
|
25
|
+
|
|
26
|
+
<!-- <script src="https://unpkg.com/view-ui-plus-derive/dist/umd/en-US.js"></script> -->
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
Vue.createApp().use(ViewUIPlus).use(iviewDerive /*,{msg: iviewDeriveENUS} */).mount('#app')
|
|
30
|
+
</script>
|
|
31
|
+
```
|
|
18
32
|
|
|
19
33
|
### 全局引入
|
|
20
34
|
|
|
@@ -22,7 +36,7 @@ yarn add view-ui-plus-derive
|
|
|
22
36
|
import { createApp } from 'vue'
|
|
23
37
|
import ViewUIPlus from 'view-ui-plus'
|
|
24
38
|
import 'view-ui-plus/dist/styles/viewuiplus.css'
|
|
25
|
-
import plugin from 'view-ui-plus-derive' //
|
|
39
|
+
import plugin from 'view-ui-plus-derive' // 包含所有组件与指令
|
|
26
40
|
import 'view-ui-plus-derive/style' // 引入所有组件样式
|
|
27
41
|
|
|
28
42
|
import App from './App.vue'
|
|
@@ -44,7 +58,7 @@ import App from './App.vue'
|
|
|
44
58
|
createApp(App).use(ViewUIPlus).component(Combi.name, Combi).mount('#app')
|
|
45
59
|
```
|
|
46
60
|
|
|
47
|
-
|
|
61
|
+
仅部分组件需要对应样式,如图
|
|
48
62
|

|
|
49
63
|
|
|
50
64
|
### 多语言
|
|
@@ -176,7 +190,7 @@ createApp(App)
|
|
|
176
190
|
.mount('#app')
|
|
177
191
|
```
|
|
178
192
|
|
|
179
|
-
###
|
|
193
|
+
### 更多优化
|
|
180
194
|
|
|
181
195
|
- 为多选模式的iview Select添加全选功能。**若全局安装了插件则无需再次注册指令**
|
|
182
196
|
|
|
@@ -185,7 +199,7 @@ createApp(App)
|
|
|
185
199
|
import { createApp } from 'vue'
|
|
186
200
|
import ViewUIPlus from 'view-ui-plus'
|
|
187
201
|
import 'view-ui-plus/dist/styles/viewuiplus.css'
|
|
188
|
-
import { iviewSelect } from "view-ui-plus-derive"
|
|
202
|
+
import { iviewSelect } from "view-ui-plus-derive"
|
|
189
203
|
import App from './App.vue'
|
|
190
204
|
|
|
191
205
|
createApp(App).use(ViewUIPlus).directive('iviewSelect', iviewSelect).mount('#app')
|
|
@@ -221,19 +235,31 @@ import 'view-ui-plus-derive/iview-mods/table'
|
|
|
221
235
|
也可以一次性引入iview-mods下的input-number、select、table
|
|
222
236
|
|
|
223
237
|
```js
|
|
238
|
+
// 本地引入
|
|
224
239
|
import 'view-ui-plus-derive/iview-mod'
|
|
225
240
|
```
|
|
226
241
|
|
|
242
|
+
```html
|
|
243
|
+
<!-- CDN引入 -->
|
|
244
|
+
<script src="https://unpkg.com/view-ui-plus-derive/dist/umd/iview-mod.js"></script>
|
|
245
|
+
```
|
|
246
|
+
|
|
227
247
|
针对iview组件的样式优化
|
|
228
248
|
|
|
229
249
|
- 修复带有固定列的Table存在水平滚动条时,固定列下方的滚动条无法点中
|
|
230
250
|
- 防止Select在关闭选项时可能出现的点击更换选项bug
|
|
231
|
-
-
|
|
251
|
+
- 适当调整Input、InputNumber、Select、Button在禁用状态下非placeholder的文本颜色
|
|
232
252
|
|
|
233
253
|
```js
|
|
254
|
+
// 本地引入
|
|
234
255
|
import 'view-ui-plus-derive/iview-mod.css'
|
|
235
256
|
```
|
|
236
257
|
|
|
258
|
+
```html
|
|
259
|
+
<!-- CDN引入 -->
|
|
260
|
+
<link rel="stylesheet" href="https://unpkg.com/view-ui-plus-derive/dist/iview-mod.css">
|
|
261
|
+
```
|
|
262
|
+
|
|
237
263
|
### 组件
|
|
238
264
|
|
|
239
265
|
#### AllCheckbox
|
|
@@ -326,7 +352,7 @@ default({item})
|
|
|
326
352
|
|
|
327
353
|
#### BaseSwitch
|
|
328
354
|
|
|
329
|
-
|
|
355
|
+
更易于使用的Switch
|
|
330
356
|
|
|
331
357
|
```html
|
|
332
358
|
<template>
|
|
@@ -387,7 +413,7 @@ close()
|
|
|
387
413
|
|
|
388
414
|
#### RemoteSelect
|
|
389
415
|
|
|
390
|
-
|
|
416
|
+
远程Select
|
|
391
417
|
|
|
392
418
|
```html
|
|
393
419
|
<template>
|
|
@@ -553,7 +579,7 @@ text( { text })
|
|
|
553
579
|
|
|
554
580
|
#### CacheSelect
|
|
555
581
|
|
|
556
|
-
|
|
582
|
+
避免重复调用远程接口的RemoteSelect,同一个cacheId对应只触发一次请求
|
|
557
583
|
|
|
558
584
|
```html
|
|
559
585
|
<template>
|