@varlet/ui 3.10.9 → 3.11.0
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/action-sheet/style/index.mjs +1 -1
- package/es/ellipsis/Ellipsis.mjs +28 -42
- package/es/ellipsis/ellipsis.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +485 -499
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +28 -42
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/umd/varlet.js +3 -3
package/es/ellipsis/Ellipsis.mjs
CHANGED
|
@@ -20,51 +20,37 @@ import VarTooltip from "../tooltip/index.mjs";
|
|
|
20
20
|
import { createNamespace } from "../utils/components.mjs";
|
|
21
21
|
import { props } from "./props.mjs";
|
|
22
22
|
const { name, n, classes } = createNamespace("ellipsis");
|
|
23
|
-
import { renderSlot as _renderSlot,
|
|
23
|
+
import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
24
24
|
const _hoisted_1 = { key: 0 };
|
|
25
25
|
function __render__(_ctx, _cache) {
|
|
26
26
|
const _component_var_tooltip = _resolveComponent("var-tooltip");
|
|
27
|
-
return _openBlock(), _createBlock(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
[
|
|
56
|
-
_renderSlot(_ctx.$slots, "default")
|
|
57
|
-
],
|
|
58
|
-
6
|
|
59
|
-
/* CLASS, STYLE */
|
|
60
|
-
)
|
|
61
|
-
]),
|
|
62
|
-
_: 3
|
|
63
|
-
/* FORWARDED */
|
|
64
|
-
},
|
|
65
|
-
16
|
|
66
|
-
/* FULL_PROPS */
|
|
67
|
-
);
|
|
27
|
+
return _openBlock(), _createBlock(_component_var_tooltip, _mergeProps({
|
|
28
|
+
class: _ctx.classes(_ctx.n(), [_ctx.lineClamp, _ctx.n("--clamp"), _ctx.n("--line")], [_ctx.expandTrigger, _ctx.n("--cursor")], [_ctx.expanding, _ctx.n("--expand")]),
|
|
29
|
+
"var-ellipsis-cover": "",
|
|
30
|
+
style: _ctx.rootStyles
|
|
31
|
+
}, _ctx.tooltipProps, { onClick: _ctx.handleClick }), {
|
|
32
|
+
content: _withCtx(() => [
|
|
33
|
+
_renderSlot(_ctx.$slots, "tooltip-content", {}, () => {
|
|
34
|
+
var _a;
|
|
35
|
+
return [
|
|
36
|
+
((_a = _ctx.tooltipProps) == null ? void 0 : _a.content) ? (_openBlock(), _createElementBlock(
|
|
37
|
+
"span",
|
|
38
|
+
_hoisted_1,
|
|
39
|
+
_toDisplayString(_ctx.tooltipProps.content),
|
|
40
|
+
1
|
|
41
|
+
/* TEXT */
|
|
42
|
+
)) : _renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
43
|
+
];
|
|
44
|
+
})
|
|
45
|
+
]),
|
|
46
|
+
default: _withCtx(() => [
|
|
47
|
+
_createElementVNode("span", null, [
|
|
48
|
+
_renderSlot(_ctx.$slots, "default")
|
|
49
|
+
])
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
/* FORWARDED */
|
|
53
|
+
}, 16, ["class", "style", "onClick"]);
|
|
68
54
|
}
|
|
69
55
|
const __sfc__ = defineComponent({
|
|
70
56
|
name,
|
package/es/ellipsis/ellipsis.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.var-ellipsis { width: 100%; overflow: hidden; vertical-align: bottom; -webkit-tap-highlight-color: transparent;}.var-ellipsis--clamp { display: -webkit-inline-box; -webkit-box-orient: vertical;}.var-ellipsis--line { display: inline-block; white-space: nowrap; text-overflow: ellipsis;}.var-ellipsis--cursor { cursor: pointer;}.var-ellipsis--expand { display: inline-block; white-space: wrap; overflow: visible;}
|
|
1
|
+
.var-ellipsis[var-ellipsis-cover] { width: 100%; overflow: hidden; vertical-align: bottom; -webkit-tap-highlight-color: transparent;}.var-ellipsis--clamp[var-ellipsis-cover] { display: -webkit-inline-box; -webkit-box-orient: vertical;}.var-ellipsis--line[var-ellipsis-cover] { display: inline-block; white-space: nowrap; text-overflow: ellipsis;}.var-ellipsis--cursor[var-ellipsis-cover] { cursor: pointer;}.var-ellipsis--expand[var-ellipsis-cover] { display: inline-block; white-space: wrap; overflow: visible;}
|
package/es/index.bundle.mjs
CHANGED
|
@@ -283,7 +283,7 @@ import './tooltip/style/index.mjs'
|
|
|
283
283
|
import './uploader/style/index.mjs'
|
|
284
284
|
import './watermark/style/index.mjs'
|
|
285
285
|
|
|
286
|
-
const version = '3.
|
|
286
|
+
const version = '3.11.0'
|
|
287
287
|
|
|
288
288
|
function install(app) {
|
|
289
289
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -188,7 +188,7 @@ export * from './tooltip/index.mjs'
|
|
|
188
188
|
export * from './uploader/index.mjs'
|
|
189
189
|
export * from './watermark/index.mjs'
|
|
190
190
|
|
|
191
|
-
const version = '3.
|
|
191
|
+
const version = '3.11.0'
|
|
192
192
|
|
|
193
193
|
function install(app) {
|
|
194
194
|
ActionSheet.install && app.use(ActionSheet)
|