Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
peng-xiao-shuai committed Nov 15, 2024
1 parent 13ba300 commit 608780b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions demo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@
<script lang="ts">
import { ElMessage } from 'element-plus'
import { btnConfig, header, lists } from './indexData'
import type { PowerfulTableExpose, PowerfulTableOperateData } from 'es'
import type { Lists } from './indexData'
import type {
EmitEnum,
Handlers,
PowerfulTableExpose,
PowerfulTableOperateData,
} from 'es'
export default defineComponent({
components: {
// PTBtnPlus
Expand Down Expand Up @@ -172,7 +178,7 @@ export default defineComponent({
console.log('修改', e)
}
// 修改
function handlerUpdate(e: any) {
const handlerUpdate: Handlers<Lists>[EmitEnum.BtnClick] = (e) => {
ElMessage.success('按钮修改操作,参数详情,查看控制台')
console.log('修改', e)
}
Expand Down
2 changes: 1 addition & 1 deletion demo/indexData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { LangKey } from '~/locale/packages'

console.log(LangKey)

type Lists = {
export type Lists = {
id?: number
name?: string
engine?: string
Expand Down

0 comments on commit 608780b

Please sign in to comment.