web-backset.cn/apps/server/view/page/home/index.ts
2023-02-21 17:58:09 +08:00

25 lines
591 B
TypeScript

import './index.less';
import './index.scss';
console.log('use ts wepack');
// import { createPopper } from '@popperjs/core';
// const popcorn = document.querySelector('#popcorn');
// const tooltip = document.querySelector('#tooltip');
// createPopper(popcorn, tooltip, {
// placement: 'top',
// });
import {
Tooltip as Tooltip,
// Toast as Toast,
// Popover as Popover,
} from 'bootstrap';
const tooltipTriggerList = document.querySelectorAll(
'[data-bs-toggle="tooltip"]'
);
[...tooltipTriggerList].map(
tooltipTriggerEl => new Tooltip(tooltipTriggerEl, { delay: 100 })
);