@aplus-frontend/ui 0.4.1 → 0.4.3
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/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/helper.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +33 -25
- package/es/src/ap-field/date-range/index.vue.mjs +44 -43
- package/es/src/ap-field/interface.d.ts +0 -6
- package/es/src/ap-field/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/select/index.vue.d.ts +407 -1
- package/es/src/ap-field/select/index.vue.mjs +14 -13
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2263 -13
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1180 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
- package/es/src/business/ap-batch-action/index.d.ts +5 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +418 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.mjs +20 -18
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +0 -6
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/select/index.vue.d.ts +407 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2263 -13
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1180 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +5 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +418 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- package/theme/index.css +3 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as y, onMounted as L, computed as w, unref as a, openBlock as S, createElementBlock as R, toDisplayString as
|
|
1
|
+
import { defineComponent as _, ref as y, onMounted as L, computed as w, unref as a, openBlock as S, createElementBlock as R, toDisplayString as z, createBlock as D, mergeProps as U, createSlots as K, renderList as H, withCtx as B, renderSlot as $, normalizeProps as j, guardReactiveProps as E, createVNode as W } from "vue";
|
|
2
2
|
import { debounce as G, isFunction as g, isArray as J, isNil as Q, omit as X } from "lodash-unified";
|
|
3
3
|
import { Select as Y, Spin as Z } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
@@ -83,6 +83,7 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
83
83
|
optionFilterProp: {},
|
|
84
84
|
optionLabelProp: {},
|
|
85
85
|
defaultActiveFirstOption: { type: Boolean, default: void 0 },
|
|
86
|
+
onClickOption: {},
|
|
86
87
|
labelInValue: { type: Boolean, default: void 0 },
|
|
87
88
|
emptyText: { default: "--" },
|
|
88
89
|
request: {},
|
|
@@ -91,8 +92,7 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
91
92
|
"onUpdate:value": {},
|
|
92
93
|
searchMode: { default: "filter" },
|
|
93
94
|
refetchOnFocus: { type: Boolean, default: !1 },
|
|
94
|
-
lazy: { type: Boolean, default: !1 }
|
|
95
|
-
onBeforeSelect: {}
|
|
95
|
+
lazy: { type: Boolean, default: !1 }
|
|
96
96
|
},
|
|
97
97
|
emits: ["update:value"],
|
|
98
98
|
setup(C, { expose: F, emit: b }) {
|
|
@@ -107,11 +107,11 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
107
107
|
}).finally(() => {
|
|
108
108
|
u.value = !1;
|
|
109
109
|
});
|
|
110
|
-
}, 300), e = C,
|
|
110
|
+
}, 300), e = C, O = (o, t) => {
|
|
111
111
|
var n;
|
|
112
112
|
const l = ((n = e.fieldNames) == null ? void 0 : n.label) || "label";
|
|
113
113
|
return typeof (t == null ? void 0 : t[l]) == "string" && t[l].toLowerCase().indexOf(o.toLowerCase()) > -1;
|
|
114
|
-
}, { options: s, updateOptions: i } = te(e), c = y(), u = y((e == null ? void 0 : e.loading) || !1),
|
|
114
|
+
}, { options: s, updateOptions: i } = te(e), c = y(), u = y((e == null ? void 0 : e.loading) || !1), x = b;
|
|
115
115
|
async function f(o = !0) {
|
|
116
116
|
if (!g(e.request))
|
|
117
117
|
return;
|
|
@@ -127,7 +127,7 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
127
127
|
u.value = !1;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function I(o) {
|
|
131
131
|
var t;
|
|
132
132
|
(t = e.onFocus) == null || t.call(e, o), e.refetchOnFocus && r > 0 && !u.value && f(!0);
|
|
133
133
|
}
|
|
@@ -138,7 +138,7 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
138
138
|
}
|
|
139
139
|
f();
|
|
140
140
|
});
|
|
141
|
-
const { value: m, updateValue:
|
|
141
|
+
const { value: m, updateValue: P } = le(e, x), V = oe("Select", e), k = w(() => {
|
|
142
142
|
var d, v;
|
|
143
143
|
const o = a(m);
|
|
144
144
|
if (!o)
|
|
@@ -165,7 +165,7 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
165
165
|
notFoundContent: u.value ? void 0 : null
|
|
166
166
|
} : {
|
|
167
167
|
showArrow: !0,
|
|
168
|
-
filterOption: Q(e == null ? void 0 : e.filterOption) ?
|
|
168
|
+
filterOption: Q(e == null ? void 0 : e.filterOption) ? O : e == null ? void 0 : e.filterOption
|
|
169
169
|
}), {
|
|
170
170
|
...ee(
|
|
171
171
|
X(e, [
|
|
@@ -175,10 +175,11 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
175
175
|
"onSearch",
|
|
176
176
|
"request",
|
|
177
177
|
"searchMode",
|
|
178
|
-
"onFocus"
|
|
178
|
+
"onFocus",
|
|
179
|
+
"onBeforeSelect"
|
|
179
180
|
])
|
|
180
181
|
),
|
|
181
|
-
placeholder: a(
|
|
182
|
+
placeholder: a(V),
|
|
182
183
|
...l
|
|
183
184
|
};
|
|
184
185
|
});
|
|
@@ -194,7 +195,7 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
194
195
|
focus: A,
|
|
195
196
|
blur: M,
|
|
196
197
|
request: f
|
|
197
|
-
}), (o, t) => o.mode === "read" ? (S(), R("span", ne,
|
|
198
|
+
}), (o, t) => o.mode === "read" ? (S(), R("span", ne, z(k.value), 1)) : (S(), D(a(Y), U({
|
|
198
199
|
key: 1,
|
|
199
200
|
ref_key: "selectRef",
|
|
200
201
|
ref: c,
|
|
@@ -204,8 +205,8 @@ const ne = { key: 0 }, pe = /* @__PURE__ */ _({
|
|
|
204
205
|
value: a(m),
|
|
205
206
|
options: a(s),
|
|
206
207
|
loading: u.value,
|
|
207
|
-
"onUpdate:value": a(
|
|
208
|
-
onFocus:
|
|
208
|
+
"onUpdate:value": a(P),
|
|
209
|
+
onFocus: I
|
|
209
210
|
}), K({ _: 2 }, [
|
|
210
211
|
H(o.$slots, (l, n) => ({
|
|
211
212
|
name: n,
|
|
@@ -292,7 +292,263 @@ declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
|
|
|
292
292
|
tooltipOpen: boolean;
|
|
293
293
|
tooltipVisible: boolean;
|
|
294
294
|
emptyText: string;
|
|
295
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
295
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
296
|
+
sliderRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
297
|
+
id: StringConstructor;
|
|
298
|
+
prefixCls: StringConstructor;
|
|
299
|
+
tooltipPrefixCls: StringConstructor;
|
|
300
|
+
range: {
|
|
301
|
+
type: PropType<boolean | SliderRange>;
|
|
302
|
+
default: boolean | SliderRange;
|
|
303
|
+
};
|
|
304
|
+
reverse: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
308
|
+
min: NumberConstructor;
|
|
309
|
+
max: NumberConstructor;
|
|
310
|
+
step: {
|
|
311
|
+
type: PropType<number>;
|
|
312
|
+
default: number;
|
|
313
|
+
};
|
|
314
|
+
marks: {
|
|
315
|
+
type: PropType<SliderMarks>;
|
|
316
|
+
default: SliderMarks;
|
|
317
|
+
};
|
|
318
|
+
dots: {
|
|
319
|
+
type: BooleanConstructor;
|
|
320
|
+
default: boolean;
|
|
321
|
+
};
|
|
322
|
+
value: {
|
|
323
|
+
type: PropType<number | [number, number]>;
|
|
324
|
+
default: number | [number, number];
|
|
325
|
+
};
|
|
326
|
+
defaultValue: {
|
|
327
|
+
type: PropType<number | [number, number]>;
|
|
328
|
+
default: number | [number, number];
|
|
329
|
+
};
|
|
330
|
+
included: {
|
|
331
|
+
type: BooleanConstructor;
|
|
332
|
+
default: boolean;
|
|
333
|
+
};
|
|
334
|
+
disabled: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
vertical: {
|
|
339
|
+
type: BooleanConstructor;
|
|
340
|
+
default: boolean;
|
|
341
|
+
};
|
|
342
|
+
tipFormatter: {
|
|
343
|
+
type: PropType<(value?: number) => any>;
|
|
344
|
+
default: (value?: number) => any;
|
|
345
|
+
};
|
|
346
|
+
tooltipOpen: {
|
|
347
|
+
type: BooleanConstructor;
|
|
348
|
+
default: boolean;
|
|
349
|
+
};
|
|
350
|
+
tooltipVisible: {
|
|
351
|
+
type: BooleanConstructor;
|
|
352
|
+
default: boolean;
|
|
353
|
+
};
|
|
354
|
+
tooltipPlacement: {
|
|
355
|
+
type: PropType<TooltipPlacement>;
|
|
356
|
+
default: TooltipPlacement;
|
|
357
|
+
};
|
|
358
|
+
getTooltipPopupContainer: {
|
|
359
|
+
type: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
360
|
+
default: (triggerNode: HTMLElement) => HTMLElement;
|
|
361
|
+
};
|
|
362
|
+
autofocus: {
|
|
363
|
+
type: BooleanConstructor;
|
|
364
|
+
default: boolean;
|
|
365
|
+
};
|
|
366
|
+
handleStyle: {
|
|
367
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
368
|
+
default: CSSProperties | CSSProperties[];
|
|
369
|
+
};
|
|
370
|
+
trackStyle: {
|
|
371
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
372
|
+
default: CSSProperties | CSSProperties[];
|
|
373
|
+
};
|
|
374
|
+
onChange: {
|
|
375
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
376
|
+
default: (value: number | [number, number]) => void;
|
|
377
|
+
};
|
|
378
|
+
onAfterChange: {
|
|
379
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
380
|
+
default: (value: number | [number, number]) => void;
|
|
381
|
+
};
|
|
382
|
+
onFocus: {
|
|
383
|
+
type: PropType<FocusEventHandler>;
|
|
384
|
+
default: FocusEventHandler;
|
|
385
|
+
};
|
|
386
|
+
onBlur: {
|
|
387
|
+
type: PropType<FocusEventHandler>;
|
|
388
|
+
default: FocusEventHandler;
|
|
389
|
+
};
|
|
390
|
+
'onUpdate:value': {
|
|
391
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
392
|
+
default: (value: number | [number, number]) => void;
|
|
393
|
+
};
|
|
394
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
395
|
+
value: number | [number, number];
|
|
396
|
+
vertical: boolean;
|
|
397
|
+
trackStyle: CSSProperties | CSSProperties[];
|
|
398
|
+
dots: boolean;
|
|
399
|
+
reverse: boolean;
|
|
400
|
+
onFocus: FocusEventHandler;
|
|
401
|
+
onBlur: FocusEventHandler;
|
|
402
|
+
onChange: (value: number | [number, number]) => void;
|
|
403
|
+
range: boolean | SliderRange;
|
|
404
|
+
disabled: boolean;
|
|
405
|
+
autofocus: boolean;
|
|
406
|
+
defaultValue: number | [number, number];
|
|
407
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
408
|
+
step: number;
|
|
409
|
+
included: boolean;
|
|
410
|
+
marks: SliderMarks;
|
|
411
|
+
handleStyle: CSSProperties | CSSProperties[];
|
|
412
|
+
onAfterChange: (value: number | [number, number]) => void;
|
|
413
|
+
tipFormatter: (value?: number) => any;
|
|
414
|
+
tooltipOpen: boolean;
|
|
415
|
+
tooltipVisible: boolean;
|
|
416
|
+
tooltipPlacement: TooltipPlacement;
|
|
417
|
+
getTooltipPopupContainer: (triggerNode: HTMLElement) => HTMLElement;
|
|
418
|
+
}, true, {}, CustomSlotsType<{
|
|
419
|
+
mark?: any;
|
|
420
|
+
default?: any;
|
|
421
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
422
|
+
P: {};
|
|
423
|
+
B: {};
|
|
424
|
+
D: {};
|
|
425
|
+
C: {};
|
|
426
|
+
M: {};
|
|
427
|
+
Defaults: {};
|
|
428
|
+
}, Readonly< ExtractPropTypes<{
|
|
429
|
+
id: StringConstructor;
|
|
430
|
+
prefixCls: StringConstructor;
|
|
431
|
+
tooltipPrefixCls: StringConstructor;
|
|
432
|
+
range: {
|
|
433
|
+
type: PropType<boolean | SliderRange>;
|
|
434
|
+
default: boolean | SliderRange;
|
|
435
|
+
};
|
|
436
|
+
reverse: {
|
|
437
|
+
type: BooleanConstructor;
|
|
438
|
+
default: boolean;
|
|
439
|
+
};
|
|
440
|
+
min: NumberConstructor;
|
|
441
|
+
max: NumberConstructor;
|
|
442
|
+
step: {
|
|
443
|
+
type: PropType<number>;
|
|
444
|
+
default: number;
|
|
445
|
+
};
|
|
446
|
+
marks: {
|
|
447
|
+
type: PropType<SliderMarks>;
|
|
448
|
+
default: SliderMarks;
|
|
449
|
+
};
|
|
450
|
+
dots: {
|
|
451
|
+
type: BooleanConstructor;
|
|
452
|
+
default: boolean;
|
|
453
|
+
};
|
|
454
|
+
value: {
|
|
455
|
+
type: PropType<number | [number, number]>;
|
|
456
|
+
default: number | [number, number];
|
|
457
|
+
};
|
|
458
|
+
defaultValue: {
|
|
459
|
+
type: PropType<number | [number, number]>;
|
|
460
|
+
default: number | [number, number];
|
|
461
|
+
};
|
|
462
|
+
included: {
|
|
463
|
+
type: BooleanConstructor;
|
|
464
|
+
default: boolean;
|
|
465
|
+
};
|
|
466
|
+
disabled: {
|
|
467
|
+
type: BooleanConstructor;
|
|
468
|
+
default: boolean;
|
|
469
|
+
};
|
|
470
|
+
vertical: {
|
|
471
|
+
type: BooleanConstructor;
|
|
472
|
+
default: boolean;
|
|
473
|
+
};
|
|
474
|
+
tipFormatter: {
|
|
475
|
+
type: PropType<(value?: number) => any>;
|
|
476
|
+
default: (value?: number) => any;
|
|
477
|
+
};
|
|
478
|
+
tooltipOpen: {
|
|
479
|
+
type: BooleanConstructor;
|
|
480
|
+
default: boolean;
|
|
481
|
+
};
|
|
482
|
+
tooltipVisible: {
|
|
483
|
+
type: BooleanConstructor;
|
|
484
|
+
default: boolean;
|
|
485
|
+
};
|
|
486
|
+
tooltipPlacement: {
|
|
487
|
+
type: PropType<TooltipPlacement>;
|
|
488
|
+
default: TooltipPlacement;
|
|
489
|
+
};
|
|
490
|
+
getTooltipPopupContainer: {
|
|
491
|
+
type: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
492
|
+
default: (triggerNode: HTMLElement) => HTMLElement;
|
|
493
|
+
};
|
|
494
|
+
autofocus: {
|
|
495
|
+
type: BooleanConstructor;
|
|
496
|
+
default: boolean;
|
|
497
|
+
};
|
|
498
|
+
handleStyle: {
|
|
499
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
500
|
+
default: CSSProperties | CSSProperties[];
|
|
501
|
+
};
|
|
502
|
+
trackStyle: {
|
|
503
|
+
type: PropType< CSSProperties | CSSProperties[]>;
|
|
504
|
+
default: CSSProperties | CSSProperties[];
|
|
505
|
+
};
|
|
506
|
+
onChange: {
|
|
507
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
508
|
+
default: (value: number | [number, number]) => void;
|
|
509
|
+
};
|
|
510
|
+
onAfterChange: {
|
|
511
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
512
|
+
default: (value: number | [number, number]) => void;
|
|
513
|
+
};
|
|
514
|
+
onFocus: {
|
|
515
|
+
type: PropType<FocusEventHandler>;
|
|
516
|
+
default: FocusEventHandler;
|
|
517
|
+
};
|
|
518
|
+
onBlur: {
|
|
519
|
+
type: PropType<FocusEventHandler>;
|
|
520
|
+
default: FocusEventHandler;
|
|
521
|
+
};
|
|
522
|
+
'onUpdate:value': {
|
|
523
|
+
type: PropType<(value: number | [number, number]) => void>;
|
|
524
|
+
default: (value: number | [number, number]) => void;
|
|
525
|
+
};
|
|
526
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
527
|
+
value: number | [number, number];
|
|
528
|
+
vertical: boolean;
|
|
529
|
+
trackStyle: CSSProperties | CSSProperties[];
|
|
530
|
+
dots: boolean;
|
|
531
|
+
reverse: boolean;
|
|
532
|
+
onFocus: FocusEventHandler;
|
|
533
|
+
onBlur: FocusEventHandler;
|
|
534
|
+
onChange: (value: number | [number, number]) => void;
|
|
535
|
+
range: boolean | SliderRange;
|
|
536
|
+
disabled: boolean;
|
|
537
|
+
autofocus: boolean;
|
|
538
|
+
defaultValue: number | [number, number];
|
|
539
|
+
'onUpdate:value': (value: number | [number, number]) => void;
|
|
540
|
+
step: number;
|
|
541
|
+
included: boolean;
|
|
542
|
+
marks: SliderMarks;
|
|
543
|
+
handleStyle: CSSProperties | CSSProperties[];
|
|
544
|
+
onAfterChange: (value: number | [number, number]) => void;
|
|
545
|
+
tipFormatter: (value?: number) => any;
|
|
546
|
+
tooltipOpen: boolean;
|
|
547
|
+
tooltipVisible: boolean;
|
|
548
|
+
tooltipPlacement: TooltipPlacement;
|
|
549
|
+
getTooltipPopupContainer: (triggerNode: HTMLElement) => HTMLElement;
|
|
550
|
+
}> | null;
|
|
551
|
+
}, any>;
|
|
296
552
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
297
553
|
export default _default;
|
|
298
554
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { ApFieldTextAreaProps } from '../interface';
|
|
2
2
|
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
3
|
-
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
4
4
|
import { FieldMode } from '..';
|
|
5
|
+
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
6
|
+
import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
8
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
9
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
5
11
|
declare const _default: DefineComponent<ApFieldTextAreaProps, {
|
|
6
12
|
focus: (options?: InputFocusOptions) => void;
|
|
7
13
|
blur: () => void;
|
|
@@ -18,5 +24,264 @@ declare const _default: DefineComponent<ApFieldTextAreaProps, {
|
|
|
18
24
|
lazy: boolean;
|
|
19
25
|
allowClear: boolean;
|
|
20
26
|
emptyText: string;
|
|
21
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
28
|
+
textAreaRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
29
|
+
rows: NumberConstructor;
|
|
30
|
+
autosize: {
|
|
31
|
+
type: PropType<boolean | AutoSizeType>;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
autoSize: {
|
|
35
|
+
type: PropType<boolean | AutoSizeType>;
|
|
36
|
+
default: any;
|
|
37
|
+
};
|
|
38
|
+
onResize: {
|
|
39
|
+
type: PropType<(size: {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
}) => void>;
|
|
43
|
+
};
|
|
44
|
+
onCompositionstart: {
|
|
45
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
46
|
+
};
|
|
47
|
+
onCompositionend: {
|
|
48
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
49
|
+
};
|
|
50
|
+
valueModifiers: ObjectConstructor;
|
|
51
|
+
size: {
|
|
52
|
+
type: PropType<SizeType>;
|
|
53
|
+
};
|
|
54
|
+
value: {
|
|
55
|
+
type: PropType<string | number>;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
name: StringConstructor;
|
|
59
|
+
type: {
|
|
60
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
61
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
62
|
+
};
|
|
63
|
+
onFocus: PropType<FocusEventHandler>;
|
|
64
|
+
onBlur: PropType<FocusEventHandler>;
|
|
65
|
+
onChange: PropType<ChangeEventHandler>;
|
|
66
|
+
onInput: PropType<ChangeEventHandler>;
|
|
67
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
68
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
69
|
+
onMousedown: {
|
|
70
|
+
type: PropType<MouseEventHandler>;
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
focused: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: any;
|
|
76
|
+
};
|
|
77
|
+
hidden: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
disabled: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: any;
|
|
84
|
+
};
|
|
85
|
+
prefixCls: StringConstructor;
|
|
86
|
+
id: StringConstructor;
|
|
87
|
+
autofocus: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: any;
|
|
90
|
+
};
|
|
91
|
+
autocomplete: StringConstructor;
|
|
92
|
+
readonly: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
status: PropType<"" | "error" | "warning">;
|
|
97
|
+
defaultValue: {
|
|
98
|
+
type: PropType<string | number>;
|
|
99
|
+
default: any;
|
|
100
|
+
};
|
|
101
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
102
|
+
loading: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: any;
|
|
105
|
+
};
|
|
106
|
+
placeholder: {
|
|
107
|
+
type: PropType<string | number>;
|
|
108
|
+
};
|
|
109
|
+
lazy: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
maxlength: NumberConstructor;
|
|
114
|
+
bordered: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: any;
|
|
117
|
+
};
|
|
118
|
+
showCount: {
|
|
119
|
+
type: PropType<boolean | ShowCountProps>;
|
|
120
|
+
};
|
|
121
|
+
htmlSize: NumberConstructor;
|
|
122
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
123
|
+
onMouseUp: {
|
|
124
|
+
type: PropType<MouseEventHandler>;
|
|
125
|
+
default: any;
|
|
126
|
+
};
|
|
127
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
128
|
+
inputElement: VueTypeValidableDef<any>;
|
|
129
|
+
triggerFocus: PropType<() => void>;
|
|
130
|
+
handleReset: PropType<MouseEventHandler>;
|
|
131
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
132
|
+
allowClear: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: any;
|
|
135
|
+
};
|
|
136
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
137
|
+
value: string | number;
|
|
138
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
139
|
+
onMousedown: MouseEventHandler;
|
|
140
|
+
focused: boolean;
|
|
141
|
+
hidden: boolean;
|
|
142
|
+
disabled: boolean;
|
|
143
|
+
autofocus: boolean;
|
|
144
|
+
readonly: boolean;
|
|
145
|
+
defaultValue: string | number;
|
|
146
|
+
loading: boolean;
|
|
147
|
+
lazy: boolean;
|
|
148
|
+
bordered: boolean;
|
|
149
|
+
onMouseUp: MouseEventHandler;
|
|
150
|
+
allowClear: boolean;
|
|
151
|
+
autosize: any;
|
|
152
|
+
autoSize: any;
|
|
153
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
154
|
+
P: {};
|
|
155
|
+
B: {};
|
|
156
|
+
D: {};
|
|
157
|
+
C: {};
|
|
158
|
+
M: {};
|
|
159
|
+
Defaults: {};
|
|
160
|
+
}, Readonly< ExtractPropTypes<{
|
|
161
|
+
rows: NumberConstructor;
|
|
162
|
+
autosize: {
|
|
163
|
+
type: PropType<boolean | AutoSizeType>;
|
|
164
|
+
default: any;
|
|
165
|
+
};
|
|
166
|
+
autoSize: {
|
|
167
|
+
type: PropType<boolean | AutoSizeType>;
|
|
168
|
+
default: any;
|
|
169
|
+
};
|
|
170
|
+
onResize: {
|
|
171
|
+
type: PropType<(size: {
|
|
172
|
+
width: number;
|
|
173
|
+
height: number;
|
|
174
|
+
}) => void>;
|
|
175
|
+
};
|
|
176
|
+
onCompositionstart: {
|
|
177
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
178
|
+
};
|
|
179
|
+
onCompositionend: {
|
|
180
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
181
|
+
};
|
|
182
|
+
valueModifiers: ObjectConstructor;
|
|
183
|
+
size: {
|
|
184
|
+
type: PropType<SizeType>;
|
|
185
|
+
};
|
|
186
|
+
value: {
|
|
187
|
+
type: PropType<string | number>;
|
|
188
|
+
default: any;
|
|
189
|
+
};
|
|
190
|
+
name: StringConstructor;
|
|
191
|
+
type: {
|
|
192
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
193
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
194
|
+
};
|
|
195
|
+
onFocus: PropType<FocusEventHandler>;
|
|
196
|
+
onBlur: PropType<FocusEventHandler>;
|
|
197
|
+
onChange: PropType<ChangeEventHandler>;
|
|
198
|
+
onInput: PropType<ChangeEventHandler>;
|
|
199
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
200
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
201
|
+
onMousedown: {
|
|
202
|
+
type: PropType<MouseEventHandler>;
|
|
203
|
+
default: any;
|
|
204
|
+
};
|
|
205
|
+
focused: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: any;
|
|
208
|
+
};
|
|
209
|
+
hidden: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: any;
|
|
212
|
+
};
|
|
213
|
+
disabled: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
default: any;
|
|
216
|
+
};
|
|
217
|
+
prefixCls: StringConstructor;
|
|
218
|
+
id: StringConstructor;
|
|
219
|
+
autofocus: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: any;
|
|
222
|
+
};
|
|
223
|
+
autocomplete: StringConstructor;
|
|
224
|
+
readonly: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: any;
|
|
227
|
+
};
|
|
228
|
+
status: PropType<"" | "error" | "warning">;
|
|
229
|
+
defaultValue: {
|
|
230
|
+
type: PropType<string | number>;
|
|
231
|
+
default: any;
|
|
232
|
+
};
|
|
233
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
234
|
+
loading: {
|
|
235
|
+
type: BooleanConstructor;
|
|
236
|
+
default: any;
|
|
237
|
+
};
|
|
238
|
+
placeholder: {
|
|
239
|
+
type: PropType<string | number>;
|
|
240
|
+
};
|
|
241
|
+
lazy: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
default: boolean;
|
|
244
|
+
};
|
|
245
|
+
maxlength: NumberConstructor;
|
|
246
|
+
bordered: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: any;
|
|
249
|
+
};
|
|
250
|
+
showCount: {
|
|
251
|
+
type: PropType<boolean | ShowCountProps>;
|
|
252
|
+
};
|
|
253
|
+
htmlSize: NumberConstructor;
|
|
254
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
255
|
+
onMouseUp: {
|
|
256
|
+
type: PropType<MouseEventHandler>;
|
|
257
|
+
default: any;
|
|
258
|
+
};
|
|
259
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
260
|
+
inputElement: VueTypeValidableDef<any>;
|
|
261
|
+
triggerFocus: PropType<() => void>;
|
|
262
|
+
handleReset: PropType<MouseEventHandler>;
|
|
263
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
264
|
+
allowClear: {
|
|
265
|
+
type: BooleanConstructor;
|
|
266
|
+
default: any;
|
|
267
|
+
};
|
|
268
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
269
|
+
value: string | number;
|
|
270
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
271
|
+
onMousedown: MouseEventHandler;
|
|
272
|
+
focused: boolean;
|
|
273
|
+
hidden: boolean;
|
|
274
|
+
disabled: boolean;
|
|
275
|
+
autofocus: boolean;
|
|
276
|
+
readonly: boolean;
|
|
277
|
+
defaultValue: string | number;
|
|
278
|
+
loading: boolean;
|
|
279
|
+
lazy: boolean;
|
|
280
|
+
bordered: boolean;
|
|
281
|
+
onMouseUp: MouseEventHandler;
|
|
282
|
+
allowClear: boolean;
|
|
283
|
+
autosize: any;
|
|
284
|
+
autoSize: any;
|
|
285
|
+
}> | null;
|
|
286
|
+
}, any>;
|
|
22
287
|
export default _default;
|