25 lines
591 B
TypeScript
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 })
|
|
);
|