@dataloop-ai/components 0.17.101 → 0.17.102
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
|
@@ -22,27 +22,39 @@
|
|
|
22
22
|
label="Boolean v-model"
|
|
23
23
|
@update:model-value="logValue"
|
|
24
24
|
/>
|
|
25
|
+
<dl-checkbox
|
|
26
|
+
v-model="disabledValue"
|
|
27
|
+
disabled
|
|
28
|
+
@update:model-value="logValue"
|
|
29
|
+
>
|
|
30
|
+
Disabled with tooltip
|
|
31
|
+
<dl-tooltip>I am a tooltip</dl-tooltip>
|
|
32
|
+
</dl-checkbox>
|
|
25
33
|
</div>
|
|
26
34
|
</template>
|
|
27
35
|
|
|
28
36
|
<script lang="ts">
|
|
29
37
|
import { defineComponent, ref } from 'vue-demi'
|
|
30
38
|
import { DlCheckbox } from '../components'
|
|
39
|
+
import DlTooltip from '../components/essential/DlTooltip/DlTooltip.vue'
|
|
31
40
|
export default defineComponent({
|
|
32
41
|
name: 'DlCheckboxDemo',
|
|
33
42
|
components: {
|
|
34
|
-
DlCheckbox
|
|
43
|
+
DlCheckbox,
|
|
44
|
+
DlTooltip
|
|
35
45
|
},
|
|
36
46
|
setup() {
|
|
37
47
|
const logValue = (newValue: any) => console.log('New value:', newValue)
|
|
38
48
|
const switchValue = ref<number[]>([1, 3])
|
|
39
49
|
const booleanValue = ref(true)
|
|
40
50
|
const customValueCheck = ref('maybe')
|
|
51
|
+
const disabledValue = ref(false)
|
|
41
52
|
|
|
42
53
|
return {
|
|
43
54
|
switchValue,
|
|
44
55
|
booleanValue,
|
|
45
56
|
customValueCheck,
|
|
57
|
+
disabledValue,
|
|
46
58
|
logValue
|
|
47
59
|
}
|
|
48
60
|
}
|