@varlet/ui 2.13.5-alpha.1690489609808 → 2.13.5

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.
@@ -10,8 +10,8 @@ var {
10
10
  } = createNamespace('avatar');
11
11
  import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, Fragment as _Fragment, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
12
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
13
- var _hoisted_1 = ["src", "lazy-loading", "lazy-error"];
14
- var _hoisted_2 = ["src"];
13
+ var _hoisted_1 = ["src", "alt", "lazy-loading", "lazy-error"];
14
+ var _hoisted_2 = ["src", "alt"];
15
15
  function __render__(_ctx, _cache) {
16
16
  var _directive_lazy = _resolveDirective("lazy");
17
17
  return _openBlock(), _createElementBlock("div", {
@@ -32,6 +32,7 @@ function __render__(_ctx, _cache) {
32
32
  key: 0,
33
33
  class: _normalizeClass(_ctx.n('image')),
34
34
  src: _ctx.src,
35
+ alt: _ctx.alt,
35
36
  style: _normalizeStyle({
36
37
  objectFit: _ctx.fit
37
38
  }),
@@ -44,6 +45,7 @@ function __render__(_ctx, _cache) {
44
45
  key: 1,
45
46
  class: _normalizeClass(_ctx.n('image')),
46
47
  src: _ctx.src,
48
+ alt: _ctx.alt,
47
49
  style: _normalizeStyle({
48
50
  objectFit: _ctx.fit
49
51
  }),
@@ -17,6 +17,9 @@ export var props = {
17
17
  validator: sizeValidator,
18
18
  default: 'normal'
19
19
  },
20
+ alt: {
21
+ type: String
22
+ },
20
23
  color: {
21
24
  type: String
22
25
  },
package/es/fab/Fab.mjs CHANGED
@@ -4,6 +4,7 @@ import Icon from '../icon/index.mjs';
4
4
  import Drag from '../drag/index.mjs';
5
5
  import { defineComponent, ref, Transition, watch } from 'vue';
6
6
  import { useClickOutside } from '@varlet/use';
7
+ import { isBoolean } from '@varlet/shared';
7
8
  import { call, createNamespace, flatFragment, useVModel } from '../utils/components.mjs';
8
9
  import { toSizeUnit } from '../utils/elements.mjs';
9
10
  import { props } from './props.mjs';
@@ -109,6 +110,7 @@ export default defineComponent({
109
110
  var _slot;
110
111
  var _call;
111
112
  var children = flatFragment((_call = call(slots.default)) != null ? _call : []);
113
+ var dragProps = isBoolean(props.drag) ? {} : props.drag;
112
114
  return _createVNode(Drag, _mergeProps({
113
115
  "ref": dragRef,
114
116
  "class": classes(n("--position-" + props.position), [!props.fixed, n('--absolute')]),
@@ -120,7 +122,10 @@ export default defineComponent({
120
122
  },
121
123
  "zIndex": props.zIndex,
122
124
  "teleport": props.teleport,
123
- "disabled": props.disabled || !props.drag || !props.fixed
125
+ "disabled": props.disabled || !props.drag || !props.fixed,
126
+ "direction": dragProps.direction,
127
+ "attraction": dragProps.attraction,
128
+ "boundary": dragProps.boundary
124
129
  }, attrs), {
125
130
  default: () => [_createVNode("div", {
126
131
  "class": classes(n(), n("--direction-" + props.direction), [props.safeArea, n('--safe-area')]),
package/es/fab/props.mjs CHANGED
@@ -19,7 +19,7 @@ export var props = {
19
19
  default: true
20
20
  },
21
21
  drag: {
22
- type: Boolean,
22
+ type: [Object, Boolean],
23
23
  default: false
24
24
  },
25
25
  type: {
@@ -244,7 +244,7 @@ import './time-picker/style/index.mjs'
244
244
  import './tooltip/style/index.mjs'
245
245
  import './uploader/style/index.mjs'
246
246
 
247
- const version = '2.13.5-alpha.1690489609808'
247
+ const version = '2.13.5'
248
248
 
249
249
  function install(app) {
250
250
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -162,7 +162,7 @@ export * from './time-picker/index.mjs'
162
162
  export * from './tooltip/index.mjs'
163
163
  export * from './uploader/index.mjs'
164
164
 
165
- const version = '2.13.5-alpha.1690489609808'
165
+ const version = '2.13.5'
166
166
 
167
167
  function install(app) {
168
168
  ActionSheet.install && app.use(ActionSheet)
@@ -9,8 +9,8 @@ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createT
9
9
  function __render__(_ctx, _cache) {
10
10
  var _component_var_snackbar_core = _resolveComponent("var-snackbar-core");
11
11
  return _openBlock(), _createBlock(_Teleport, {
12
- to: _ctx.teleport,
13
- disabled: _ctx.disabled
12
+ to: _ctx.teleport === false ? undefined : _ctx.teleport,
13
+ disabled: _ctx.disabled || _ctx.teleport === false
14
14
  }, [_createVNode(_Transition, {
15
15
  name: _ctx.n() + "-fade",
16
16
  onAfterEnter: _ctx.onOpened,
@@ -48,7 +48,7 @@ export var props = {
48
48
  default: false
49
49
  },
50
50
  teleport: {
51
- type: [String, Object],
51
+ type: [String, Object, Boolean],
52
52
  default: 'body'
53
53
  },
54
54
  forbidClick: {
@@ -1,8 +1,8 @@
1
1
  import '../../styles/common.css'
2
- import '../SnackbarSfc.css'
3
2
  import '../../styles/elevation.css'
4
3
  import '../../loading/loading.css'
5
4
  import '../../button/button.css'
6
5
  import '../../icon/icon.css'
7
6
  import '../snackbar.css'
8
7
  import '../coreSfc.css'
8
+ import '../SnackbarSfc.css'