@minilo/ui 0.0.4 → 0.0.6
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 +44 -44
- package/minilo/dist/index.full.js +11 -6
- package/minilo/dist/index.full.min.js +1 -1
- package/minilo/dist/index.full.min.js.map +1 -1
- package/minilo/dist/index.full.min.mjs +1 -1
- package/minilo/dist/index.full.min.mjs.map +1 -1
- package/minilo/dist/index.full.mjs +11 -6
- package/minilo/es/components/image-upload-pro/index.d.ts +238 -339
- package/minilo/es/components/image-upload-pro/index.vue.d.ts +263 -364
- package/minilo/es/components/search/index.d.ts +51 -149
- package/minilo/es/components/search/index.vue.d.ts +102 -298
- package/minilo/es/components/tree-select-dialog/index.d.ts +11 -9
- package/minilo/es/components/tree-select-dialog/index.vue2.mjs +5 -3
- package/minilo/es/components/tree-select-drawer/index.d.ts +15 -12
- package/minilo/es/components/tree-select-drawer/index.vue2.mjs +6 -3
- package/minilo/es/index.d.ts +315 -509
- package/minilo/lib/components/image-upload-pro/index.d.ts +238 -339
- package/minilo/lib/components/image-upload-pro/index.vue.d.ts +263 -364
- package/minilo/lib/components/search/index.d.ts +51 -149
- package/minilo/lib/components/search/index.vue.d.ts +102 -298
- package/minilo/lib/components/tree-select-dialog/index.d.ts +11 -9
- package/minilo/lib/components/tree-select-dialog/index.vue2.js +5 -3
- package/minilo/lib/components/tree-select-drawer/index.d.ts +15 -12
- package/minilo/lib/components/tree-select-drawer/index.vue2.js +6 -3
- package/minilo/lib/index.d.ts +315 -509
- package/minilo/theme-chalk/src/button.scss +22 -22
- package/minilo/theme-chalk/src/chart.scss +11 -11
- package/minilo/theme-chalk/src/default/variable.scss +1 -1
- package/minilo/theme-chalk/src/detail.scss +9 -9
- package/minilo/theme-chalk/src/image-upload-pro.scss +70 -70
- package/minilo/theme-chalk/src/index.scss +14 -14
- package/minilo/theme-chalk/src/mixins/mixin.scss +273 -273
- package/minilo/theme-chalk/src/search-table.scss +47 -47
- package/minilo/theme-chalk/src/search.scss +20 -20
- package/minilo/theme-chalk/src/tree-select.scss +47 -47
- package/minilo/theme-chalk/src/virtual-list.scss +49 -49
- package/package.json +4 -3
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
@use './mixins/mixin.scss' as *;
|
|
2
|
-
@use './default/variable.scss' as *;
|
|
3
|
-
|
|
4
|
-
// 核心树形选择组件
|
|
5
|
-
@include bem('tree-select') {
|
|
6
|
-
height: 100%;
|
|
7
|
-
@include flex($direction: column, $justify: flex-start, $align-items: stretch);
|
|
8
|
-
|
|
9
|
-
&__search {
|
|
10
|
-
margin-bottom: 16px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&__tree {
|
|
14
|
-
flex: 1;
|
|
15
|
-
overflow: auto;
|
|
16
|
-
min-height: 200px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&__footer {
|
|
20
|
-
@include flex($justify: flex-end, $align-items: center);
|
|
21
|
-
padding-top: 16px;
|
|
22
|
-
border-top: 1px solid var(--el-border-color-light);
|
|
23
|
-
margin-top: 16px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// 弹窗版本
|
|
28
|
-
@include bem('tree-select-dialog') {
|
|
29
|
-
.el-dialog__header {
|
|
30
|
-
margin-bottom: 0;
|
|
31
|
-
}
|
|
32
|
-
.el-dialog__body {
|
|
33
|
-
padding-top: 10px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// 抽屉版本
|
|
38
|
-
@include bem('tree-select-drawer') {
|
|
39
|
-
.el-drawer__header {
|
|
40
|
-
margin-bottom: 0;
|
|
41
|
-
}
|
|
42
|
-
.el-drawer__body {
|
|
43
|
-
padding: 16px;
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
@use './mixins/mixin.scss' as *;
|
|
2
|
+
@use './default/variable.scss' as *;
|
|
3
|
+
|
|
4
|
+
// 核心树形选择组件
|
|
5
|
+
@include bem('tree-select') {
|
|
6
|
+
height: 100%;
|
|
7
|
+
@include flex($direction: column, $justify: flex-start, $align-items: stretch);
|
|
8
|
+
|
|
9
|
+
&__search {
|
|
10
|
+
margin-bottom: 16px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__tree {
|
|
14
|
+
flex: 1;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
min-height: 200px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__footer {
|
|
20
|
+
@include flex($justify: flex-end, $align-items: center);
|
|
21
|
+
padding-top: 16px;
|
|
22
|
+
border-top: 1px solid var(--el-border-color-light);
|
|
23
|
+
margin-top: 16px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 弹窗版本
|
|
28
|
+
@include bem('tree-select-dialog') {
|
|
29
|
+
.el-dialog__header {
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
.el-dialog__body {
|
|
33
|
+
padding-top: 10px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// 抽屉版本
|
|
38
|
+
@include bem('tree-select-drawer') {
|
|
39
|
+
.el-drawer__header {
|
|
40
|
+
margin-bottom: 0;
|
|
41
|
+
}
|
|
42
|
+
.el-drawer__body {
|
|
43
|
+
padding: 16px;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
@use './mixins/mixin.scss' as *;
|
|
2
|
-
@use './default/variable.scss' as *;
|
|
3
|
-
|
|
4
|
-
@include bem('virtual-list') {
|
|
5
|
-
&__container {
|
|
6
|
-
position: relative;
|
|
7
|
-
overflow: auto;
|
|
8
|
-
border: 1px solid #e4e7ed;
|
|
9
|
-
border-radius: 4px;
|
|
10
|
-
.loading-spinner {
|
|
11
|
-
display: inline-block;
|
|
12
|
-
width: 16px;
|
|
13
|
-
height: 16px;
|
|
14
|
-
margin-right: 8px;
|
|
15
|
-
border: 2px solid #e4e7ed;
|
|
16
|
-
border-top-color: #409eff;
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
animation: spin 0.6s linear infinite;
|
|
19
|
-
}
|
|
20
|
-
@keyframes spin {
|
|
21
|
-
to {
|
|
22
|
-
transform: rotate(360deg);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
&__loading-tip,
|
|
27
|
-
&__finished-tip {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
padding: 20px;
|
|
32
|
-
color: #909399;
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
background-color: #fff;
|
|
35
|
-
}
|
|
36
|
-
&__phantom {
|
|
37
|
-
position: relative;
|
|
38
|
-
width: 100%;
|
|
39
|
-
}
|
|
40
|
-
&__content {
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 0;
|
|
43
|
-
left: 0;
|
|
44
|
-
right: 0;
|
|
45
|
-
}
|
|
46
|
-
&__item {
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
@use './mixins/mixin.scss' as *;
|
|
2
|
+
@use './default/variable.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include bem('virtual-list') {
|
|
5
|
+
&__container {
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: auto;
|
|
8
|
+
border: 1px solid #e4e7ed;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
.loading-spinner {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
width: 16px;
|
|
13
|
+
height: 16px;
|
|
14
|
+
margin-right: 8px;
|
|
15
|
+
border: 2px solid #e4e7ed;
|
|
16
|
+
border-top-color: #409eff;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
animation: spin 0.6s linear infinite;
|
|
19
|
+
}
|
|
20
|
+
@keyframes spin {
|
|
21
|
+
to {
|
|
22
|
+
transform: rotate(360deg);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&__loading-tip,
|
|
27
|
+
&__finished-tip {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
padding: 20px;
|
|
32
|
+
color: #909399;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
background-color: #fff;
|
|
35
|
+
}
|
|
36
|
+
&__phantom {
|
|
37
|
+
position: relative;
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
&__content {
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
right: 0;
|
|
45
|
+
}
|
|
46
|
+
&__item {
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minilo/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#/*": "./src/*"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@element-plus/icons-vue": "2.3.1",
|
|
48
48
|
"@iconify/vue": "5.0.0",
|
|
49
49
|
"@vueuse/core": "13.9.0",
|
|
50
|
-
"element-plus": "2.
|
|
50
|
+
"element-plus": "^2.11.7",
|
|
51
51
|
"vue": "^3.5.26",
|
|
52
52
|
"vue-cropper": "^1.1.4"
|
|
53
53
|
},
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"vitepress": "2.0.0-alpha.12",
|
|
97
97
|
"vitest": "^4.0.16",
|
|
98
98
|
"vue-tsc": "^3.1.0",
|
|
99
|
-
"@minilo/utils": "
|
|
99
|
+
"@minilo/utils": "0.0.2"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"vue": "^3.5.17"
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"tasks": "gulp -f build-script/gulpfile.ts --tasks",
|
|
107
107
|
"test": "vitest --no-watch",
|
|
108
108
|
"test:ui": "vitest --ui",
|
|
109
|
+
"test:report": "vitest run --reporter html",
|
|
109
110
|
"test:coverage": "vitest run --coverage",
|
|
110
111
|
"test:gulp": "gulp --require ./node_modules/tsx/dist/loader.cjs -f ./gulpfile.ts",
|
|
111
112
|
"build": "gulp --require ./node_modules/tsx/dist/loader.cjs -f ./build-script/gulpfile.ts",
|