@vtable-guild/vtable-guild 2.9.0-alpha.7 → 2.9.0-alpha.8

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.
@@ -1,36 +1,43 @@
1
1
  const e = {
2
2
  slots: {
3
3
  root: "flex min-w-0 flex-wrap items-start gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] rounded-[var(--vtg-query-radius,6px)] bg-[color:var(--color-surface)] p-[var(--vtg-query-padding,24px)] font-[family-name:var(--font-family-base)] text-[length:var(--vtg-table-font-size)] text-[color:var(--color-on-surface)]",
4
- fields: "grid min-w-[min(100%,calc(var(--vtg-query-field-min-width,240px)*2_+_var(--vtg-query-column-gap,24px)))] flex-1 gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] [grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--vtg-query-field-min-width,240px)),1fr))]",
4
+ fields: "",
5
5
  field: "flex min-w-0 items-start gap-[var(--vtg-query-label-gap,12px)]",
6
- label: "flex h-[var(--vtg-query-control-height,32px)] w-[var(--vtg-query-label-width,80px)] shrink-0 items-center justify-end",
7
- control: "min-w-0 flex-1 [&>*]:w-full",
6
+ label: "flex h-[var(--vtg-query-control-height,32px)] shrink-0 items-center",
7
+ control: "min-w-0",
8
8
  error: "mt-1 text-[color:var(--vtg-cell-error)] text-[length:var(--vtg-query-error-font-size,12px)]",
9
- actions: "ml-auto flex min-h-[var(--vtg-query-control-height,32px)] max-w-full flex-wrap items-center justify-end gap-[var(--vtg-query-action-gap,8px)]",
9
+ actions: "flex min-h-[var(--vtg-query-control-height,32px)] max-w-full flex-wrap items-center gap-[var(--vtg-query-action-gap,8px)]",
10
10
  feedback: "w-full text-[color:var(--vtg-cell-error)]",
11
11
  collapse: "inline-flex items-center gap-1"
12
12
  },
13
13
  variants: {
14
14
  layout: {
15
- form: {},
15
+ form: {
16
+ fields: "grid min-w-[min(100%,calc(var(--vtg-query-field-min-width,240px)*2_+_var(--vtg-query-column-gap,24px)))] flex-1 gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] [grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--vtg-query-field-min-width,240px)),1fr))]",
17
+ label: "w-[var(--vtg-query-label-width,80px)] justify-end",
18
+ control: "flex-1 [&>*]:w-full",
19
+ actions: "ml-auto justify-end"
20
+ },
16
21
  light: {
17
22
  root: "p-[var(--vtg-query-light-padding,16px)]",
18
- fields: "flex flex-wrap items-start gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)]",
19
- field: "w-[var(--vtg-query-light-field-width,240px)] max-w-full",
20
- label: "w-auto justify-start"
23
+ fields: "contents",
24
+ field: "w-[var(--vtg-query-light-field-width,auto)] max-w-full",
25
+ label: "w-auto justify-start",
26
+ control: "flex-initial",
27
+ actions: "ml-0 justify-start"
21
28
  }
22
29
  }
23
30
  },
24
- defaultVariants: { layout: "form" }
25
- }, t = {
31
+ defaultVariants: { layout: "light" }
32
+ }, r = {
26
33
  ...e,
27
34
  slots: {
28
35
  ...e.slots,
29
36
  root: `${e.slots.root} rounded-[var(--vtg-query-radius,4px)]`
30
37
  }
31
38
  };
32
- function a(r = "antdv") {
33
- return r === "element-plus" ? t : e;
39
+ function a(t = "antdv") {
40
+ return t === "element-plus" ? r : e;
34
41
  }
35
42
  const l = {
36
43
  label: "表格查询",
@@ -48,7 +55,7 @@ const l = {
48
55
  validationFailed: "Check query conditions"
49
56
  };
50
57
  export {
51
- t as elementPlusQueryTheme,
58
+ r as elementPlusQueryTheme,
52
59
  o as queryEnUS,
53
60
  e as queryTheme,
54
61
  l as queryZhCN,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtable-guild/vtable-guild",
3
- "version": "2.9.0-alpha.7",
3
+ "version": "2.9.0-alpha.8",
4
4
  "description": "Vue 3 table component with built-in virtual scrolling and switchable ant-design-vue / element-plus theme presets, powered by tailwind-variants",
5
5
  "type": "module",
6
6
  "files": [