@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
@@ -16,14 +16,14 @@ exports.default = {
|
|
16
16
|
},
|
17
17
|
box: function (_a) {
|
18
18
|
var props = _a.props, context = _a.context;
|
19
|
-
return
|
19
|
+
return {
|
20
20
|
class: [
|
21
21
|
// Alignment
|
22
22
|
'flex',
|
23
23
|
'items-center',
|
24
24
|
'justify-center',
|
25
25
|
// Size
|
26
|
-
'w-
|
26
|
+
'w-4',
|
27
27
|
'h-full',
|
28
28
|
// Shape
|
29
29
|
'rounded',
|
@@ -33,10 +33,10 @@ exports.default = {
|
|
33
33
|
{
|
34
34
|
'border-general-300': props.disabled,
|
35
35
|
'border-grayscale-900': !props.disabled,
|
36
|
-
'bg-white': !context.checked && !props.disabled,
|
37
|
-
'bg-general-50': !context.checked && props.disabled,
|
38
|
-
'bg-grayscale-900': context.checked && !props.disabled,
|
39
|
-
'bg-general-300': context.checked && props.disabled,
|
36
|
+
'bg-white': !(context.checked || context.partialChecked) && !props.disabled,
|
37
|
+
'bg-general-50': !(context.checked || context.partialChecked) && props.disabled,
|
38
|
+
'bg-grayscale-900': (context.checked || context.partialChecked) && !props.disabled,
|
39
|
+
'bg-general-300': (context.checked || context.partialChecked) && props.disabled,
|
40
40
|
},
|
41
41
|
{
|
42
42
|
'ring-8 ring-primary-400/[12%]': !props.disabled && context.focused,
|
@@ -45,26 +45,26 @@ exports.default = {
|
|
45
45
|
{
|
46
46
|
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-0 peer-focus-visible:ring-primary-400/[8%]': !props.disabled,
|
47
47
|
'peer-active:ring-8 peer-active:ring-offset-0 peer-active:ring-primary-400/[12%]': !props.disabled,
|
48
|
-
'cursor-default bg-general-50 border-general-200': props.disabled && !context.checked,
|
49
|
-
'bg-general-200 border-general-200': props.disabled && context.checked,
|
48
|
+
'cursor-default bg-general-50 border-general-200': props.disabled && !(context.checked || context.partialChecked),
|
49
|
+
'bg-general-200 border-general-200': props.disabled && (context.checked || context.partialChecked),
|
50
50
|
},
|
51
51
|
// Icon state
|
52
52
|
{
|
53
|
-
'[&_i]:bg-transparent': props.disabled && !context.checked,
|
54
|
-
'[&_i]:text-white': context.checked,
|
55
|
-
'[&_i]:text-transparent': !context.checked,
|
53
|
+
'[&_i]:bg-transparent': props.disabled && !(context.checked || context.partialChecked),
|
54
|
+
'[&_i]:text-white': context.checked || context.partialChecked,
|
55
|
+
'[&_i]:text-transparent': !(context.checked || context.partialChecked),
|
56
56
|
},
|
57
57
|
// Transitions
|
58
58
|
'transition-all',
|
59
59
|
'duration-200',
|
60
60
|
],
|
61
|
-
}
|
61
|
+
};
|
62
62
|
},
|
63
63
|
input: {
|
64
64
|
class: [
|
65
65
|
'peer',
|
66
66
|
// Size
|
67
|
-
'w-
|
67
|
+
'w-4 ',
|
68
68
|
'h-full',
|
69
69
|
// Position
|
70
70
|
'absolute',
|