@@ -35,11 +35,42 @@ export { basic as default };
3535"
3636` ;
3737
38- exports [` fixtures > tests/fixtures/defaults.vue 1` ] = `
38+ exports [` fixtures > tests/fixtures/defaults-dynamic.vue 1` ] = `
39+ "import { defineComponent , mergeDefaults , openBlock , createElementBlock } from 'vue';
40+
41+ var _sfc_main = /* @__PURE__ */ defineComponent({
42+ __name : \\" defaults-dynamic\\ " ,
43+ props : mergeDefaults ({
44+ foo: { type: String , required: false }
45+ }, {
46+ [\\" foo\\ " ]: \\" foo\\ "
47+ }),
48+ setup (__props ) {
49+ return (_ctx , _cache ) => {
50+ return openBlock (), createElementBlock (\\" div\\ " );
51+ };
52+ }
53+ } );
54+
55+ var _export_sfc = (sfc, props) => {
56+ const target = sfc .__vccOpts || sfc ;
57+ for (const [key , val ] of props ) {
58+ target[key] = val;
59+ }
60+ return target ;
61+ } ;
62+
63+ var defaultsDynamic = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
64+
65+ export { defaultsDynamic as default } ;
66+ "
67+ ` ;
68+
69+ exports [` fixtures > tests/fixtures/defaults-static.vue 1` ] = `
3970"import { defineComponent , openBlock , createElementBlock } from 'vue';
4071
4172var _sfc_main = /* @__PURE__ */ defineComponent({
42- __name : \\" defaults\\ " ,
73+ __name : \\" defaults-static \\ " ,
4374 props : {
4475 foo: { type: String , required: false , default: \\" foo\\ " },
4576 bar: { type: Number , required: false , get default() {
@@ -64,9 +95,9 @@ var _export_sfc = (sfc, props) => {
6495 return target ;
6596} ;
6697
67- var defaults = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
98+ var defaultsStatic = /* @__PURE__ */ _export_sfc(_sfc_main, [__FILE__]);
6899
69- export { defaults as default } ;
100+ export { defaultsStatic as default } ;
70101"
71102` ;
72103
0 commit comments