forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
810 additions
and
762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ | |
"github": { | ||
"autoAlias": false, | ||
"silent": true | ||
} | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<div class="ml-3"> | ||
<p> | ||
<span | ||
v-for="({localeCode, localeName, localeNativeName}, index) in localeNames" | ||
:key="localeCode" | ||
> | ||
{{ index ? ', ' : '' }} <strong>{{ localeCode }}</strong> | ||
- {{ localeName }} {{ localeNativeName ? ` (${localeNativeName})` : '' }} | ||
</span> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import * as locales from 'vuetify/es5/locale' | ||
import ISO6391 from 'iso-639-1' | ||
export default { | ||
name: 'Locales', | ||
computed: { | ||
localeNames () { | ||
const array = Object.keys(locales).map(localeCode => ({ | ||
localeCode, | ||
localeName: ISO6391.getName(localeCode.substr(0, 2)), | ||
localeNativeName: localeCode === 'en' ? '' : ISO6391.getNativeName(localeCode.substr(0, 2)) | ||
})) | ||
array.sort((a, b) => (a.localeCode < b.localeCode ? -1 : (a.localeCode > b.localeCode ? 1 : 0))) | ||
return array | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"header": "# Treeview", | ||
"headerText": "Компонент `v-treeview` полезен для отображения большого количества вложенных данных.", | ||
"examples": { | ||
"usage": { | ||
"desc": "Основной пример" | ||
}, | ||
"fileExplorer": { | ||
"header": "### Scoped slots", | ||
"desc": "Используя scoped slots мы можем создать интуитивно понятный файловый менеджер. Кроме слота `prepend`, есть также один для `label`, и `append` слот." | ||
}, | ||
"directory": { | ||
"header": "### Асинхронные элементы", | ||
"desc": "Вы можете динамически загружать дочерние данные, предоставляя _Promise_ callback для `load-children` prop. Этот callback будет выполнен при первой попытке пользователя расширить элемент у которого есть свойство children, которое является пустым массивом." | ||
}, | ||
"hotspots": { | ||
"header": "### Пользовательские иконки выбора", | ||
"desc": "Настройте **on**, **off** и **indeterminate** иконки для вашего выбираемого дерева. Комбинируйте с другими продвинутыми возможностями, такими как элементы, загруженные через API." | ||
}, | ||
"humanResources": { | ||
"header": "### Поиск директории", | ||
"desc": "Легко фильтруйте ваш treeview используя **search** prop. Вы можете легко применить свою собственную функцию фильтрации (если вам нужна чувствительная к регистру или fuzzy фильтрация) установив **filter** prop. Это работает аналогично как [v-autocomplete](/components/autocompletes) компонент." | ||
} | ||
}, | ||
"props": { | ||
"v-treeview": { | ||
"activatable": "Позволяет пользователю пометить узел как активный, нажав на него", | ||
"active": "Синхронизируемая prop, позволяющая контролировать, какие узлы активны. Массив состоит из `item-key` каждого активного элемента.", | ||
"activeClass": "Класс применяющийся к узлу, когда тот активен", | ||
"customFilter": "Пользовательский фильтр поиска", | ||
"expandIcon": "Иконка, используемая для обозначения возможности открытия узла", | ||
"hoverable": "Применяет класс наведения при наведении мыши на узлы", | ||
"filter": "Пользовательская функция фильтрации элементов. По умолчанию используется поиск без учета регистра по label элемента.", | ||
"indeterminateIcon": "Значок, используемый, когда узел находится в неопределенном состоянии", | ||
"itemChildren": "Свойство у предоставленных `items` которое содержит детей каждого элемента", | ||
"itemKey": "Свойство для поставляемых `items`, используемое для отслеживания состояния узла. Значение этого свойства должно быть уникальным среди всех элементов.", | ||
"itemText": "Свойство для поставляемых `items`, содержащее текст метки", | ||
"items": "Массив элементов, используемых для построения дерева", | ||
"loadChildren": "Функция, используемая при динамической загрузке детей. Если этот prop установлен, то функция будет работать если развернуть элемент, имеющий свойство `item-children`, которое является пустым массивом. Поддерживает возврат Promise.", | ||
"loadingIcon": "Иконка, используемая, когда узел находится в состоянии загрузки", | ||
"multipleActive": "Когда `true`, позволяет пользователю иметь несколько активных узлов одновременно", | ||
"offIcon": "Иконка используется, когда узел не выбран", | ||
"onIcon": "Иконка, используемая при выборе конечного узла или когда полностью выбран узел ветви", | ||
"open": "Синхронизируемая prop которая позволяет контролировать, какие узлы открыты. Массив состоит из `item-key` каждого открытого элемента.", | ||
"openAll": "Когда `true` приведет к открытию всех узлов всех ветвей при mounted компонента", | ||
"openOnClick": "Когда `true` заставит узлы открываться щелчком в любом месте на нем, а не открываться только нажатием на значок расширения. При использовании этого prop с `activatable` вы не сможете пометить узлы с дочерними элементами как активные.", | ||
"returnObject": "Когда `true`, заставит v-model, `active.sync` и `open.sync` возвращать весь объект, а не только ключ", | ||
"search": "Модель поиска для фильтрации результатов", | ||
"selectable": "Будет отображать флажок рядом с каждым узлом, позволяя им быть выбранными", | ||
"selectedColor": "Цвет флажка выбора", | ||
"transition": "Применяет переход, когда узлы открываются и закрываются", | ||
"value": "Позволяет контролировать, какие узлы выбраны. Массив состоит из `item-key` каждого выбранного элемента. Используется с `@input` событием чтобы разрешить `v-model` биндинг." | ||
} | ||
}, | ||
"scopedSlots": { | ||
"v-treeview": { | ||
"append": "Добавляет контент после label", | ||
"label": "Контент для label", | ||
"prepend": "Добавляет контент перед label" | ||
} | ||
}, | ||
"functions": { | ||
"updateAll": "Открывает или закрывает все узлы" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.