@tb-dev/vue 0.3.30 → 0.3.32

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.
@@ -8,6 +8,7 @@ export interface TextareaProps {
8
8
  class?: HTMLAttributes['class'];
9
9
  cols?: TextareaHTMLAttributes['cols'];
10
10
  disabled?: boolean;
11
+ height?: number | string;
11
12
  label?: string;
12
13
  labelClass?: HTMLAttributes['class'];
13
14
  max?: TextareaHTMLAttributes['maxlength'];
package/dist/index.js CHANGED
@@ -5752,7 +5752,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
5752
5752
  "data-slot": "table-cell",
5753
5753
  class: normalizeClass(
5754
5754
  unref(cn)(
5755
- "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
5755
+ "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
5756
5756
  props.class
5757
5757
  )
5758
5758
  )
@@ -6308,6 +6308,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6308
6308
  class: {},
6309
6309
  cols: {},
6310
6310
  disabled: { type: Boolean },
6311
+ height: {},
6311
6312
  label: {},
6312
6313
  labelClass: {},
6313
6314
  max: {},
@@ -6330,6 +6331,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6330
6331
  get: () => props.modelValue ?? void 0,
6331
6332
  set: (it) => emit("update:modelValue", it ?? null)
6332
6333
  });
6334
+ const textareaHeight = computed(() => {
6335
+ return props.height ? { height: toPixel(props.height) } : null;
6336
+ });
6333
6337
  const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
6334
6338
  return (_ctx, _cache) => {
6335
6339
  return openBlock(), createElementBlock(Fragment, null, [
@@ -6352,7 +6356,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6352
6356
  required: _ctx.required,
6353
6357
  rows: _ctx.rows,
6354
6358
  spellcheck: _ctx.spellcheck,
6355
- style: _ctx.style,
6359
+ style: [textareaHeight.value, _ctx.style],
6356
6360
  class: unref(cn)(
6357
6361
  "size-full resize-none font-normal focus-visible:ring-0 disabled:cursor-default",
6358
6362
  props.class
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "composables"
26
26
  ],
27
27
  "dependencies": {
28
- "@tanstack/vue-table": "^8.21.2",
28
+ "@tanstack/vue-table": "^8.21.3",
29
29
  "@tb-dev/utils": "^6.0.1",
30
30
  "@vueuse/core": "^13.1.0",
31
31
  "class-variance-authority": "^0.7.1",