@eturnity/eturnity_reusable_components 1.2.41-3d-master.2 → 1.2.41-3d-master.3
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/package.json
CHANGED
package/src/App.vue
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
<template>
|
2
2
|
<ThemeProvider :theme="getTheme()" :style="{ height: '100%' }">
|
3
3
|
<page-container>
|
4
|
-
|
5
|
-
|
4
|
+
<br />
|
5
|
+
|
6
|
+
|
6
7
|
<input-number
|
7
8
|
:value="value"
|
8
9
|
:minNumber="0"
|
@@ -87,10 +88,31 @@
|
|
87
88
|
>
|
88
89
|
</template>
|
89
90
|
</Select>
|
91
|
+
<Select
|
92
|
+
:value="value"
|
93
|
+
selectWidth="100%"
|
94
|
+
optionWidth="50%"
|
95
|
+
label="that is a label"
|
96
|
+
alignItems="vertical"
|
97
|
+
colorMode="dark"
|
98
|
+
@input-change="value = $event"
|
99
|
+
@search-change="searchValue = $event"
|
100
|
+
>
|
101
|
+
<template #selector="{ selectedValue }">
|
102
|
+
value selected: {{ selectedValue }}
|
103
|
+
</template>
|
104
|
+
<template #dropdown>
|
105
|
+
<Option
|
106
|
+
v-for="opt in filteredOptionList"
|
107
|
+
:key="opt.id"
|
108
|
+
:value="opt.val"
|
109
|
+
>{{ opt.lookFor }}</Option
|
110
|
+
>
|
111
|
+
</template>
|
112
|
+
</Select>
|
90
113
|
{{ filteredOptionList }}
|
91
|
-
|
92
|
-
|
93
|
-
<!-- <iconCollection /> -->
|
114
|
+
|
115
|
+
<iconCollection />
|
94
116
|
</page-container>
|
95
117
|
</ThemeProvider>
|
96
118
|
</template>
|
@@ -103,8 +125,7 @@ import InputNumber from '@/components/inputs/inputNumber'
|
|
103
125
|
import Select from '@/components/inputs/select'
|
104
126
|
import SwitchField from '@/components/inputs/switchField'
|
105
127
|
import Option from '@/components/inputs/select/option'
|
106
|
-
|
107
|
-
// import iconCollection from '@/components/icon/iconCollection'
|
128
|
+
import iconCollection from '@/components/icon/iconCollection'
|
108
129
|
// import TableDropdown from "@/components/tableDropdown"
|
109
130
|
|
110
131
|
const PageContainer = styled.div`
|
@@ -123,11 +144,10 @@ export default {
|
|
123
144
|
ThemeProvider,
|
124
145
|
PageContainer,
|
125
146
|
InputNumber,
|
126
|
-
// Modal,
|
127
147
|
Option,
|
128
148
|
Select,
|
129
149
|
SwitchField,
|
130
|
-
|
150
|
+
iconCollection
|
131
151
|
},
|
132
152
|
data() {
|
133
153
|
return {
|
@@ -44,7 +44,7 @@
|
|
44
44
|
<div v-else>
|
45
45
|
<slot name="selector" :selectedValue="selectedValue"></slot>
|
46
46
|
</div>
|
47
|
-
<Caret :isUp="isDropdownOpen"
|
47
|
+
<Caret :isUp="isDropdownOpen" >
|
48
48
|
<icon name="arrow_up" size="12px" :color="caretColor || colorMode=='dark'?'white':'transparentBlack1'"/>
|
49
49
|
</Caret>
|
50
50
|
</selectButton>
|
@@ -340,6 +340,7 @@ const InputWrapper = styled('div', inputAttrs)`
|
|
340
340
|
}))
|
341
341
|
},
|
342
342
|
clickOutside(event) {
|
343
|
+
console.log("click outside",event)
|
343
344
|
if (this.$el==event.target || this.$el.contains(event.target)) {
|
344
345
|
return
|
345
346
|
}
|