Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce shortBind #493

Merged
merged 10 commits into from Sep 23, 2023
Merged

feat: introduce shortBind #493

merged 10 commits into from Sep 23, 2023

Conversation

zhiyuanzmj
Copy link
Member

@zhiyuanzmj zhiyuanzmj commented Aug 28, 2023

<script setup lang="ts">
import { ref } from 'vue'
import Child from './child.vue'

const value = ref('')
</script>

<template>
  <input :value />   <!-- <Child :value="value" /> -->

  <Child ::value />  <!-- <Child ::value="value" />  =>  <Child v-model:value="value" /> -->
  <Child $value />   <!-- <Child $value="value" />   =>  <Child v-model:value="value" /> -->
  <Child *value />   <!-- <Child *value="value" />   =>  <Child v-model:value="value" /> -->
</template>

@stackblitz
Copy link

stackblitz bot commented Aug 28, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Aug 28, 2023

🦋 Changeset detected

Latest commit: 6119fb1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@vue-macros/short-bind Minor
@vue-macros/volar Minor
@vue-macros/eslint-config Minor
unplugin-vue-macros Minor
@vue-macros/nuxt Minor
@vue-macros/astro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sxzz
Copy link
Member

sxzz commented Aug 28, 2023

Awesome! 🤩

docs/macros/short-bind.md Outdated Show resolved Hide resolved
docs/macros/short-bind.md Outdated Show resolved Hide resolved
docs/zh-CN/macros/short-bind.md Outdated Show resolved Hide resolved
packages/short-bind/src/index.ts Outdated Show resolved Hide resolved
playground/vue3/package.json Outdated Show resolved Hide resolved
@zhiyuanzmj zhiyuanzmj requested a review from sxzz September 2, 2023 17:15
packages/short-bind/src/core/transformer.ts Outdated Show resolved Hide resolved
packages/short-bind/src/core/transformer.ts Outdated Show resolved Hide resolved
packages/short-bind/src/core/transformer.ts Show resolved Hide resolved
Copy link
Member

@sxzz sxzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some review comments for you

@sxzz sxzz merged commit 6193a84 into main Sep 23, 2023
7 checks passed
@sxzz sxzz deleted the feat/short-bind branch September 23, 2023 17:20
@github-actions github-actions bot mentioned this pull request Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants