fix: naming
This commit is contained in:
parent
d94484220c
commit
82daaf255e
|
|
@ -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}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ function rollDice(formula: string): number {
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
customElement('ttrpg-dice', { key: '' }, (props, { element }) => {
|
customElement('md-dice', { key: '' }, (props, { element }) => {
|
||||||
noShadowDOM();
|
noShadowDOM();
|
||||||
const [result, setResult] = createSignal<number | null>(null);
|
const [result, setResult] = createSignal<number | null>(null);
|
||||||
const [isRolled, setIsRolled] = createSignal(false);
|
const [isRolled, setIsRolled] = createSignal(false);
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ interface TableRow {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
customElement('ttrpg-table', { src: '', roll: false, remix: false }, (props, { element }) => {
|
customElement('md-table', { src: '', roll: false, remix: false }, (props, { element }) => {
|
||||||
noShadowDOM();
|
noShadowDOM();
|
||||||
const [rows, setRows] = createSignal<TableRow[]>([]);
|
const [rows, setRows] = createSignal<TableRow[]>([]);
|
||||||
const [activeTab, setActiveTab] = createSignal(0);
|
const [activeTab, setActiveTab] = createSignal(0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue