mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-28 23:43:43 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
13 lines
406 B
TypeScript
13 lines
406 B
TypeScript
import { setupDirectives as setup } from '@ray-template/directives'
|
|
import { createCopyDirective } from '@ray-template/directives/copy'
|
|
import type { App } from 'vue'
|
|
|
|
export function setupDirectives(app: App<Element>) {
|
|
setup(app, {
|
|
copy: createCopyDirective((success) => {
|
|
if (success) window.$message?.success('复制成功')
|
|
else window.$message?.error('复制失败')
|
|
}),
|
|
})
|
|
}
|