@fewangsit/wangsvue-presets 1.0.84-alpha.1 → 1.0.84-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/fixedasset/checkbox/index.js +13 -13
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/style.css +12 -0
- package/fixedasset/tree/index.d.ts +43 -20
- package/fixedasset/tree/index.js +19 -7
- package/fixedasset/treeselect/index.js +1 -1
- package/package.json +1 -1
- package/wangsvue/style.css +12 -0
package/fixedasset/style.css
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z'/%3E%3C/svg%3E");
|
6
6
|
}
|
7
7
|
|
8
|
+
.ic-minus {
|
9
|
+
--svg: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik01IDExdjJoMTR2LTJ6Ii8+PC9zdmc+');
|
10
|
+
}
|
11
|
+
|
8
12
|
.ic-arrow-up-s {
|
9
13
|
/* ri--arrow-up-s-line */
|
10
14
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m12 10.828l-4.95 4.95l-1.414-1.414L12 8l6.364 6.364l-1.414 1.414z'/%3E%3C/svg%3E");
|
@@ -888,6 +892,10 @@
|
|
888
892
|
mask-size: 100% 100%;
|
889
893
|
}
|
890
894
|
|
895
|
+
.\!pointer-events-none{
|
896
|
+
pointer-events: none !important;
|
897
|
+
}
|
898
|
+
|
891
899
|
.pointer-events-none{
|
892
900
|
pointer-events: none;
|
893
901
|
}
|
@@ -3883,6 +3891,10 @@
|
|
3883
3891
|
caret-color: #003b94;
|
3884
3892
|
}
|
3885
3893
|
|
3894
|
+
.\!opacity-60{
|
3895
|
+
opacity: 0.6 !important;
|
3896
|
+
}
|
3897
|
+
|
3886
3898
|
.opacity-0{
|
3887
3899
|
opacity: 0;
|
3888
3900
|
}
|
@@ -3,18 +3,22 @@ declare namespace _default {
|
|
3
3
|
let _class: string[];
|
4
4
|
export { _class as class };
|
5
5
|
}
|
6
|
-
export namespace
|
6
|
+
export namespace loadingOverlay {
|
7
7
|
let _class_1: string[];
|
8
8
|
export { _class_1 as class };
|
9
9
|
}
|
10
|
-
export namespace
|
10
|
+
export namespace wrapper {
|
11
11
|
let _class_2: string[];
|
12
12
|
export { _class_2 as class };
|
13
13
|
}
|
14
|
-
export namespace
|
14
|
+
export namespace container {
|
15
15
|
let _class_3: string[];
|
16
16
|
export { _class_3 as class };
|
17
17
|
}
|
18
|
+
export namespace node {
|
19
|
+
let _class_4: string[];
|
20
|
+
export { _class_4 as class };
|
21
|
+
}
|
18
22
|
export function content({ context, props }: {
|
19
23
|
context: any;
|
20
24
|
props: any;
|
@@ -22,15 +26,33 @@ declare namespace _default {
|
|
22
26
|
class: (string | {
|
23
27
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500': any;
|
24
28
|
'hover:bg-primary-50'?: undefined;
|
29
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
25
30
|
'cursor-pointer select-none'?: undefined;
|
31
|
+
'cursor-pointer'?: undefined;
|
26
32
|
} | {
|
27
33
|
'hover:bg-primary-50': boolean;
|
28
34
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
35
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
29
36
|
'cursor-pointer select-none'?: undefined;
|
37
|
+
'cursor-pointer'?: undefined;
|
38
|
+
} | {
|
39
|
+
'!pointer-events-none !opacity-60 !cursor-default': any;
|
40
|
+
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
41
|
+
'hover:bg-primary-50'?: undefined;
|
42
|
+
'cursor-pointer select-none'?: undefined;
|
43
|
+
'cursor-pointer'?: undefined;
|
30
44
|
} | {
|
31
45
|
'cursor-pointer select-none': boolean;
|
32
46
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
33
47
|
'hover:bg-primary-50'?: undefined;
|
48
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
49
|
+
'cursor-pointer'?: undefined;
|
50
|
+
} | {
|
51
|
+
'cursor-pointer': boolean;
|
52
|
+
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
53
|
+
'hover:bg-primary-50'?: undefined;
|
54
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
55
|
+
'cursor-pointer select-none'?: undefined;
|
34
56
|
})[];
|
35
57
|
};
|
36
58
|
export function toggler({ context }: {
|
@@ -39,15 +61,16 @@ declare namespace _default {
|
|
39
61
|
class: (string | {
|
40
62
|
invisible: any;
|
41
63
|
})[];
|
64
|
+
'data-wv-section': string;
|
42
65
|
};
|
43
66
|
export namespace togglericon {
|
44
|
-
let
|
45
|
-
export {
|
67
|
+
let _class_5: string[];
|
68
|
+
export { _class_5 as class };
|
46
69
|
}
|
47
70
|
export namespace nodeCheckbox {
|
48
71
|
export namespace root_1 {
|
49
|
-
let
|
50
|
-
export {
|
72
|
+
let _class_6: string[];
|
73
|
+
export { _class_6 as class };
|
51
74
|
}
|
52
75
|
export { root_1 as root };
|
53
76
|
export function box({ props, context }: {
|
@@ -75,39 +98,39 @@ declare namespace _default {
|
|
75
98
|
})[];
|
76
99
|
};
|
77
100
|
export namespace input {
|
78
|
-
let _class_6: string[];
|
79
|
-
export { _class_6 as class };
|
80
|
-
}
|
81
|
-
export namespace icon {
|
82
101
|
let _class_7: string[];
|
83
102
|
export { _class_7 as class };
|
84
103
|
}
|
104
|
+
export namespace icon {
|
105
|
+
let _class_8: string[];
|
106
|
+
export { _class_8 as class };
|
107
|
+
}
|
85
108
|
}
|
86
109
|
export namespace nodeicon {
|
87
|
-
let _class_8: string[];
|
88
|
-
export { _class_8 as class };
|
89
|
-
}
|
90
|
-
export namespace subgroup {
|
91
110
|
let _class_9: string[];
|
92
111
|
export { _class_9 as class };
|
93
112
|
}
|
94
|
-
export namespace
|
113
|
+
export namespace subgroup {
|
95
114
|
let _class_10: string[];
|
96
115
|
export { _class_10 as class };
|
97
116
|
}
|
98
|
-
export namespace
|
117
|
+
export namespace filtercontainer {
|
99
118
|
let _class_11: string[];
|
100
119
|
export { _class_11 as class };
|
101
120
|
}
|
102
|
-
export
|
103
|
-
export namespace loadingicon {
|
121
|
+
export namespace input_1 {
|
104
122
|
let _class_12: string[];
|
105
123
|
export { _class_12 as class };
|
106
124
|
}
|
107
|
-
export
|
125
|
+
export { input_1 as input };
|
126
|
+
export namespace loadingicon {
|
108
127
|
let _class_13: string[];
|
109
128
|
export { _class_13 as class };
|
110
129
|
}
|
130
|
+
export namespace searchicon {
|
131
|
+
let _class_14: string[];
|
132
|
+
export { _class_14 as class };
|
133
|
+
}
|
111
134
|
export function label({ props }: {
|
112
135
|
props: any;
|
113
136
|
}): {
|
package/fixedasset/tree/index.js
CHANGED
@@ -5,12 +5,16 @@ exports.default = {
|
|
5
5
|
class: [
|
6
6
|
'relative',
|
7
7
|
// Space
|
8
|
+
'w-full h-full',
|
8
9
|
// Shape
|
9
10
|
'rounded-md',
|
10
11
|
'min-h-8',
|
11
12
|
// Color
|
12
13
|
],
|
13
14
|
},
|
15
|
+
loadingOverlay: {
|
16
|
+
class: ['flex justify-center items-center absolute z-1 h-full w-full'],
|
17
|
+
},
|
14
18
|
wrapper: {
|
15
19
|
class: ['overflow-auto'],
|
16
20
|
},
|
@@ -24,14 +28,16 @@ exports.default = {
|
|
24
28
|
},
|
25
29
|
node: {
|
26
30
|
class: [
|
27
|
-
'p-
|
31
|
+
'p-0',
|
32
|
+
'pl-1',
|
28
33
|
'rounded-md',
|
29
34
|
'focus:outline-none focus:outline-offset-0',
|
30
35
|
],
|
31
36
|
},
|
32
37
|
content: function (_a) {
|
33
38
|
var context = _a.context, props = _a.props;
|
34
|
-
|
39
|
+
console.log(context);
|
40
|
+
return {
|
35
41
|
class: [
|
36
42
|
// Flex and Alignment
|
37
43
|
'flex items-center',
|
@@ -46,22 +52,27 @@ exports.default = {
|
|
46
52
|
},
|
47
53
|
// States
|
48
54
|
{
|
49
|
-
'hover:bg-primary-50': props.selectionMode == 'single' ||
|
55
|
+
'hover:bg-primary-50': props.selectionMode == 'single' ||
|
56
|
+
props.selectionMode == 'multiple',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
'!pointer-events-none !opacity-60 !cursor-default': context.disabled,
|
50
60
|
},
|
51
61
|
// Transition
|
52
62
|
'transition-shadow duration-200',
|
53
63
|
{
|
54
|
-
'cursor-pointer select-none': props.selectionMode == 'single' ||
|
64
|
+
'cursor-pointer select-none': props.selectionMode == 'single' ||
|
65
|
+
props.selectionMode == 'multiple',
|
55
66
|
},
|
56
67
|
// Miscelanous
|
57
|
-
'cursor-pointer',
|
68
|
+
{ 'cursor-pointer': !context.disabled },
|
58
69
|
],
|
59
|
-
}
|
70
|
+
};
|
60
71
|
},
|
61
72
|
toggler: function (_a) {
|
62
73
|
var context = _a.context;
|
63
74
|
return ({
|
64
|
-
class: [
|
75
|
+
'class': [
|
65
76
|
// Flex and Alignment
|
66
77
|
'inline-flex items-center justify-center',
|
67
78
|
'shrink-0',
|
@@ -84,6 +95,7 @@ exports.default = {
|
|
84
95
|
// Misc
|
85
96
|
'cursor-pointer select-none',
|
86
97
|
],
|
98
|
+
'data-wv-section': 'tree-node-toggler',
|
87
99
|
});
|
88
100
|
},
|
89
101
|
togglericon: {
|
package/package.json
CHANGED
package/wangsvue/style.css
CHANGED
@@ -7,6 +7,10 @@
|
|
7
7
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z'/%3E%3C/svg%3E");
|
8
8
|
}
|
9
9
|
|
10
|
+
.ic-minus {
|
11
|
+
--svg: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik01IDExdjJoMTR2LTJ6Ii8+PC9zdmc+');
|
12
|
+
}
|
13
|
+
|
10
14
|
.ic-arrow-up-s {
|
11
15
|
/* ri--arrow-up-s-line */
|
12
16
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m12 10.828l-4.95 4.95l-1.414-1.414L12 8l6.364 6.364l-1.414 1.414z'/%3E%3C/svg%3E");
|
@@ -898,6 +902,10 @@
|
|
898
902
|
mask-size: 100% 100%;
|
899
903
|
}
|
900
904
|
|
905
|
+
.\!pointer-events-none{
|
906
|
+
pointer-events: none !important;
|
907
|
+
}
|
908
|
+
|
901
909
|
.pointer-events-none{
|
902
910
|
pointer-events: none;
|
903
911
|
}
|
@@ -3865,6 +3873,10 @@
|
|
3865
3873
|
caret-color: #785930;
|
3866
3874
|
}
|
3867
3875
|
|
3876
|
+
.\!opacity-60{
|
3877
|
+
opacity: 0.6 !important;
|
3878
|
+
}
|
3879
|
+
|
3868
3880
|
.opacity-0{
|
3869
3881
|
opacity: 0;
|
3870
3882
|
}
|