diff --git a/doc/orderlist/BasicDoc.vue b/doc/orderlist/BasicDoc.vue
index ee3a0bd6f..1ea1d9476 100644
--- a/doc/orderlist/BasicDoc.vue
+++ b/doc/orderlist/BasicDoc.vue
@@ -2,21 +2,10 @@
OrderList requires an array as its value bound with the v-model directive and item template for its content.
-
-
- List of Products
-
-
-
-
-
{{ slotProps.item.name }}
-
-
- {{ slotProps.item.category }}
-
-
-
${{ slotProps.item.price }}
-
+
+
+
+ {{ item.name }}
@@ -25,46 +14,25 @@
diff --git a/doc/picklist/BasicDoc.vue b/doc/picklist/BasicDoc.vue
index 9eda3558d..785ae945f 100644
--- a/doc/picklist/BasicDoc.vue
+++ b/doc/picklist/BasicDoc.vue
@@ -3,21 +3,9 @@
PickList requires a multidimensional array as its value bound with the v-model directive and a template for its content that gets the item instance and the index via slotProps.
-
- Available
- Selected
-
-
-
-
-
{{ slotProps.item.name }}
-
-
- {{ slotProps.item.category }}
-
-
-
${{ slotProps.item.price }}
-
+
+
+ {{ item.name }}
@@ -33,42 +21,18 @@ export default {
products: null,
code: {
basic: `
-
- Available
- Selected
-
-
-
-
-
{{ slotProps.item.name }}
-
-
- {{ slotProps.item.category }}
-
-
-
$ {{ slotProps.item.price }}
-
+
+
+ {{ item.name }}
`,
options: `
-
- Available
- Selected
-
-
-
-
-
{{ slotProps.item.name }}
-
-
- {{ slotProps.item.category }}
-
-
-
$ {{ slotProps.item.price }}
-
+
+
+ {{ item.name }}
@@ -91,21 +55,9 @@ export default {
composition: `
-
- Available
- Selected
-
-
-
-
-
{{ slotProps.item.name }}
-
-
- {{ slotProps.item.category }}
-
-
-
$ {{ slotProps.item.price }}
-
+
+
+ {{ item.name }}
diff --git a/doc/picklist/TemplateDoc.vue b/doc/picklist/TemplateDoc.vue
new file mode 100644
index 000000000..20e8b4990
--- /dev/null
+++ b/doc/picklist/TemplateDoc.vue
@@ -0,0 +1,148 @@
+
+
+ For custom content support define an item template that gets the item instance as a parameter. In addition sourceheader and targetheader slots are provided for further customization.
+
+
+
+ Available
+ Selected
+
+
+
+
+
{{ item.name }}
+
+
+ {{ item.category }}
+
+
+
${{ item.price }}
+
+
+
+
+
+
+
+
diff --git a/pages/orderlist/index.vue b/pages/orderlist/index.vue
index 79677a806..d2b7e92a4 100755
--- a/pages/orderlist/index.vue
+++ b/pages/orderlist/index.vue
@@ -6,6 +6,7 @@
import AccessibilityDoc from '@/doc/orderlist/AccessibilityDoc.vue';
import BasicDoc from '@/doc/orderlist/BasicDoc.vue';
import ImportDoc from '@/doc/orderlist/ImportDoc.vue';
+import TemplateDoc from '@/doc/orderlist/TemplateDoc.vue';
import PTComponent from '@/doc/orderlist/pt/index.vue';
import ThemingDoc from '@/doc/orderlist/theming/index.vue';
@@ -23,6 +24,11 @@ export default {
label: 'Basic',
component: BasicDoc
},
+ {
+ id: 'template',
+ label: 'Template',
+ component: TemplateDoc
+ },
{
id: 'accessibility',
label: 'Accessibility',
diff --git a/pages/picklist/index.vue b/pages/picklist/index.vue
index df41fbf73..509a11991 100755
--- a/pages/picklist/index.vue
+++ b/pages/picklist/index.vue
@@ -6,6 +6,7 @@
import AccessibilityDoc from '@/doc/picklist/AccessibilityDoc.vue';
import BasicDoc from '@/doc/picklist/BasicDoc.vue';
import ImportDoc from '@/doc/picklist/ImportDoc.vue';
+import TemplateDoc from '@/doc/picklist/TemplateDoc.vue';
import PTComponent from '@/doc/picklist/pt/index.vue';
import ThemingDoc from '@/doc/picklist/theming/index.vue';
@@ -23,6 +24,11 @@ export default {
label: 'Basic',
component: BasicDoc
},
+ {
+ id: 'template',
+ label: 'Template',
+ component: TemplateDoc
+ },
{
id: 'accessibility',
label: 'Accessibility',