@varlet/ui 2.12.3 → 2.12.4-alpha.1689047623608

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.
@@ -4,7 +4,7 @@ import { props } from './props.mjs';
4
4
  var {
5
5
  n
6
6
  } = createNamespace('form-details');
7
- import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
7
+ import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
8
8
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
9
9
  var _hoisted_1 = {
10
10
  key: 0
@@ -16,7 +16,7 @@ function __render__(_ctx, _cache) {
16
16
  return _openBlock(), _createBlock(_Transition, {
17
17
  name: _ctx.n()
18
18
  }, {
19
- default: _withCtx(() => [_ctx.errorMessage || _ctx.extraMessage ? (_openBlock(), _createElementBlock("div", {
19
+ default: _withCtx(() => [_ctx.errorMessage || _ctx.extraMessage || _ctx.$slots['extra-message'] ? (_openBlock(), _createElementBlock("div", {
20
20
  key: 0,
21
21
  class: _normalizeClass(_ctx.n())
22
22
  }, [_createElementVNode("div", {
@@ -31,10 +31,10 @@ function __render__(_ctx, _cache) {
31
31
  }, [_createVNode(_Transition, {
32
32
  name: _ctx.n('message')
33
33
  }, {
34
- default: _withCtx(() => [_ctx.extraMessage ? (_openBlock(), _createElementBlock("div", _hoisted_2, _toDisplayString(_ctx.extraMessage), 1 /* TEXT */)) : _createCommentVNode("v-if", true)]),
35
- _: 1 /* STABLE */
34
+ default: _withCtx(() => [_renderSlot(_ctx.$slots, "extra-message", {}, () => [_ctx.extraMessage ? (_openBlock(), _createElementBlock("div", _hoisted_2, _toDisplayString(_ctx.extraMessage), 1 /* TEXT */)) : _createCommentVNode("v-if", true)])]),
35
+ _: 3 /* FORWARDED */
36
36
  }, 8 /* PROPS */, ["name"])], 2 /* CLASS */)], 2 /* CLASS */)) : _createCommentVNode("v-if", true)]),
37
- _: 1 /* STABLE */
37
+ _: 3 /* FORWARDED */
38
38
  }, 8 /* PROPS */, ["name"]);
39
39
  }
40
40
  var __sfc__ = defineComponent({
@@ -241,7 +241,7 @@ import './time-picker/style/index.mjs'
241
241
  import './tooltip/style/index.mjs'
242
242
  import './uploader/style/index.mjs'
243
243
 
244
- const version = '2.12.3'
244
+ const version = '2.12.4-alpha.1689047623608'
245
245
 
246
246
  function install(app) {
247
247
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -160,7 +160,7 @@ export * from './time-picker/index.mjs'
160
160
  export * from './tooltip/index.mjs'
161
161
  export * from './uploader/index.mjs'
162
162
 
163
- const version = '2.12.3'
163
+ const version = '2.12.4-alpha.1689047623608'
164
164
 
165
165
  function install(app) {
166
166
  ActionSheet.install && app.use(ActionSheet)
@@ -144,7 +144,13 @@ function __render__(_ctx, _cache) {
144
144
  "error-message": _ctx.errorMessage,
145
145
  "extra-message": _ctx.maxlengthText,
146
146
  onMousedown: _cache[14] || (_cache[14] = _withModifiers(() => {}, ["stop"]))
147
- }, null, 8 /* PROPS */, ["error-message", "extra-message"])], 34 /* CLASS, HYDRATE_EVENTS */);
147
+ }, _createSlots({
148
+ _: 2 /* DYNAMIC */
149
+ }, [_ctx.$slots['extra-message'] ? {
150
+ name: "extra-message",
151
+ fn: _withCtx(() => [_renderSlot(_ctx.$slots, "extra-message")]),
152
+ key: "0"
153
+ } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["error-message", "extra-message"])], 34 /* CLASS, HYDRATE_EVENTS */);
148
154
  }
149
155
 
150
156
  var __sfc__ = defineComponent({
@@ -19,7 +19,7 @@ var {
19
19
  classes
20
20
  } = createNamespace('uploader');
21
21
  var fid = 0;
22
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, renderSlot as _renderSlot, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
22
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, renderSlot as _renderSlot, withCtx as _withCtx, createSlots as _createSlots, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
23
23
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
24
24
  var _hoisted_1 = ["onClick"];
25
25
  var _hoisted_2 = ["onClick"];
@@ -98,7 +98,13 @@ function __render__(_ctx, _cache) {
98
98
  }], [_directive_hover, _ctx.handleHovering, "desktop"]]) : _createCommentVNode("v-if", true)], 2 /* CLASS */), _createVNode(_component_var_form_details, {
99
99
  "error-message": _ctx.errorMessage,
100
100
  "extra-message": _ctx.maxlengthText
101
- }, null, 8 /* PROPS */, ["error-message", "extra-message"]), _createVNode(_component_var_popup, {
101
+ }, _createSlots({
102
+ _: 2 /* DYNAMIC */
103
+ }, [_ctx.$slots['extra-message'] ? {
104
+ name: "extra-message",
105
+ fn: _withCtx(() => [_renderSlot(_ctx.$slots, "extra-message")]),
106
+ key: "0"
107
+ } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["error-message", "extra-message"]), _createVNode(_component_var_popup, {
102
108
  class: _normalizeClass(_ctx.n('preview')),
103
109
  "var-uploader-cover": "",
104
110
  position: "center",