fix: naming

This commit is contained in:
hypercross 2026-02-26 00:51:32 +08:00
parent d94484220c
commit 82daaf255e
3 changed files with 8 additions and 8 deletions

View File

@ -8,16 +8,16 @@
点击下面的骰子来掷骰:
:dice[2d6]
:md-dice[2d6]
:dice[1d20+d8]
:md-dice[1d20+d8]
:dice[3d6+5]{key="attack"}
:md-dice[3d6+5]{key="attack"}
### 表格组件
:table[./sparks.csv]
:md-table[./sparks.csv]
:table[./sparks.csv]{roll=true}
:md-table[./sparks.csv]{roll=true}
:table[./sparks.csv]{roll=true remix=true}
:md-table[./sparks.csv]{roll=true remix=true}

View File

@ -26,7 +26,7 @@ function rollDice(formula: string): number {
return total;
}
customElement('ttrpg-dice', { key: '' }, (props, { element }) => {
customElement('md-dice', { key: '' }, (props, { element }) => {
noShadowDOM();
const [result, setResult] = createSignal<number | null>(null);
const [isRolled, setIsRolled] = createSignal(false);

View File

@ -8,7 +8,7 @@ interface TableRow {
[key: string]: string;
}
customElement('ttrpg-table', { src: '', roll: false, remix: false }, (props, { element }) => {
customElement('md-table', { src: '', roll: false, remix: false }, (props, { element }) => {
noShadowDOM();
const [rows, setRows] = createSignal<TableRow[]>([]);
const [activeTab, setActiveTab] = createSignal(0);