|
@@ -14,8 +14,8 @@ export default defineComponent({
|
|
|
const autoProduct = (val: any) => {
|
|
|
if (search.modeType === 'json') return
|
|
|
// console.log(musicData.rended, '渲染是否结束')
|
|
|
- if (!musicData.svg){
|
|
|
- musicData.svg = document.getElementById('osmdSvgPage1')?.outerHTML || '';
|
|
|
+ if (!musicData.svg) {
|
|
|
+ musicData.svg = document.getElementById('osmdSvgPage1')?.outerHTML || ''
|
|
|
}
|
|
|
if (!musicData.svg) {
|
|
|
return
|
|
@@ -168,32 +168,33 @@ export default defineComponent({
|
|
|
{search.modeType === 'json' && (
|
|
|
<div class={styles.wrap}>
|
|
|
<CellGroup>
|
|
|
- <Cell
|
|
|
- center
|
|
|
- title="五线谱"
|
|
|
- vSlots={{
|
|
|
- 'right-icon': () =>
|
|
|
- detailState.activeDetail?.musicSvg ? <Icon name="checked" color="rgba(103,201,176,1)" /> : '',
|
|
|
- }}
|
|
|
- ></Cell>
|
|
|
- <Cell
|
|
|
- center
|
|
|
- title="首调"
|
|
|
- vSlots={{
|
|
|
- 'right-icon': () =>
|
|
|
- detailState.activeDetail?.musicJianSvg ? <Icon name="checked" color="rgba(103,201,176,1)" /> : '',
|
|
|
- }}
|
|
|
- ></Cell>
|
|
|
- <Cell
|
|
|
- center
|
|
|
- title="固定调"
|
|
|
- vSlots={{
|
|
|
- 'right-icon': () =>
|
|
|
- detailState.activeDetail?.musicFirstSvg ? <Icon name="checked" color="rgba(103,201,176,1)" /> : '',
|
|
|
+ <Cell center>
|
|
|
+ {{
|
|
|
+ title: () => (
|
|
|
+ <div class={styles.wrapItem}>
|
|
|
+ <span>已缓存的曲谱类型: </span>
|
|
|
+ <span>
|
|
|
+ 五线谱
|
|
|
+ {!!detailState.activeDetail?.musicSvg && <Icon name="checked" color="rgba(103,201,176,1)" />}
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ 首调
|
|
|
+ {!!detailState.activeDetail?.musicJianSvg && (
|
|
|
+ <Icon name="checked" color="rgba(103,201,176,1)" />
|
|
|
+ )}
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ 固定调
|
|
|
+ {!!detailState.activeDetail?.musicFirstSvg && (
|
|
|
+ <Icon name="checked" color="rgba(103,201,176,1)" />
|
|
|
+ )}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ ),
|
|
|
}}
|
|
|
- ></Cell>
|
|
|
- <Cell title="清除缓存数据" clickable onClick={handleRemove}></Cell>
|
|
|
- <Cell title="保存缓存数据" clickable onClick={handleSave}></Cell>
|
|
|
+ </Cell>
|
|
|
+ <Cell class={styles.clearItem} title="清除缓存数据" clickable onClick={handleRemove}></Cell>
|
|
|
+ <Cell class={styles.saveItem} title="保存缓存数据" clickable onClick={handleSave}></Cell>
|
|
|
</CellGroup>
|
|
|
</div>
|
|
|
)}
|