@antdv-next1/pro-field 1.0.18 → 1.0.19
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/dist/ProField.js +6 -6
- package/dist/ProPureField.d.ts +1 -1
- package/dist/ProPureField.js +6 -6
- package/dist/ValueTypeToComponent.js +5 -5
- package/dist/components/Cascader/index.d.ts +1 -1
- package/dist/components/Cascader/index.js +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/ColorPicker/index.js +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/FromNow/index.js +1 -1
- package/dist/components/Image/index.d.ts +1 -1
- package/dist/components/IndexColumn/index.js +1 -1
- package/dist/components/Options/index.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Segmented/index.d.ts +1 -1
- package/dist/components/Select/Highlight/index.js +1 -1
- package/dist/components/Select/LightSelect/index.js +1 -1
- package/dist/components/Select/SearchSelect/index.d.ts +3 -3
- package/dist/components/Select/SearchSelect/index.js +1 -1
- package/dist/components/TextArea/readonly/index.js +1 -1
- package/dist/components/TreeSelect/index.d.ts +1 -1
- package/dist/components/TreeSelect/index.js +1 -1
- package/dist/pro-field.esm.js +1301 -63965
- package/package.json +16 -14
- package/dist/pro-field.js +0 -214
package/dist/ProField.js
CHANGED
|
@@ -34,12 +34,12 @@ import { omitUndefined, pickProProps } from "@antdv-next1/pro-utils";
|
|
|
34
34
|
import { isEmptyElement } from "@v-c/util/dist/props-util/index";
|
|
35
35
|
import { Avatar } from "antdv-next";
|
|
36
36
|
import dayjs from "dayjs";
|
|
37
|
-
import advancedFormat from "dayjs/plugin/advancedFormat
|
|
38
|
-
import isoWeek from "dayjs/plugin/isoWeek
|
|
39
|
-
import localeData from "dayjs/plugin/localeData
|
|
40
|
-
import localizedFormat from "dayjs/plugin/localizedFormat
|
|
41
|
-
import weekday from "dayjs/plugin/weekday
|
|
42
|
-
import weekOfYear from "dayjs/plugin/weekOfYear
|
|
37
|
+
import advancedFormat from "dayjs/plugin/advancedFormat";
|
|
38
|
+
import isoWeek from "dayjs/plugin/isoWeek";
|
|
39
|
+
import localeData from "dayjs/plugin/localeData";
|
|
40
|
+
import localizedFormat from "dayjs/plugin/localizedFormat";
|
|
41
|
+
import weekday from "dayjs/plugin/weekday";
|
|
42
|
+
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
43
43
|
//#region src/ProField.tsx
|
|
44
44
|
dayjs.extend(localeData);
|
|
45
45
|
dayjs.extend(advancedFormat);
|
package/dist/ProPureField.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { CustomSlotsType, VueNode as VueNode$1 } from "@v-c/util/dist/type";
|
|
|
8
8
|
//#region src/ProPureField.d.ts
|
|
9
9
|
declare const ProPureField: _$vue.DefineSetupFnComponent<ProFieldProps, {}, CustomSlotsType<{
|
|
10
10
|
default?: () => VueNode$1;
|
|
11
|
-
}>, Omit<ProFieldFCRenderProps, "
|
|
11
|
+
}>, Omit<ProFieldFCRenderProps, "placeholder" | "text"> & ProRenderFieldPropsType<any> & {
|
|
12
12
|
id?: string;
|
|
13
13
|
request?: _$_antdv_next1_pro_utils0.ProFieldRequestData;
|
|
14
14
|
emptyText?: VueNode$1;
|
package/dist/ProPureField.js
CHANGED
|
@@ -4,12 +4,12 @@ import { useProConfig } from "@antdv-next1/pro-provider";
|
|
|
4
4
|
import { normalizeProps, omitUndefined, pickProProps } from "@antdv-next1/pro-utils";
|
|
5
5
|
import { isEmptyElement } from "@v-c/util/dist/props-util/index";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
|
-
import advancedFormat from "dayjs/plugin/advancedFormat
|
|
8
|
-
import isoWeek from "dayjs/plugin/isoWeek
|
|
9
|
-
import localeData from "dayjs/plugin/localeData
|
|
10
|
-
import localizedFormat from "dayjs/plugin/localizedFormat
|
|
11
|
-
import weekday from "dayjs/plugin/weekday
|
|
12
|
-
import weekOfYear from "dayjs/plugin/weekOfYear
|
|
7
|
+
import advancedFormat from "dayjs/plugin/advancedFormat";
|
|
8
|
+
import isoWeek from "dayjs/plugin/isoWeek";
|
|
9
|
+
import localeData from "dayjs/plugin/localeData";
|
|
10
|
+
import localizedFormat from "dayjs/plugin/localizedFormat";
|
|
11
|
+
import weekday from "dayjs/plugin/weekday";
|
|
12
|
+
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
13
13
|
//#region src/ProPureField.tsx
|
|
14
14
|
dayjs.extend(localeData);
|
|
15
15
|
dayjs.extend(advancedFormat);
|
|
@@ -31,11 +31,11 @@ import { createVNode, mergeProps } from "vue";
|
|
|
31
31
|
import { pickProProps } from "@antdv-next1/pro-utils";
|
|
32
32
|
import { Avatar } from "antdv-next";
|
|
33
33
|
import dayjs from "dayjs";
|
|
34
|
-
import advancedFormat from "dayjs/plugin/advancedFormat
|
|
35
|
-
import isoWeek from "dayjs/plugin/isoWeek
|
|
36
|
-
import localeData from "dayjs/plugin/localeData
|
|
37
|
-
import weekday from "dayjs/plugin/weekday
|
|
38
|
-
import weekOfYear from "dayjs/plugin/weekOfYear
|
|
34
|
+
import advancedFormat from "dayjs/plugin/advancedFormat";
|
|
35
|
+
import isoWeek from "dayjs/plugin/isoWeek";
|
|
36
|
+
import localeData from "dayjs/plugin/localeData";
|
|
37
|
+
import weekday from "dayjs/plugin/weekday";
|
|
38
|
+
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
39
39
|
//#region src/ValueTypeToComponent.tsx
|
|
40
40
|
dayjs.extend(localeData);
|
|
41
41
|
dayjs.extend(advancedFormat);
|
|
@@ -35,6 +35,6 @@ declare const FieldCascader: _$vue.DefineSetupFnComponent<FieldCascaderProps, {}
|
|
|
35
35
|
variant?: "outlined" | "borderless" | "filled";
|
|
36
36
|
} & {
|
|
37
37
|
id?: string;
|
|
38
|
-
} & Omit<FieldSelectProps, "text" | "fieldProps" | "light" | "label" | "id" | "variant" | "
|
|
38
|
+
} & Omit<FieldSelectProps, "text" | "fieldProps" | "light" | "label" | "id" | "variant" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { FieldCascaderProps, FieldCascaderRef, FieldCascader as default };
|
|
@@ -5,7 +5,7 @@ import { FieldLabel, objectToMap, proFieldParsingText, useMemo, useState } from
|
|
|
5
5
|
import { Cascader } from "antdv-next";
|
|
6
6
|
import { LoadingOutlined } from "@antdv-next/icons";
|
|
7
7
|
import { classNames } from "@v-c/util";
|
|
8
|
-
import { useConfig as useConfig$1 } from "antdv-next/
|
|
8
|
+
import { useConfig as useConfig$1 } from "antdv-next/config-provider/context";
|
|
9
9
|
//#region src/components/Cascader/index.tsx
|
|
10
10
|
const FieldCascader = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
11
11
|
const config = useConfig$1();
|
|
@@ -32,6 +32,6 @@ declare const FieldCheckbox: _$vue.DefineSetupFnComponent<FieldCheckBoxProps, {}
|
|
|
32
32
|
options?: CheckboxGroupProps["options"];
|
|
33
33
|
} & {
|
|
34
34
|
id?: string;
|
|
35
|
-
} & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "
|
|
35
|
+
} & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { FieldCheckBoxProps, FieldCheckboxRef, FieldCheckbox as default };
|
|
@@ -5,7 +5,7 @@ import { useToken } from "@antdv-next1/pro-provider";
|
|
|
5
5
|
import { objectToMap, proFieldParsingText } from "@antdv-next1/pro-utils";
|
|
6
6
|
import { CheckboxGroup, Spin } from "antdv-next";
|
|
7
7
|
import { classNames, omit } from "@v-c/util";
|
|
8
|
-
import { useConfig as useConfig$1 } from "antdv-next/
|
|
8
|
+
import { useConfig as useConfig$1 } from "antdv-next/config-provider/context";
|
|
9
9
|
import { useFormItemInputContext } from "antdv-next/dist/form/context";
|
|
10
10
|
//#region src/components/Checkbox/index.tsx
|
|
11
11
|
const FieldCheckbox = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, computed, createVNode, defineComponent, mergeProps } from "vue";
|
|
2
2
|
import { ColorPicker } from "antdv-next";
|
|
3
|
-
import { useConfig as useConfig$1 } from "antdv-next/
|
|
3
|
+
import { useConfig as useConfig$1 } from "antdv-next/config-provider/context";
|
|
4
4
|
//#region src/components/ColorPicker/index.tsx
|
|
5
5
|
const DEFAULT_PRESETS = {
|
|
6
6
|
label: "Recommended",
|
|
@@ -3,7 +3,7 @@ import { useIntl } from "@antdv-next1/pro-provider";
|
|
|
3
3
|
import { FieldLabel, parseValueToDay, useState } from "@antdv-next1/pro-utils";
|
|
4
4
|
import { DatePicker } from "antdv-next";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
|
-
import weekOfYear from "dayjs/plugin/weekOfYear
|
|
6
|
+
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
7
7
|
//#region src/components/DatePicker/index.tsx
|
|
8
8
|
dayjs.extend(weekOfYear);
|
|
9
9
|
function formatDate(text, format) {
|
|
@@ -3,7 +3,7 @@ import { useIntl } from "@antdv-next1/pro-provider";
|
|
|
3
3
|
import { parseValueToDay } from "@antdv-next1/pro-utils";
|
|
4
4
|
import { DatePicker, Tooltip } from "antdv-next";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
|
-
import relativeTime from "dayjs/plugin/relativeTime
|
|
6
|
+
import relativeTime from "dayjs/plugin/relativeTime";
|
|
7
7
|
//#region src/components/FromNow/index.tsx
|
|
8
8
|
function _isSlot(s) {
|
|
9
9
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -12,7 +12,7 @@ type FieldImageProps = ProFieldFC<{
|
|
|
12
12
|
}, ImageProps | InputProps>;
|
|
13
13
|
declare const FieldImage: _$vue.DefineSetupFnComponent<FieldImageProps, {}, CustomSlotsType<{
|
|
14
14
|
default?: () => VueNode;
|
|
15
|
-
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<
|
|
15
|
+
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<InputProps | ImageProps> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<InputProps | ImageProps> & {
|
|
16
16
|
text: string;
|
|
17
17
|
width?: number;
|
|
18
18
|
placeholder?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import style_default from "./style/index.js";
|
|
2
2
|
import { computed, createVNode, defineComponent } from "vue";
|
|
3
3
|
import { classNames } from "@v-c/util";
|
|
4
|
-
import { useConfig } from "antdv-next/
|
|
4
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
5
5
|
//#region src/components/IndexColumn/index.tsx
|
|
6
6
|
const FieldIndexColumn = /* @__PURE__ */ defineComponent((props) => {
|
|
7
7
|
const config = useConfig();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, cloneVNode, computed, createVNode, defineComponent, isVNode } from "vue";
|
|
2
2
|
import { proTheme } from "@antdv-next1/pro-provider";
|
|
3
3
|
import { isSpecialNode } from "@antdv-next1/pro-utils";
|
|
4
|
-
import { useConfig } from "antdv-next/
|
|
4
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
5
5
|
//#region src/components/Options/index.tsx
|
|
6
6
|
function addArrayKeys(doms) {
|
|
7
7
|
return doms.map((dom, index) => {
|
|
@@ -31,6 +31,6 @@ declare const FieldRadio: _$vue.DefineSetupFnComponent<FieldRadioProps, {}, Cust
|
|
|
31
31
|
radioType?: RadioGroupProps["optionType"];
|
|
32
32
|
} & {
|
|
33
33
|
id?: string;
|
|
34
|
-
} & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "
|
|
34
|
+
} & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { FieldRadioProps, FieldRadio as default };
|
|
@@ -4,7 +4,7 @@ import { Fragment, computed, createVNode, defineComponent, mergeProps, ref } fro
|
|
|
4
4
|
import { objectToMap, proFieldParsingText } from "@antdv-next1/pro-utils";
|
|
5
5
|
import { RadioGroup, Spin } from "antdv-next";
|
|
6
6
|
import { classNames } from "@v-c/util";
|
|
7
|
-
import { useConfig as useConfig$1 } from "antdv-next/
|
|
7
|
+
import { useConfig as useConfig$1 } from "antdv-next/config-provider/context";
|
|
8
8
|
import { useFormItemInputContext } from "antdv-next/dist/form/context";
|
|
9
9
|
//#region src/components/Radio/index.tsx
|
|
10
10
|
const FieldRadio = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
|
|
@@ -31,6 +31,6 @@ declare const FieldSegmented: _$vue.DefineSetupFnComponent<FieldSegmentedProps,
|
|
|
31
31
|
emptyText?: VueNode$1;
|
|
32
32
|
} & {
|
|
33
33
|
id?: string;
|
|
34
|
-
} & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "
|
|
34
|
+
} & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { FieldSegmentedProps, FieldSegmented as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import style_default from "./style/index.js";
|
|
2
2
|
import { computed, createVNode, defineComponent, h } from "vue";
|
|
3
3
|
import { classNames } from "@v-c/util";
|
|
4
|
-
import { useConfig } from "antdv-next/
|
|
4
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
5
5
|
//#region src/components/Select/Highlight/index.tsx
|
|
6
6
|
const Highlight = /* @__PURE__ */ defineComponent((props) => {
|
|
7
7
|
const config = useConfig();
|
|
@@ -4,7 +4,7 @@ import { FieldLabel, useMemo, useState } from "@antdv-next1/pro-utils";
|
|
|
4
4
|
import { Input, Select } from "antdv-next";
|
|
5
5
|
import { SearchOutlined } from "@antdv-next/icons";
|
|
6
6
|
import { classNames } from "@v-c/util";
|
|
7
|
-
import { useConfig as useConfig$1 } from "antdv-next/
|
|
7
|
+
import { useConfig as useConfig$1 } from "antdv-next/config-provider/context";
|
|
8
8
|
import { toArray } from "@v-c/util/dist/Children/toArray";
|
|
9
9
|
//#region src/components/Select/LightSelect/index.tsx
|
|
10
10
|
/**
|
|
@@ -58,7 +58,7 @@ type SearchSelectProps<T = Record<string, any>> = Omit<SelectProps, 'options' |
|
|
|
58
58
|
*/
|
|
59
59
|
preserveOriginalLabel?: boolean;
|
|
60
60
|
};
|
|
61
|
-
declare const SearchSelect: new <T extends Record<string, any>>(props: Omit<SelectProps, "
|
|
61
|
+
declare const SearchSelect: new <T extends Record<string, any>>(props: Omit<SelectProps, "searchValue" | "options"> & {
|
|
62
62
|
/** 防抖动时间 默认10 单位ms */debounceTime?: number; /** 自定义搜索方法, 返回搜索结果的 Promise */
|
|
63
63
|
request?: ((params: {
|
|
64
64
|
query: string;
|
|
@@ -106,7 +106,7 @@ declare const SearchSelect: new <T extends Record<string, any>>(props: Omit<Sele
|
|
|
106
106
|
* @default false
|
|
107
107
|
*/
|
|
108
108
|
preserveOriginalLabel?: boolean;
|
|
109
|
-
} & {} & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps) => _$vue.CreateComponentPublicInstanceWithMixins<Omit<SelectProps, "
|
|
109
|
+
} & {} & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps) => _$vue.CreateComponentPublicInstanceWithMixins<Omit<SelectProps, "searchValue" | "options"> & {
|
|
110
110
|
/** 防抖动时间 默认10 单位ms */debounceTime?: number; /** 自定义搜索方法, 返回搜索结果的 Promise */
|
|
111
111
|
request?: ((params: {
|
|
112
112
|
query: string;
|
|
@@ -161,7 +161,7 @@ declare const SearchSelect: new <T extends Record<string, any>>(props: Omit<Sele
|
|
|
161
161
|
C: {};
|
|
162
162
|
M: {};
|
|
163
163
|
Defaults: {};
|
|
164
|
-
}, Omit<SelectProps, "
|
|
164
|
+
}, Omit<SelectProps, "searchValue" | "options"> & {
|
|
165
165
|
/** 防抖动时间 默认10 单位ms */debounceTime?: number; /** 自定义搜索方法, 返回搜索结果的 Promise */
|
|
166
166
|
request?: ((params: {
|
|
167
167
|
query: string;
|
|
@@ -2,7 +2,7 @@ import { computed, createVNode, defineComponent, isVNode, mergeProps, ref } from
|
|
|
2
2
|
import { nanoid, useEffect, useState } from "@antdv-next1/pro-utils";
|
|
3
3
|
import { Select } from "antdv-next";
|
|
4
4
|
import { classNames } from "@v-c/util";
|
|
5
|
-
import { useConfig as useConfig$1 } from "antdv-next/
|
|
5
|
+
import { useConfig as useConfig$1 } from "antdv-next/config-provider/context";
|
|
6
6
|
//#region src/components/Select/SearchSelect/index.tsx
|
|
7
7
|
/** 用户扩展数据后的值类型 */
|
|
8
8
|
/** 可能单选,可能多选 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import style_default from "./style/index.js";
|
|
2
2
|
import { computed, createVNode, defineComponent } from "vue";
|
|
3
3
|
import { classNames } from "@v-c/util";
|
|
4
|
-
import { useConfig } from "antdv-next/
|
|
4
|
+
import { useConfig } from "antdv-next/config-provider/context";
|
|
5
5
|
//#region src/components/TextArea/readonly/index.tsx
|
|
6
6
|
const FieldTextAreaReadonly = /* @__PURE__ */ defineComponent((props) => {
|
|
7
7
|
const config = useConfig();
|
|
@@ -40,6 +40,6 @@ declare const FieldTreeSelect: _$vue.DefineSetupFnComponent<FieldTreeSelectProps
|
|
|
40
40
|
fetchDataOnSearch?: boolean;
|
|
41
41
|
} & {
|
|
42
42
|
id?: string;
|
|
43
|
-
} & TreeSelectProps<any, _$_v_c_tree_select0.DataNode> & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "
|
|
43
|
+
} & TreeSelectProps<any, _$_v_c_tree_select0.DataNode> & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "id" | "variant" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { FieldTreeSelectProps, FieldTreeSelect as default };
|
|
@@ -4,7 +4,7 @@ import { useIntl } from "@antdv-next1/pro-provider";
|
|
|
4
4
|
import { FieldLabel, objectToMap, proFieldParsingText, useMemo, useState } from "@antdv-next1/pro-utils";
|
|
5
5
|
import { Spin, TreeSelect } from "antdv-next";
|
|
6
6
|
import { classNames, omit, useMergedState } from "@v-c/util";
|
|
7
|
-
import { useConfig as useConfig$1 } from "antdv-next/
|
|
7
|
+
import { useConfig as useConfig$1 } from "antdv-next/config-provider/context";
|
|
8
8
|
import { unit } from "@antdv-next/cssinjs";
|
|
9
9
|
//#region src/components/TreeSelect/index.tsx
|
|
10
10
|
const FieldTreeSelect = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
|