shared-ritm 1.3.125 → 1.3.127
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/package.json
CHANGED
|
@@ -18,7 +18,9 @@ const props = withDefaults(defineProps<QCheckboxProps & Props>(), {
|
|
|
18
18
|
borderWidth: '2px',
|
|
19
19
|
})
|
|
20
20
|
|
|
21
|
-
const qBorderColor = computed(() =>
|
|
21
|
+
const qBorderColor = computed(() =>
|
|
22
|
+
props.borderColor?.startsWith('#') ? props.borderColor : colors.getPaletteColor(props.borderColor),
|
|
23
|
+
)
|
|
22
24
|
</script>
|
|
23
25
|
<style module lang="scss">
|
|
24
26
|
.app-checkbox {
|
|
@@ -47,9 +47,13 @@
|
|
|
47
47
|
</q-chip>
|
|
48
48
|
</template>
|
|
49
49
|
|
|
50
|
+
<template v-if="'prepend' in slots" #prepend>
|
|
51
|
+
<slot name="prepend" />
|
|
52
|
+
</template>
|
|
53
|
+
|
|
50
54
|
<template #append>
|
|
51
55
|
<q-icon
|
|
52
|
-
v-if="!isDisabled && !isEmpty"
|
|
56
|
+
v-if="!isDisabled && !isEmpty && !hideClear"
|
|
53
57
|
name="close"
|
|
54
58
|
class="cursor-pointer clear-input"
|
|
55
59
|
@click.stop="handleClear"
|
|
@@ -78,12 +82,16 @@
|
|
|
78
82
|
<q-spinner-dots size="24px" color="primary" />
|
|
79
83
|
</q-item>
|
|
80
84
|
<q-item v-else-if="'option' in slots" v-bind="scope.itemProps">
|
|
81
|
-
<slot name="option" :opt="scope.opt" />
|
|
85
|
+
<slot name="option" :opt="scope.opt" :toggle-option="scope.toggleOption" />
|
|
82
86
|
</q-item>
|
|
83
87
|
<q-item v-else v-bind="scope.itemProps">
|
|
84
88
|
<q-item-section>{{ scope.opt[optionLabel || 'label'] }}</q-item-section>
|
|
85
89
|
</q-item>
|
|
86
90
|
</template>
|
|
91
|
+
|
|
92
|
+
<template v-if="'after-options' in slots" #after-options>
|
|
93
|
+
<slot name="after-options" />
|
|
94
|
+
</template>
|
|
87
95
|
</q-select>
|
|
88
96
|
</template>
|
|
89
97
|
|
|
@@ -107,6 +115,7 @@ interface AppQSelectProps {
|
|
|
107
115
|
allowCreate?: boolean
|
|
108
116
|
isSearch?: boolean
|
|
109
117
|
hideSearch?: boolean
|
|
118
|
+
hideClear?: boolean
|
|
110
119
|
showChip?: boolean
|
|
111
120
|
simple?: boolean
|
|
112
121
|
hideBottomSpace?: boolean
|