@varlet/ui 1.27.3 → 1.27.4

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/es/varlet.esm.js CHANGED
@@ -13023,7 +13023,7 @@ var Rate = defineComponent({
13023
13023
  } = transformValue(val);
13024
13024
  return {
13025
13025
  [n$j("content")]: true,
13026
- [n$j("--disabled")]: form == null ? void 0 : form.disabled.value,
13026
+ [n$j("--disabled")]: (form == null ? void 0 : form.disabled.value) || props2.disabled,
13027
13027
  [n$j("--error")]: errorMessage.value,
13028
13028
  [n$j("--primary")]: type !== "empty" && !color
13029
13029
  };
@@ -1269,7 +1269,7 @@
1269
1269
  },
1270
1270
  "var-rate/disabled-color": {
1271
1271
  "type": "string",
1272
- "description": "禁止评分时图标的颜色,只有在 `disabled` 为 `true` 时才有效,优先级高于 `color`、`empty-color` 默认值:-"
1272
+ "description": "禁止评分时图标的颜色,只有在 `disabled` 为 `true` 时才有效,优先级高于 `color`、`empty-color` 默认值:#aaa"
1273
1273
  },
1274
1274
  "var-rate/readonly": {
1275
1275
  "type": "boolean",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "1.27.2",
4
+ "version": "1.27.3",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3780,7 +3780,7 @@
3780
3780
  {
3781
3781
  "name": "disabled-color",
3782
3782
  "description": "禁止评分时图标的颜色,只有在 `disabled` 为 `true` 时才有效,优先级高于 `color`、`empty-color`",
3783
- "default": "-",
3783
+ "default": "#aaa",
3784
3784
  "value": {
3785
3785
  "type": "string",
3786
3786
  "kind": "expression"
package/lib/rate/Rate.js CHANGED
@@ -122,7 +122,7 @@ var _default = (0, _vue.defineComponent)({
122
122
  } = transformValue(val);
123
123
  return {
124
124
  [n('content')]: true,
125
- [n('--disabled')]: form == null ? void 0 : form.disabled.value,
125
+ [n('--disabled')]: (form == null ? void 0 : form.disabled.value) || props.disabled,
126
126
  [n('--error')]: errorMessage.value,
127
127
  [n('--primary')]: type !== 'empty' && !color
128
128
  };
package/lib/rate/rate.css CHANGED
@@ -1 +1 @@
1
- :root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__content { padding: var(--rate-action-padding); box-sizing: unset; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-rate--disabled { color: var(--rate-disabled-color) !important;}.var-rate--error { color: var(--rate-error-color) !important;}.var-rate--primary { color: var(--rate-primary-color);}
1
+ :root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__content { padding: var(--rate-action-padding); box-sizing: unset; cursor: pointer; display: flex; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-rate--primary { color: var(--rate-primary-color);}.var-rate--disabled { color: var(--rate-disabled-color); cursor: not-allowed;}.var-rate--error { color: var(--rate-error-color);}
@@ -18,18 +18,20 @@
18
18
  padding: var(--rate-action-padding);
19
19
  box-sizing: unset;
20
20
  cursor: pointer;
21
+ display: flex;
21
22
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
22
23
  }
23
24
 
24
- &--disabled {
25
- color: var(--rate-disabled-color) !important;
25
+ &--primary {
26
+ color: var(--rate-primary-color);
26
27
  }
27
28
 
28
- &--error {
29
- color: var(--rate-error-color) !important;
29
+ &--disabled {
30
+ color: var(--rate-disabled-color);
31
+ cursor: not-allowed;
30
32
  }
31
33
 
32
- &--primary {
33
- color: var(--rate-primary-color);
34
+ &--error {
35
+ color: var(--rate-error-color);
34
36
  }
35
37
  }