XiaoDaiGua-Ray 403fdd589a feat!: rebuild Ray Template as a monorepo
Share workspace packages between Ray Admin and the interactive docs.

BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
2026-11-04 14:01:28 +08:00

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('复制失败')
}),
})
}