@dataloop-ai/components 0.19.114 → 0.19.115
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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="dl-code-editor-wrapper"
|
|
4
|
+
:class="bordered ? `dl-code-editor-wrapper__bordered` : ''"
|
|
4
5
|
:style="cssVars"
|
|
5
6
|
>
|
|
6
7
|
<code-editor
|
|
@@ -62,6 +63,10 @@ export default defineComponent({
|
|
|
62
63
|
type: Boolean as PropType<boolean>,
|
|
63
64
|
default: false
|
|
64
65
|
},
|
|
66
|
+
bordered: {
|
|
67
|
+
type: Boolean as PropType<boolean>,
|
|
68
|
+
default: true
|
|
69
|
+
},
|
|
65
70
|
title: {
|
|
66
71
|
type: String,
|
|
67
72
|
default: null
|
|
@@ -154,10 +159,12 @@ export default defineComponent({
|
|
|
154
159
|
</script>
|
|
155
160
|
<style scoped lang="scss">
|
|
156
161
|
.dl-code-editor-wrapper {
|
|
157
|
-
border: 1px solid var(--dl-color-separator);
|
|
158
|
-
border-radius: 2px;
|
|
159
162
|
width: var(--dl-colde-editor-width, fit-content);
|
|
160
163
|
height: var(--dl-colde-editor-height, fit-content);
|
|
164
|
+
&__bordered {
|
|
165
|
+
border: 1px solid var(--dl-color-separator);
|
|
166
|
+
border-radius: 2px;
|
|
167
|
+
}
|
|
161
168
|
}
|
|
162
169
|
</style>
|
|
163
170
|
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
v-model="readonly"
|
|
9
9
|
left-label="readonly"
|
|
10
10
|
/>
|
|
11
|
+
<dl-switch
|
|
12
|
+
v-model="bordered"
|
|
13
|
+
left-label="bordered"
|
|
14
|
+
/>
|
|
11
15
|
<dl-code-editor
|
|
12
16
|
v-model="codeEditorValue"
|
|
13
17
|
width="45vw"
|
|
@@ -15,6 +19,7 @@
|
|
|
15
19
|
:language="language"
|
|
16
20
|
:theme="theme"
|
|
17
21
|
:readonly="readonly"
|
|
22
|
+
:bordered="bordered"
|
|
18
23
|
:options="options"
|
|
19
24
|
/>
|
|
20
25
|
</div>
|
|
@@ -35,6 +40,7 @@ export default defineComponent({
|
|
|
35
40
|
setup() {
|
|
36
41
|
const readonly = ref(false)
|
|
37
42
|
const lines = ref(false)
|
|
43
|
+
const bordered = ref(true)
|
|
38
44
|
|
|
39
45
|
const codeEditorValue = ref(
|
|
40
46
|
`import getopt, sys, urllib, time
|
|
@@ -198,6 +204,7 @@ if __name__ == "__main__":
|
|
|
198
204
|
language,
|
|
199
205
|
theme,
|
|
200
206
|
readonly,
|
|
207
|
+
bordered,
|
|
201
208
|
options
|
|
202
209
|
}
|
|
203
210
|
}
|