@varlet/ui 2.0.5 → 2.1.0-alpha.1666877950844

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/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '../types'
1
+ export * from '..\types'
@@ -1,5 +1,5 @@
1
- import type { Pack } from '../../types'
2
-
3
- declare const enUS: Pack
4
-
5
- export default enUS
1
+ import type { Pack } from '../../types'
2
+
3
+ declare const enUS: Pack
4
+
5
+ export default enUS
@@ -1,5 +1,5 @@
1
- import type { Pack } from '../../types'
2
-
3
- declare const zhCN: Pack
4
-
5
- export default zhCN
1
+ import type { Pack } from '../../types'
2
+
3
+ declare const zhCN: Pack
4
+
5
+ export default zhCN
@@ -56,7 +56,7 @@ export function render(_ctx, _cache) {
56
56
  "var-select-cover": "",
57
57
  class: _normalizeClass(_ctx.classes(_ctx.n('menu'))),
58
58
  "offset-y": _ctx.offsetY,
59
- disabled: _ctx.readonly || _ctx.disabled,
59
+ disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled,
60
60
  "default-style": false,
61
61
  show: _ctx.isFocus,
62
62
  "onUpdate:show": _cache[1] || (_cache[1] = $event => _ctx.isFocus = $event),
@@ -479,6 +479,7 @@ export default defineComponent({
479
479
  isFocus,
480
480
  errorMessage,
481
481
  formDisabled: form == null ? void 0 : form.disabled,
482
+ formReadonly: form == null ? void 0 : form.readonly,
482
483
  label,
483
484
  labels,
484
485
  menuEl,
@@ -1,5 +1,5 @@
1
- import { StyleVars } from '../../../types'
2
-
3
- declare const dark: StyleVars
4
-
5
- export default dark
1
+ import { StyleVars } from '../../../types'
2
+
3
+ declare const dark: StyleVars
4
+
5
+ export default dark
package/es/varlet.esm.js CHANGED
@@ -12729,7 +12729,7 @@ function yh(e, n) {
12729
12729
  "var-select-cover": "",
12730
12730
  class: m(e.classes(e.n("menu"))),
12731
12731
  "offset-y": e.offsetY,
12732
- disabled: e.readonly || e.disabled,
12732
+ disabled: e.formReadonly || e.readonly || e.formDisabled || e.disabled,
12733
12733
  "default-style": !1,
12734
12734
  show: e.isFocus,
12735
12735
  "onUpdate:show": n[1] || (n[1] = (o) => e.isFocus = o),
@@ -13066,6 +13066,7 @@ const _r = ae({
13066
13066
  isFocus: r,
13067
13067
  errorMessage: p,
13068
13068
  formDisabled: d == null ? void 0 : d.disabled,
13069
+ formReadonly: d == null ? void 0 : d.readonly,
13069
13070
  label: i,
13070
13071
  labels: o,
13071
13072
  menuEl: C,