v-nuxt-ui 0.2.29 → 0.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "dependencies": [
8
8
  "@nuxt/ui"
9
9
  ],
10
- "version": "0.2.29",
10
+ "version": "0.2.30",
11
11
  "builder": {
12
12
  "@nuxt/module-builder": "1.0.2",
13
13
  "unbuild": "3.6.1"
@@ -2,10 +2,12 @@ type __VLS_Props = {
2
2
  data: string | Record<string, any> | undefined | null;
3
3
  lang?: 'json' | 'sql' | 'text';
4
4
  title?: string;
5
+ btnTxt?: string;
5
6
  };
6
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
8
  title: string;
8
9
  lang: "json" | "sql" | "text";
10
+ btnTxt: string;
9
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
12
  declare const _default: typeof __VLS_export;
11
13
  export default _default;
@@ -5,7 +5,8 @@ import { codeToHtml } from "shiki";
5
5
  const props = defineProps({
6
6
  data: { type: null, required: true },
7
7
  lang: { type: String, required: false, default: "text" },
8
- title: { type: String, required: false, default: "\u67E5\u770B" }
8
+ title: { type: String, required: false, default: "\u67E5\u770B" },
9
+ btnTxt: { type: String, required: false, default: "\u67E5\u770B" }
9
10
  });
10
11
  const open = ref(false);
11
12
  const colorMode = useColorMode();
@@ -44,7 +45,7 @@ watch([codeText, () => colorMode.value], updateHighlight, { immediate: true });
44
45
  icon="i-lucide-expand"
45
46
  color="neutral"
46
47
  variant="subtle"
47
- label="查看"
48
+ :label="btnTxt"
48
49
  class="cursor-pointer"
49
50
  @click="open = true"
50
51
  />
@@ -2,10 +2,12 @@ type __VLS_Props = {
2
2
  data: string | Record<string, any> | undefined | null;
3
3
  lang?: 'json' | 'sql' | 'text';
4
4
  title?: string;
5
+ btnTxt?: string;
5
6
  };
6
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
8
  title: string;
8
9
  lang: "json" | "sql" | "text";
10
+ btnTxt: string;
9
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
12
  declare const _default: typeof __VLS_export;
11
13
  export default _default;
@@ -1,9 +1,11 @@
1
1
  type __VLS_Props = {
2
2
  data: string | Record<string, any> | undefined | null;
3
3
  lang?: 'json' | 'sql' | 'text';
4
+ btnTxt?: string;
4
5
  };
5
6
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
7
  lang: "json" | "sql" | "text";
8
+ btnTxt: string;
7
9
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
10
  declare const _default: typeof __VLS_export;
9
11
  export default _default;
@@ -4,7 +4,8 @@ import { useColorMode } from "@vueuse/core";
4
4
  import { codeToHtml } from "shiki";
5
5
  const props = defineProps({
6
6
  data: { type: null, required: true },
7
- lang: { type: String, required: false, default: "text" }
7
+ lang: { type: String, required: false, default: "text" },
8
+ btnTxt: { type: String, required: false, default: "\u67E5\u770B" }
8
9
  });
9
10
  const colorMode = useColorMode();
10
11
  const codeText = computed(() => {
@@ -41,7 +42,7 @@ watch([codeText, () => colorMode.value], updateHighlight, { immediate: true });
41
42
  icon="i-lucide-eye"
42
43
  color="neutral"
43
44
  variant="subtle"
44
- label="查看"
45
+ :label="btnTxt"
45
46
  class="cursor-pointer"
46
47
  />
47
48
  <template #content>
@@ -1,9 +1,11 @@
1
1
  type __VLS_Props = {
2
2
  data: string | Record<string, any> | undefined | null;
3
3
  lang?: 'json' | 'sql' | 'text';
4
+ btnTxt?: string;
4
5
  };
5
6
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
7
  lang: "json" | "sql" | "text";
8
+ btnTxt: string;
7
9
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
10
  declare const _default: typeof __VLS_export;
9
11
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v-nuxt-ui",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "description": "Veken UI Component Library - Reusable Nuxt UI components, composables, and utilities for enterprise applications",
5
5
  "type": "module",
6
6
  "style": "./dist/runtime/index.css",