@mptw/skylens-ui 1.3.3 → 1.3.5

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.
@@ -83,7 +83,7 @@
83
83
  v-else
84
84
  :colspan="columnSpans[index]"
85
85
  :key="`${itemIndex}-${field.key}`"
86
- :class='[tdBorderColor, field._class, { sortable: field.sortable }]'
86
+ :class='[tdBorderColor, field._colClass, { sortable: field.sortable }]'
87
87
  ) {{ item[field.key] }}
88
88
  tr(v-if="items.length === 0")
89
89
  td(:colspan="fields.length")
@@ -1,8 +1,8 @@
1
1
  <template lang="pug">
2
2
  .text-input(:class="textInputClass")
3
3
  label(v-if="label || $slots.label" :for="uid")
4
- slot(name='label') {{ label }}
5
- span.required(v-if="required") *
4
+ slot(name='label')
5
+ span {{ label }} #[span.required(v-if="required") *]
6
6
  .form-control(
7
7
  :class="{ 'is-invalid': isInvalid !== null && isInvalid, 'is-valid': isInvalid !== null && !isInvalid }"
8
8
  )
@@ -286,7 +286,7 @@ export default defineComponent({
286
286
  @apply border-primary-light bg-bg
287
287
 
288
288
  & > label
289
- @apply mb-2 text-base leading-normal text-gray-2
289
+ @apply w-full mb-2 text-base leading-normal text-gray-2
290
290
 
291
291
  .required
292
292
  @apply text-danger
@@ -5,6 +5,7 @@ export default interface ITableField {
5
5
  label: string;
6
6
  _style?: StyleValue;
7
7
  _class?: string | Object | Array<string | Object>;
8
+ _colClass?: string | Object | Array<string | Object>;
8
9
  sortable?: boolean;
9
10
  filterable?: boolean;
10
11
  colspan?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.3.3",
4
+ "version": "1.3.5",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",