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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.708",
3
+ "version": "0.2.711",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -90,7 +90,8 @@
90
90
  >
91
91
  <div
92
92
  v-if="toggleDropdown && !isDisabled"
93
- class="absolute z-10 mt-1 w-full rounded-md bg-white shadow-lg"
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="relative cursor-pointer select-none py-2 pl-3 pr-9 text-gray-900 hover:bg-indigo-700 hover:text-white"
122
- :class="option.isDisabled ? 'pointer-events-none opacity-50' : ''"
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 {