**基础用法**
<n-message-provider>
<n-button type="primary" @click="show = true">点击打开</n-button>
<xnsk-dialog-msg v-model:show="show" data="日志文本内容" title="查看日志" buttonText="复制" @success="show = false" />
</n-message-provider>

<script setup>
  import { ref } from 'vue'
  import {XnskDialogMsg} from "../../src/components"
  import {NMessageProvider, NButton} from "naive-ui"
  const show = ref(false)
</script>
<style lang="scss" >
@import '../../src/css/main.css';
</style>

```vue
<tempalte>
  <n-button type="primary" @click="show = true">点击打开</n-button>
  <xnsk-dialog-msg v-model:show="show" data="日志文本内容" title="查看日志" buttonText="复制" @success="show = false" />
</tempalte>
<script setup>
import { ref } from "vue";
const show = ref(false);
</script>
```

**参数**
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| --- | --- | --- | --- | --- |
| show | 是否显示 | boolean | - | false |
| data | 日志内容 | string | - | - |
| title | 日志标题 | string | - | - |
| buttonText | 按钮文本 | string | - | 复制日志 |
| success | 复制成功回调 | function | - | - |

