@vanstack/solid-ark 0.0.7 → 0.0.9

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,6 +1,6 @@
1
1
  import "../solid-ark.css";
2
2
  import { t as e } from "../button-Br_upy12.js";
3
- import { t } from "../form-BMnQz8c0.js";
3
+ import { t } from "../form-M09UvXpo.js";
4
4
  import { t as n } from "../table-B88tYpbb.js";
5
5
  import { className as r, createComponent as i, effect as a, insert as o, memo as s, setAttribute as c, template as l } from "solid-js/web";
6
6
  import { For as u, Show as d, createEffect as f, createMemo as p, createSignal as m, mergeProps as h, on as g, onMount as _ } from "solid-js";
@@ -1,3 +1,3 @@
1
1
  import "../solid-ark.css";
2
- import { t as e } from "../form-BMnQz8c0.js";
2
+ import { t as e } from "../form-M09UvXpo.js";
3
3
  export { e as Form };
@@ -98,10 +98,12 @@ export interface DatePickerFieldConfig extends Omit<BaseFieldConfig, "valueType"
98
98
  export type DatePickerStoredValue = number | number[] | string | string[] | undefined;
99
99
  export type FieldConfig = CheckboxFieldConfig | CheckboxGroupFieldConfig | DatePickerFieldConfig | InputFieldConfig | RadioFieldConfig | SelectFieldConfig | SwitchFieldConfig | TextareaFieldConfig;
100
100
  export interface FieldControlProps {
101
- value: unknown;
101
+ /** 字段当前值(accessor:控件 JSX 内调用 value() 读取,获得响应式更新;控件函数本身只在挂载时调用一次) */
102
+ value: () => unknown;
102
103
  onChange: (value: unknown) => void;
103
104
  onBlur: () => void;
104
- error?: string[];
105
+ /** 字段错误消息列表(accessor,调用 error() 读取) */
106
+ error?: () => string[];
105
107
  id: string;
106
108
  }
107
109
  /** 表单控件尺寸 */
@@ -510,10 +510,10 @@ function oe(e) {
510
510
  return e.control ? (() => {
511
511
  var t = ie();
512
512
  return a(t, () => e.control({
513
- value: l(),
513
+ value: l,
514
514
  onChange: (e) => r.handleChange(e),
515
515
  onBlur: () => r.handleBlur(),
516
- error: s(),
516
+ error: s,
517
517
  id: h(e.name)
518
518
  })), i((e) => c(t, p, e)), t;
519
519
  })() : n(x.Root, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanstack/solid-ark",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -66,9 +66,9 @@
66
66
  "vite-plugin-solid": "^2.11.0",
67
67
  "vitest": "^4.1.10",
68
68
  "zod": "^4.4.0",
69
+ "@vanstack/eslint-config": "0.0.1",
69
70
  "@vanstack/prettier-config": "0.0.1",
70
71
  "@vanstack/tsconfig": "0.0.1",
71
- "@vanstack/eslint-config": "0.0.1",
72
72
  "@vanstack/vite-config": "0.0.2"
73
73
  },
74
74
  "scripts": {