@varlet/ui 2.8.0-alpha.1676455225773 → 2.8.0-alpha.1676475806986
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 +5 -2
- package/es/avatar-group/AvatarGroup.mjs +1 -2
- package/es/avatar-group/avatarGroup.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/varlet.esm.js +1376 -1375
- package/highlight/web-types.en-US.json +32 -2
- package/highlight/web-types.zh-CN.json +32 -2
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +314 -313
- package/package.json +5 -5
- package/types/avatar.d.ts +5 -0
- package/types/avatarGroup.d.ts +5 -0
- package/umd/style.css +1 -1
- package/umd/varlet.js +6 -6
package/es/avatar/Avatar.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Lazy from '../lazy/index.mjs';
|
|
1
2
|
import { defineComponent, ref, onMounted, onUpdated } from 'vue';
|
|
2
3
|
import { props, internalSizeValidator, sizeValidator } from './props.mjs';
|
|
3
4
|
import { toSizeUnit } from '../utils/elements.mjs';
|
|
@@ -18,7 +19,7 @@ function __render__(_ctx, _cache) {
|
|
|
18
19
|
|
|
19
20
|
return _openBlock(), _createElementBlock("div", {
|
|
20
21
|
ref: "avatarElement",
|
|
21
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.internalSizeValidator(_ctx.size), _ctx.n("--" + _ctx.size)], [_ctx.round, _ctx.n('--round')], [_ctx.bordered, _ctx.n('--bordered')])),
|
|
22
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.internalSizeValidator(_ctx.size), _ctx.n("--" + _ctx.size)], [_ctx.round, _ctx.n('--round')], [_ctx.bordered, _ctx.n('--bordered')])),
|
|
22
23
|
style: _normalizeStyle({
|
|
23
24
|
width: !_ctx.internalSizeValidator(_ctx.size) ? _ctx.toSizeUnit(_ctx.size) : undefined,
|
|
24
25
|
height: !_ctx.internalSizeValidator(_ctx.size) ? _ctx.toSizeUnit(_ctx.size) : undefined,
|
|
@@ -77,7 +78,9 @@ function __render__(_ctx, _cache) {
|
|
|
77
78
|
|
|
78
79
|
var __sfc__ = defineComponent({
|
|
79
80
|
name: 'VarAvatar',
|
|
80
|
-
|
|
81
|
+
directives: {
|
|
82
|
+
Lazy
|
|
83
|
+
},
|
|
81
84
|
props,
|
|
82
85
|
|
|
83
86
|
setup(props) {
|
|
@@ -12,14 +12,13 @@ function __render__(_ctx, _cache) {
|
|
|
12
12
|
return _openBlock(), _createElementBlock("div", {
|
|
13
13
|
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.vertical, _ctx.n('--column'), _ctx.n('--row')])),
|
|
14
14
|
style: _normalizeStyle(_ctx.rootStyles)
|
|
15
|
-
}, [_renderSlot(_ctx.$slots, "default")
|
|
15
|
+
}, [_renderSlot(_ctx.$slots, "default")], 6
|
|
16
16
|
/* CLASS, STYLE */
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
var __sfc__ = defineComponent({
|
|
21
21
|
name: 'VarAvatarGroup',
|
|
22
|
-
components: {},
|
|
23
22
|
props,
|
|
24
23
|
|
|
25
24
|
setup(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --avatar-group-offset: -10px;}.var-avatar-group { display: flex; flex-wrap: wrap;}.var-avatar-group--row { margin-left: calc(var(--avatar-group-offset) * -1);}.var-avatar-group--row > * { margin-left: var(--avatar-group-offset);}.var-avatar-group--column { flex-direction: column; margin-top: calc(var(--avatar-group-offset) * -1);}.var-avatar-group--column > * { margin-top: var(--avatar-group-offset);}
|
|
1
|
+
:root { --avatar-group-offset: -10px;}.var-avatar-group { display: inline-flex; flex-wrap: wrap;}.var-avatar-group--row { margin-left: calc(var(--avatar-group-offset) * -1);}.var-avatar-group--row > * { margin-left: var(--avatar-group-offset);}.var-avatar-group--column { flex-direction: column; margin-top: calc(var(--avatar-group-offset) * -1);}.var-avatar-group--column > * { margin-top: var(--avatar-group-offset);}
|
package/es/index.bundle.mjs
CHANGED
|
@@ -229,7 +229,7 @@ import './time-picker/style/index.mjs'
|
|
|
229
229
|
import './tooltip/style/index.mjs'
|
|
230
230
|
import './uploader/style/index.mjs'
|
|
231
231
|
|
|
232
|
-
const version = '2.8.0-alpha.
|
|
232
|
+
const version = '2.8.0-alpha.1676475806986'
|
|
233
233
|
|
|
234
234
|
function install(app) {
|
|
235
235
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -152,7 +152,7 @@ export * from './time-picker/index.mjs'
|
|
|
152
152
|
export * from './tooltip/index.mjs'
|
|
153
153
|
export * from './uploader/index.mjs'
|
|
154
154
|
|
|
155
|
-
const version = '2.8.0-alpha.
|
|
155
|
+
const version = '2.8.0-alpha.1676475806986'
|
|
156
156
|
|
|
157
157
|
function install(app) {
|
|
158
158
|
ActionSheet.install && app.use(ActionSheet)
|