@vunk/form 2.10.1 → 2.10.4
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/components/api-tables-select/index.cjs +37 -36
- package/components/api-tables-select/index.d.ts +4 -0
- package/components/api-tables-select/index.mjs +37 -36
- package/components/api-tables-select/src/ctx.d.ts +374 -0
- package/components/api-tables-select/src/index.vue.d.ts +1335 -0
- package/components/api-tables-select/src/types.d.ts +19 -0
- package/components/button/index.d.ts +4 -0
- package/components/button/src/ctx.d.ts +190 -0
- package/components/button/src/index.vue.d.ts +822 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/card-input-collection/index.cjs +67 -70
- package/components/card-input-collection/index.d.ts +4 -0
- package/components/card-input-collection/index.mjs +68 -71
- package/components/card-input-collection/src/ctx.d.ts +119 -0
- package/components/card-input-collection/src/index.vue.d.ts +1043 -0
- package/components/card-input-collection/src/types.d.ts +10 -0
- package/components/cascader/index.d.ts +6 -0
- package/components/cascader/src/ctx.d.ts +297 -0
- package/components/cascader/src/index.vue.d.ts +650 -0
- package/components/cascader/src/types.d.ts +19 -0
- package/components/cascader/src/use.d.ts +5 -0
- package/components/checkbox/index.cjs +2 -3
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/index.mjs +2 -3
- package/components/checkbox/src/ctx.d.ts +151 -0
- package/components/checkbox/src/index.vue.d.ts +1362 -0
- package/components/checkbox/src/types.d.ts +8 -0
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/src/ctx.d.ts +153 -0
- package/components/color-picker/src/index.vue.d.ts +341 -0
- package/components/color-picker/src/types.d.ts +7 -0
- package/components/date-picker/index.d.ts +5 -0
- package/components/date-picker/src/ctx.d.ts +325 -0
- package/components/date-picker/src/index.vue.d.ts +1422 -0
- package/components/date-picker/src/types.d.ts +20 -0
- package/components/date-picker-range/index.d.ts +4 -0
- package/components/date-picker-range/src/ctx.d.ts +328 -0
- package/components/date-picker-range/src/index.vue.d.ts +717 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.d.ts +4 -0
- package/components/download-plus/index.mjs +4 -4
- package/components/download-plus/src/api.d.ts +13 -0
- package/components/download-plus/src/const.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +129 -0
- package/components/download-plus/src/index.vue.d.ts +1432 -0
- package/components/download-plus/src/types.d.ts +17 -0
- package/components/editable-text/index.cjs +9 -0
- package/components/editable-text/index.d.ts +4 -0
- package/components/editable-text/index.mjs +9 -0
- package/components/editable-text/src/ctx.d.ts +132 -0
- package/components/editable-text/src/index.vue.d.ts +3399 -0
- package/components/editable-text/src/types.d.ts +1 -0
- package/components/esri-input-geojson/index.d.ts +6 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1179 -0
- package/components/esri-input-geojson/src/const.d.ts +12 -0
- package/components/esri-input-geojson/src/ctx.d.ts +340 -0
- package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +1459 -0
- package/components/esri-input-geojson/src/types.d.ts +22 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +427 -0
- package/components/fieldset/index.d.ts +4 -0
- package/components/fieldset/src/ctx.d.ts +12 -0
- package/components/fieldset/src/index.vue.d.ts +23 -0
- package/components/fieldset/src/types.d.ts +1 -0
- package/components/fieldset/src/use.d.ts +5 -0
- package/components/form/index.d.ts +5 -0
- package/components/form/src/ctx.d.ts +132 -0
- package/components/form/src/index.vue.d.ts +4007 -0
- package/components/form/src/types.d.ts +25 -0
- package/components/form/src/utils.d.ts +15 -0
- package/components/form-item/index.d.ts +5 -0
- package/components/form-item/src/ctx.d.ts +107 -0
- package/components/form-item/src/index.vue.d.ts +961 -0
- package/components/form-item/src/types.d.ts +9 -0
- package/components/form-item-renderer/index.d.ts +4 -0
- package/components/form-item-renderer/src/core.vue.d.ts +38 -0
- package/components/form-item-renderer/src/ctx.d.ts +16 -0
- package/components/form-item-renderer/src/index.vue.d.ts +93 -0
- package/components/form-item-renderer/src/types.d.ts +5 -0
- package/components/form-item-renderer/src/utils.d.ts +5 -0
- package/components/form-item-renderer-template/index.d.ts +4 -0
- package/components/form-item-renderer-template/src/ctx.d.ts +7 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +16 -0
- package/components/form-item-renderer-template/src/types.d.ts +55 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/src/ctx.d.ts +13 -0
- package/components/information/src/index.vue.d.ts +23 -0
- package/components/information/src/types.d.ts +3 -0
- package/components/information-collection/index.d.ts +4 -0
- package/components/information-collection/src/ctx.d.ts +147 -0
- package/components/information-collection/src/index.vue.d.ts +302 -0
- package/components/information-collection/src/types.d.ts +6 -0
- package/components/information-tag/index.d.ts +4 -0
- package/components/information-tag/src/ctx.d.ts +64 -0
- package/components/information-tag/src/index.vue.d.ts +134 -0
- package/components/information-tag/src/types.d.ts +1 -0
- package/components/information-templates-default/index.d.ts +4 -0
- package/components/information-templates-default/src/ctx.d.ts +2 -0
- package/components/information-templates-default/src/index.vue.d.ts +2 -0
- package/components/information-templates-default/src/types.d.ts +1 -0
- package/components/input/index.d.ts +5 -0
- package/components/input/src/ctx.d.ts +269 -0
- package/components/input/src/index.vue.d.ts +1192 -0
- package/components/input/src/types.d.ts +13 -0
- package/components/input-collection/index.cjs +105 -74
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/index.mjs +107 -76
- package/components/input-collection/src/ctx.d.ts +137 -0
- package/components/input-collection/src/index.vue.d.ts +1141 -0
- package/components/input-collection/src/types.d.ts +29 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/src/ctx.d.ts +273 -0
- package/components/input-link/src/index.vue.d.ts +577 -0
- package/components/input-link/src/types.d.ts +7 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/src/ctx.d.ts +208 -0
- package/components/input-number/src/index.vue.d.ts +816 -0
- package/components/input-number/src/types.d.ts +12 -0
- package/components/input-tag/index.d.ts +5 -0
- package/components/input-tag/src/ctx.d.ts +239 -0
- package/components/input-tag/src/index.vue.d.ts +991 -0
- package/components/input-tag/src/types.d.ts +22 -0
- package/components/monaco-editor/index.d.ts +4 -0
- package/components/monaco-editor/src/ctx.d.ts +115 -0
- package/components/monaco-editor/src/index.vue.d.ts +303 -0
- package/components/monaco-editor/src/types.d.ts +7 -0
- package/components/radio/index.cjs +2 -3
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.mjs +2 -3
- package/components/radio/src/ctx.d.ts +162 -0
- package/components/radio/src/index.vue.d.ts +1311 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/renderer-data/index.d.ts +4 -0
- package/components/renderer-data/src/ctx.d.ts +12 -0
- package/components/renderer-data/src/index.vue.d.ts +20 -0
- package/components/renderer-data/src/types.d.ts +1 -0
- package/components/select/index.d.ts +5 -0
- package/components/select/src/ctx.d.ts +225 -0
- package/components/select/src/index.vue.d.ts +1043 -0
- package/components/select/src/types.d.ts +11 -0
- package/components/slider/index.d.ts +4 -0
- package/components/slider/src/ctx.d.ts +253 -0
- package/components/slider/src/index.vue.d.ts +588 -0
- package/components/slider/src/types.d.ts +7 -0
- package/components/switch/index.d.ts +4 -0
- package/components/switch/src/ctx.d.ts +208 -0
- package/components/switch/src/index.vue.d.ts +895 -0
- package/components/switch/src/types.d.ts +8 -0
- package/components/tables-select/index.d.ts +5 -0
- package/components/tables-select/src/ctx.d.ts +420 -0
- package/components/tables-select/src/index.vue.d.ts +5411 -0
- package/components/tables-select/src/types.d.ts +9 -0
- package/components/template-instances-provider/index.d.ts +3 -0
- package/components/template-instances-provider/src/index.vue.d.ts +6 -0
- package/components/templates-default/index.d.ts +4 -0
- package/components/templates-default/src/ctx.d.ts +19 -0
- package/components/templates-default/src/index.vue.d.ts +187 -0
- package/components/templates-default/src/types.d.ts +55 -0
- package/components/templates-element-plus/index.d.ts +4 -0
- package/components/templates-element-plus/src/ctx.d.ts +9 -0
- package/components/templates-element-plus/src/index.vue.d.ts +301 -0
- package/components/templates-element-plus/src/types.d.ts +13 -0
- package/components/templates-esri/index.d.ts +4 -0
- package/components/templates-esri/src/ctx.d.ts +11 -0
- package/components/templates-esri/src/index.vue.d.ts +43 -0
- package/components/templates-esri/src/types.d.ts +2 -0
- package/components/templates-layout/index.d.ts +4 -0
- package/components/templates-layout/src/ctx.d.ts +9 -0
- package/components/templates-layout/src/index.vue.d.ts +446 -0
- package/components/templates-layout/src/types.d.ts +32 -0
- package/components/templates-variant/index.d.ts +4 -0
- package/components/templates-variant/src/ctx.d.ts +11 -0
- package/components/templates-variant/src/index.vue.d.ts +43 -0
- package/components/templates-variant/src/types.d.ts +2 -0
- package/components/upload/index.cjs +2 -2
- package/components/upload/index.d.ts +5 -0
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/ctx.d.ts +294 -0
- package/components/upload/src/file.vue.d.ts +492 -0
- package/components/upload/src/index.vue.d.ts +1935 -0
- package/components/upload/src/types.d.ts +13 -0
- package/components/upload-plus/index.cjs +79 -86
- package/components/upload-plus/index.d.ts +6 -0
- package/components/upload-plus/index.mjs +79 -86
- package/components/upload-plus/src/api.d.ts +38 -0
- package/components/upload-plus/src/const.d.ts +9 -0
- package/components/upload-plus/src/ctx.d.ts +148 -0
- package/components/upload-plus/src/index.vue.d.ts +1754 -0
- package/components/upload-plus/src/types.d.ts +32 -0
- package/components/van-cascader/index.d.ts +4 -0
- package/components/van-cascader/src/ctx.d.ts +284 -0
- package/components/van-cascader/src/index.vue.d.ts +2116 -0
- package/components/van-cascader/src/types.d.ts +1 -0
- package/components/var-datetime-picker/index.d.ts +4 -0
- package/components/var-datetime-picker/src/const.d.ts +10 -0
- package/components/var-datetime-picker/src/ctx.d.ts +112 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +1482 -0
- package/components/var-datetime-picker/src/types.d.ts +22 -0
- package/components/vditor/index.d.ts +4 -0
- package/components/vditor/src/ctx.d.ts +122 -0
- package/components/vditor/src/index.vue.d.ts +418 -0
- package/components/vditor/src/types.d.ts +7 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +111 -30
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
5
6
|
var tablesSelect = require('@vunk/form/components/tables-select');
|
|
6
7
|
var object = require('@vunk/shared/object');
|
|
7
|
-
var vue = require('vue');
|
|
8
8
|
var form = require('@vunk/form');
|
|
9
9
|
var core = require('@vunk/core');
|
|
10
10
|
var isObject = require('../isObject.cjs');
|
|
@@ -44,9 +44,9 @@ const props = {
|
|
|
44
44
|
default: () => []
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
const emits = {
|
|
48
48
|
...tablesSelect._VkfTablesSelectCtx.emits
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
|
|
51
51
|
/** `Object#toString` result references. */
|
|
52
52
|
var symbolTag = '[object Symbol]';
|
|
@@ -372,16 +372,19 @@ function debounce(func, wait, options) {
|
|
|
372
372
|
return debounced;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
var _sfc_main = vue.defineComponent({
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
VkfTablesSelect: tablesSelect.VkfTablesSelect,
|
|
379
|
-
VkfForm: form.VkfForm
|
|
375
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
376
|
+
...{
|
|
377
|
+
name: "VkfApiTablesSelect"
|
|
380
378
|
},
|
|
381
|
-
|
|
382
|
-
|
|
379
|
+
__name: "index",
|
|
380
|
+
props: props,
|
|
381
|
+
emits,
|
|
382
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
383
|
+
__expose();
|
|
384
|
+
const props = __props;
|
|
385
|
+
const emit = __emit;
|
|
383
386
|
const debounceRead = debounce(read, 300);
|
|
384
|
-
const coreProps = tablesSelect._VkfTablesSelectCtx.createBindProps(
|
|
387
|
+
const coreProps = tablesSelect._VkfTablesSelectCtx.createBindProps(props, ["getRows"]);
|
|
385
388
|
const coreEmits = tablesSelect._VkfTablesSelectCtx.createOnEmits(emit);
|
|
386
389
|
const queryData = vue.ref({});
|
|
387
390
|
const tableState = vue.reactive({
|
|
@@ -395,7 +398,7 @@ var _sfc_main = vue.defineComponent({
|
|
|
395
398
|
vue.watch(pagination, debounceRead, { deep: true, immediate: true });
|
|
396
399
|
vue.watch(queryData, debounceRead, { deep: true });
|
|
397
400
|
async function read() {
|
|
398
|
-
const res = await
|
|
401
|
+
const res = await props.readApi(queryData.value, {
|
|
399
402
|
...pagination.value,
|
|
400
403
|
currentPage: pagination.value.start / pagination.value.pageSize + 1
|
|
401
404
|
});
|
|
@@ -403,41 +406,39 @@ var _sfc_main = vue.defineComponent({
|
|
|
403
406
|
tableState.total = res.total;
|
|
404
407
|
}
|
|
405
408
|
const defaultGetRows = async (ids) => {
|
|
406
|
-
const { rows } = await
|
|
409
|
+
const { rows } = await props.readApi({
|
|
407
410
|
ids: ids.join(",")
|
|
408
411
|
});
|
|
409
412
|
return rows;
|
|
410
413
|
};
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
414
|
+
const __returned__ = { props, emit, debounceRead, coreProps, coreEmits, queryData, tableState, pagination, read, defaultGetRows, get VkfTablesSelect() {
|
|
415
|
+
return tablesSelect.VkfTablesSelect;
|
|
416
|
+
}, get VkfForm() {
|
|
417
|
+
return form.VkfForm;
|
|
418
|
+
}, get setData() {
|
|
419
|
+
return core.setData;
|
|
420
|
+
} };
|
|
421
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
422
|
+
return __returned__;
|
|
420
423
|
}
|
|
421
424
|
});
|
|
422
425
|
|
|
423
426
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
"onUpdate:
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
"get-rows": _ctx.getRows || _ctx.defaultGetRows
|
|
434
|
-
}, _ctx.coreProps, vue.toHandlers(_ctx.coreEmits)), {
|
|
427
|
+
return vue.openBlock(), vue.createBlock($setup["VkfTablesSelect"], vue.mergeProps({
|
|
428
|
+
start: $setup.pagination.start,
|
|
429
|
+
"onUpdate:start": _cache[1] || (_cache[1] = ($event) => $setup.pagination.start = $event),
|
|
430
|
+
"page-size": $setup.pagination.pageSize,
|
|
431
|
+
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => $setup.pagination.pageSize = $event),
|
|
432
|
+
data: $setup.tableState.data,
|
|
433
|
+
total: $setup.tableState.total,
|
|
434
|
+
"get-rows": _ctx.getRows || $setup.defaultGetRows
|
|
435
|
+
}, $setup.coreProps, vue.toHandlers($setup.coreEmits)), {
|
|
435
436
|
dialog: vue.withCtx(() => [
|
|
436
|
-
vue.createVNode(
|
|
437
|
+
vue.createVNode($setup["VkfForm"], {
|
|
437
438
|
"form-items": _ctx.queryItems,
|
|
438
439
|
inline: true,
|
|
439
|
-
data:
|
|
440
|
-
onSetData: _cache[0] || (_cache[0] = ($event) =>
|
|
440
|
+
data: $setup.queryData,
|
|
441
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => $setup.setData($setup.queryData, $event))
|
|
441
442
|
}, null, 8, ["form-items", "data"]),
|
|
442
443
|
vue.renderSlot(_ctx.$slots, "dialog")
|
|
443
444
|
]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, watch, openBlock, createBlock, mergeProps, toHandlers, withCtx, createVNode, renderSlot } from 'vue';
|
|
1
2
|
import { _VkfTablesSelectCtx, VkfTablesSelect } from '@vunk/form/components/tables-select';
|
|
2
3
|
import { pickObject } from '@vunk/shared/object';
|
|
3
|
-
import { defineComponent, ref, reactive, watch, resolveComponent, openBlock, createBlock, mergeProps, toHandlers, withCtx, createVNode, renderSlot } from 'vue';
|
|
4
4
|
import { VkfForm } from '@vunk/form';
|
|
5
5
|
import { setData } from '@vunk/core';
|
|
6
6
|
import { i as isObjectLike, b as baseGetTag, a as isObject, r as root } from '../isObject.mjs';
|
|
@@ -40,9 +40,9 @@ const props = {
|
|
|
40
40
|
default: () => []
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
const emits = {
|
|
44
44
|
..._VkfTablesSelectCtx.emits
|
|
45
|
-
}
|
|
45
|
+
};
|
|
46
46
|
|
|
47
47
|
/** `Object#toString` result references. */
|
|
48
48
|
var symbolTag = '[object Symbol]';
|
|
@@ -368,16 +368,19 @@ function debounce(func, wait, options) {
|
|
|
368
368
|
return debounced;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
var _sfc_main = defineComponent({
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
VkfTablesSelect,
|
|
375
|
-
VkfForm
|
|
371
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
372
|
+
...{
|
|
373
|
+
name: "VkfApiTablesSelect"
|
|
376
374
|
},
|
|
377
|
-
|
|
378
|
-
|
|
375
|
+
__name: "index",
|
|
376
|
+
props: props,
|
|
377
|
+
emits,
|
|
378
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
379
|
+
__expose();
|
|
380
|
+
const props = __props;
|
|
381
|
+
const emit = __emit;
|
|
379
382
|
const debounceRead = debounce(read, 300);
|
|
380
|
-
const coreProps = _VkfTablesSelectCtx.createBindProps(
|
|
383
|
+
const coreProps = _VkfTablesSelectCtx.createBindProps(props, ["getRows"]);
|
|
381
384
|
const coreEmits = _VkfTablesSelectCtx.createOnEmits(emit);
|
|
382
385
|
const queryData = ref({});
|
|
383
386
|
const tableState = reactive({
|
|
@@ -391,7 +394,7 @@ var _sfc_main = defineComponent({
|
|
|
391
394
|
watch(pagination, debounceRead, { deep: true, immediate: true });
|
|
392
395
|
watch(queryData, debounceRead, { deep: true });
|
|
393
396
|
async function read() {
|
|
394
|
-
const res = await
|
|
397
|
+
const res = await props.readApi(queryData.value, {
|
|
395
398
|
...pagination.value,
|
|
396
399
|
currentPage: pagination.value.start / pagination.value.pageSize + 1
|
|
397
400
|
});
|
|
@@ -399,41 +402,39 @@ var _sfc_main = defineComponent({
|
|
|
399
402
|
tableState.total = res.total;
|
|
400
403
|
}
|
|
401
404
|
const defaultGetRows = async (ids) => {
|
|
402
|
-
const { rows } = await
|
|
405
|
+
const { rows } = await props.readApi({
|
|
403
406
|
ids: ids.join(",")
|
|
404
407
|
});
|
|
405
408
|
return rows;
|
|
406
409
|
};
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
410
|
+
const __returned__ = { props, emit, debounceRead, coreProps, coreEmits, queryData, tableState, pagination, read, defaultGetRows, get VkfTablesSelect() {
|
|
411
|
+
return VkfTablesSelect;
|
|
412
|
+
}, get VkfForm() {
|
|
413
|
+
return VkfForm;
|
|
414
|
+
}, get setData() {
|
|
415
|
+
return setData;
|
|
416
|
+
} };
|
|
417
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
418
|
+
return __returned__;
|
|
416
419
|
}
|
|
417
420
|
});
|
|
418
421
|
|
|
419
422
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
"onUpdate:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
"get-rows": _ctx.getRows || _ctx.defaultGetRows
|
|
430
|
-
}, _ctx.coreProps, toHandlers(_ctx.coreEmits)), {
|
|
423
|
+
return openBlock(), createBlock($setup["VkfTablesSelect"], mergeProps({
|
|
424
|
+
start: $setup.pagination.start,
|
|
425
|
+
"onUpdate:start": _cache[1] || (_cache[1] = ($event) => $setup.pagination.start = $event),
|
|
426
|
+
"page-size": $setup.pagination.pageSize,
|
|
427
|
+
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => $setup.pagination.pageSize = $event),
|
|
428
|
+
data: $setup.tableState.data,
|
|
429
|
+
total: $setup.tableState.total,
|
|
430
|
+
"get-rows": _ctx.getRows || $setup.defaultGetRows
|
|
431
|
+
}, $setup.coreProps, toHandlers($setup.coreEmits)), {
|
|
431
432
|
dialog: withCtx(() => [
|
|
432
|
-
createVNode(
|
|
433
|
+
createVNode($setup["VkfForm"], {
|
|
433
434
|
"form-items": _ctx.queryItems,
|
|
434
435
|
inline: true,
|
|
435
|
-
data:
|
|
436
|
-
onSetData: _cache[0] || (_cache[0] = ($event) =>
|
|
436
|
+
data: $setup.queryData,
|
|
437
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => $setup.setData($setup.queryData, $event))
|
|
437
438
|
}, null, 8, ["form-items", "data"]),
|
|
438
439
|
renderSlot(_ctx.$slots, "dialog")
|
|
439
440
|
]),
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ReadApi } from './types';
|
|
3
|
+
import { NormalObject } from '@vunk/shared';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
/**
|
|
6
|
+
* @description 读取数据的api
|
|
7
|
+
*/
|
|
8
|
+
readApi: {
|
|
9
|
+
type: PropType<ReadApi>;
|
|
10
|
+
default: () => {
|
|
11
|
+
rows: any[];
|
|
12
|
+
total: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @description 获取完整数据
|
|
17
|
+
* @default props.rApi({ ids: ids.join(',') })
|
|
18
|
+
*/
|
|
19
|
+
getRows: {
|
|
20
|
+
type: PropType<(ids: any[]) => Promise<NormalObject[]>>;
|
|
21
|
+
default: any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* query表单配置
|
|
25
|
+
*/
|
|
26
|
+
queryItems: {
|
|
27
|
+
type: PropType<any[]>;
|
|
28
|
+
default: () => any[];
|
|
29
|
+
};
|
|
30
|
+
type: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
required: {
|
|
35
|
+
readonly type: PropType<boolean>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
} & {
|
|
40
|
+
readonly default: undefined;
|
|
41
|
+
};
|
|
42
|
+
small: BooleanConstructor;
|
|
43
|
+
size: {
|
|
44
|
+
readonly type: PropType<import("element-plus").ButtonType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
+
__epPropKey: true;
|
|
48
|
+
};
|
|
49
|
+
formItemSize: {
|
|
50
|
+
type: PropType<"default" | "small" | "large">;
|
|
51
|
+
default: "default" | "small" | "large";
|
|
52
|
+
};
|
|
53
|
+
formItemSlots: {
|
|
54
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
55
|
+
default: any;
|
|
56
|
+
};
|
|
57
|
+
elRef: {
|
|
58
|
+
type: PropType<import("@vunk/core").AnyFunc>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
inline: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
readonly: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
formItemTip: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
formItemTipClass: any;
|
|
74
|
+
labelTip: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: any;
|
|
77
|
+
};
|
|
78
|
+
information: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
label: StringConstructor;
|
|
83
|
+
labelWidth: {
|
|
84
|
+
readonly type: PropType<string | number>;
|
|
85
|
+
readonly required: false;
|
|
86
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
87
|
+
__epPropKey: true;
|
|
88
|
+
} & {
|
|
89
|
+
readonly default: "";
|
|
90
|
+
};
|
|
91
|
+
labelPosition: {
|
|
92
|
+
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
+
__epPropKey: true;
|
|
96
|
+
} & {
|
|
97
|
+
readonly default: "";
|
|
98
|
+
};
|
|
99
|
+
prop: any;
|
|
100
|
+
rules: {
|
|
101
|
+
readonly type: PropType<unknown>;
|
|
102
|
+
readonly required: false;
|
|
103
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
|
+
__epPropKey: true;
|
|
105
|
+
};
|
|
106
|
+
error: StringConstructor;
|
|
107
|
+
validateStatus: {
|
|
108
|
+
readonly type: PropType<"" | "error" | "success" | "validating">;
|
|
109
|
+
readonly required: false;
|
|
110
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
|
+
__epPropKey: true;
|
|
112
|
+
};
|
|
113
|
+
for: StringConstructor;
|
|
114
|
+
inlineMessage: {
|
|
115
|
+
readonly type: PropType<string | boolean>;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
+
__epPropKey: true;
|
|
119
|
+
} & {
|
|
120
|
+
readonly default: "";
|
|
121
|
+
};
|
|
122
|
+
showMessage: {
|
|
123
|
+
readonly type: PropType<boolean>;
|
|
124
|
+
readonly required: false;
|
|
125
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
+
__epPropKey: true;
|
|
127
|
+
} & {
|
|
128
|
+
readonly default: true;
|
|
129
|
+
};
|
|
130
|
+
disabled: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: undefined;
|
|
133
|
+
};
|
|
134
|
+
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
135
|
+
className: StringConstructor;
|
|
136
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
137
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
138
|
+
filters: PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
139
|
+
modelValue: {
|
|
140
|
+
type: PropType<NormalObject[] | string>;
|
|
141
|
+
default: () => any[];
|
|
142
|
+
};
|
|
143
|
+
labelField: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
clearable: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
multiple: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
updateWhenCompleted: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
stringify: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
placeholder: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
dialogClass: any;
|
|
168
|
+
checkTrigger: {
|
|
169
|
+
type: PropType<"check" | "rowClick">;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
oidField: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
selectionHidden: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
180
|
+
paginationDisabled: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
border: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
tableClass: {
|
|
189
|
+
type: StringConstructor;
|
|
190
|
+
default: string;
|
|
191
|
+
};
|
|
192
|
+
tableStyle: {
|
|
193
|
+
type: PropType<import("vue").CSSProperties>;
|
|
194
|
+
default: undefined;
|
|
195
|
+
};
|
|
196
|
+
layout: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: undefined;
|
|
199
|
+
};
|
|
200
|
+
columns: {
|
|
201
|
+
type: PropType<import("@vunk/plus/components/tables-v1/src/types").Column[]>;
|
|
202
|
+
default: () => never[];
|
|
203
|
+
};
|
|
204
|
+
modules: {
|
|
205
|
+
type: PropType<"pagination"[]>;
|
|
206
|
+
default: () => string[];
|
|
207
|
+
};
|
|
208
|
+
align: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
212
|
+
headerAlign: {
|
|
213
|
+
type: StringConstructor;
|
|
214
|
+
default: string;
|
|
215
|
+
};
|
|
216
|
+
duplexFull: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
load: PropType<(row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void>;
|
|
221
|
+
fit: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
226
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
227
|
+
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "showArrow" | "appendTo" | "transition" | "effect" | "enterable" | "popperClass" | "offset" | "placement" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
228
|
+
rowKey: PropType<string | ((row: any) => string)>;
|
|
229
|
+
summaryMethod: PropType<import("element-plus").SummaryMethod<any>>;
|
|
230
|
+
rowClassName: PropType<import("element-plus").ColumnCls<any>>;
|
|
231
|
+
rowStyle: PropType<import("element-plus").ColumnStyle<any>>;
|
|
232
|
+
cellClassName: PropType<import("element-plus").CellCls<any>>;
|
|
233
|
+
cellStyle: PropType<import("element-plus").CellStyle<any>>;
|
|
234
|
+
headerRowClassName: PropType<import("element-plus").ColumnCls<any>>;
|
|
235
|
+
headerRowStyle: PropType<import("element-plus").ColumnStyle<any>>;
|
|
236
|
+
headerCellClassName: PropType<import("element-plus").CellCls<any>>;
|
|
237
|
+
headerCellStyle: PropType<import("element-plus").CellStyle<any>>;
|
|
238
|
+
expandRowKeys: PropType<string[]>;
|
|
239
|
+
defaultSort: PropType<import("element-plus").Sort>;
|
|
240
|
+
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "showArrow" | "appendTo" | "transition" | "effect" | "enterable" | "popperClass" | "offset" | "placement" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
241
|
+
spanMethod: PropType<(data: {
|
|
242
|
+
row: any;
|
|
243
|
+
rowIndex: number;
|
|
244
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
245
|
+
columnIndex: number;
|
|
246
|
+
}) => number[] | {
|
|
247
|
+
rowspan: number;
|
|
248
|
+
colspan: number;
|
|
249
|
+
} | undefined>;
|
|
250
|
+
treeProps: {
|
|
251
|
+
type: PropType<import("element-plus/es/components/table/src/table/defaults").TreeProps | undefined>;
|
|
252
|
+
default: () => {
|
|
253
|
+
hasChildren: string;
|
|
254
|
+
children: string;
|
|
255
|
+
checkStrictly: boolean;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
259
|
+
stripe: BooleanConstructor;
|
|
260
|
+
showHeader: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
showSummary: BooleanConstructor;
|
|
265
|
+
sumText: StringConstructor;
|
|
266
|
+
highlightCurrentRow: BooleanConstructor;
|
|
267
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
268
|
+
emptyText: StringConstructor;
|
|
269
|
+
defaultExpandAll: BooleanConstructor;
|
|
270
|
+
tooltipEffect: StringConstructor;
|
|
271
|
+
selectOnIndeterminate: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
default: boolean;
|
|
274
|
+
};
|
|
275
|
+
indent: {
|
|
276
|
+
type: NumberConstructor;
|
|
277
|
+
default: number;
|
|
278
|
+
};
|
|
279
|
+
lazy: BooleanConstructor;
|
|
280
|
+
tableLayout: {
|
|
281
|
+
type: PropType<"fixed" | "auto">;
|
|
282
|
+
default: string;
|
|
283
|
+
};
|
|
284
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
285
|
+
flexible: BooleanConstructor;
|
|
286
|
+
appendFilterPanelTo: StringConstructor;
|
|
287
|
+
scrollbarTabindex: {
|
|
288
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
289
|
+
default: undefined;
|
|
290
|
+
};
|
|
291
|
+
defaultPageSize: NumberConstructor;
|
|
292
|
+
pageCount: NumberConstructor;
|
|
293
|
+
pagerCount: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
294
|
+
defaultCurrentPage: NumberConstructor;
|
|
295
|
+
pageSizes: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
296
|
+
prevText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
297
|
+
prevIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
298
|
+
nextText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
299
|
+
nextIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
300
|
+
background: BooleanConstructor;
|
|
301
|
+
hideOnSinglePage: BooleanConstructor;
|
|
302
|
+
appendSizeTo: StringConstructor;
|
|
303
|
+
labelClassName: StringConstructor;
|
|
304
|
+
property: StringConstructor;
|
|
305
|
+
minWidth: {
|
|
306
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
307
|
+
default: string;
|
|
308
|
+
};
|
|
309
|
+
renderHeader: PropType<(data: {
|
|
310
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
311
|
+
$index: number;
|
|
312
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
313
|
+
[key: string]: any;
|
|
314
|
+
}>>;
|
|
315
|
+
sortable: {
|
|
316
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
317
|
+
default: boolean;
|
|
318
|
+
};
|
|
319
|
+
sortMethod: PropType<(a: any, b: any) => number>;
|
|
320
|
+
sortBy: PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
321
|
+
resizable: {
|
|
322
|
+
type: BooleanConstructor;
|
|
323
|
+
default: boolean;
|
|
324
|
+
};
|
|
325
|
+
columnKey: StringConstructor;
|
|
326
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
327
|
+
formatter: PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
328
|
+
[key: string]: any;
|
|
329
|
+
}>>;
|
|
330
|
+
selectable: PropType<(row: any, index: number) => boolean>;
|
|
331
|
+
reserveSelection: BooleanConstructor;
|
|
332
|
+
filterMethod: PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
333
|
+
filteredValue: PropType<string[]>;
|
|
334
|
+
filterPlacement: StringConstructor;
|
|
335
|
+
filterMultiple: {
|
|
336
|
+
type: BooleanConstructor;
|
|
337
|
+
default: boolean;
|
|
338
|
+
};
|
|
339
|
+
index: PropType<number | ((index: number) => number)>;
|
|
340
|
+
sortOrders: {
|
|
341
|
+
type: PropType<("ascending" | "descending" | null)[]>;
|
|
342
|
+
default: () => (string | null)[];
|
|
343
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
export declare const emits: {
|
|
347
|
+
'update:modelValue': any;
|
|
348
|
+
'update:start': (val: number) => boolean;
|
|
349
|
+
select: null;
|
|
350
|
+
'select-all': null;
|
|
351
|
+
'selection-change': null;
|
|
352
|
+
'cell-mouse-enter': null;
|
|
353
|
+
'cell-mouse-leave': null;
|
|
354
|
+
'cell-contextmenu': null;
|
|
355
|
+
'cell-click': null;
|
|
356
|
+
'cell-dblclick': null;
|
|
357
|
+
'row-click': null;
|
|
358
|
+
'row-contextmenu': null;
|
|
359
|
+
'row-dblclick': null;
|
|
360
|
+
'header-click': null;
|
|
361
|
+
'header-contextmenu': null;
|
|
362
|
+
'sort-change': null;
|
|
363
|
+
'filter-change': null;
|
|
364
|
+
'current-change': null;
|
|
365
|
+
'header-dragend': null;
|
|
366
|
+
'expand-change': null;
|
|
367
|
+
scroll: null;
|
|
368
|
+
'update:current-page': (val: number) => boolean;
|
|
369
|
+
'update:page-size': (val: number) => boolean;
|
|
370
|
+
'size-change': (val: number) => boolean;
|
|
371
|
+
change: (currentPage: number, pageSize: number) => boolean;
|
|
372
|
+
'prev-click': (val: number) => boolean;
|
|
373
|
+
'next-click': (val: number) => boolean;
|
|
374
|
+
};
|