@sdata/web-vue 1.4.1 → 1.5.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.
@@ -0,0 +1,16 @@
1
+ import { getComponentPrefix, setGlobalConfig } from "../_utils/global-config.js";
2
+ import ellipsis_default from "./ellipsis.js";
3
+ import performant_ellipsis_default from "./performant-ellipsis.js";
4
+ //#region components/ellipsis/index.ts
5
+ var Ellipsis = Object.assign(ellipsis_default, { install: (app, options) => {
6
+ setGlobalConfig(app, options);
7
+ const componentPrefix = getComponentPrefix(options);
8
+ app.component(componentPrefix + ellipsis_default.name, ellipsis_default);
9
+ } });
10
+ var PerformantEllipsis = Object.assign(performant_ellipsis_default, { install: (app, options) => {
11
+ setGlobalConfig(app, options);
12
+ const componentPrefix = getComponentPrefix(options);
13
+ app.component(componentPrefix + performant_ellipsis_default.name, performant_ellipsis_default);
14
+ } });
15
+ //#endregion
16
+ export { PerformantEllipsis, Ellipsis as default };
@@ -0,0 +1,15 @@
1
+ import type { CSSProperties } from 'vue';
2
+ import type { TriggerPosition } from '../_utils/constant';
3
+ import type { ClassName } from '../_utils/types';
4
+ import type { TriggerProps } from '../trigger';
5
+ export interface EllipsisTooltipProps extends Omit<Partial<TriggerProps>, 'popupVisible' | 'defaultPopupVisible' | 'disabled'> {
6
+ position?: TriggerPosition;
7
+ mini?: boolean;
8
+ backgroundColor?: string;
9
+ contentClass?: ClassName;
10
+ contentStyle?: CSSProperties;
11
+ arrowClass?: ClassName;
12
+ arrowStyle?: CSSProperties;
13
+ renderToBody?: boolean;
14
+ disabled?: boolean;
15
+ }
@@ -0,0 +1,47 @@
1
+ import _plugin_vue_export_helper_default from "../_virtual/_plugin-vue_export-helper.js";
2
+ import performant_ellipsis_vue_vue_type_script_lang_default from "./performant-ellipsis.vue_vue_type_script_lang.js";
3
+ import { createBlock, createElementBlock, createSlots, mergeProps, normalizeClass, openBlock, renderSlot, resolveComponent, resolveDynamicComponent, withCtx } from "vue";
4
+ //#region components/ellipsis/performant-ellipsis.vue
5
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
+ const _component_Ellipsis = resolveComponent("Ellipsis");
7
+ return !_ctx.activated ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.componentTag), mergeProps({ key: 0 }, _ctx.$attrs, {
8
+ class: _ctx.rootCls,
9
+ style: _ctx.rootStyle,
10
+ onMouseenter: _ctx.handleMouseenter,
11
+ onFocus: _ctx.handleFocus,
12
+ onClick: _ctx.handleClick
13
+ }), {
14
+ default: withCtx(() => [_ctx.isLineClamp ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("span", {
15
+ key: 1,
16
+ class: normalizeClass(`${_ctx.prefixCls}-content`)
17
+ }, [renderSlot(_ctx.$slots, "default")], 2))]),
18
+ _: 3
19
+ }, 16, [
20
+ "class",
21
+ "style",
22
+ "onMouseenter",
23
+ "onFocus",
24
+ "onClick"
25
+ ])) : (openBlock(), createBlock(_component_Ellipsis, mergeProps({
26
+ key: 1,
27
+ ref: "ellipsisRef"
28
+ }, _ctx.$attrs, {
29
+ "line-clamp": _ctx.lineClamp,
30
+ "expand-trigger": _ctx.expandTrigger,
31
+ tooltip: _ctx.tooltip
32
+ }), createSlots({
33
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
34
+ _: 2
35
+ }, [_ctx.$slots.tooltip ? {
36
+ name: "tooltip",
37
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltip")]),
38
+ key: "0"
39
+ } : void 0]), 1040, [
40
+ "line-clamp",
41
+ "expand-trigger",
42
+ "tooltip"
43
+ ]));
44
+ }
45
+ var performant_ellipsis_default = /* @__PURE__ */ _plugin_vue_export_helper_default(performant_ellipsis_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
46
+ //#endregion
47
+ export { performant_ellipsis_default as default };