classcard-ui 0.2.708 → 0.2.711
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/classcard-ui.common.js +61 -54
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +61 -54
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CSelect/CSelect.vue +10 -3
package/package.json
CHANGED
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
>
|
|
91
91
|
<div
|
|
92
92
|
v-if="toggleDropdown && !isDisabled"
|
|
93
|
-
class="
|
|
93
|
+
:class="isDropDownAbsolute ? 'absolute' : ''"
|
|
94
|
+
class="z-10 mt-1 w-full rounded-md bg-white shadow-lg"
|
|
94
95
|
>
|
|
95
96
|
<ul
|
|
96
97
|
tabindex="-1"
|
|
@@ -118,8 +119,10 @@
|
|
|
118
119
|
role="option"
|
|
119
120
|
:ref="`option-${String(index)}`"
|
|
120
121
|
@mousedown="handleSelect($event, option)"
|
|
121
|
-
class="
|
|
122
|
-
:class="
|
|
122
|
+
class="cursor-pointer select-none py-2 pl-3 pr-9 text-gray-900 hover:bg-indigo-700 hover:text-white"
|
|
123
|
+
:class="`${
|
|
124
|
+
option.isDisabled ? 'pointer-events-none opacity-50' : ''
|
|
125
|
+
} ${isDropDownRelative ? 'relative' : ''}`"
|
|
123
126
|
>
|
|
124
127
|
<span class="flex items-center">
|
|
125
128
|
<div v-if="option.showImage">
|
|
@@ -252,6 +255,10 @@ export default {
|
|
|
252
255
|
type: Boolean,
|
|
253
256
|
default: true,
|
|
254
257
|
},
|
|
258
|
+
isDropDownAbsolute: {
|
|
259
|
+
type: Boolean,
|
|
260
|
+
default: true,
|
|
261
|
+
},
|
|
255
262
|
},
|
|
256
263
|
data() {
|
|
257
264
|
return {
|