Skip to content

Commit 026ae2e

Browse files
committed
fix: remove unneed code
1 parent efe7244 commit 026ae2e

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

packages/vchart/src/plugin/components/tooltip-handler/dom-tooltip-handler.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -176,53 +176,6 @@ export class DomTooltipHandler extends BaseTooltipHandler {
176176
this._domStyle = getDomStyle(tooltipSpec);
177177
}
178178

179-
// protected _updateDomString(actualTooltip?: ITooltipActual) {
180-
// let domString = '';
181-
// const { title = {}, content } = actualTooltip;
182-
// const hasContent = content && content.length;
183-
// const rowStyle = this._domStyle.row;
184-
185-
// if (title.visible !== false) {
186-
// domString += `<h2 style="${cssToStyleString({
187-
// ...this._domStyle.title,
188-
// ...(hasContent ? rowStyle : { marginBottom: '0px' }),
189-
// marginTop: '0px'
190-
// })}"><span>${title.value ?? ''}</span></h2>`;
191-
// }
192-
// if (hasContent) {
193-
// const rowItems = content
194-
// .map((entry, index) => {
195-
// const rowStyleString = cssToStyleString({
196-
// ...(index === content.length - 1 ? null : rowStyle)
197-
// });
198-
199-
// return `<div class="${TOOLTIP_PREFIX}-row" style="${rowStyleString}">
200-
// <div class="${TOOLTIP_PREFIX}-shape" style="${cssToStyleString({
201-
// display: 'inline-block',
202-
// ...this._domStyle.shape
203-
// })}">${getSvgHtml(entry)}</div>
204-
// <div class="${TOOLTIP_PREFIX}-key" style="${cssToStyleString({
205-
// display: 'inline-block',
206-
// ...this._domStyle.key,
207-
// ...(entry.keyStyle ? getTextStyle(entry.keyStyle) : null)
208-
// })}">${escapeHTML(entry.key)}</div>
209-
// <div class="${TOOLTIP_PREFIX}-value" style="${cssToStyleString({
210-
// display: 'inline-block',
211-
// ...this._domStyle.value,
212-
// ...(entry.valueStyle ? getTextStyle(entry.valueStyle) : null)
213-
// })}">${escapeHTML(entry.value)}</div>
214-
// </div>`;
215-
// })
216-
// .join('');
217-
218-
// domString += `<div class="${TOOLTIP_CONTENT_BOX_CLASS_NAME}" style="${cssToStyleString(
219-
// this._domStyle.content
220-
// )}">${rowItems}</div>`;
221-
// }
222-
223-
// this._domString = domString;
224-
// }
225-
226179
protected _updateDomStringByCol(actualTooltip?: ITooltipActual) {
227180
let domString = '';
228181
const { title = {}, content } = actualTooltip;

0 commit comments

Comments
 (0)