fantasia-ui 0.0.9 → 0.0.11
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 +33 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1 +1,33 @@
|
|
|
1
|
-
# Fantasia UI 组件库
|
|
1
|
+
# Fantasia UI 组件库
|
|
2
|
+
|
|
3
|
+
### Upload 组件
|
|
4
|
+
|
|
5
|
+
*详细Api使用方法参考 [基于 el-upload 二次封装,实现多功能上传-CSDN博客](https://blog.csdn.net/weixin_60818087/article/details/148193542?spm=1001.2014.3001.5502)*
|
|
6
|
+
|
|
7
|
+
> main.ts 引入样式 import 'fantasia-ui/dist/index.css'
|
|
8
|
+
|
|
9
|
+
**filename.vue**
|
|
10
|
+
|
|
11
|
+
`
|
|
12
|
+
|
|
13
|
+
<script setup lang="ts">
|
|
14
|
+
import { FUpload } from 'fantasia-ui';
|
|
15
|
+
|
|
16
|
+
const handleUplaod = ({ file, done, error }) => {
|
|
17
|
+
console.log(file);
|
|
18
|
+
done();
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<FUpload crop mosaic @upload="handleUplaod" />
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
`
|
|
27
|
+
|
|
28
|
+
> 发现没有图标?需要安装 **Element-plus** 的 icon 才会显示下方图标
|
|
29
|
+
|
|
30
|
+
<img src="C:\Users\Shuster\AppData\Roaming\Typora\typora-user-images\image-20250531002955293.png" alt="image-20250531002955293" style="zoom: 50%;" />
|
|
31
|
+
|
|
32
|
+
<img src="C:\Users\Shuster\AppData\Roaming\Typora\typora-user-images\image-20250531003159734.png" alt="image-20250531003159734" style="zoom: 50%;" />
|
|
33
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fantasia-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/fantasia-ui.umd.js",
|
|
7
7
|
"module": "dist/fantasia-ui.es.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@element-plus/icons-vue": "^2.3.1",
|
|
31
31
|
"@vueuse/core": "^13.3.0",
|
|
32
32
|
"element-plus": "^2.9.11",
|
|
33
|
-
"fantasia-ui": "^0.0.
|
|
33
|
+
"fantasia-ui": "^0.0.10",
|
|
34
34
|
"sass": "^1.89.0",
|
|
35
35
|
"unplugin-auto-import": "^19.3.0",
|
|
36
36
|
"unplugin-vue-components": "^28.7.0",
|