quasar-ui-danx 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/components/ActionTable/ActionTable.vue +7 -5
- package/src/components/ActionTable/listControls.ts +4 -4
- package/src/components/Utility/Tools/RenderComponent.vue +1 -5
- package/src/components/Utility/Tools/RenderVNode.vue +6 -0
- package/src/components/Utility/Tools/index.ts +1 -0
- package/src/helpers/actions.ts +0 -1
package/package.json
CHANGED
@@ -56,12 +56,14 @@
|
|
56
56
|
:style="getColumnStyle(rowProps.col)"
|
57
57
|
@click="() => rowProps.col.onClick && rowProps.col.onClick(rowProps.row)"
|
58
58
|
>
|
59
|
+
<RenderVNode
|
60
|
+
v-if="rowProps.col.vnode"
|
61
|
+
:vnode="rowProps.col.vnode(rowProps.row)"
|
62
|
+
/>
|
59
63
|
<RenderComponent
|
60
|
-
v-if="rowProps.col.component"
|
64
|
+
v-else-if="rowProps.col.component"
|
61
65
|
:params="[rowProps.row]"
|
62
66
|
:component="rowProps.col.component"
|
63
|
-
:text="rowProps.value"
|
64
|
-
@action="action => $emit('action', {action,target: rowProps.row})"
|
65
67
|
/>
|
66
68
|
<div v-else-if="rowProps.col.fieldList">
|
67
69
|
<div v-for="field in rowProps.col.fieldList" :key="field">
|
@@ -95,10 +97,10 @@ import { ref } from 'vue';
|
|
95
97
|
import { getItem, setItem } from '../../helpers';
|
96
98
|
import { DragHandleIcon as RowResizeIcon } from '../../svg';
|
97
99
|
import { HandleDraggable } from '../DragAndDrop';
|
98
|
-
import { ActionInputComponent, mapSortBy, RenderComponent } from '../index';
|
100
|
+
import { ActionInputComponent, mapSortBy, RenderComponent, RenderVNode } from '../index';
|
99
101
|
import { ActionMenu, EmptyTableState, registerStickyScrolling, TableSummaryRow } from './index';
|
100
102
|
|
101
|
-
defineEmits(['action', '
|
103
|
+
defineEmits(['action', 'update:quasar-pagination', 'update:selected-rows']);
|
102
104
|
const props = defineProps({
|
103
105
|
name: {
|
104
106
|
type: String,
|
@@ -259,11 +259,11 @@ export function useListControls(name: string, {
|
|
259
259
|
* Opens the item's form with the given item and tab
|
260
260
|
*
|
261
261
|
* @param item
|
262
|
-
* @param
|
262
|
+
* @param panel
|
263
263
|
*/
|
264
|
-
function
|
264
|
+
function activatePanel(item, panel) {
|
265
265
|
activeItem.value = item;
|
266
|
-
activePanel.value =
|
266
|
+
activePanel.value = panel;
|
267
267
|
}
|
268
268
|
|
269
269
|
/**
|
@@ -336,7 +336,7 @@ export function useListControls(name: string, {
|
|
336
336
|
loadMore,
|
337
337
|
refreshAll,
|
338
338
|
getNextItem,
|
339
|
-
|
339
|
+
activatePanel,
|
340
340
|
applyFilterFromUrl,
|
341
341
|
setItemInPagedList
|
342
342
|
};
|
@@ -25,17 +25,13 @@ const props = defineProps({
|
|
25
25
|
type: Array,
|
26
26
|
default: () => []
|
27
27
|
},
|
28
|
-
text: {
|
29
|
-
type: String,
|
30
|
-
default: undefined
|
31
|
-
},
|
32
28
|
overrideProps: {
|
33
29
|
type: Object,
|
34
30
|
default: () => ({})
|
35
31
|
}
|
36
32
|
});
|
37
33
|
|
38
|
-
const content = computed(() => resolvedComponent.value?.value || resolvedComponent.value?.props?.text
|
34
|
+
const content = computed(() => resolvedComponent.value?.value || resolvedComponent.value?.props?.text);
|
39
35
|
const resolvedComponent = computed(() => {
|
40
36
|
if (typeof props.component === 'function') {
|
41
37
|
return props.component(...props.params);
|