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 })
|
|
|
|
);
|