@varlet/ui 2.12.1 → 2.12.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.
@@ -70,7 +70,7 @@ function __render__(_ctx, _cache) {
70
70
  }, null, 6 /* CLASS, STYLE */)], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1)), [[_directive_ripple, {
71
71
  disabled: _ctx.disabled || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly || !_ctx.ripple
72
72
  }]]);
73
- }), 128 /* KEYED_FRAGMENT */)), !_ctx.maxlength || _ctx.modelValue.length < _ctx.maxlength ? _withDirectives((_openBlock(), _createElementBlock("div", {
73
+ }), 128 /* KEYED_FRAGMENT */)), !_ctx.maxlength || _ctx.modelValue.length < _ctx.toNumber(_ctx.maxlength) ? _withDirectives((_openBlock(), _createElementBlock("div", {
74
74
  key: 0,
75
75
  class: _normalizeClass(_ctx.classes([!_ctx.$slots.default, _ctx.n('action') + " " + _ctx.formatElevation(_ctx.elevation, 2)], [_ctx.disabled || _ctx.formDisabled, _ctx.n('--disabled')])),
76
76
  onClick: _cache[1] || (_cache[1] = function () {
@@ -419,6 +419,7 @@ var __sfc__ = defineComponent({
419
419
  hovering,
420
420
  formDisabled: form == null ? void 0 : form.disabled,
421
421
  formReadonly: form == null ? void 0 : form.readonly,
422
+ toNumber,
422
423
  handleHovering,
423
424
  isHTMLSupportVideo,
424
425
  isHTMLSupportImage,
package/es/varlet.esm.js CHANGED
@@ -732,7 +732,8 @@ var Pt = {
732
732
  default: !1
733
733
  },
734
734
  teleport: {
735
- type: String
735
+ type: String,
736
+ default: "body"
736
737
  },
737
738
  onOpen: U(),
738
739
  onOpened: U(),
@@ -18810,7 +18811,7 @@ function MS(e, n) {
18810
18811
  }]])),
18811
18812
  128
18812
18813
  /* KEYED_FRAGMENT */
18813
- )), !e.maxlength || e.modelValue.length < e.maxlength ? ke((h(), k(
18814
+ )), !e.maxlength || e.modelValue.length < e.toNumber(e.maxlength) ? ke((h(), k(
18814
18815
  "div",
18815
18816
  {
18816
18817
  key: 0,
@@ -19081,6 +19082,7 @@ var zv = ee({
19081
19082
  hovering: v,
19082
19083
  formDisabled: o == null ? void 0 : o.disabled,
19083
19084
  formReadonly: o == null ? void 0 : o.readonly,
19085
+ toNumber: A,
19084
19086
  handleHovering: f,
19085
19087
  isHTMLSupportVideo: ol,
19086
19088
  isHTMLSupportImage: tl,
@@ -19105,7 +19107,7 @@ Ba.install = function(e) {
19105
19107
  e.component(Ba.name, Ba);
19106
19108
  };
19107
19109
  var t$ = Ba;
19108
- const ES = "2.12.1";
19110
+ const ES = "2.12.2";
19109
19111
  function IS(e) {
19110
19112
  _n.install && e.use(_n), Dr.install && e.use(Dr), Ar.install && e.use(Ar), zr.install && e.use(zr), Lr.install && e.use(Lr), cr.install && e.use(cr), Rr.install && e.use(Rr), Ur.install && e.use(Ur), Hr.install && e.use(Hr), Fr.install && e.use(Fr), nn.install && e.use(nn), Yr.install && e.use(Yr), jr.install && e.use(jr), mr.install && e.use(mr), pr.install && e.use(pr), Wr.install && e.use(Wr), hr.install && e.use(hr), Gr.install && e.use(Gr), qr.install && e.use(qr), Xr.install && e.use(Xr), bn.install && e.use(bn), Kr.install && e.use(Kr), Zr.install && e.use(Zr), Qr.install && e.use(Qr), xn.install && e.use(xn), _r.install && e.use(_r), xr.install && e.use(xr), ea.install && e.use(ea), qn.install && e.use(qn), xe.install && e.use(xe), Un.install && e.use(Un), pn.install && e.use(pn), Ve.install && e.use(Ve), na.install && e.use(na), Rn.install && e.use(Rn), ra.install && e.use(ra), aa.install && e.use(aa), Cr.install && e.use(Cr), gt.install && e.use(gt), ta.install && e.use(ta), oa.install && e.use(oa), Dn.install && e.use(Dn), bi.install && e.use(bi), jo.install && e.use(jo), Jn.install && e.use(Jn), ia.install && e.use(ia), la.install && e.use(la), sa.install && e.use(sa), ua.install && e.use(ua), za.install && e.use(za), kn.install && e.use(kn), da.install && e.use(da), va.install && e.use(va), fa.install && e.use(fa), ca.install && e.use(ca), ma.install && e.use(ma), pa.install && e.use(pa), qe.install && e.use(qe), ha.install && e.use(ha), ga.install && e.use(ga), ya.install && e.use(ya), ba.install && e.use(ba), $i.install && e.use($i), Ca.install && e.use(Ca), Sa.install && e.use(Sa), ka.install && e.use(ka), Zn.install && e.use(Zn), St.install && e.use(St), Xn.install && e.use(Xn), Kn.install && e.use(Kn), Ta.install && e.use(Ta), Pa.install && e.use(Pa), Oa.install && e.use(Oa), Va.install && e.use(Va), Ma.install && e.use(Ma), Ea.install && e.use(Ea), Pi.install && e.use(Pi), Ia.install && e.use(Ia), br.install && e.use(br), Ba.install && e.use(Ba);
19111
19113
  }
@@ -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": "2.12.1",
4
+ "version": "2.12.2",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -102,7 +102,7 @@
102
102
  {
103
103
  "name": "teleport",
104
104
  "description": "The location of the action sheet to mount",
105
- "default": "-",
105
+ "default": "body",
106
106
  "value": {
107
107
  "type": "TeleportProps['to']",
108
108
  "kind": "expression"
@@ -2285,7 +2285,7 @@
2285
2285
  {
2286
2286
  "name": "teleport",
2287
2287
  "description": "The location of the Dialog to mount",
2288
- "default": "-",
2288
+ "default": "body",
2289
2289
  "value": {
2290
2290
  "type": "TeleportProps['to']",
2291
2291
  "kind": "expression"
@@ -3000,7 +3000,7 @@
3000
3000
  {
3001
3001
  "name": "teleport",
3002
3002
  "description": "The location of the pop-up layer to mount",
3003
- "default": "-",
3003
+ "default": "body",
3004
3004
  "value": {
3005
3005
  "type": "TeleportProps['to']",
3006
3006
  "kind": "expression"
@@ -4322,7 +4322,7 @@
4322
4322
  {
4323
4323
  "name": "teleport",
4324
4324
  "description": "The location of the Popup to mount",
4325
- "default": "-",
4325
+ "default": "body",
4326
4326
  "value": {
4327
4327
  "type": "TeleportProps['to']",
4328
4328
  "kind": "expression"
@@ -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": "2.12.1",
4
+ "version": "2.12.2",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -102,7 +102,7 @@
102
102
  {
103
103
  "name": "teleport",
104
104
  "description": "动作面板挂载的位置",
105
- "default": "-",
105
+ "default": "body",
106
106
  "value": {
107
107
  "type": "TeleportProps['to']",
108
108
  "kind": "expression"
@@ -2444,7 +2444,7 @@
2444
2444
  {
2445
2445
  "name": "teleport",
2446
2446
  "description": "弹出层挂载的位置",
2447
- "default": "-",
2447
+ "default": "body",
2448
2448
  "value": {
2449
2449
  "type": "TeleportProps['to']",
2450
2450
  "kind": "expression"
@@ -3159,7 +3159,7 @@
3159
3159
  {
3160
3160
  "name": "teleport",
3161
3161
  "description": "弹出层挂载的位置",
3162
- "default": "-",
3162
+ "default": "body",
3163
3163
  "value": {
3164
3164
  "type": "TeleportProps['to']",
3165
3165
  "kind": "expression"
@@ -4494,7 +4494,7 @@
4494
4494
  {
4495
4495
  "name": "teleport",
4496
4496
  "description": "弹出层挂载的位置",
4497
- "default": "-",
4497
+ "default": "body",
4498
4498
  "value": {
4499
4499
  "type": "TeleportProps['to']",
4500
4500
  "kind": "expression"
@@ -4517,15 +4517,6 @@
4517
4517
  "type": "boolean",
4518
4518
  "kind": "expression"
4519
4519
  }
4520
- },
4521
- {
4522
- "name": "teleport",
4523
- "description": "弹出层挂载的位置",
4524
- "default": "-",
4525
- "value": {
4526
- "type": "TeleportProps['to']",
4527
- "kind": "expression"
4528
- }
4529
4520
  }
4530
4521
  ],
4531
4522
  "events": [