nuxt-hs-ui 2.4.1 → 2.4.2

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.15.0"
6
6
  },
7
- "version": "2.4.1",
7
+ "version": "2.4.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -164,8 +164,7 @@ const iconDisabled = computed(() => {
164
164
  const slots = useSlots();
165
165
  const hasHeader = computed(() => {
166
166
  if (props.label.length !== 0) return true;
167
- if (props.require) return true;
168
- if (props.readonly) return true;
167
+ if (props.require && !props.readonly) return true;
169
168
  // if (slots.label) return true;
170
169
  if (slots["label-prepend"]) return true;
171
170
  if (slots["label-append"]) return true;
@@ -201,9 +200,6 @@ const hasHeader = computed(() => {
201
200
  <div class="flex-1"></div>
202
201
  <div class="flex-none flex gap-2">
203
202
  <slot name="header-right" :default-class="headerIconClass" />
204
- <!-- <div v-if="props.readonly" :class="headerIconClass" class="text-dark">
205
- <span data-type="readonly">readonly</span>
206
- </div> -->
207
203
  <div
208
204
  v-if="props.require && !props.readonly"
209
205
  :class="headerIconClass"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
6
6
  "license": "MIT",