UNPKG

yanzhen-design-vue

Version:

49 lines (48 loc) 1.33 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const tooltip = require("ant-design-vue/es/tooltip"); const utilsVue = require("@yanzhen-libs/utils-vue"); const lodashEs = require("lodash-es"); require("../../../hooks/index.cjs"); const index = require("../../../hooks/use-namespace/index.cjs"); const ns = index.useNamespace("tooltip"); const tooltipOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const tooltipName = tooltipOptions.name; const AntTooltip = utilsVue.propsSeparate({ ...lodashEs.omit(tooltip.tooltipProps(), "title"), title: utilsVue.epPropType.any }); const errorImg = "https://pagoda-p-file-1301506715.cos.ap-guangzhou.myqcloud.com/freshgood-project/old-assets/img/icon_user@2x.png"; const tooltipProps = utilsVue.buildProps({ ...AntTooltip.props, url: { type: String }, errorImg: { type: String, default: errorImg }, text: { type: String }, tagName: { type: String }, imgStyle: { type: Object }, tagColor: { type: String, default: "blue" } }); const tooltipEmits = utilsVue.buildEmits(AntTooltip.emits); exports.AntTooltip = AntTooltip; exports.tooltipEmits = tooltipEmits; exports.tooltipName = tooltipName; exports.tooltipOptions = tooltipOptions; exports.tooltipProps = tooltipProps;