@sdata/web-vue 1.4.1 → 1.6.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/dist/sd.css +26 -0
- package/dist/sd.min.css +1 -1
- package/es/components.d.ts +2 -0
- package/es/ellipsis/ellipsis.js +72 -0
- package/es/ellipsis/ellipsis.vue.d.ts +1417 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +170 -0
- package/es/ellipsis/index.d.ts +5826 -0
- package/es/ellipsis/index.js +16 -0
- package/es/ellipsis/interface.d.ts +15 -0
- package/es/ellipsis/performant-ellipsis.js +47 -0
- package/es/ellipsis/performant-ellipsis.vue.d.ts +1462 -0
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +104 -0
- package/es/ellipsis/style/css.js +2 -0
- package/es/ellipsis/style/index.css +43 -0
- package/es/ellipsis/style/index.d.ts +2 -0
- package/es/ellipsis/style/index.js +2 -0
- package/es/ellipsis/style/index.less +33 -0
- package/es/ellipsis/style/token.less +5 -0
- package/es/form/form-item-label.vue_vue_type_script_lang.js +1 -1
- package/es/index.css +26 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -2
- package/es/index.less +1 -0
- package/es/sd-vue.js +5 -1
- package/json/vetur-attributes.json +1261 -1711
- package/json/vetur-tags.json +487 -590
- package/json/web-types.json +3027 -3934
- package/package.json +1 -1
package/es/components.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ declare module 'vue' {
|
|
|
46
46
|
SdDoption: (typeof import('@sdata/web-vue'))['Doption'];
|
|
47
47
|
SdDgroup: (typeof import('@sdata/web-vue'))['Dgroup'];
|
|
48
48
|
SdDsubmenu: (typeof import('@sdata/web-vue'))['Dsubmenu'];
|
|
49
|
+
SdEllipsis: (typeof import('@sdata/web-vue'))['Ellipsis'];
|
|
50
|
+
SdPerformantEllipsis: (typeof import('@sdata/web-vue'))['PerformantEllipsis'];
|
|
49
51
|
SdEmpty: (typeof import('@sdata/web-vue'))['Empty'];
|
|
50
52
|
SdForm: (typeof import('@sdata/web-vue'))['Form'];
|
|
51
53
|
SdFormItem: (typeof import('@sdata/web-vue'))['FormItem'];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import ellipsis_vue_vue_type_script_lang_default from "./ellipsis.vue_vue_type_script_lang.js";
|
|
3
|
+
import { createBlock, createElementBlock, mergeProps, normalizeClass, openBlock, renderSlot, resolveComponent, resolveDynamicComponent, withCtx } from "vue";
|
|
4
|
+
//#region components/ellipsis/ellipsis.vue
|
|
5
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6
|
+
const _component_Tooltip = resolveComponent("Tooltip");
|
|
7
|
+
const _component_ResizeObserver = resolveComponent("ResizeObserver");
|
|
8
|
+
return openBlock(), createBlock(_component_ResizeObserver, { onResize: _ctx.handleResize }, {
|
|
9
|
+
default: withCtx(() => [_ctx.enableTooltip ? (openBlock(), createBlock(_component_Tooltip, mergeProps({ key: 0 }, _ctx.tooltipBindings, { disabled: _ctx.tooltipDisabled }), {
|
|
10
|
+
content: withCtx(() => [renderSlot(_ctx.$slots, "tooltip", {}, () => [renderSlot(_ctx.$slots, "default")])]),
|
|
11
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(_ctx.componentTag), mergeProps({ ref: "triggerRef" }, _ctx.$attrs, {
|
|
12
|
+
class: _ctx.rootCls,
|
|
13
|
+
style: _ctx.rootStyle,
|
|
14
|
+
title: _ctx.nativeTitle,
|
|
15
|
+
role: _ctx.buttonRole,
|
|
16
|
+
tabindex: _ctx.buttonTabIndex,
|
|
17
|
+
"aria-expanded": _ctx.ariaExpanded,
|
|
18
|
+
onClick: _ctx.handleClick,
|
|
19
|
+
onKeydown: _ctx.handleKeydown
|
|
20
|
+
}), {
|
|
21
|
+
default: withCtx(() => [_ctx.isLineClamp ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("span", {
|
|
22
|
+
key: 1,
|
|
23
|
+
ref: "contentRef",
|
|
24
|
+
class: normalizeClass(`${_ctx.prefixCls}-content`)
|
|
25
|
+
}, [renderSlot(_ctx.$slots, "default")], 2))]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, [
|
|
28
|
+
"class",
|
|
29
|
+
"style",
|
|
30
|
+
"title",
|
|
31
|
+
"role",
|
|
32
|
+
"tabindex",
|
|
33
|
+
"aria-expanded",
|
|
34
|
+
"onClick",
|
|
35
|
+
"onKeydown"
|
|
36
|
+
]))]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16, ["disabled"])) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.componentTag), mergeProps({
|
|
39
|
+
key: 1,
|
|
40
|
+
ref: "triggerRef"
|
|
41
|
+
}, _ctx.$attrs, {
|
|
42
|
+
class: _ctx.rootCls,
|
|
43
|
+
style: _ctx.rootStyle,
|
|
44
|
+
title: _ctx.nativeTitle,
|
|
45
|
+
role: _ctx.buttonRole,
|
|
46
|
+
tabindex: _ctx.buttonTabIndex,
|
|
47
|
+
"aria-expanded": _ctx.ariaExpanded,
|
|
48
|
+
onClick: _ctx.handleClick,
|
|
49
|
+
onKeydown: _ctx.handleKeydown
|
|
50
|
+
}), {
|
|
51
|
+
default: withCtx(() => [_ctx.isLineClamp ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("span", {
|
|
52
|
+
key: 1,
|
|
53
|
+
ref: "contentRef",
|
|
54
|
+
class: normalizeClass(`${_ctx.prefixCls}-content`)
|
|
55
|
+
}, [renderSlot(_ctx.$slots, "default")], 2))]),
|
|
56
|
+
_: 3
|
|
57
|
+
}, 16, [
|
|
58
|
+
"class",
|
|
59
|
+
"style",
|
|
60
|
+
"title",
|
|
61
|
+
"role",
|
|
62
|
+
"tabindex",
|
|
63
|
+
"aria-expanded",
|
|
64
|
+
"onClick",
|
|
65
|
+
"onKeydown"
|
|
66
|
+
]))]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 8, ["onResize"]);
|
|
69
|
+
}
|
|
70
|
+
var ellipsis_default = /* @__PURE__ */ _plugin_vue_export_helper_default(ellipsis_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
71
|
+
//#endregion
|
|
72
|
+
export { ellipsis_default as default };
|