vi-grid-builder 1.0.2 → 1.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vi-grid-builder",
3
3
  "main": "ViGridBuilderPlugin",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -40,7 +40,7 @@
40
40
  :field="column"
41
41
  :field-value="column.field ? column.field(row) : row[column.name]"
42
42
  :row-value="row"
43
- @action-clicked="$event => $emit($event.action, $event.row)"
43
+ @actionClicked="$event => $emit($event.action, $event.row)"
44
44
  >
45
45
  <template v-slot:custom-field="props">
46
46
  <component
@@ -195,6 +195,9 @@
195
195
  if (this.clickableRow) {
196
196
  this.$emit('rowClicked',row)
197
197
  }
198
+ },
199
+ onFiled(...args){
200
+ console.log(' onFiledclicked',args);
198
201
  }
199
202
  },
200
203
  created() {
@@ -7,6 +7,8 @@
7
7
  :value="filedValueFormatted"
8
8
  :original-value="fieldValue"
9
9
  :row="rowValue"
10
+ @actionClicked="$action => $emit(`action-clicked`, $action)"
11
+
10
12
  />
11
13
  <slot v-else name="custom-field"
12
14
  :field="field"
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div class="vi-grid-actions">
3
3
 
4
+
4
5
  <vi-grid-kebab-menu
5
6
  v-if="kebab"
6
7
  :actions="visibleActions"
@@ -10,6 +11,8 @@
10
11
  <vi-grid-builder-actions
11
12
  v-else
12
13
  :actions="visibleActions"
14
+ @actionClicked="$action => $emit(`action-clicked`, {action:$action, row})"
15
+
13
16
 
14
17
  />
15
18
 
@@ -40,8 +43,8 @@
40
43
  }
41
44
  },
42
45
 
43
- setup() {
44
- const {visibleActions} = useGridActions();
46
+ setup(props) {
47
+ const {visibleActions} = useGridActions(props);
45
48
 
46
49
  return {
47
50
  visibleActions,
@@ -1,19 +1,11 @@
1
1
  <template>
2
2
  <div class="vi-grid-builder-actions">
3
3
  <div v-for="(action, index) in actions" :key="index">
4
- <q-btn
5
- flat
6
- padding="none"
7
- @click="$emit('action',action.action)"
4
+ <button
5
+ @click="$emit('action-clicked',action.action)"
8
6
  >
9
- <span>
10
- <vi-icon-button :action="action.action"/>
11
- </span>
12
-
13
- <q-tooltip anchor="top middle" :offset="[30, 30]">
14
- {{ action.name }}
15
- </q-tooltip>
16
- </q-btn>
7
+ {{action.name}}
8
+ </button>
17
9
  </div>
18
10
  </div>
19
11
  </template>
@@ -1,14 +1,7 @@
1
1
  <template>
2
2
  <div class="vi-grid-kebab-menu">
3
- <q-btn
4
- round
5
- flat
6
- :dense="true"
7
- icon="eva-more-vertical-outline"
8
- button-label=""
9
- @click="toggleMenu"
10
- >
11
- </q-btn>
3
+ <i class="eva eva-more-vertical-outline"/>
4
+
12
5
  <q-menu anchor="bottom left" self="top left" :offset="[-25, 0]" v-model="showing">
13
6
  <template>
14
7
  <q-item