@funcho/ui 1.1.8 → 1.1.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.
@@ -116,6 +116,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
116
116
  return `请输入${item.label}`;
117
117
  };
118
118
  const formRef = vue.ref();
119
+ const handleRef = (el, item) => {
120
+ if (item.attrs?.onRef && el) {
121
+ item.attrs.onRef(el, item);
122
+ }
123
+ };
119
124
  __expose(
120
125
  new Proxy(
121
126
  {},
@@ -161,13 +166,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
161
166
  key: 0,
162
167
  ref_for: true
163
168
  }, item.attrs, {
169
+ ref_for: true,
170
+ ref: (el) => handleRef(el, item),
164
171
  placeholder: getPlaceholder(item, item.type),
165
172
  style: { "width": "100%" }
166
173
  }), null, 16, ["placeholder"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(componentsMap.ComponentsMap)[item.type || "FcInput"]), vue.mergeProps({
167
174
  key: 1,
175
+ ref_for: true
176
+ }, item.attrs, {
177
+ ref_for: true,
178
+ ref: (el) => handleRef(el, item),
168
179
  modelValue: formModel.value[item.prop],
169
- "onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event
170
- }, { ref_for: true }, item.attrs, {
180
+ "onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event,
171
181
  placeholder: getPlaceholder(item, item.type),
172
182
  style: { "width": "100%" }
173
183
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"]))
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const version = "1.1.8";
5
+ const version = "1.1.9";
6
6
 
7
7
  exports.version = version;
@@ -112,6 +112,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
112
  return `请输入${item.label}`;
113
113
  };
114
114
  const formRef = ref();
115
+ const handleRef = (el, item) => {
116
+ if (item.attrs?.onRef && el) {
117
+ item.attrs.onRef(el, item);
118
+ }
119
+ };
115
120
  __expose(
116
121
  new Proxy(
117
122
  {},
@@ -157,13 +162,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
157
162
  key: 0,
158
163
  ref_for: true
159
164
  }, item.attrs, {
165
+ ref_for: true,
166
+ ref: (el) => handleRef(el, item),
160
167
  placeholder: getPlaceholder(item, item.type),
161
168
  style: { "width": "100%" }
162
169
  }), null, 16, ["placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(unref(ComponentsMap)[item.type || "FcInput"]), mergeProps({
163
170
  key: 1,
171
+ ref_for: true
172
+ }, item.attrs, {
173
+ ref_for: true,
174
+ ref: (el) => handleRef(el, item),
164
175
  modelValue: formModel.value[item.prop],
165
- "onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event
166
- }, { ref_for: true }, item.attrs, {
176
+ "onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event,
167
177
  placeholder: getPlaceholder(item, item.type),
168
178
  style: { "width": "100%" }
169
179
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"]))
@@ -1,3 +1,3 @@
1
- const version = "1.1.8";
1
+ const version = "1.1.9";
2
2
 
3
3
  export { version };
package/dist/style.css CHANGED
@@ -17107,7 +17107,7 @@ to {
17107
17107
  .fc-mkui-data-table .fc-mkui-data-table__query-form {
17108
17108
  flex: 1;
17109
17109
  display: grid;
17110
- grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
17110
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
17111
17111
  gap: 8px 24px;
17112
17112
  }
17113
17113
  .fc-mkui-data-table .fc-mkui-data-table__query-form .fc-ui-form-item {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funcho/ui",
3
3
  "description": "@funcho ui library",
4
- "version": "1.1.8",
4
+ "version": "1.1.9",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.mjs",
@@ -44,8 +44,8 @@
44
44
  "vite-plugin-dts": "^4.5.4",
45
45
  "vitest": "^4.0.7",
46
46
  "vue": "^3.5.22",
47
- "@funcho/icons-vue": "1.0.2",
48
- "@funcho/typescript-config": "0.0.1"
47
+ "@funcho/typescript-config": "0.0.1",
48
+ "@funcho/icons-vue": "1.0.2"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "vue": "^3.5.22",