| | |
| | | </SearchInput> |
| | | </QueryFilterItem> |
| | | </template> |
| | | <template #btn> |
| | | <slot name="btn"></slot> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | | v-bind="proTableProps" |
| | |
| | | }; |
| | | openDialog?: (row) => void; |
| | | column?: API.ModuleColumnDto[]; |
| | | operationBtns?: OperationBtnType[]; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | column: () => BaseDeclareEnterpriseTableViewColumns, |
| | | }); |
| | | |
| | | const operationBtns = defineOperationBtns([ |
| | | { |
| | | data: { |
| | | enCode: 'detailBtn', |
| | | name: '详情', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => props.openDialog(role), |
| | | }, |
| | | }, |
| | | ]); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |