@qin-ui/antd-vue-pro 1.1.15 → 1.1.16
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/es/form/{index-46e84b2b.js → index-f9088d5a.js} +23 -26
- package/es/form/index.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -2
- package/es/table/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, ref, h as h$1, getCurrentInstance, nextTick, reactive, defineComponent, createVNode, shallowRef, watch, unref, provide, watchEffect, onBeforeUnmount, computed, triggerRef, Fragment, Comment, Text, isVNode, onMounted, cloneVNode, Transition, withDirectives, resolveDirective, onUpdated, onUnmounted, toRef, withModifiers, vShow, onBeforeMount, Teleport, TransitionGroup, toRaw, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, renderList,
|
|
1
|
+
import { inject, ref, h as h$1, getCurrentInstance, nextTick, reactive, defineComponent, createVNode, shallowRef, watch, unref, provide, watchEffect, onBeforeUnmount, computed, triggerRef, Fragment, Comment, Text, isVNode, onMounted, cloneVNode, Transition, withDirectives, resolveDirective, onUpdated, onUnmounted, toRef, withModifiers, vShow, onBeforeMount, Teleport, TransitionGroup, toRaw, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, renderList, createSlots, createTextVNode, createCommentVNode, useAttrs, resolveDynamicComponent, normalizeProps, renderSlot, toDisplayString, shallowReactive } from "vue";
|
|
2
2
|
import { Input, Textarea, InputSearch, InputPassword, InputNumber, Select, Cascader, DatePicker as DatePicker$1, RangePicker, TimePicker as TimePicker$1, CheckboxGroup, RadioGroup, Switch, Slider, TreeSelect, Transfer, Row as Row$1, Col as Col$1, FormItem as FormItem$1, message, Form as Form$2 } from "ant-design-vue";
|
|
3
3
|
import { INIT_PROPS_MAP, useInjectProps, INJECT_KEYS } from "../component-provider/index.js";
|
|
4
4
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
@@ -15796,13 +15796,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15796
15796
|
const props = __props;
|
|
15797
15797
|
useProviderDisabled(computed(() => props.disabled));
|
|
15798
15798
|
const updateRefs = inject(UPDATE_REFS);
|
|
15799
|
-
const getPath = (
|
|
15800
|
-
|
|
15799
|
+
const getPath = (field) => {
|
|
15800
|
+
const path = (field == null ? void 0 : field.name) ?? [props.path, field == null ? void 0 : field.key].filter(Boolean);
|
|
15801
|
+
return toPath(path).join(".");
|
|
15801
15802
|
};
|
|
15802
15803
|
const setFormItemRef = (el, field) => {
|
|
15803
15804
|
if (!el)
|
|
15804
15805
|
return;
|
|
15805
|
-
const path = getPath(field
|
|
15806
|
+
const path = getPath(field);
|
|
15806
15807
|
updateRefs == null ? void 0 : updateRefs("formItemRefs", path, el);
|
|
15807
15808
|
};
|
|
15808
15809
|
const proFormPropKeys = computed(() => {
|
|
@@ -15853,16 +15854,17 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15853
15854
|
default: withCtx(() => [
|
|
15854
15855
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fields, (field, index2) => {
|
|
15855
15856
|
return openBlock(), createElementBlock(Fragment, {
|
|
15856
|
-
key: getPath(field
|
|
15857
|
+
key: getPath(field) || index2
|
|
15857
15858
|
}, [
|
|
15858
|
-
field && !field.hidden ? (openBlock(), createBlock(
|
|
15859
|
+
field && !field.hidden ? (openBlock(), createBlock(unref(_sfc_main$2), mergeProps({
|
|
15859
15860
|
key: 0,
|
|
15861
|
+
component: _ctx.grid ? unref(Col$1) : void 0,
|
|
15860
15862
|
ref_for: true
|
|
15861
|
-
},
|
|
15863
|
+
}, unref(withDefaultGridItem)(field)), {
|
|
15862
15864
|
default: withCtx(() => [
|
|
15863
15865
|
createVNode(unref(_sfc_main$2), {
|
|
15864
15866
|
component: field.container,
|
|
15865
|
-
path: getPath(field
|
|
15867
|
+
path: getPath(field)
|
|
15866
15868
|
}, {
|
|
15867
15869
|
default: withCtx(() => [
|
|
15868
15870
|
createVNode(unref(FormItem$1), mergeProps({ ref_for: true }, withDefault(field), {
|
|
@@ -15871,15 +15873,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15871
15873
|
class: field.className,
|
|
15872
15874
|
style: field.style,
|
|
15873
15875
|
"hide-feedback": field.hideFeedback,
|
|
15874
|
-
name:
|
|
15875
|
-
path: getPath(field
|
|
15876
|
+
name: unref(toPath)(getPath(field)),
|
|
15877
|
+
path: getPath(field)
|
|
15876
15878
|
}), createSlots({
|
|
15877
15879
|
default: withCtx(() => [
|
|
15878
15880
|
field.fields ? (openBlock(), createBlock(_component_BaseFormItem, {
|
|
15879
15881
|
key: 0,
|
|
15880
15882
|
grid: field.grid ?? _ctx.grid,
|
|
15881
15883
|
fields: field.fields,
|
|
15882
|
-
path: getPath(field
|
|
15884
|
+
path: getPath(field),
|
|
15883
15885
|
disabled: field.disabled
|
|
15884
15886
|
}, null, 8, ["grid", "fields", "path", "disabled"])) : !field.component ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
15885
15887
|
createTextVNode(' missing "component" prop ')
|
|
@@ -15888,7 +15890,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15888
15890
|
ref_for: true
|
|
15889
15891
|
}, unref(omitFormItemProps)(field), {
|
|
15890
15892
|
label: field.label,
|
|
15891
|
-
path: getPath(field
|
|
15893
|
+
path: getPath(field)
|
|
15892
15894
|
}), null, 16, ["label", "path"]))
|
|
15893
15895
|
]),
|
|
15894
15896
|
_: 2
|
|
@@ -15896,11 +15898,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15896
15898
|
renderList(field.slots, (slot, name) => {
|
|
15897
15899
|
return {
|
|
15898
15900
|
name,
|
|
15899
|
-
fn: withCtx(() => [
|
|
15901
|
+
fn: withCtx((scoped) => [
|
|
15900
15902
|
unref(FORM_ITEM_SLOT_KEYS).includes(name) ? (openBlock(), createBlock(unref(_sfc_main$1), mergeProps({
|
|
15901
15903
|
key: 0,
|
|
15904
|
+
path: getPath(field),
|
|
15905
|
+
component: slot,
|
|
15902
15906
|
ref_for: true
|
|
15903
|
-
},
|
|
15907
|
+
}, scoped), null, 16, ["path", "component"])) : createCommentVNode("", true)
|
|
15904
15908
|
])
|
|
15905
15909
|
};
|
|
15906
15910
|
})
|
|
@@ -15910,7 +15914,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
15910
15914
|
}, 1032, ["component", "path"])
|
|
15911
15915
|
]),
|
|
15912
15916
|
_: 2
|
|
15913
|
-
}, 1040)) : createCommentVNode("", true)
|
|
15917
|
+
}, 1040, ["component"])) : createCommentVNode("", true)
|
|
15914
15918
|
], 64);
|
|
15915
15919
|
}), 128))
|
|
15916
15920
|
]),
|
|
@@ -15927,24 +15931,17 @@ const useFields = (initFields) => {
|
|
|
15927
15931
|
return false;
|
|
15928
15932
|
for (let i2 = 0; i2 < fieldList.length; i2 += 1) {
|
|
15929
15933
|
const field = fieldList[i2];
|
|
15930
|
-
const { key = "" } = field;
|
|
15931
|
-
const concatPath = `${parentPath}${parentPath && key ? "." : ""}${key}`;
|
|
15934
|
+
const { name, key = "" } = field;
|
|
15935
|
+
const concatPath = name ?? `${parentPath}${parentPath && key ? "." : ""}${key}`;
|
|
15932
15936
|
const selfPath = toPath(concatPath).join(".");
|
|
15933
|
-
if (!parsedPath.startsWith(selfPath))
|
|
15937
|
+
if (parsedPath.includes(".") && !parsedPath.startsWith(selfPath))
|
|
15934
15938
|
continue;
|
|
15935
15939
|
const fieldPath = `${parentFieldPath}[${i2}]`;
|
|
15936
15940
|
if (selfPath && selfPath === parsedPath) {
|
|
15937
15941
|
updater({ field, fieldIndex: i2, parentFields: fieldList, fieldPath });
|
|
15938
15942
|
return true;
|
|
15939
15943
|
}
|
|
15940
|
-
if (field.fields && updateField(
|
|
15941
|
-
path,
|
|
15942
|
-
updater,
|
|
15943
|
-
field.fields,
|
|
15944
|
-
selfPath,
|
|
15945
|
-
`${fieldPath}.fields`,
|
|
15946
|
-
parsedPath
|
|
15947
|
-
)) {
|
|
15944
|
+
if (field.fields && updateField(path, updater, field.fields, selfPath, `${fieldPath}.fields`, parsedPath)) {
|
|
15948
15945
|
return true;
|
|
15949
15946
|
}
|
|
15950
15947
|
}
|
package/es/form/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l, B, d, i, C, b, f, F, k, G, 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, G, R, e, j, U, h, _, m, p, n, s, q, u, r, t } from "./index-f9088d5a.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ant-design-vue";
|
|
4
4
|
import "../component-provider/index.js";
|
package/es/index.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ export declare type Condition = {
|
|
|
408
408
|
disabled?: boolean;
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
-
export declare type ContainerComponent = Component<DefaultProps
|
|
411
|
+
export declare type ContainerComponent = Component<DefaultProps> | null;
|
|
412
412
|
|
|
413
413
|
export declare const ContainerFragment: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<Props_4>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<Props_4>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
414
414
|
default?(_: {}): any;
|
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, G, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-f9088d5a.js";
|
|
3
|
+
import { l, B, d, i, C, b, f, F, k, G, R, e, j, U, h, m, p, n, s, q, u, r, t } from "./form/index-f9088d5a.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-f9088d5a.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) {
|