@tuya-miniapp/smart-ui 2.9.3-beta-1 → 2.9.3-beta-2

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.
@@ -43,6 +43,7 @@ interface DialogOptions {
43
43
  confirmButtonOpenType?: string;
44
44
  value?: null | string;
45
45
  ignoreQueue?: boolean;
46
+ emptyDisabled?: boolean;
46
47
  password?: boolean;
47
48
  placeholder?: string;
48
49
  maxlength?: number;
@@ -29,6 +29,7 @@ const defaultOptions = {
29
29
  ignoreQueue: false,
30
30
  value: null,
31
31
  password: false,
32
+ emptyDisabled: false,
32
33
  placeholder: '',
33
34
  maxlength: 20,
34
35
  };
@@ -117,7 +117,7 @@
117
117
  size="large"
118
118
  class="smart-dialog__button"
119
119
  loading="{{ loading.confirm }}"
120
- custom-class="smart-dialog__confirm {{ !inputValue && emptyDisabled ? 'smart-dialog__confirm--disabled' : '' }} confirm-button-class"
120
+ custom-class="smart-dialog__confirm {{ inputValue === '' && emptyDisabled ? 'smart-dialog__confirm--disabled' : '' }} confirm-button-class"
121
121
  custom-style="color: {{ confirmButtonColor || 'var(--dialog-confirm-color, var(--app-B4-N1, rgba(0, 0, 0, 1)))' }}"
122
122
  button-id="{{ confirmButtonId }}"
123
123
  open-type="{{ confirmButtonOpenType }}"
@@ -43,6 +43,7 @@ interface DialogOptions {
43
43
  confirmButtonOpenType?: string;
44
44
  value?: null | string;
45
45
  ignoreQueue?: boolean;
46
+ emptyDisabled?: boolean;
46
47
  password?: boolean;
47
48
  placeholder?: string;
48
49
  maxlength?: number;
@@ -46,6 +46,7 @@ var defaultOptions = {
46
46
  ignoreQueue: false,
47
47
  value: null,
48
48
  password: false,
49
+ emptyDisabled: false,
49
50
  placeholder: '',
50
51
  maxlength: 20,
51
52
  };
@@ -117,7 +117,7 @@
117
117
  size="large"
118
118
  class="smart-dialog__button"
119
119
  loading="{{ loading.confirm }}"
120
- custom-class="smart-dialog__confirm {{ !inputValue && emptyDisabled ? 'smart-dialog__confirm--disabled' : '' }} confirm-button-class"
120
+ custom-class="smart-dialog__confirm {{ inputValue === '' && emptyDisabled ? 'smart-dialog__confirm--disabled' : '' }} confirm-button-class"
121
121
  custom-style="color: {{ confirmButtonColor || 'var(--dialog-confirm-color, var(--app-B4-N1, rgba(0, 0, 0, 1)))' }}"
122
122
  button-id="{{ confirmButtonId }}"
123
123
  open-type="{{ confirmButtonOpenType }}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/smart-ui",
3
- "version": "2.9.3-beta-1",
3
+ "version": "2.9.3-beta-2",
4
4
  "author": "MiniApp Team",
5
5
  "license": "MIT",
6
6
  "miniprogram": "lib",