added option field view components

This commit is contained in:
Cihan Şentürk 2025-02-27 13:17:27 +03:00 committed by GitHub
parent 811076afcf
commit ec3659ef5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 44 additions and 4 deletions

View File

@ -6,6 +6,10 @@
name="{{ $name }}"
label="{{ trans_choice('general.accounts', 1) }}"
:options="$accounts"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:selected="$selected"
:required="$required"
change="onChangeAccount"
@ -30,6 +34,10 @@
name="{{ $name }}"
label="{{ trans_choice('general.accounts', 1) }}"
:options="$accounts"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:selected="$selected"
:required="$required"
change="onChangeAccount"

View File

@ -11,6 +11,10 @@
:options="$categories"
:selected="$selected"
sort-options="false"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"
@ -38,6 +42,10 @@
:options="$categories"
:selected="$selected"
sort-options="false"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"
@ -65,6 +73,10 @@
:options="$categories"
:selected="$selected"
sort-options="false"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"
@ -89,6 +101,10 @@
:options="$categories"
:selected="$selected"
sort-options="false"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"

View File

@ -17,6 +17,10 @@
:selected="$selected"
change="{{ $change }}"
sort-options="false"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"
@ -30,7 +34,7 @@
<template #option="{option}">
<span class="tax-group flex items-center">
<span class="float-left">
@{{ option.value }}
@{{ option.option.title }}
</span>
<span
@ -68,6 +72,10 @@
:selected="$selected"
change="{{ $change }}"
sort-options="false"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"
@ -81,7 +89,7 @@
<template #option="{option}">
<span class="tax-group flex items-center">
<span class="float-left">
@{{ option.value }}
@{{ option.option.title }}
</span>
<span
@ -119,6 +127,10 @@
:selected="$selected"
change="{{ $change }}"
sort-options="false"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"
@ -132,7 +144,7 @@
<template #option="{option}">
<span class="tax-group flex items-center">
<span class="float-left">
@{{ option.value }}
@{{ option.option.title }}
</span>
<span
@ -167,6 +179,10 @@
change="{{ $change }}"
sort-options="false"
:field="$field"
:option_field="[
'key' => 'id',
'value' => 'title'
]"
:multiple="$multiple"
:group="$group"
@ -180,7 +196,7 @@
<template #option="{option}">
<span class="tax-group flex items-center">
<span class="float-left">
@{{ option.value }}
@{{ option.option.title }}
</span>
<span