@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.
- package/es/avatar/Avatar.mjs +4 -2
- package/es/avatar/props.mjs +3 -0
- package/es/fab/Fab.mjs +6 -1
- package/es/fab/props.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/snackbar/Snackbar.mjs +2 -2
- package/es/snackbar/props.mjs +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/varlet.esm.js +320 -312
- package/highlight/web-types.en-US.json +17 -8
- package/highlight/web-types.zh-CN.json +17 -8
- package/lib/varlet.cjs.js +18 -9
- package/package.json +6 -6
- package/types/actionSheet.d.ts +1 -1
- package/types/avatar.d.ts +1 -0
- package/types/dialog.d.ts +1 -1
- package/types/fab.d.ts +4 -1
- package/types/imagePreview.d.ts +1 -1
- package/types/overlay.d.ts +1 -1
- package/types/snackbar.d.ts +1 -1
- package/umd/varlet.js +4 -4
package/es/avatar/Avatar.mjs
CHANGED
|
@@ -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
|
}),
|
package/es/avatar/props.mjs
CHANGED
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
package/es/index.bundle.mjs
CHANGED
|
@@ -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
|
|
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
|
|
165
|
+
const version = '2.13.5'
|
|
166
166
|
|
|
167
167
|
function install(app) {
|
|
168
168
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/snackbar/Snackbar.mjs
CHANGED
|
@@ -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,
|
package/es/snackbar/props.mjs
CHANGED
|
@@ -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'
|