web-backset.cn/apps/server/view/page/home/index.ts

25 lines
591 B
TypeScript
Raw Normal View History

2023-02-11 13:21:06 +08:00
import './index.less';
2023-02-21 17:58:09 +08:00
import './index.scss';
2023-02-11 13:21:06 +08:00
console.log('use ts wepack');
2023-02-21 17:58:09 +08:00
// 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 })
);