|
|
|
@ -24,7 +24,7 @@ Components which support rtl direction are listed here, you can toggle the direc
|
|
|
|
|
</a-radio-group> |
|
|
|
|
<a-divider /> |
|
|
|
|
<a-config-provider :direction="state.direction"> |
|
|
|
|
<div class="direction-components"> |
|
|
|
|
<a-space direction="vertical" class="direction-components"> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Cascader example</a-divider> |
|
|
|
@ -48,20 +48,17 @@ Components which support rtl direction are listed here, you can toggle the direc
|
|
|
|
|
</a-cascader> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Switch example</a-divider> |
|
|
|
|
|
|
|
|
|
<a-switch default-checked /> |
|
|
|
|
|
|
|
|
|
<a-switch loading default-checked /> |
|
|
|
|
|
|
|
|
|
<a-switch size="small" loading /> |
|
|
|
|
<a-space> |
|
|
|
|
<a-switch default-checked /> |
|
|
|
|
<a-switch loading default-checked /> |
|
|
|
|
<a-switch size="small" loading /> |
|
|
|
|
</a-space> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Radio Group example</a-divider> |
|
|
|
|
|
|
|
|
|
<a-radio-group default-value="c" button-style="solid"> |
|
|
|
|
<a-radio-button value="a">تهران</a-radio-button> |
|
|
|
|
<a-radio-button value="b" disabled>اصفهان</a-radio-button> |
|
|
|
@ -70,7 +67,6 @@ Components which support rtl direction are listed here, you can toggle the direc
|
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Button example</a-divider> |
|
|
|
@ -124,209 +120,199 @@ Components which support rtl direction are listed here, you can toggle the direc
|
|
|
|
|
</a-tree> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Input (Input Group) example</a-divider> |
|
|
|
|
<a-input-group size="large"> |
|
|
|
|
<a-row :gutter="8"> |
|
|
|
|
<a-col :span="5"> |
|
|
|
|
<a-input default-value="0571" /> |
|
|
|
|
<a-space direction="vertical" style="width: 100%"> |
|
|
|
|
<a-input-group size="large"> |
|
|
|
|
<a-row :gutter="8"> |
|
|
|
|
<a-col :span="5"> |
|
|
|
|
<a-input default-value="0571" /> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="8"> |
|
|
|
|
<a-input default-value="26888888" /> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</a-input-group> |
|
|
|
|
<a-input-group compact> |
|
|
|
|
<a-input style="width: 20%" default-value="0571" /> |
|
|
|
|
<a-input style="width: 30%" default-value="26888888" /> |
|
|
|
|
</a-input-group> |
|
|
|
|
<a-input-group compact> |
|
|
|
|
<a-select default-value="Option1"> |
|
|
|
|
<a-select-option value="Option1">Option1</a-select-option> |
|
|
|
|
<a-select-option value="Option2">Option2</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-input style="width: 50%" default-value="input content" /> |
|
|
|
|
<a-inputNumber /> |
|
|
|
|
</a-input-group> |
|
|
|
|
<a-input-search placeholder="input search text" enter-button="Search" size="large" /> |
|
|
|
|
<div style="margin-bottom: 16px"> |
|
|
|
|
<a-input default-value="mysite"> |
|
|
|
|
<template #selectBefore> |
|
|
|
|
<a-select default-value="Http://" style="width: 90px"> |
|
|
|
|
<a-select-option value="Http://">Http://</a-select-option> |
|
|
|
|
<a-select-option value="Https://">Https://</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</template> |
|
|
|
|
<template #selectAfter> |
|
|
|
|
<a-select default-value=".com" style="width: 80px"> |
|
|
|
|
<a-select-option value=".com">.com</a-select-option> |
|
|
|
|
<a-select-option value=".jp">.jp</a-select-option> |
|
|
|
|
<a-select-option value=".cn">.cn</a-select-option> |
|
|
|
|
<a-select-option value=".org">.org</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</template> |
|
|
|
|
</a-input> |
|
|
|
|
</div> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Select example</a-divider> |
|
|
|
|
<a-space wrap> |
|
|
|
|
<a-select mode="multiple" default-value="مورچه" style="width: 120px"> |
|
|
|
|
<a-select-option value="jack">Jack</a-select-option> |
|
|
|
|
<a-select-option value="مورچه">مورچه</a-select-option> |
|
|
|
|
<a-select-option value="disabled" disabled>Disabled</a-select-option> |
|
|
|
|
<a-select-option value="Yiminghe">yiminghe</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-select default-value="مورچه" style="width: 120px" disabled> |
|
|
|
|
<a-select-option value="مورچه">مورچه</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-select default-value="مورچه" style="width: 120px" loading> |
|
|
|
|
<a-select-option value="مورچه">مورچه</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-select |
|
|
|
|
show-search |
|
|
|
|
style="width: 200px" |
|
|
|
|
placeholder="Select a person" |
|
|
|
|
option-filter-prop="children" |
|
|
|
|
:filter-option=" |
|
|
|
|
(input, option) => |
|
|
|
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
<a-select-option value="jack">Jack</a-select-option> |
|
|
|
|
<a-select-option value="سعید">سعید</a-select-option> |
|
|
|
|
<a-select-option value="tom">Tom</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-space> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="8"> |
|
|
|
|
<a-input default-value="26888888" /> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">TreeSelect example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-tree-select |
|
|
|
|
show-search |
|
|
|
|
style="width: 100%" |
|
|
|
|
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
|
|
|
|
placeholder="Please select" |
|
|
|
|
allow-clear |
|
|
|
|
tree-default-expand-all |
|
|
|
|
:tree-data="treeSelectData" |
|
|
|
|
></a-tree-select> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</a-input-group> |
|
|
|
|
<br /> |
|
|
|
|
<a-input-group compact> |
|
|
|
|
<a-input style="width: 20%" default-value="0571" /> |
|
|
|
|
<a-input style="width: 30%" default-value="26888888" /> |
|
|
|
|
</a-input-group> |
|
|
|
|
<br /> |
|
|
|
|
<a-input-group compact> |
|
|
|
|
<a-select default-value="Option1"> |
|
|
|
|
<a-select-option value="Option1">Option1</a-select-option> |
|
|
|
|
<a-select-option value="Option2">Option2</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-input style="width: 50%" default-value="input content" /> |
|
|
|
|
<a-inputNumber /> |
|
|
|
|
</a-input-group> |
|
|
|
|
<br /> |
|
|
|
|
<a-input-search placeholder="input search text" enter-button="Search" size="large" /> |
|
|
|
|
<br /> |
|
|
|
|
<br /> |
|
|
|
|
<div style="margin-bottom: 16px"> |
|
|
|
|
<a-input default-value="mysite"> |
|
|
|
|
<template #selectBefore> |
|
|
|
|
<a-select default-value="Http://" style="width: 90px"> |
|
|
|
|
<a-select-option value="Http://">Http://</a-select-option> |
|
|
|
|
<a-select-option value="Https://">Https://</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</template> |
|
|
|
|
<template #selectAfter> |
|
|
|
|
<a-select default-value=".com" style="width: 80px"> |
|
|
|
|
<a-select-option value=".com">.com</a-select-option> |
|
|
|
|
<a-select-option value=".jp">.jp</a-select-option> |
|
|
|
|
<a-select-option value=".cn">.cn</a-select-option> |
|
|
|
|
<a-select-option value=".org">.org</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</template> |
|
|
|
|
</a-input> |
|
|
|
|
</div> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Select example</a-divider> |
|
|
|
|
<a-select mode="multiple" default-value="مورچه" style="width: 120px"> |
|
|
|
|
<a-select-option value="jack">Jack</a-select-option> |
|
|
|
|
<a-select-option value="مورچه">مورچه</a-select-option> |
|
|
|
|
<a-select-option value="disabled" disabled>Disabled</a-select-option> |
|
|
|
|
<a-select-option value="Yiminghe">yiminghe</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-select default-value="مورچه" style="width: 120px" disabled> |
|
|
|
|
<a-select-option value="مورچه">مورچه</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-select default-value="مورچه" style="width: 120px" loading> |
|
|
|
|
<a-select-option value="مورچه">مورچه</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
<a-select |
|
|
|
|
show-search |
|
|
|
|
style="width: 200px" |
|
|
|
|
placeholder="Select a person" |
|
|
|
|
option-filter-prop="children" |
|
|
|
|
:filter-option=" |
|
|
|
|
(input, option) => |
|
|
|
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
<a-select-option value="jack">Jack</a-select-option> |
|
|
|
|
<a-select-option value="سعید">سعید</a-select-option> |
|
|
|
|
<a-select-option value="tom">Tom</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">TreeSelect example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-tree-select |
|
|
|
|
show-search |
|
|
|
|
style="width: 100%" |
|
|
|
|
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
|
|
|
|
placeholder="Please select" |
|
|
|
|
allow-clear |
|
|
|
|
tree-default-expand-all |
|
|
|
|
:tree-data="treeSelectData" |
|
|
|
|
></a-tree-select> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Modal example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-button type="primary" @click="showModal">Open Modal</a-button> |
|
|
|
|
<a-modal v-model:open="state.modalVisible" title="پنچره ساده"> |
|
|
|
|
<p>نگاشتههای خود را اینجا قراردهید</p> |
|
|
|
|
<p>نگاشتههای خود را اینجا قراردهید</p> |
|
|
|
|
<p>نگاشتههای خود را اینجا قراردهید</p> |
|
|
|
|
</a-modal> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Steps example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-steps |
|
|
|
|
progress-dot |
|
|
|
|
:current="state.currentStep" |
|
|
|
|
:items="[ |
|
|
|
|
{ |
|
|
|
|
title: 'Finished', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'In Progress', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'Waiting', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
]" |
|
|
|
|
></a-steps> |
|
|
|
|
<br /> |
|
|
|
|
<a-steps |
|
|
|
|
:current="state.currentStep" |
|
|
|
|
:items="[ |
|
|
|
|
{ |
|
|
|
|
title: 'Step 1', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'Step 2', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'Step 3', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
]" |
|
|
|
|
@change="onStepsChange" |
|
|
|
|
></a-steps> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Rate example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-rate v-model:value="rateValue" /> |
|
|
|
|
<br /> |
|
|
|
|
<strong>* Note:</strong> |
|
|
|
|
Half star not implemented in RTL direction. |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Badge example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Modal example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-badge :count="state.badgeCount"> |
|
|
|
|
<a href="#" class="head-example" /> |
|
|
|
|
</a-badge> |
|
|
|
|
<a-button-group> |
|
|
|
|
<a-button @click="declineBadge"> |
|
|
|
|
<MinusOutlined /> |
|
|
|
|
</a-button> |
|
|
|
|
<a-button @click="increaseBadge"> |
|
|
|
|
<PlusOutlined /> |
|
|
|
|
</a-button> |
|
|
|
|
</a-button-group> |
|
|
|
|
<a-button type="primary" @click="showModal">Open Modal</a-button> |
|
|
|
|
<a-modal v-model:open="state.modalVisible" title="پنچره ساده"> |
|
|
|
|
<p>نگاشتههای خود را اینجا قراردهید</p> |
|
|
|
|
<p>نگاشتههای خود را اینجا قراردهید</p> |
|
|
|
|
<p>نگاشتههای خود را اینجا قراردهید</p> |
|
|
|
|
</a-modal> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin-top: 10px"> |
|
|
|
|
<a-badge :dot="state.showBadge"> |
|
|
|
|
<a href="#" class="head-example" /> |
|
|
|
|
</a-badge> |
|
|
|
|
<a-switch :checked="state.showBadge" @change="onChangeBadge" /> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Steps example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-steps |
|
|
|
|
progress-dot |
|
|
|
|
:current="state.currentStep" |
|
|
|
|
:items="[ |
|
|
|
|
{ |
|
|
|
|
title: 'Finished', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'In Progress', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'Waiting', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
]" |
|
|
|
|
></a-steps> |
|
|
|
|
<br /> |
|
|
|
|
<a-steps |
|
|
|
|
:current="state.currentStep" |
|
|
|
|
:items="[ |
|
|
|
|
{ |
|
|
|
|
title: 'Step 1', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'Step 2', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: 'Step 3', |
|
|
|
|
description: 'This is a description.', |
|
|
|
|
}, |
|
|
|
|
]" |
|
|
|
|
@change="onStepsChange" |
|
|
|
|
></a-steps> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Rate example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<a-rate v-model:value="rateValue" /> |
|
|
|
|
<br /> |
|
|
|
|
<strong>* Note:</strong> |
|
|
|
|
Half star not implemented in RTL direction. |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12"> |
|
|
|
|
<a-divider orientation="left">Badge example</a-divider> |
|
|
|
|
<div> |
|
|
|
|
<div> |
|
|
|
|
<a-badge :count="state.badgeCount"> |
|
|
|
|
<a href="#" class="head-example" /> |
|
|
|
|
</a-badge> |
|
|
|
|
<a-button-group> |
|
|
|
|
<a-button @click="declineBadge"> |
|
|
|
|
<MinusOutlined /> |
|
|
|
|
</a-button> |
|
|
|
|
<a-button @click="increaseBadge"> |
|
|
|
|
<PlusOutlined /> |
|
|
|
|
</a-button> |
|
|
|
|
</a-button-group> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin-top: 10px"> |
|
|
|
|
<a-badge :dot="state.showBadge"> |
|
|
|
|
<a href="#" class="head-example" /> |
|
|
|
|
</a-badge> |
|
|
|
|
<a-switch :checked="state.showBadge" @change="onChangeBadge" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</a-space> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
|
|
<br /> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Pagination example</a-divider> |
|
|
|
|
<a-pagination show-size-changer :default-current="3" :total="500" /> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
<br /> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-divider orientation="left">Grid System example</a-divider> |
|
|
|
@ -355,7 +341,7 @@ Components which support rtl direction are listed here, you can toggle the direc
|
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</div> |
|
|
|
|
</a-space> |
|
|
|
|
</a-config-provider> |
|
|
|
|
</template> |
|
|
|
|
<script lang="ts" setup> |
|
|
|
@ -538,6 +524,7 @@ const rateValue = ref(2);
|
|
|
|
|
</script> |
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
.direction-components { |
|
|
|
|
width: 100%; |
|
|
|
|
.button-demo .ant-btn, |
|
|
|
|
.button-demo .ant-btn-group { |
|
|
|
|
margin-right: 8px; |
|
|
|
|