UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

242 lines (241 loc) 5.45 kB
declare const _sfc_main: import("vue").DefineComponent<{ /** * 文本 * * @type {String} */ text: { type: StringConstructor; }; /** * 按照指定长度截取 * * @type {Number} */ length: { type: NumberConstructor; }; /** * 限制的高度 * * @type {Number} */ height: { type: NumberConstructor; }; /** * 是否禁用省略 * * @type {Boolean} */ disabled: { type: BooleanConstructor; default: boolean; }; /** * 限制行数,将换算为 height。如果设置了 height,则直接使用 height 计算 * * @type {Number} */ lines: { type: NumberConstructor; }; /** * 是否将全角字符的长度视为2来计算字符串长度,适用于 length * * @type {Boolean} */ fullWidthRecognition: { type: BooleanConstructor; default: boolean; }; /** * 是否自动根据外层宽度动态改变 (设置 height 时生效) * * @type {Boolean} */ autoResize: { type: BooleanConstructor; default: boolean; }; /** * 是否开启 tooltip * * @type {Boolean} */ tooltip: { type: BooleanConstructor; default: boolean; }; /** * 弹窗的展开方向 * * @type {String} */ placement: { type: StringConstructor; validator(value: string): boolean; default: string; }; /** * 主题,可选值为 dark 或 light * * @type {String} */ theme: { type: StringConstructor; validator(value: string): boolean; default: string; }; /** * 是否将弹层放置于 body 内,在 Tabs、 * 带有 fixed 的 Table 列内使用时, * 建议添加此属性,它将不受父级样式影响, * 从而达到更好的效果 * * @type {Boolean} */ transfer: { type: BooleanConstructor; default(): any; }; /** * 最大宽度,超出最大值后,文本将自动换行,并两端对齐 * * @type {String, Number} */ maxWidth: { type: (NumberConstructor | StringConstructor)[]; }; }, { prefixCls: string; wrapper: import("vue").Ref<HTMLDivElement>; textRef: import("vue").Ref<HTMLSpanElement>; moreRef: import("vue").Ref<HTMLSpanElement>; data: { computedReady: boolean; computedText: string; oversize: boolean; }; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-hide" | "on-show")[], "on-hide" | "on-show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ /** * 文本 * * @type {String} */ text: { type: StringConstructor; }; /** * 按照指定长度截取 * * @type {Number} */ length: { type: NumberConstructor; }; /** * 限制的高度 * * @type {Number} */ height: { type: NumberConstructor; }; /** * 是否禁用省略 * * @type {Boolean} */ disabled: { type: BooleanConstructor; default: boolean; }; /** * 限制行数,将换算为 height。如果设置了 height,则直接使用 height 计算 * * @type {Number} */ lines: { type: NumberConstructor; }; /** * 是否将全角字符的长度视为2来计算字符串长度,适用于 length * * @type {Boolean} */ fullWidthRecognition: { type: BooleanConstructor; default: boolean; }; /** * 是否自动根据外层宽度动态改变 (设置 height 时生效) * * @type {Boolean} */ autoResize: { type: BooleanConstructor; default: boolean; }; /** * 是否开启 tooltip * * @type {Boolean} */ tooltip: { type: BooleanConstructor; default: boolean; }; /** * 弹窗的展开方向 * * @type {String} */ placement: { type: StringConstructor; validator(value: string): boolean; default: string; }; /** * 主题,可选值为 dark 或 light * * @type {String} */ theme: { type: StringConstructor; validator(value: string): boolean; default: string; }; /** * 是否将弹层放置于 body 内,在 Tabs、 * 带有 fixed 的 Table 列内使用时, * 建议添加此属性,它将不受父级样式影响, * 从而达到更好的效果 * * @type {Boolean} */ transfer: { type: BooleanConstructor; default(): any; }; /** * 最大宽度,超出最大值后,文本将自动换行,并两端对齐 * * @type {String, Number} */ maxWidth: { type: (NumberConstructor | StringConstructor)[]; }; }>> & { "onOn-hide"?: (...args: any[]) => any; "onOn-show"?: (...args: any[]) => any; }, { disabled: boolean; transfer: boolean; placement: string; theme: string; tooltip: boolean; fullWidthRecognition: boolean; autoResize: boolean; }>; export default _sfc_main;