-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
89 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,9 @@ | |
"addTitle": "Add", | ||
"titlePlaceholder": "New name", | ||
"submit": "Add" | ||
}, | ||
"rowAdd": { | ||
"new": "New row" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,9 @@ | |
"addTitle": "添加字典项", | ||
"titlePlaceholder": "新的字典项名称", | ||
"submit": "添加" | ||
}, | ||
"rowAdd": { | ||
"new": "新增行" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script setup lang="ts"> | ||
import { inject } from 'vue' | ||
import { FUN_ADD_DATA_TYPE } from '../../events' | ||
import * as iconSvg from '../../../assets/icon' | ||
const props = defineProps<{ | ||
groupValue: any | undefined | ||
}>() | ||
const addDataFun = inject(FUN_ADD_DATA_TYPE)! | ||
async function addRow() { | ||
await addDataFun([{ | ||
}], undefined, props.groupValue) | ||
} | ||
</script> | ||
|
||
<template> | ||
<div class="border-solid border-b border-l border-r border-base-300 cursor-pointer text-base-300 hover:text-base-content pl-1" @click="addRow"> | ||
<i :class="iconSvg.ADD" /> | ||
<span>{{ $t('list.rowAdd.new') }}</span> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters