vue-facing-decorator
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -116,3 +116,3 @@ "use strict"; | ||
map.forEach((v) => { | ||
v.creator.apply({}, [option, v.key]); | ||
v.forEach(ite => ite.creator.apply({}, [option, ite.key])); | ||
}); | ||
@@ -119,0 +119,0 @@ } |
@@ -10,3 +10,7 @@ "use strict"; | ||
const map = slot.obtainMap('customDecorator'); | ||
map.set(key, { | ||
if (!map.has(key)) { | ||
map.set(key, []); | ||
} | ||
const arr = map.get(key); | ||
arr.push({ | ||
key, | ||
@@ -13,0 +17,0 @@ creator, |
@@ -90,3 +90,3 @@ import { defineComponent } from 'vue'; | ||
map.forEach((v) => { | ||
v.creator.apply({}, [option, v.key]); | ||
v.forEach(ite => ite.creator.apply({}, [option, ite.key])); | ||
}); | ||
@@ -93,0 +93,0 @@ } |
@@ -7,3 +7,7 @@ import { obtainSlot } from '../utils'; | ||
const map = slot.obtainMap('customDecorator'); | ||
map.set(key, { | ||
if (!map.has(key)) { | ||
map.set(key, []); | ||
} | ||
const arr = map.get(key); | ||
arr.push({ | ||
key, | ||
@@ -10,0 +14,0 @@ creator, |
@@ -25,3 +25,3 @@ import type { BaseTypeIdentify } from './index'; | ||
setup: Map<string, SetupConfig>; | ||
customDecorator: Map<string, CustomDecoratorRecord>; | ||
customDecorator: Map<string, CustomDecoratorRecord[]>; | ||
}; | ||
@@ -28,0 +28,0 @@ declare class Slot { |
@@ -89,3 +89,3 @@ import { Base } from './index'; | ||
if (map.has(name)) { | ||
if (!map.get(name).preserve) { | ||
if (map.get(name).every(ite => !ite.preserve)) { | ||
return false; | ||
@@ -92,0 +92,0 @@ } |
@@ -25,3 +25,3 @@ import type { BaseTypeIdentify } from './index'; | ||
setup: Map<string, SetupConfig>; | ||
customDecorator: Map<string, CustomDecoratorRecord>; | ||
customDecorator: Map<string, CustomDecoratorRecord[]>; | ||
}; | ||
@@ -28,0 +28,0 @@ declare class Slot { |
@@ -98,3 +98,3 @@ "use strict"; | ||
if (map.has(name)) { | ||
if (!map.get(name).preserve) { | ||
if (map.get(name).every(ite => !ite.preserve)) { | ||
return false; | ||
@@ -101,0 +101,0 @@ } |
{ | ||
"name": "vue-facing-decorator", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Vue typescript class and decorator based component.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -132,3 +132,4 @@ import { defineComponent, type ComponentCustomOptions } from 'vue'; | ||
map.forEach((v) => { | ||
v.creator.apply({}, [option, v.key]) | ||
v.forEach(ite=>ite.creator.apply({}, [option, ite.key])) | ||
}) | ||
@@ -135,0 +136,0 @@ } |
@@ -16,3 +16,7 @@ import { obtainSlot } from '../utils' | ||
const map = slot.obtainMap('customDecorator') | ||
map.set(key, { | ||
if(!map.has(key)){ | ||
map.set(key,[]) | ||
} | ||
const arr = map.get(key)! | ||
arr.push({ | ||
key, | ||
@@ -22,2 +26,3 @@ creator, | ||
}) | ||
}) | ||
@@ -24,0 +29,0 @@ } |
@@ -30,3 +30,3 @@ import { Base } from './index' | ||
setup: Map<string, SetupConfig> | ||
customDecorator: Map<string, CustomDecoratorRecord> | ||
customDecorator: Map<string, CustomDecoratorRecord[]> | ||
} | ||
@@ -131,3 +131,3 @@ | ||
if (map.has(name)) { | ||
if (!map.get(name)!.preserve) { | ||
if (map.get(name)!.every(ite=>!ite.preserve)) { | ||
return false | ||
@@ -134,0 +134,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
220773
3229