mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-18 19:40:03 +08:00
fix(vue-components): iterator-container 传递 page-fragment-contianer-id 参数
This commit is contained in:
parent
6cb08cf458
commit
7799a5da61
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"name": "@tmagic/vue-iterator-container",
|
"name": "@tmagic/vue-iterator-container",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
:iterator-container-id="
|
:iterator-container-id="
|
||||||
config.id ? [...(iteratorContainerId || []), config.id] : [...(iteratorContainerId || [])]
|
config.id ? [...(iteratorContainerId || []), config.id] : [...(iteratorContainerId || [])]
|
||||||
"
|
"
|
||||||
|
:page-fragment-container-id="pageFragmentContainerId"
|
||||||
></IteratorItem>
|
></IteratorItem>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
:config="config"
|
:config="config"
|
||||||
:iterator-index="iteratorIndex"
|
:iterator-index="iteratorIndex"
|
||||||
:iterator-container-id="iteratorContainerId"
|
:iterator-container-id="iteratorContainerId"
|
||||||
|
:page-fragment-container-id="pageFragmentContainerId"
|
||||||
></component>
|
></component>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -29,6 +30,7 @@ export default defineComponent({
|
|||||||
iteratorIndex: Array as PropType<number[]>,
|
iteratorIndex: Array as PropType<number[]>,
|
||||||
iteratorContainerId: Array as PropType<Id[]>,
|
iteratorContainerId: Array as PropType<Id[]>,
|
||||||
containerIndex: Number,
|
containerIndex: Number,
|
||||||
|
pageFragmentContainerId: [String, Number] as PropType<Id>,
|
||||||
index: Number,
|
index: Number,
|
||||||
model: {
|
model: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user