pimelon-ui 0.1.53 → 0.1.55
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
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
:class="$attrs.class"
|
|
10
10
|
>
|
|
11
11
|
<slot name="prefix" v-bind="{ item }" />
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
<slot>
|
|
13
|
+
<div class="truncate">
|
|
14
|
+
{{ item.label }}
|
|
15
|
+
</div>
|
|
16
|
+
</slot>
|
|
15
17
|
<slot name="suffix" v-bind="{ item }" />
|
|
16
18
|
</div>
|
|
17
19
|
<slot v-if="list.options.resizeColumn" name="resizer" v-bind="{ item }">
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
<component
|
|
3
3
|
:is="list.options.showTooltip ? Tooltip : 'div'"
|
|
4
4
|
v-bind="list.options.showTooltip ? { text: label } : {}"
|
|
5
|
-
class="flex items-center space-x-2"
|
|
6
|
-
:class="alignmentMap[align]"
|
|
7
5
|
>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
<div class="flex items-center space-x-2" :class="alignmentMap[align]">
|
|
7
|
+
<slot name="prefix">
|
|
8
|
+
<component
|
|
9
|
+
v-if="column.prefix"
|
|
10
|
+
:is="
|
|
11
|
+
typeof column.prefix === 'function'
|
|
12
|
+
? column.prefix({ row })
|
|
13
|
+
: column.prefix
|
|
14
|
+
"
|
|
15
|
+
/>
|
|
16
|
+
</slot>
|
|
17
|
+
<slot v-bind="{ label }">
|
|
18
|
+
<div class="truncate text-base">
|
|
19
|
+
{{ column?.getLabel ? column.getLabel({ row }) : label }}
|
|
20
|
+
</div>
|
|
21
|
+
</slot>
|
|
22
|
+
<slot name="suffix" />
|
|
23
|
+
</div>
|
|
24
24
|
</component>
|
|
25
25
|
</template>
|
|
26
26
|
<script setup>
|
package/src/components/Tabs.vue
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@change="(idx) => (changedIndex = idx)"
|
|
8
8
|
>
|
|
9
9
|
<TabList
|
|
10
|
-
class="relative flex items-center gap-
|
|
10
|
+
class="relative flex items-center gap-7.5 overflow-x-auto border-b pl-5"
|
|
11
11
|
:class="tablistClass"
|
|
12
12
|
>
|
|
13
13
|
<Tab
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
>
|
|
21
21
|
<slot name="tab" v-bind="{ tab, selected }">
|
|
22
22
|
<button
|
|
23
|
-
class="flex items-center gap-
|
|
23
|
+
class="flex items-center gap-1.5 border-b border-transparent py-3 text-base text-gray-600 duration-300 ease-in-out hover:border-gray-400 hover:text-gray-900"
|
|
24
24
|
:class="{ 'text-gray-900': selected }"
|
|
25
25
|
>
|
|
26
|
-
<component v-if="tab.icon" :is="tab.icon" class="
|
|
26
|
+
<component v-if="tab.icon" :is="tab.icon" class="size-4" />
|
|
27
27
|
{{ tab.label }}
|
|
28
28
|
</button>
|
|
29
29
|
</slot>
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
<script>
|
|
24
24
|
import Dialog from '../Dialog.vue'
|
|
25
25
|
import Button from '../Button.vue'
|
|
26
|
-
import
|
|
26
|
+
import FormControl from '../FormControl.vue'
|
|
27
27
|
|
|
28
28
|
export default {
|
|
29
29
|
name: 'InsertLink',
|
|
30
30
|
props: ['editor'],
|
|
31
|
-
components: { Button,
|
|
31
|
+
components: { Button, FormControl, Dialog },
|
|
32
32
|
data() {
|
|
33
33
|
return {
|
|
34
34
|
setLinkDialog: { url: '', show: false },
|