nuxt-glorious 2.0.0-develop-25 → 2.0.0-develop-27
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
@@ -72,12 +72,10 @@ const isSelected = (value: any): boolean => {
|
|
72
72
|
if (typeof tags.value !== 'object' && typeof modelValue.value !== 'object')
|
73
73
|
return false
|
74
74
|
|
75
|
-
console.log()
|
76
|
-
|
77
75
|
return (
|
78
|
-
tags.value.some((item: any) => item.
|
76
|
+
tags.value.some((item: any) => item[props.keyOfValue] === value) ||
|
79
77
|
(typeof modelValue.value === 'object' &&
|
80
|
-
modelValue.value.some((item: any) => item.
|
78
|
+
modelValue.value.some((item: any) => item[props.keyOfValue] === value))
|
81
79
|
)
|
82
80
|
}
|
83
81
|
const addTagViaOption = (option: any, event: any) => {
|
@@ -212,8 +210,12 @@ const inputClicked = (event: any) => {
|
|
212
210
|
v-for="(option, index) in props.options"
|
213
211
|
:key="index"
|
214
212
|
@click="addTagViaOption(option, $event)"
|
215
|
-
:class="[isSelected(option.
|
213
|
+
:class="[isSelected(option[props.keyOfValue]) ? 'disabled' : '']"
|
216
214
|
>
|
215
|
+
<slot
|
216
|
+
name="option"
|
217
|
+
:item="option"
|
218
|
+
></slot>
|
217
219
|
{{
|
218
220
|
option[
|
219
221
|
getAttribute(props.displayTextKey, 'input', 'displayTextKey')
|
@@ -231,6 +233,10 @@ const inputClicked = (event: any) => {
|
|
231
233
|
v-for="(item, index) in tags"
|
232
234
|
:key="index"
|
233
235
|
>
|
236
|
+
<slot
|
237
|
+
name="option"
|
238
|
+
:item="item"
|
239
|
+
></slot>
|
234
240
|
{{
|
235
241
|
typeof item === 'object'
|
236
242
|
? item[
|
@@ -238,9 +244,7 @@ const inputClicked = (event: any) => {
|
|
238
244
|
]
|
239
245
|
: item
|
240
246
|
}}
|
241
|
-
<div
|
242
|
-
class="delete-option border border-red-500 rounded p-1 hover:bg-red-50"
|
243
|
-
>
|
247
|
+
<div class="glorious-input-tag-delete-option">
|
244
248
|
<GIcon
|
245
249
|
name="glorious-x"
|
246
250
|
:size="10"
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "2.0.0-develop-
|
2
|
+
"version": "2.0.0-develop-27",
|
3
3
|
"name": "nuxt-glorious",
|
4
4
|
"description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
|
5
5
|
"repository": "sajadhzj/nuxt-glorious",
|