@kayak-sj/design 1.0.57 → 1.0.59

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,3 +1,3 @@
1
1
  import { a as e, c as t, i as n, l as r, n as i, r as a, s as o, t as s } from "../../chunks/editorValue-DSKvW8ty.js";
2
- import { t as c } from "../../chunks/KEditor-C882CuWG.js";
2
+ import { t as c } from "../../chunks/KEditor-BvqT2vzm.js";
3
3
  export { c as KEditor, s as buildEditorEmitValue, i as countEditorHtmlWords, a as countEditorWords, n as getEditorHtml, e as getEditorWordCount, o as resolveMaxWordCount, t as stripEditorHtml, r as toKEditorValue };
@@ -0,0 +1,17 @@
1
+ import { Ref } from 'vue';
2
+ import { FormInstance } from 'element-plus';
3
+ /**
4
+ * 按「label + 控件 min」实测容器宽度,得到实际列数(不超过 colLength)。
5
+ * 宽→窄时逐级降列,例如 colLength=3 时:3 → 2 → 1。
6
+ */
7
+ export declare function useFormGridCols(options: {
8
+ formRef: Ref<FormInstance | undefined>;
9
+ colLength: Ref<number>;
10
+ labelWidth: Ref<string>;
11
+ enabled: Ref<boolean>;
12
+ }): {
13
+ effectiveCols: Ref<number, number>;
14
+ gridMinColPx: import('vue').ComputedRef<string>;
15
+ formMinWidthPx: import('vue').ComputedRef<string>;
16
+ updateEffectiveCols: () => void;
17
+ };