p-pc-ui 1.3.7 → 1.3.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.
|
@@ -609,8 +609,8 @@ defineExpose({
|
|
|
609
609
|
</div>
|
|
610
610
|
</a-upload>
|
|
611
611
|
|
|
612
|
-
<component v-if="renderItem.type == 'component'" :is="renderItem.component"></component>
|
|
613
|
-
|
|
612
|
+
<component v-if="renderItem.type == 'component'" :is="renderItem.component" v-model:[renderItem.key]="formState[renderItem.key]"></component>
|
|
613
|
+
</div>
|
|
614
614
|
</a-form-item>
|
|
615
615
|
</div>
|
|
616
616
|
|
|
@@ -33,6 +33,8 @@ const {
|
|
|
33
33
|
initSearchFormData = [],
|
|
34
34
|
} = defineProps<Props>();
|
|
35
35
|
|
|
36
|
+
const selectedIds = defineModel<string[]>("selectedIds", { default: [] });
|
|
37
|
+
|
|
36
38
|
const pageQuery = reactive({
|
|
37
39
|
p: 1,
|
|
38
40
|
pc: 10,
|
|
@@ -52,8 +54,10 @@ const emits = defineEmits(["select"]);
|
|
|
52
54
|
|
|
53
55
|
const rowSelection = {
|
|
54
56
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
57
|
+
selectedIds.value = selectedRowKeys;
|
|
55
58
|
emits("select", selectedRowKeys);
|
|
56
59
|
},
|
|
60
|
+
preserveSelectedRowKeys: true,
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
const editableData = reactive({});
|
|
@@ -326,7 +330,11 @@ defineExpose({
|
|
|
326
330
|
<template v-else-if="column['type'] === 'operate'">
|
|
327
331
|
<div style="display: flex; gap: 10px; justify-content: center">
|
|
328
332
|
<span v-for="item in column['operateButtons']">
|
|
329
|
-
<a
|
|
333
|
+
<a
|
|
334
|
+
v-if="!item.visibleFunc || (item.visibleFunc && item.visibleFunc(record))"
|
|
335
|
+
class="operate-a"
|
|
336
|
+
@click="item.click(record)"
|
|
337
|
+
>
|
|
330
338
|
{{ item.label }}</a
|
|
331
339
|
>
|
|
332
340
|
</span>
|