@varlet/ui 2.17.0-alpha.1695808133927 → 2.17.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/ellipsis/Ellipsis.mjs +4 -11
- package/es/ellipsis/props.mjs +4 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/varlet.esm.js +106 -106
- package/highlight/web-types.en-US.json +11 -2
- package/highlight/web-types.zh-CN.json +11 -2
- package/lib/varlet.cjs.js +6 -11
- package/package.json +7 -7
- package/types/ellipsis.d.ts +3 -1
- package/umd/varlet.js +5 -5
package/es/ellipsis/Ellipsis.mjs
CHANGED
|
@@ -15,8 +15,8 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
import VarTooltip from "../tooltip/index.mjs";
|
|
18
|
-
import { computed, defineComponent
|
|
19
|
-
import { createNamespace } from "../utils/components.mjs";
|
|
18
|
+
import { computed, defineComponent } from "vue";
|
|
19
|
+
import { createNamespace, useVModel } from "../utils/components.mjs";
|
|
20
20
|
import { props } from "./props.mjs";
|
|
21
21
|
const { name, n, classes } = createNamespace("ellipsis");
|
|
22
22
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
@@ -71,15 +71,8 @@ const __sfc__ = defineComponent({
|
|
|
71
71
|
components: { VarTooltip },
|
|
72
72
|
props,
|
|
73
73
|
setup(props2) {
|
|
74
|
-
const expanding =
|
|
75
|
-
const rootStyles = computed(() => {
|
|
76
|
-
if (!props2.lineClamp) {
|
|
77
|
-
return {};
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
"-webkit-line-clamp": props2.lineClamp
|
|
81
|
-
};
|
|
82
|
-
});
|
|
74
|
+
const expanding = useVModel(props2, "expand");
|
|
75
|
+
const rootStyles = computed(() => props2.lineClamp ? { "-webkit-line-clamp": props2.lineClamp } : {});
|
|
83
76
|
const tooltip = computed(() => {
|
|
84
77
|
if (props2.tooltip === false) {
|
|
85
78
|
return {
|
package/es/ellipsis/props.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { defineListenerProp } from "../utils/components.mjs";
|
|
1
2
|
const props = {
|
|
3
|
+
expand: Boolean,
|
|
2
4
|
expandTrigger: String,
|
|
3
5
|
lineClamp: [Number, String],
|
|
4
6
|
tooltip: {
|
|
5
7
|
type: [Object, Boolean],
|
|
6
8
|
default: true
|
|
7
|
-
}
|
|
9
|
+
},
|
|
10
|
+
"onUpdate:expand": defineListenerProp()
|
|
8
11
|
};
|
|
9
12
|
export {
|
|
10
13
|
props
|
package/es/index.bundle.mjs
CHANGED
|
@@ -250,7 +250,7 @@ import './tooltip/style/index.mjs'
|
|
|
250
250
|
import './uploader/style/index.mjs'
|
|
251
251
|
import './watermark/style/index.mjs'
|
|
252
252
|
|
|
253
|
-
const version = '2.17.0
|
|
253
|
+
const version = '2.17.0'
|
|
254
254
|
|
|
255
255
|
function install(app) {
|
|
256
256
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -166,7 +166,7 @@ export * from './tooltip/index.mjs'
|
|
|
166
166
|
export * from './uploader/index.mjs'
|
|
167
167
|
export * from './watermark/index.mjs'
|
|
168
168
|
|
|
169
|
-
const version = '2.17.0
|
|
169
|
+
const version = '2.17.0'
|
|
170
170
|
|
|
171
171
|
function install(app) {
|
|
172
172
|
ActionSheet.install && app.use(ActionSheet)
|