@znap/components-vue2 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# @znap/components-vue2
|
|
2
2
|
|
|
3
|
-
### ⚡
|
|
3
|
+
### ⚡ Inicio Rapido
|
|
4
4
|
|
|
5
5
|
Utilizando [pnpm](https://pnpm.io/)
|
|
6
6
|
```bash
|
|
7
|
-
|
|
7
|
+
pnpm install @znap/components-vue2
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Utilizando [npm](https://npmjs.com/)
|
|
11
11
|
```bash
|
|
12
|
-
|
|
12
|
+
npm install @znap/components-vue2
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
No arquivo **main.js** do Vue.
|
|
@@ -18,7 +18,7 @@ No arquivo **main.js** do Vue.
|
|
|
18
18
|
import Vue from "vue";
|
|
19
19
|
import * as ZnapComponents from '@znap/components-vue2';
|
|
20
20
|
|
|
21
|
-
// -- Hands on Table
|
|
21
|
+
// -- Configuraçoes do Hands on Table (Opicional)
|
|
22
22
|
import { registerAllModules } from "handsontable/registry";
|
|
23
23
|
import { registerLanguageDictionary, ptBR } from "handsontable/i18n";
|
|
24
24
|
import numbro from "numbro";
|
|
@@ -28,7 +28,7 @@ numbro.registerLanguage(numbroptBR);
|
|
|
28
28
|
numbro.setLanguage("pt-BR");
|
|
29
29
|
registerAllModules();
|
|
30
30
|
registerLanguageDictionary(ptBR);
|
|
31
|
-
// --
|
|
31
|
+
// -- Fim
|
|
32
32
|
|
|
33
33
|
Vue.use(ZnapComponents.plugin, {
|
|
34
34
|
licenseKey: HOT_TABLE_LICENSE_KEY // CHAVE DE UTILIZAÇAO DO HANDS ON TABLE
|
|
@@ -89,6 +89,8 @@ export default {
|
|
|
89
89
|
endpoint: CrudViewConfigs.generateEndpoint(
|
|
90
90
|
"URL", {} // parametros
|
|
91
91
|
),
|
|
92
|
+
useServerSidePagination?: false, // Habilita a paginaçao do lado do servidor por padrao vem desabilitado. (Se habilitado a busca tambem passa a acontecer do lado do servidor)
|
|
93
|
+
useServerSideSearch?: false, // Habilita busca do lado do servidor por padrao vem desabilitado
|
|
92
94
|
});
|
|
93
95
|
|
|
94
96
|
crudViewConfigs
|
|
@@ -104,6 +106,8 @@ export default {
|
|
|
104
106
|
label: "Grupo empresarial",
|
|
105
107
|
clearable?: true,
|
|
106
108
|
required?: true // Se o valor for true, ele devera ser preenchido e se caso nao for preenchido ira exibir mensagem na tela
|
|
109
|
+
multiple?: false // Se for um v-autocomplete permite selecionar varios items
|
|
110
|
+
range?: false // Se for um date-picker permite selecionar um range de data.
|
|
107
111
|
}, // Props que sera passada para o componente
|
|
108
112
|
dependsOn?: '' // Filtro primario que possui dependencia
|
|
109
113
|
hooks?: {
|
|
@@ -127,6 +131,8 @@ export default {
|
|
|
127
131
|
componentProps: {
|
|
128
132
|
label: "Empresa",
|
|
129
133
|
clearable?: true,
|
|
134
|
+
multiple?: false // Se for um v-autocomplete permite selecionar varios items
|
|
135
|
+
range?: false // Se for um date-picker permite selecionar um range de data.
|
|
130
136
|
}, // Props que sera passada para o componente
|
|
131
137
|
dependsOn?: '' // Filtro secundario que possui dependencia
|
|
132
138
|
hooks?: {
|