${eventName}
is not declared in the emits
option. It will leak into the component's attributes ($attrs
).` : null,
+ },
+ },
+ })
+ }
+ }
+ return result
+}
+
export function editState ({ componentInstance, path, state, type }: HookPayloads[Hooks.EDIT_COMPONENT_STATE], stateEditor: StateEditor, ctx: BackendContext) {
if (!['data', 'props', 'computed', 'setup'].includes(type)) return
let target: any
diff --git a/packages/app-frontend/src/assets/style/index.postcss b/packages/app-frontend/src/assets/style/index.postcss
new file mode 100644
index 000000000..52a46e713
--- /dev/null
+++ b/packages/app-frontend/src/assets/style/index.postcss
@@ -0,0 +1,10 @@
+.v-popper__popper.v-popper--theme-tooltip code {
+ @apply bg-gray-500/50 rounded px-1 text-[11px] font-mono;
+}
+
+// @TODO remove when vue-ui style is updated
+
+.vue-ui-group:not(.vertical) > .indicator >.content {
+ margin: 0 12px;
+ width: calc(100% - 24px);
+}
diff --git a/packages/app-frontend/src/assets/style/index.styl b/packages/app-frontend/src/assets/style/index.styl
index f32e0beb8..1a3dafe53 100644
--- a/packages/app-frontend/src/assets/style/index.styl
+++ b/packages/app-frontend/src/assets/style/index.styl
@@ -139,7 +139,6 @@ $arrow-color = rgba(100, 100, 100, 0.5)
.vue-ui-dark-mode .v-popper__popper.v-popper--theme-tooltip .vue-ui-icon svg
fill #666
-
.v-popper__popper.v-popper--theme-dropdown .v-popper__inner
max-height calc(100vh - 32px - 8px - 4px)
overflow-y auto
@@ -153,10 +152,3 @@ $arrow-color = rgba(100, 100, 100, 0.5)
.right-icon-reveal:not(:hover)
.vue-ui-icon.right
opacity 0
-
-// @TODO remove when vue-ui style is updated
-
-.vue-ui-group:not(.vertical) > .indicator >.content {
- margin: 0 12px;
- width: calc(100% - 24px);
-}
diff --git a/packages/app-frontend/src/features/inspector/StateInspector.vue b/packages/app-frontend/src/features/inspector/StateInspector.vue
index 7ad08e7de..a328211c0 100644
--- a/packages/app-frontend/src/features/inspector/StateInspector.vue
+++ b/packages/app-frontend/src/features/inspector/StateInspector.vue
@@ -23,6 +23,7 @@ const keyOrder = {
refs: 6,
$attrs: 7,
attrs: 7,
+ 'event listeners': 7,
'setup (other)': 8,
}
diff --git a/packages/app-frontend/src/index.ts b/packages/app-frontend/src/index.ts
index 2812363fa..3959c8d8b 100644
--- a/packages/app-frontend/src/index.ts
+++ b/packages/app-frontend/src/index.ts
@@ -1,4 +1,5 @@
import './assets/style/index.styl'
+import './assets/style/index.postcss'
import { initStorage, Shell } from '@vue-devtools/shared-utils'
import { createApp, connectApp } from './app'
diff --git a/packages/shell-dev-vue3/src/App.vue b/packages/shell-dev-vue3/src/App.vue
index 2deb62739..b850ccf20 100644
--- a/packages/shell-dev-vue3/src/App.vue
+++ b/packages/shell-dev-vue3/src/App.vue
@@ -81,6 +81,14 @@ export default {
stopTimer () {
clearInterval(this.timer)
},
+
+ onFoo (...args) {
+ console.log('on foo', ...args)
+ },
+
+ onBar (...args) {
+ console.log('on bar', ...args)
+ },
},
}
@@ -116,7 +124,10 @@ export default {