@qin-ui/antd-vue-pro 1.1.7 → 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.
- package/README.md +15 -0
- package/es/form/{index-a8e0c5c2.js → index-3d705aab.js} +7 -7
- package/es/form/index.js +1 -1
- package/es/index.d.ts +4 -4
- package/es/index.js +2 -2
- package/es/table/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -183,6 +183,12 @@ ant-design-vue ui组件库form组件的二次封装
|
|
|
183
183
|
* @example (val) => val?.trim()
|
|
184
184
|
*/
|
|
185
185
|
valueFormatter?: (val: any) => any;
|
|
186
|
+
/** 是否隐藏校验错误信息(需要浏览器支持has选择器) */
|
|
187
|
+
hideFeedback?: boolean;
|
|
188
|
+
/** 以data-form-item-开头的属性将会被渲染至formItem的dom节点 */
|
|
189
|
+
[key: `data-form-item-${string}`]: string;
|
|
190
|
+
/** 以data-component-开头的属性将会被渲染至component的dom节点 */
|
|
191
|
+
[key: `data-component-${string}`]: string;
|
|
186
192
|
}
|
|
187
193
|
```
|
|
188
194
|
|
|
@@ -241,6 +247,15 @@ ant-design-vue ui组件库form组件的二次封装
|
|
|
241
247
|
/** 设置当前正在编辑的字段path */
|
|
242
248
|
setActivePath: SetActivePath;
|
|
243
249
|
};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @description useFormRef hook
|
|
253
|
+
* @returns {Object}
|
|
254
|
+
*/
|
|
255
|
+
type UseFormRef = () => {
|
|
256
|
+
/** 表单组件实例引用Ref */
|
|
257
|
+
formRef: Ref<ProFormInstance | undefined>;
|
|
258
|
+
};
|
|
244
259
|
```
|
|
245
260
|
|
|
246
261
|
|
|
@@ -15768,7 +15768,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15768
15768
|
},
|
|
15769
15769
|
setup(__props) {
|
|
15770
15770
|
const formItemPropKeys = Object.keys(formItemProps());
|
|
15771
|
-
const gridItemPropKeys = Object.keys(
|
|
15771
|
+
const gridItemPropKeys = Object.keys(colProps());
|
|
15772
15772
|
memoize.Cache = WeakMap;
|
|
15773
15773
|
const customItemPropsKeys = [
|
|
15774
15774
|
"style",
|
|
@@ -16580,6 +16580,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16580
16580
|
return props.form ? (_a = props.form) == null ? void 0 : _a.formData.value : props.formData;
|
|
16581
16581
|
}
|
|
16582
16582
|
);
|
|
16583
|
+
const _fields = computed(
|
|
16584
|
+
() => {
|
|
16585
|
+
var _a;
|
|
16586
|
+
return props.form ? (_a = props.form) == null ? void 0 : _a.fields.value : props.fields;
|
|
16587
|
+
}
|
|
16588
|
+
);
|
|
16583
16589
|
const updateFormData = (path, value) => {
|
|
16584
16590
|
var _a;
|
|
16585
16591
|
if (props.form) {
|
|
@@ -16591,12 +16597,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16591
16597
|
}
|
|
16592
16598
|
updateActivePath(path);
|
|
16593
16599
|
};
|
|
16594
|
-
const _fields = computed(
|
|
16595
|
-
() => {
|
|
16596
|
-
var _a;
|
|
16597
|
-
return props.form ? (_a = props.form) == null ? void 0 : _a.fields.value : props.fields;
|
|
16598
|
-
}
|
|
16599
|
-
);
|
|
16600
16600
|
const command = computed(() => {
|
|
16601
16601
|
return props.form && !props.autoCommandDisabled ? useCommand({
|
|
16602
16602
|
refs: exposed.refs,
|
package/es/form/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l, B, d, i, C, b, f, F, k, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-
|
|
1
|
+
import { l, B, d, i, C, b, f, F, k, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-3d705aab.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
import "../component-provider/index.js";
|
package/es/index.d.ts
CHANGED
|
@@ -304,7 +304,7 @@ export declare interface Common<D extends FormData_2 = FormData_2> {
|
|
|
304
304
|
* @example (val) => val?.trim()
|
|
305
305
|
*/
|
|
306
306
|
valueFormatter?: (val: any) => any;
|
|
307
|
-
/**
|
|
307
|
+
/** 是否隐藏校验错误信息(需要浏览器支持has选择器) */
|
|
308
308
|
hideFeedback?: boolean;
|
|
309
309
|
/** 以data-form-item-开头的属性将会被渲染至formItem的dom节点 */
|
|
310
310
|
[key: `data-form-item-${string}`]: string;
|
|
@@ -6148,9 +6148,9 @@ export declare type UseTable<T extends Data = Data> = <D extends T = T>(init: Pa
|
|
|
6148
6148
|
|
|
6149
6149
|
export declare const useTable: UseTable;
|
|
6150
6150
|
|
|
6151
|
-
declare type VModelProps = {
|
|
6152
|
-
value?:
|
|
6153
|
-
'onUpdate:value'?: (val:
|
|
6151
|
+
declare type VModelProps<T = any> = {
|
|
6152
|
+
value?: T;
|
|
6153
|
+
'onUpdate:value'?: (val: T) => void;
|
|
6154
6154
|
};
|
|
6155
6155
|
|
|
6156
6156
|
export { }
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { _ as _sfc_main } from "./form/index-
|
|
3
|
-
import { l, B, d, i, C, b, f, F, k, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-3d705aab.js";
|
|
3
|
+
import { l, B, d, i, C, b, f, F, k, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-3d705aab.js";
|
|
4
4
|
import BaseTable from "./table/index.js";
|
|
5
5
|
import { useTable } from "./table/index.js";
|
|
6
6
|
import _sfc_main$1 from "./component-provider/index.js";
|
package/es/table/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
2
|
import { Button, Space, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
|
|
3
3
|
import { useInjectProps, INJECT_KEYS } from "../component-provider/index.js";
|
|
4
|
-
import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-
|
|
4
|
+
import { A as AntdIcon, _ as _sfc_main$6, g as get, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-3d705aab.js";
|
|
5
5
|
var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
|
|
6
6
|
const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
|
|
7
7
|
function _objectSpread$2(target) {
|