demo fixes

pull/3509/head
Tuğçe Küçükoğlu 2023-01-09 11:25:24 +03:00
parent 83d9e58e5d
commit 59451e279a
5 changed files with 13 additions and 13 deletions

View File

@ -681,7 +681,7 @@ export default {
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" class="mr-2" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" class="mr-2" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<PanelMenu :model="items" :expandedKeys="expandedKeys" /> <PanelMenu :model="items" v-model:expandedKeys="expandedKeys" />
</div> </div>
</template> </template>
@ -867,7 +867,7 @@ export default {
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" class="mr-2" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" class="mr-2" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<PanelMenu :model="items" :expandedKeys="expandedKeys" /> <PanelMenu :model="items" v-model:expandedKeys="expandedKeys" />
</div> </div>
</template> </template>
@ -1053,7 +1053,7 @@ export default {
<p-button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" class="mr-2"></p-button> <p-button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" class="mr-2"></p-button>
<p-button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll"></p-button> <p-button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll"></p-button>
</div> </div>
<p-panelmenu :model="items" :expanded-keys="expandedKeys"></p-panelmenu> <p-panelmenu :model="items" v-model:expanded-keys="expandedKeys"></p-panelmenu>
</div> </div>
<script type="module"> <script type="module">

View File

@ -212,7 +212,7 @@ export default class NodeService {
&lt;Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /&gt; &lt;Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /&gt;
&lt;Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /&gt; &lt;Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;Tree :value="nodes" :expandedKeys="expandedKeys"&gt;&lt;/Tree&gt; &lt;Tree :value="nodes" v-model:expandedKeys="expandedKeys"&gt;&lt;/Tree&gt;
</code></pre> </code></pre>
@ -894,7 +894,7 @@ export default {
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<Tree :value="nodes" :expandedKeys="expandedKeys"></Tree> <Tree :value="nodes" v-model:expandedKeys="expandedKeys"></Tree>
</div> </div>
</template> </template>
@ -958,7 +958,7 @@ export default {
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<Tree :value="nodes" :expandedKeys="expandedKeys"></Tree> <Tree :value="nodes" v-model:expandedKeys="expandedKeys"></Tree>
</div> </div>
</template> </template>
@ -1018,7 +1018,7 @@ export default {
<p-button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll"></p-button> <p-button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll"></p-button>
<p-button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll"></p-button> <p-button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll"></p-button>
</div> </div>
<p-tree :value="nodes" :expanded-keys="expandedKeys"></p-tree> <p-tree :value="nodes" v-model:expanded-keys="expandedKeys"></p-tree>
</div> </div>
<script type="module"> <script type="module">

View File

@ -23,7 +23,7 @@
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<Tree :value="nodes" :expandedKeys="expandedKeys"></Tree> <Tree v-model:expandedKeys="expandedKeys" :value="nodes"></Tree>
</div> </div>
</div> </div>

View File

@ -647,7 +647,7 @@ export default {
&lt;Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /&gt; &lt;Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /&gt;
&lt;Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /&gt; &lt;Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;TreeTable :value="nodes" :expandedKeys="expandedKeys"&gt; &lt;TreeTable :value="nodes" v-model:expandedKeys="expandedKeys"&gt;
&lt;Column field="name" header="Name" :expander="true"&gt;&lt;/Column&gt; &lt;Column field="name" header="Name" :expander="true"&gt;&lt;/Column&gt;
&lt;Column field="size" header="Size"&gt;&lt;/Column&gt; &lt;Column field="size" header="Size"&gt;&lt;/Column&gt;
&lt;Column field="type" header="Type"&gt;&lt;/Column&gt; &lt;Column field="type" header="Type"&gt;&lt;/Column&gt;
@ -1917,7 +1917,7 @@ export default {
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<TreeTable :value="nodes" :expandedKeys="expandedKeys"> <TreeTable :value="nodes" v-model:expandedKeys="expandedKeys">
<Column field="name" header="Name" :expander="true"></Column> <Column field="name" header="Name" :expander="true"></Column>
<Column field="size" header="Size"></Column> <Column field="size" header="Size"></Column>
<Column field="type" header="Type"></Column> <Column field="type" header="Type"></Column>
@ -2008,7 +2008,7 @@ button {
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<TreeTable :value="nodes" :expandedKeys="expandedKeys"> <TreeTable :value="nodes" v-model:expandedKeys="expandedKeys">
<Column field="name" header="Name" :expander="true"></Column> <Column field="name" header="Name" :expander="true"></Column>
<Column field="size" header="Size"></Column> <Column field="size" header="Size"></Column>
<Column field="type" header="Type"></Column> <Column field="type" header="Type"></Column>
@ -2093,7 +2093,7 @@ button {
<p-button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll"></p-button> <p-button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll"></p-button>
<p-button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll"></p-button> <p-button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll"></p-button>
</div> </div>
<p-treetable :value="nodes" :expanded-keys="expandedKeys"> <p-treetable :value="nodes" v-model:expanded-keys="expandedKeys">
<p-column field="name" header="Name" :expander="true"></p-column> <p-column field="name" header="Name" :expander="true"></p-column>
<p-column field="size" header="Size"></p-column> <p-column field="size" header="Size"></p-column>
<p-column field="type" header="Type"></p-column> <p-column field="type" header="Type"></p-column>

View File

@ -36,7 +36,7 @@
<Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" /> <Button type="button" icon="pi pi-plus" label="Expand All" @click="expandAll" />
<Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" /> <Button type="button" icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
</div> </div>
<TreeTable :value="nodes" :expandedKeys="expandedKeys"> <TreeTable v-model:expandedKeys="expandedKeys" :value="nodes">
<Column field="name" header="Name" :expander="true"></Column> <Column field="name" header="Name" :expander="true"></Column>
<Column field="size" header="Size"></Column> <Column field="size" header="Size"></Column>
<Column field="type" header="Type"></Column> <Column field="type" header="Type"></Column>