@aplus-frontend/ui 0.0.8 → 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.
- package/es/src/ap-field/interface.d.ts +4 -0
- package/es/src/ap-field/select/index.vue.d.ts +3 -0
- package/es/src/ap-field/select/index.vue.mjs +45 -36
- package/es/src/ap-table/constants.d.ts +19 -0
- package/lib/src/ap-field/interface.d.ts +4 -0
- package/lib/src/ap-field/select/index.vue.d.ts +3 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +19 -0
- package/package.json +3 -3
|
@@ -89,6 +89,10 @@ export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'v
|
|
|
89
89
|
multiple?: boolean;
|
|
90
90
|
value?: SelectProps['value'];
|
|
91
91
|
'onUpdate:value'?: SelectProps['onUpdate:value'];
|
|
92
|
+
/**
|
|
93
|
+
* 如果设置showSearch=true,此时设置searchMode=filter将进行前端筛选,设置searchMode=request将会走后端筛选
|
|
94
|
+
*/
|
|
95
|
+
searchMode?: 'filter' | 'request';
|
|
92
96
|
};
|
|
93
97
|
export type ApFieldSelectSlots = {
|
|
94
98
|
focus: () => void;
|
|
@@ -34,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
34
34
|
defaultActiveFirstOption: undefined;
|
|
35
35
|
labelInValue: undefined;
|
|
36
36
|
multiple: undefined;
|
|
37
|
+
searchMode: string;
|
|
37
38
|
}>, {
|
|
38
39
|
focus: typeof focus;
|
|
39
40
|
blur: typeof blur;
|
|
@@ -56,6 +57,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
56
57
|
defaultActiveFirstOption: undefined;
|
|
57
58
|
labelInValue: undefined;
|
|
58
59
|
multiple: undefined;
|
|
60
|
+
searchMode: string;
|
|
59
61
|
}>>> & {
|
|
60
62
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
61
63
|
}, {
|
|
@@ -75,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
75
77
|
defaultActiveFirstOption: boolean;
|
|
76
78
|
labelInValue: boolean;
|
|
77
79
|
emptyText: string;
|
|
80
|
+
searchMode: "filter" | "request";
|
|
78
81
|
}, {}>, Readonly<ApFieldSelectSlots> & ApFieldSelectSlots>;
|
|
79
82
|
export default _default;
|
|
80
83
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as P, ref as c, onMounted as k, computed as p, unref as
|
|
2
|
-
import { debounce as L, isFunction as h, isArray as z,
|
|
1
|
+
import { defineComponent as P, ref as c, onMounted as k, computed as p, unref as a, openBlock as m, createElementBlock as A, toDisplayString as M, createBlock as O, mergeProps as T, createSlots as q, renderList as N, withCtx as v, renderSlot as _, normalizeProps as R, guardReactiveProps as U, createVNode as D } from "vue";
|
|
2
|
+
import { debounce as L, isFunction as h, isArray as z, isNil as K, omit as H } from "lodash-unified";
|
|
3
3
|
import { Select as $, Spin as j } from "ant-design-vue";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { omitUndefined as E } from "../../utils/index.mjs";
|
|
@@ -84,61 +84,70 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
|
|
|
84
84
|
request: {},
|
|
85
85
|
multiple: { type: Boolean, default: void 0 },
|
|
86
86
|
value: {},
|
|
87
|
-
"onUpdate:value": {}
|
|
87
|
+
"onUpdate:value": {},
|
|
88
|
+
searchMode: { default: "filter" }
|
|
88
89
|
},
|
|
89
90
|
emits: ["update:value"],
|
|
90
91
|
setup(y, { expose: w, emit: g }) {
|
|
91
|
-
let
|
|
92
|
+
let r = 0;
|
|
92
93
|
const S = (o, t) => typeof (t == null ? void 0 : t.label) == "string" && t.label.indexOf(o) > -1, B = L((o) => {
|
|
93
94
|
if (!h(e.request))
|
|
94
95
|
return;
|
|
95
|
-
|
|
96
|
-
const t =
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
r += 1;
|
|
97
|
+
const t = r;
|
|
98
|
+
i.value = [], l.value = !0, e.request(o).then((n) => {
|
|
99
|
+
r === t && (i.value = n);
|
|
99
100
|
}).finally(() => {
|
|
100
|
-
|
|
101
|
+
l.value = !1;
|
|
101
102
|
});
|
|
102
|
-
}, 300), e = y,
|
|
103
|
+
}, 300), e = y, i = c((e == null ? void 0 : e.options) || []), d = c(), l = c((e == null ? void 0 : e.loading) || !1), C = g;
|
|
103
104
|
k(() => {
|
|
104
105
|
if (h(e.request)) {
|
|
105
|
-
|
|
106
|
-
const o =
|
|
106
|
+
l.value = !0, r += 1;
|
|
107
|
+
const o = r;
|
|
107
108
|
e.request().then((t) => {
|
|
108
|
-
o ===
|
|
109
|
+
o === r && (i.value = t);
|
|
109
110
|
}).finally(() => {
|
|
110
|
-
|
|
111
|
+
l.value = !1;
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
114
|
});
|
|
114
115
|
const { value: f, updateValue: b } = W(e, C), x = p(() => {
|
|
115
|
-
const o =
|
|
116
|
+
const o = a(f);
|
|
116
117
|
if (!o)
|
|
117
118
|
return e.emptyText;
|
|
118
119
|
if (z(o))
|
|
119
120
|
return o.map(
|
|
120
|
-
(
|
|
121
|
+
(n) => {
|
|
121
122
|
var u;
|
|
122
|
-
return (u =
|
|
123
|
+
return (u = a(i).find((s) => s.value === n)) == null ? void 0 : u.label;
|
|
123
124
|
}
|
|
124
125
|
).filter(Boolean).join("、") || e.emptyText;
|
|
125
|
-
const t =
|
|
126
|
+
const t = a(i).find((n) => n.value === o);
|
|
126
127
|
return (t == null ? void 0 : t.label) || e.emptyText;
|
|
127
128
|
}), F = p(() => {
|
|
128
|
-
const
|
|
129
|
+
const o = !!(e != null && e.showSearch), t = e.searchMode;
|
|
130
|
+
let n = {};
|
|
131
|
+
return o && (n = t === "request" ? {
|
|
129
132
|
showArrow: !1,
|
|
130
133
|
defaultActiveFirstOption: !1,
|
|
131
134
|
onSearch: B,
|
|
132
|
-
notFoundContent:
|
|
135
|
+
notFoundContent: l.value ? void 0 : null
|
|
133
136
|
} : {
|
|
134
|
-
showArrow: !0
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
showArrow: !0,
|
|
138
|
+
filterOption: K(e == null ? void 0 : e.filterOption) ? S : e == null ? void 0 : e.filterOption
|
|
139
|
+
}), {
|
|
137
140
|
...E(
|
|
138
|
-
|
|
141
|
+
H(e, [
|
|
142
|
+
"mode",
|
|
143
|
+
"value",
|
|
144
|
+
"onUpdate:value",
|
|
145
|
+
"onSearch",
|
|
146
|
+
"request",
|
|
147
|
+
"searchMode"
|
|
148
|
+
])
|
|
139
149
|
),
|
|
140
|
-
...
|
|
141
|
-
filterOption: e.showSearch ? !1 : H(e == null ? void 0 : e.filterOption) ? S : e == null ? void 0 : e.filterOption
|
|
150
|
+
...n
|
|
142
151
|
};
|
|
143
152
|
});
|
|
144
153
|
function I() {
|
|
@@ -152,28 +161,28 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
|
|
|
152
161
|
return w({
|
|
153
162
|
focus: I,
|
|
154
163
|
blur: V
|
|
155
|
-
}), (o, t) => o.mode === "read" ? (m(), A("span", G,
|
|
164
|
+
}), (o, t) => o.mode === "read" ? (m(), A("span", G, M(x.value), 1)) : (m(), O(a($), T({
|
|
156
165
|
key: 1,
|
|
157
166
|
"allow-clear": "",
|
|
158
167
|
ref_key: "selectRef",
|
|
159
168
|
ref: d
|
|
160
169
|
}, F.value, {
|
|
161
170
|
mode: o.multiple ? "multiple" : void 0,
|
|
162
|
-
value:
|
|
163
|
-
"onUpdate:value":
|
|
164
|
-
options:
|
|
165
|
-
loading:
|
|
166
|
-
}),
|
|
167
|
-
|
|
171
|
+
value: a(f),
|
|
172
|
+
"onUpdate:value": a(b),
|
|
173
|
+
options: i.value,
|
|
174
|
+
loading: l.value
|
|
175
|
+
}), q({ _: 2 }, [
|
|
176
|
+
N(o.$slots, (n, u) => ({
|
|
168
177
|
name: u,
|
|
169
178
|
fn: v((s) => [
|
|
170
|
-
|
|
179
|
+
_(o.$slots, u, R(U(s || {})))
|
|
171
180
|
])
|
|
172
181
|
})),
|
|
173
|
-
|
|
182
|
+
l.value ? {
|
|
174
183
|
name: "notFoundContent",
|
|
175
184
|
fn: v(() => [
|
|
176
|
-
D(
|
|
185
|
+
D(a(j), { size: "small" })
|
|
177
186
|
]),
|
|
178
187
|
key: "0"
|
|
179
188
|
} : void 0
|
|
@@ -10516,6 +10516,10 @@ export declare const apTableRenderItemMap: {
|
|
|
10516
10516
|
request: {
|
|
10517
10517
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
10518
10518
|
};
|
|
10519
|
+
searchMode: {
|
|
10520
|
+
type: PropType<"filter" | "request">;
|
|
10521
|
+
default: string;
|
|
10522
|
+
};
|
|
10519
10523
|
}>> & {
|
|
10520
10524
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
10521
10525
|
}, {
|
|
@@ -10771,6 +10775,10 @@ export declare const apTableRenderItemMap: {
|
|
|
10771
10775
|
request: {
|
|
10772
10776
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
10773
10777
|
};
|
|
10778
|
+
searchMode: {
|
|
10779
|
+
type: PropType<"filter" | "request">;
|
|
10780
|
+
default: string;
|
|
10781
|
+
};
|
|
10774
10782
|
}>> & {
|
|
10775
10783
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
10776
10784
|
}, {
|
|
@@ -10790,6 +10798,7 @@ export declare const apTableRenderItemMap: {
|
|
|
10790
10798
|
defaultActiveFirstOption: boolean;
|
|
10791
10799
|
labelInValue: boolean;
|
|
10792
10800
|
emptyText: string;
|
|
10801
|
+
searchMode: "filter" | "request";
|
|
10793
10802
|
}, true, {}, {}, {
|
|
10794
10803
|
P: {};
|
|
10795
10804
|
B: {};
|
|
@@ -11045,6 +11054,10 @@ export declare const apTableRenderItemMap: {
|
|
|
11045
11054
|
request: {
|
|
11046
11055
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
11047
11056
|
};
|
|
11057
|
+
searchMode: {
|
|
11058
|
+
type: PropType<"filter" | "request">;
|
|
11059
|
+
default: string;
|
|
11060
|
+
};
|
|
11048
11061
|
}>> & {
|
|
11049
11062
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11050
11063
|
}, {
|
|
@@ -11067,6 +11080,7 @@ export declare const apTableRenderItemMap: {
|
|
|
11067
11080
|
defaultActiveFirstOption: boolean;
|
|
11068
11081
|
labelInValue: boolean;
|
|
11069
11082
|
emptyText: string;
|
|
11083
|
+
searchMode: "filter" | "request";
|
|
11070
11084
|
}>;
|
|
11071
11085
|
__isFragment?: undefined;
|
|
11072
11086
|
__isTeleport?: undefined;
|
|
@@ -11319,6 +11333,10 @@ export declare const apTableRenderItemMap: {
|
|
|
11319
11333
|
request: {
|
|
11320
11334
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
11321
11335
|
};
|
|
11336
|
+
searchMode: {
|
|
11337
|
+
type: PropType<"filter" | "request">;
|
|
11338
|
+
default: string;
|
|
11339
|
+
};
|
|
11322
11340
|
}>> & {
|
|
11323
11341
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11324
11342
|
}, {
|
|
@@ -11343,6 +11361,7 @@ export declare const apTableRenderItemMap: {
|
|
|
11343
11361
|
defaultActiveFirstOption: boolean;
|
|
11344
11362
|
labelInValue: boolean;
|
|
11345
11363
|
emptyText: string;
|
|
11364
|
+
searchMode: "filter" | "request";
|
|
11346
11365
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
11347
11366
|
$slots: Readonly<{
|
|
11348
11367
|
notFoundContent: any;
|
|
@@ -89,6 +89,10 @@ export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'v
|
|
|
89
89
|
multiple?: boolean;
|
|
90
90
|
value?: SelectProps['value'];
|
|
91
91
|
'onUpdate:value'?: SelectProps['onUpdate:value'];
|
|
92
|
+
/**
|
|
93
|
+
* 如果设置showSearch=true,此时设置searchMode=filter将进行前端筛选,设置searchMode=request将会走后端筛选
|
|
94
|
+
*/
|
|
95
|
+
searchMode?: 'filter' | 'request';
|
|
92
96
|
};
|
|
93
97
|
export type ApFieldSelectSlots = {
|
|
94
98
|
focus: () => void;
|
|
@@ -34,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
34
34
|
defaultActiveFirstOption: undefined;
|
|
35
35
|
labelInValue: undefined;
|
|
36
36
|
multiple: undefined;
|
|
37
|
+
searchMode: string;
|
|
37
38
|
}>, {
|
|
38
39
|
focus: typeof focus;
|
|
39
40
|
blur: typeof blur;
|
|
@@ -56,6 +57,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
56
57
|
defaultActiveFirstOption: undefined;
|
|
57
58
|
labelInValue: undefined;
|
|
58
59
|
multiple: undefined;
|
|
60
|
+
searchMode: string;
|
|
59
61
|
}>>> & {
|
|
60
62
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
61
63
|
}, {
|
|
@@ -75,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
75
77
|
defaultActiveFirstOption: boolean;
|
|
76
78
|
labelInValue: boolean;
|
|
77
79
|
emptyText: string;
|
|
80
|
+
searchMode: "filter" | "request";
|
|
78
81
|
}, {}>, Readonly<ApFieldSelectSlots> & ApFieldSelectSlots>;
|
|
79
82
|
export default _default;
|
|
80
83
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("lodash-unified"),p=require("ant-design-vue");require("../../hooks/index.js");const F=require("../../utils/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("lodash-unified"),p=require("ant-design-vue");require("../../hooks/index.js");const F=require("../../utils/index.js"),q=require("../../hooks/useControllableValue.js"),V={key:0},I=e.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},options:{},showAction:{},placeholder:{},onDeselect:{},loading:{type:Boolean,default:void 0},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"-"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"}},emits:["update:value"],setup(v,{expose:m,emit:h}){let r=0;const y=(t,n)=>typeof(n==null?void 0:n.label)=="string"&&n.label.indexOf(t)>-1,g=i.debounce(t=>{if(!i.isFunction(o.request))return;r+=1;const n=r;u.value=[],a.value=!0,o.request(t).then(l=>{r===n&&(u.value=l)}).finally(()=>{a.value=!1})},300),o=v,u=e.ref((o==null?void 0:o.options)||[]),s=e.ref(),a=e.ref((o==null?void 0:o.loading)||!1),w=h;e.onMounted(()=>{if(i.isFunction(o.request)){a.value=!0,r+=1;const t=r;o.request().then(n=>{t===r&&(u.value=n)}).finally(()=>{a.value=!1})}});const{value:f,updateValue:S}=q.useControllableValue(o,w),B=e.computed(()=>{const t=e.unref(f);if(!t)return o.emptyText;if(i.isArray(t))return t.map(l=>{var d;return(d=e.unref(u).find(c=>c.value===l))==null?void 0:d.label}).filter(Boolean).join("、")||o.emptyText;const n=e.unref(u).find(l=>l.value===t);return(n==null?void 0:n.label)||o.emptyText}),C=e.computed(()=>{const t=!!(o!=null&&o.showSearch),n=o.searchMode;let l={};return t&&(l=n==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:g,notFoundContent:a.value?void 0:null}:{showArrow:!0,filterOption:i.isNil(o==null?void 0:o.filterOption)?y:o==null?void 0:o.filterOption}),{...F.omitUndefined(i.omit(o,["mode","value","onUpdate:value","onSearch","request","searchMode"])),...l}});function b(){var t;(t=s.value)==null||t.focus()}function x(){var t;(t=s.value)==null||t.blur()}return m({focus:b,blur:x}),(t,n)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(B.value),1)):(e.openBlock(),e.createBlock(e.unref(p.Select),e.mergeProps({key:1,"allow-clear":"",ref_key:"selectRef",ref:s},C.value,{mode:t.multiple?"multiple":void 0,value:e.unref(f),"onUpdate:value":e.unref(S),options:u.value,loading:a.value}),e.createSlots({_:2},[e.renderList(t.$slots,(l,d)=>({name:d,fn:e.withCtx(c=>[e.renderSlot(t.$slots,d,e.normalizeProps(e.guardReactiveProps(c||{})))])})),a.value?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(p.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","onUpdate:value","options","loading"]))}});exports.default=I;
|
|
@@ -10516,6 +10516,10 @@ export declare const apTableRenderItemMap: {
|
|
|
10516
10516
|
request: {
|
|
10517
10517
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
10518
10518
|
};
|
|
10519
|
+
searchMode: {
|
|
10520
|
+
type: PropType<"filter" | "request">;
|
|
10521
|
+
default: string;
|
|
10522
|
+
};
|
|
10519
10523
|
}>> & {
|
|
10520
10524
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
10521
10525
|
}, {
|
|
@@ -10771,6 +10775,10 @@ export declare const apTableRenderItemMap: {
|
|
|
10771
10775
|
request: {
|
|
10772
10776
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
10773
10777
|
};
|
|
10778
|
+
searchMode: {
|
|
10779
|
+
type: PropType<"filter" | "request">;
|
|
10780
|
+
default: string;
|
|
10781
|
+
};
|
|
10774
10782
|
}>> & {
|
|
10775
10783
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
10776
10784
|
}, {
|
|
@@ -10790,6 +10798,7 @@ export declare const apTableRenderItemMap: {
|
|
|
10790
10798
|
defaultActiveFirstOption: boolean;
|
|
10791
10799
|
labelInValue: boolean;
|
|
10792
10800
|
emptyText: string;
|
|
10801
|
+
searchMode: "filter" | "request";
|
|
10793
10802
|
}, true, {}, {}, {
|
|
10794
10803
|
P: {};
|
|
10795
10804
|
B: {};
|
|
@@ -11045,6 +11054,10 @@ export declare const apTableRenderItemMap: {
|
|
|
11045
11054
|
request: {
|
|
11046
11055
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
11047
11056
|
};
|
|
11057
|
+
searchMode: {
|
|
11058
|
+
type: PropType<"filter" | "request">;
|
|
11059
|
+
default: string;
|
|
11060
|
+
};
|
|
11048
11061
|
}>> & {
|
|
11049
11062
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11050
11063
|
}, {
|
|
@@ -11067,6 +11080,7 @@ export declare const apTableRenderItemMap: {
|
|
|
11067
11080
|
defaultActiveFirstOption: boolean;
|
|
11068
11081
|
labelInValue: boolean;
|
|
11069
11082
|
emptyText: string;
|
|
11083
|
+
searchMode: "filter" | "request";
|
|
11070
11084
|
}>;
|
|
11071
11085
|
__isFragment?: undefined;
|
|
11072
11086
|
__isTeleport?: undefined;
|
|
@@ -11319,6 +11333,10 @@ export declare const apTableRenderItemMap: {
|
|
|
11319
11333
|
request: {
|
|
11320
11334
|
type: PropType<(value?: string | undefined) => Promise< DefaultOptionType[] | undefined>>;
|
|
11321
11335
|
};
|
|
11336
|
+
searchMode: {
|
|
11337
|
+
type: PropType<"filter" | "request">;
|
|
11338
|
+
default: string;
|
|
11339
|
+
};
|
|
11322
11340
|
}>> & {
|
|
11323
11341
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11324
11342
|
}, {
|
|
@@ -11343,6 +11361,7 @@ export declare const apTableRenderItemMap: {
|
|
|
11343
11361
|
defaultActiveFirstOption: boolean;
|
|
11344
11362
|
labelInValue: boolean;
|
|
11345
11363
|
emptyText: string;
|
|
11364
|
+
searchMode: "filter" | "request";
|
|
11346
11365
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
11347
11366
|
$slots: Readonly<{
|
|
11348
11367
|
notFoundContent: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"sortablejs": "^1.15.2",
|
|
61
61
|
"@aplus-frontend/oss": "^1.0.11",
|
|
62
62
|
"mime": "^4.0.3",
|
|
63
|
-
"@aplus-frontend/
|
|
64
|
-
"@aplus-frontend/
|
|
63
|
+
"@aplus-frontend/hooks": "1.0.4",
|
|
64
|
+
"@aplus-frontend/utils": "1.0.22"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"ant-design-vue": "^4.2.1",
|