@sfxcode/formkit-primevue 2.4.6 → 2.4.7

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.
@@ -12,7 +12,12 @@ const props = defineProps({
12
12
 
13
13
  const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
14
14
 
15
- const url = computed(() => props.context?._value.indexOf('http') > -1 ? props.context?._value : `https://${props.context?._value}`)
15
+ const url = computed(() => {
16
+ if (props.context?._value)
17
+ return props.context?._value.indexOf('http') > -1 ? props.context?._value : `https://${props.context?._value}`
18
+ else
19
+ return ''
20
+ })
16
21
 
17
22
  const title = computed(() => {
18
23
  const value = props.context?._value ?? ''
@@ -27,6 +32,7 @@ const title = computed(() => {
27
32
  {{ context?.prefix }}
28
33
  </span>
29
34
  <a
35
+ v-if="context?.value"
30
36
  :id="context?.id"
31
37
  :style="context?.attrs?.style"
32
38
  :class="context?.attrs?.class"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
3
  "type": "module",
4
- "version": "2.4.6",
5
- "packageManager": "pnpm@9.4.0+sha256.b6fd0bfda555e7e584ad7e56b30c68b01d5a04f9ee93989f4b93ca8473c49c74",
4
+ "version": "2.4.7",
5
+ "packageManager": "pnpm@9.9.0+sha256.7a4261e50d9a44d9240baf6c9d6e10089dcf0a79d0007f2a26985a6927324177",
6
6
  "author": {
7
7
  "name": "Tom",
8
8
  "email": "tom@sfxcode.com"
@@ -106,7 +106,7 @@
106
106
  "@vitejs/plugin-vue": "^5.1.3",
107
107
  "@vitest/coverage-v8": "^2.0.5",
108
108
  "@vitest/ui": "^2.0.5",
109
- "@vue/compiler-sfc": "^3.4.38",
109
+ "@vue/compiler-sfc": "3.4.38",
110
110
  "@vue/server-renderer": "^3.4.38",
111
111
  "@vue/test-utils": "^2.4.6",
112
112
  "@vue/tsconfig": "^0.5.1",
@@ -137,7 +137,7 @@
137
137
  "vite-ssg": "^0.23.8",
138
138
  "vitepress": "1.3.4",
139
139
  "vitest": "^2.0.5",
140
- "vue": "^3.4.38",
140
+ "vue": "3.4.38",
141
141
  "vue-demi": "^0.14.10",
142
142
  "vue-router": "^4.4.3",
143
143
  "vue-tsc": "^2.1.4"