Commit Graph

181 Commits

Author SHA1 Message Date
Amour1688
98b4f92f48 feat: v-model targe value support variable (#331) 2021-03-03 10:23:32 +08:00
JokcyLou
ec50fddc8a
feat: add pragma option and support @jsx annotation (#322)
* add pragma option and support @jsx annotation

* update syntax and remove useless eslint rule

* use BabelCore.BabelFile as type definition of state.file

* update chinese doc
2021-02-28 18:08:42 +08:00
Amour1688
57f670711d fix: typo [ci skip] 2021-02-12 21:47:04 +08:00
Amour1688
fa36f02535 v1.0.3 2021-02-06 21:51:19 +08:00
Amour1688
4c69e3ce71 test: snap for KeepAlive 2021-02-06 21:45:53 +08:00
Amour1688
f1c9629b88 fix: child nodes of KeepAlive should not be transformed to slots 2021-02-04 22:18:07 +08:00
Amour1688
ee3faaf58b v1.0.2 2021-01-17 00:23:07 +08:00
Amour1688
1698603278
feat: should merge generated imports (#274) 2021-01-17 00:15:54 +08:00
Amour1688
03586776d6 fix: typo [ci skip] 2021-01-16 23:11:00 +08:00
Amour1688
c0a3d56b7f v1.0.1 2021-01-09 21:28:52 +08:00
Amour1688
76add10663 docs: enableObjectSlots 2021-01-09 21:18:32 +08:00
Amour1688
689ceea4c0 feat: export interface VueJSXPluginOptions 2021-01-09 21:18:02 +08:00
dependabot-preview[bot]
764afcdb3c
chore(deps-dev): bump @vue/compiler-dom from 3.0.4 to 3.0.5 (#250)
Bumps [@vue/compiler-dom](https://github.com/vuejs/vue-next/tree/HEAD/packages/compiler-dom) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/vuejs/vue-next/releases)
- [Changelog](https://github.com/vuejs/vue-next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-next/commits/v3.0.5/packages/compiler-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-09 00:01:08 +08:00
Amour1688
9238fab697
feat: support optional enableObjectSlots (#259)
* feat: user can toggle off the object slot syntax parser (#257)

* chore(deps-dev): bump vue from 3.0.0 to 3.0.5 (#246)

Bumps [vue](https://github.com/vuejs/vue) from 3.0.0 to 3.0.5.
- [Release notes](https://github.com/vuejs/vue/releases)
- [Commits](https://github.com/vuejs/vue/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @typescript-eslint/eslint-plugin (#244)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.9.1 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @typescript-eslint/parser from 4.9.1 to 4.11.1 (#245)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.9.1 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* feat: user can toggle off the object slot syntax parser

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* feat: default value of enableObjectSlots should be true

Co-authored-by: 逆寒 <869732751@qq.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-08 23:18:56 +08:00
dependabot-preview[bot]
03e839047c
chore(deps-dev): bump vue from 3.0.0 to 3.0.5 (#246)
Bumps [vue](https://github.com/vuejs/vue) from 3.0.0 to 3.0.5.
- [Release notes](https://github.com/vuejs/vue/releases)
- [Commits](https://github.com/vuejs/vue/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-01 21:09:25 +08:00
Amour1688
503e232741 v1.0.0 2020-12-26 01:02:41 +08:00
Amour1688
86c0912bad docs: update RAEDME 2020-12-13 11:48:41 +08:00
Amour1688
cf25aa0b65 v1.0.0-rc.5 2020-12-12 00:44:16 +08:00
Amour1688
87f614b703 chore: add test for object slots 2020-12-12 00:36:33 +08:00
dependabot-preview[bot]
c04904f209
chore(deps-dev): bump @vue/compiler-dom from 3.0.0 to 3.0.4 (#208)
Bumps [@vue/compiler-dom](https://github.com/vuejs/vue-next/tree/HEAD/packages/compiler-dom) from 3.0.0 to 3.0.4.
- [Release notes](https://github.com/vuejs/vue-next/releases)
- [Changelog](https://github.com/vuejs/vue-next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-next/commits/v3.0.4/packages/compiler-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-12 00:12:31 +08:00
zkwolf
b0fb8c0db4
fix: jsx slot render unexpected #215 (#218)
* fix: jsx slot render unexpected #215

* test: update test
2020-12-11 23:46:34 +08:00
Amour1688
fe68d384c9 v1.0.0-rc.4 2020-12-08 22:19:39 +08:00
John60676
215aaedd05
docs: add v-models docs (#207) 2020-12-08 14:21:22 +08:00
Amour1688
a0a60ee46d docs: update README 2020-12-07 23:17:45 +08:00
Amour1688
5b6323f22a
feat: should support passing object slots via JSX children (#204)
* feat: should support passing object slots via JSX children

* feat: add unit test

* feat: remove `cloneDeep` of `isSlot`

* chore(deps): add `@babel/template`
2020-12-07 23:05:41 +08:00
Che Guevara
832df5b6bd
docs(README-zh_CN.md): enrich translation (#179) 2020-11-29 19:09:10 +08:00
Amour1688
9ea52ee9a1
feat: use addNamed import (#196) 2020-11-29 19:02:03 +08:00
Amour1688
1ba60fbc85 fix: declared emitted event in the emits option 2020-10-29 14:09:56 +08:00
John60676
cc1d9679dc
fix: model can be v-model argument (#153) 2020-10-28 22:05:13 +08:00
John60676
604d53b956
feat: support v-models (#140)
* feat: support multiple bindings

* refactor: optimize code

* test: add underscore modifier case

* refactor: modify value to values

* refactor: remove underscore modifier support

* refactor: optimize v-models

* refactor: optimize code
2020-10-28 18:42:43 +08:00
Amour1688
1fdcfd0ce2 style: optimize code 2020-10-19 14:50:25 +08:00
Amour1688
f50b9e37fd fix: <A {...{ a: 1 }} /> throw error when override props 2020-10-17 10:29:08 +08:00
Amour1688
e9aa278b20 fix: ts error 2020-10-12 13:49:27 +08:00
dependabot-preview[bot]
5d4a501bfe
chore(deps-dev): bump vue from 3.0.0-rc.10 to 3.0.0 (#128)
Bumps [vue](https://github.com/vuejs/vue) from 3.0.0-rc.10 to 3.0.0.
- [Release notes](https://github.com/vuejs/vue/releases)
- [Commits](https://github.com/vuejs/vue/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-09 15:58:51 +08:00
dependabot-preview[bot]
bac6fde576
chore(deps-dev): bump @vue/compiler-dom from 3.0.0-rc.10 to 3.0.0 (#124)
Bumps [@vue/compiler-dom](https://github.com/vuejs/vue-next/tree/HEAD/packages/compiler-dom) from 3.0.0-rc.10 to 3.0.0.
- [Release notes](https://github.com/vuejs/vue-next/releases)
- [Changelog](https://github.com/vuejs/vue-next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-next/commits/v3.0.0/packages/compiler-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-09 10:33:00 +08:00
hangzou
4318ca17e0
docs: update slot's description (#116)
* docs: update slot's description
2020-09-24 17:19:00 +08:00
Amour1688
0e2253b6a8 docs: update v-model [ci skip] 2020-09-22 11:55:56 +08:00
hangzou
e898d0eaf8
docs: add new user in README (#108)
* feat(docs): add new user in README

* docs: update README-zh & change element plus' link
2020-09-20 13:14:57 +08:00
Amour1688
ad8c3cbfe6 chore: use generateUidIdentifier 2020-09-15 11:59:54 +08:00
Amour1688
01f812c19e docs: mergeProps 2020-09-14 17:42:03 +08:00
Amour1688
bd938b770d v1.0.0-rc.3 2020-09-14 17:23:43 +08:00
Amour1688
b23cfe0020 test: overrideProps snapshot 2020-09-09 17:19:36 +08:00
Amour1688
e16695d87e feat: optional mergePros 2020-09-09 17:07:47 +08:00
Amour1688
45290ca1ee chore: add snapshot 2020-09-08 14:12:42 +08:00
Amour1688
4398191f95 chore: remove webpack-dev-server 2020-09-08 14:12:19 +08:00
Amour1688
94b4f3aa80 feat: merge static and dynamic class / style attributes into array 2020-09-08 12:58:01 +08:00
Amour1688
bf59811f43 fix: mergeProps order error 2020-09-07 22:24:29 +08:00
Amour1688
f519920db2 chore: set monaco-editor jsx as preserve 2020-09-06 11:33:12 +08:00
Amour1688
53739e1d5c chore: monaco in cdn 2020-09-05 21:58:07 +08:00
dependabot-preview[bot]
d00a225a2d
chore(deps-dev): bump vue from 3.0.0-rc.9 to 3.0.0-rc.10 (#91)
Bumps [vue](https://github.com/vuejs/vue) from 3.0.0-rc.9 to 3.0.0-rc.10.
- [Release notes](https://github.com/vuejs/vue/releases)
- [Commits](https://github.com/vuejs/vue/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-05 11:32:51 +08:00
dependabot-preview[bot]
98fe1c8051
chore(deps-dev): bump @vue/compiler-dom from 3.0.0-rc.9 to 3.0.0-rc.10 (#93)
Bumps [@vue/compiler-dom](https://github.com/vuejs/vue-next/tree/HEAD/packages/compiler-dom) from 3.0.0-rc.9 to 3.0.0-rc.10.
- [Release notes](https://github.com/vuejs/vue-next/releases)
- [Changelog](https://github.com/vuejs/vue-next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-next/commits/v3.0.0-rc.10/packages/compiler-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-05 11:32:31 +08:00
Amour1688
8bfd6667d5 docs: fix wrong spelling of ts 2020-09-04 17:49:29 +08:00
dependabot-preview[bot]
5001c1e912
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#88)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.10.1 to 4.0.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.0.1/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-03 22:12:10 +08:00
dependabot-preview[bot]
0c01e71932
chore(deps-dev): bump typescript from 3.9.6 to 4.0.2 (#89)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.6 to 4.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.6...v4.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-02 15:09:11 +08:00
dependabot-preview[bot]
341d461261
chore(deps-dev): bump @typescript-eslint/parser from 3.10.1 to 4.0.1 (#85)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.10.1 to 4.0.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.0.1/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-02 15:05:35 +08:00
Amour1688
1b7fb1b307 docs: update README for TypeScript 2020-09-01 10:14:36 +08:00
dependabot-preview[bot]
dcf22537b1
chore(deps-dev): bump vue from 3.0.0-rc.7 to 3.0.0-rc.9 (#79)
Bumps [vue](https://github.com/vuejs/vue) from 3.0.0-rc.7 to 3.0.0-rc.9.
- [Release notes](https://github.com/vuejs/vue/releases)
- [Commits](https://github.com/vuejs/vue/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-31 15:12:19 +08:00
jawn-ha
37af260a2f
docs: fix the repo's link (#74)
Co-authored-by: zhanghj <zhanghj@getui.com>
2020-08-30 20:25:51 +08:00
Amour1688
d65e85a1ed chore: 1.0.0-rc.2 changelog [ci skip] 2020-08-28 10:59:39 +08:00
Amour1688
03b33574e6 v1.0.0-rc.2 2020-08-28 10:24:39 +08:00
Amour1688
09c220eeff chore: rename package namesapce from ant-design-vue to vue 2020-08-28 09:42:13 +08:00
dependabot-preview[bot]
1f9e7b440c
chore(deps-dev): bump @vue/compiler-dom from 3.0.0-rc.7 to 3.0.0-rc.9 (#60)
Bumps [@vue/compiler-dom](https://github.com/vuejs/vue-next) from 3.0.0-rc.7 to 3.0.0-rc.9.
- [Release notes](https://github.com/vuejs/vue-next/releases)
- [Changelog](https://github.com/vuejs/vue-next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-next/compare/v3.0.0-rc.7...v3.0.0-rc.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-27 20:02:39 +08:00
Amour1688
5790b83ed6
chore: replace namespace imports with named imports (#67)
* feat: Replace namespace imports with named imports (#54)

* Add .circleci/config.yml

* ci: fix circleci error

* fix: specifiers should be merged into a single importDeclaration

Co-authored-by: 逆寒 <869732751@qq.com>
Co-authored-by: tangjinzhou <415800467@qq.com>
2020-08-27 20:01:11 +08:00
renovate[bot]
86b5051174
chore(deps): update vue monorepo to v3.0.0-rc.7 (#56)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-22 08:48:14 +08:00
Amour1688
f96f8880b9 fix: innerHTML should be string 2020-08-20 09:22:02 +08:00
renovate[bot]
831987885b
chore(deps): update vue monorepo to v3.0.0-rc.6 (#55)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-20 09:14:28 +08:00
renovate[bot]
d9f96e02b3
chore(deps): update dependency @vue/test-utils to v2.0.0-beta.2 (#52)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-06 09:36:45 +08:00
renovate[bot]
1dbc78205f
chore(deps): update dependency @vue/test-utils to v2.0.0-beta.1 (#50)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-01 20:35:11 +08:00
Amour1688
881ea9ec84 docs: upgrade README 2020-07-29 12:37:37 +08:00
Amour1688
d19a593080 v1.0.0-rc.1 2020-07-29 09:46:15 +08:00
Amour1688
5c2179f6d9 feat: remove compatibleProps 2020-07-29 09:30:06 +08:00
renovate[bot]
0559c78b57
chore(deps): update vue monorepo to v3.0.0-rc.5 (#46)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-29 09:26:13 +08:00
Amour1688
89afeac355
chore: mark slotflag and fix some bugs (#45)
* fix: reassign variable as component should work

* feat: remove `compatibleProps`

* feat: mark slotFlag

* chore: istanbul ignore in babel.config.js

* test: reassign variable as component should work
2020-07-28 21:25:30 +08:00
Amour1688
ebbd992ba0
chore: use typescript to refactor test and fix some bugs(#42)
* style: formate code

* chore: disable no-non-null-assertion

* chore: test vHtml and vText

* chore: set optimize as true in test

* style: fix eslint warning

* chore: v-model test

* fix: v-model has not type should use vModelText

* chore: use typescript to refactor test

* fix: slots test

* feat: support isCustomElement
2020-07-25 22:39:19 +08:00
Amour1688
84b006bdd3 docs: withModifiers 2020-07-22 09:53:16 +08:00
Amour1688
b817fa38af chore: v1.0.0-beta.4 changelog 2020-07-22 09:23:23 +08:00
Amour1688
f481fef240 v1.0.0-beta.4 2020-07-22 09:20:13 +08:00
renovate[bot]
59757a170c
chore(deps): update vue monorepo to v3.0.0-rc.4 (#39)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-22 09:10:56 +08:00
renovate[bot]
96c36a4c1b
chore(deps): update vue monorepo to v3.0.0-rc.2 (#38)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-20 09:11:32 +08:00
xrk
ee0d544c24
chore: add tslint (#37)
* chore: tslint

* chore: workflow lint

Co-authored-by: Amour1688 <lcz_1996@foxmail.com>
2020-07-19 14:47:24 +08:00
xrk
6b0b7534a4
docs: optimize Readme and add link (#35)
* docs: optimize Readme and add link

Co-authored-by: Amour1688 <lcz_1996@foxmail.com>
2020-07-18 11:45:05 +08:00
renovate[bot]
b205dd4e08
chore(deps): update vue monorepo to v3.0.0-rc.1 (#34)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-18 09:04:08 +08:00
Amour1688
b3ea528a6e
fix: force update on forwarded slots (#33) 2020-07-17 21:24:05 +08:00
renovate[bot]
a34ff99277
chore(deps): update vue monorepo to v3.0.0-beta.24 (#31)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-17 09:10:47 +08:00
renovate[bot]
a9060aa1ae
chore(deps): update vue monorepo (#30)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-16 09:09:06 +08:00
Amour1688
c2bde6ea41 v1.0.0-beta.3 2020-07-15 19:28:58 +08:00
Amour1688
9f133858c5 fix: directive with single param did not work 2020-07-15 19:27:49 +08:00
Amour1688
b95986ee90 v1.0.0-beta.2 2020-07-15 09:17:26 +08:00
renovate[bot]
36c5cc38eb
chore(deps): update vue monorepo to v3.0.0-beta.21 (#29)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-15 09:13:03 +08:00
Amour1688
9179e9c7a3
fix: warning Fragment with condition fails with undefined vnode (#28) 2020-07-14 10:38:34 +08:00
Amour1688
672f27d258 refactor: new directive API 2020-07-13 23:44:52 +08:00
martinoooo
d495546883
fix: walksScope throw error when path.parentPath is null (#25) 2020-07-13 14:01:19 +08:00
Amour1688
ede484fad5 v1.0.0-beta.1 2020-07-12 16:29:24 +08:00
Amour1688
76f3f17602 feat: optional usePatchFlag 2020-07-12 16:23:13 +08:00
Amour1688
858f39cea2 chore: use BAIL instead of h 2020-07-12 14:01:29 +08:00
Amour1688
9454655ee7 fix: component doesn't render when variables outside slot 2020-07-12 10:19:31 +08:00
Amour1688
5c59e2e27b fix: checkIsComponent got wrong result 2020-07-12 02:04:51 +08:00
Amour1688
17a0e56342 feat: vSlots 2020-07-11 23:14:18 +08:00
Amour1688
a4d7390273 fix: Fragment 2020-07-11 14:23:56 +08:00
Amour1688
59ad212060 chore: @types/svg-tags in devDependencies 2020-07-09 21:43:11 +08:00