Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.09 KB

File metadata and controls

43 lines (34 loc) · 1.09 KB

logo

ChemElemSplice

Usage

npm install
npm run dev
// src/elements.ts
export const customOrder: (number | string)[] = [59, 8, "D", 92, 6, "T"]; // product 氘 "D" 和氚 "T"
// src/components/ElementTable.vue
const exportPNG = async () => {
  if (tableRef.value) {
    const canvas = await html2canvas(tableRef.value, {
      scale: 10, // 控制清晰度
    });
    const link = document.createElement('a');
    link.href = canvas.toDataURL('image/png');
    link.download = getSymbolName() + '.png';
    link.click();
  }
};

Examples

mtf pass
氢砹锝 baby
bilibili nb
nice omg