sard 1.2.2 → 1.2.3
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.
|
@@ -184,22 +184,18 @@ var ellipsis_default = /*@__PURE__*/ defineComponent({
|
|
|
184
184
|
return openBlock(), createElementBlock("div", {
|
|
185
185
|
ref: "root",
|
|
186
186
|
class: normalizeClass(unref(bem).b())
|
|
187
|
-
}, [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
class: normalizeClass(unref(measureClass)),
|
|
200
|
-
"aria-hidden": "true"
|
|
201
|
-
}, null, 2)
|
|
202
|
-
], 2);
|
|
187
|
+
}, [createElementVNode("div", {
|
|
188
|
+
class: normalizeClass(contentClass.value),
|
|
189
|
+
style: normalizeStyle(contentStyle.value)
|
|
190
|
+
}, [createTextVNode(toDisplayString(displayContent.value) + " ", 1), showAction.value ? (openBlock(), createElementBlock("span", {
|
|
191
|
+
key: 0,
|
|
192
|
+
class: normalizeClass(unref(actionClass)),
|
|
193
|
+
onClick: onToggle
|
|
194
|
+
}, toDisplayString(actionText.value), 3)) : createCommentVNode("v-if", true)], 6), createElementVNode("div", {
|
|
195
|
+
ref: "measure",
|
|
196
|
+
class: normalizeClass(unref(measureClass)),
|
|
197
|
+
"aria-hidden": "true"
|
|
198
|
+
}, null, 2)], 2);
|
|
203
199
|
};
|
|
204
200
|
}
|
|
205
201
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { defaultTextShrinkProps } from "./common.js";
|
|
3
|
-
import { computed,
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, toDisplayString, unref, useTemplateRef, watch } from "vue";
|
|
4
4
|
//#region packages/sard/components/text-shrink/text-shrink.vue
|
|
5
5
|
const _hoisted_1 = ["textContent"];
|
|
6
6
|
const MIN_FONT_SIZE = 1;
|
|
@@ -235,7 +235,7 @@ var text_shrink_default = /*@__PURE__*/ defineComponent({
|
|
|
235
235
|
return openBlock(), createElementBlock("div", {
|
|
236
236
|
ref: "root",
|
|
237
237
|
class: normalizeClass(rootClass.value)
|
|
238
|
-
}, [
|
|
238
|
+
}, [createElementVNode("div", {
|
|
239
239
|
ref: "text",
|
|
240
240
|
class: normalizeClass(textClass.value),
|
|
241
241
|
style: normalizeStyle(textStyle.value)
|