classcard-ui 0.2.363 → 0.2.366
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/dist/classcard-ui.common.js +63 -58
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +63 -58
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CButtonLink/CButtonLink.vue +8 -7
- package/src/components/CEditor/CEditor.vue +4 -0
- package/src/stories/CButtonLink.stories.js +1 -1
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span class="
|
|
2
|
+
<span class="relative z-0 inline-flex w-full rounded-md shadow-sm">
|
|
3
3
|
<button
|
|
4
|
+
v-if="image"
|
|
4
5
|
type="button"
|
|
5
|
-
class="-ml-px
|
|
6
|
+
class="focus:outline-none relative -ml-px inline-flex items-center rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
|
|
6
7
|
>
|
|
7
|
-
<img
|
|
8
|
-
class="w-12 h-full"
|
|
9
|
-
:src="image"
|
|
10
|
-
/>
|
|
8
|
+
<img class="h-10 w-10" :src="image" />
|
|
11
9
|
</button>
|
|
12
10
|
<button
|
|
13
11
|
type="button"
|
|
14
|
-
class="
|
|
12
|
+
class="focus:outline-none relative inline-flex w-full items-center justify-between rounded-r-md border border-gray-300 bg-white py-2 pl-4 pr-1 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
|
|
13
|
+
:class="image ? 'rounded-r-md' : 'rounded-md'"
|
|
14
|
+
@click="$emit('action')"
|
|
15
15
|
>
|
|
16
16
|
{{ label }}
|
|
17
17
|
<c-icon type="solid" name="chevron-right" class="h-5 w-5"></c-icon>
|
|
@@ -29,6 +29,7 @@ export default {
|
|
|
29
29
|
},
|
|
30
30
|
image: {
|
|
31
31
|
type: String,
|
|
32
|
+
default: null,
|
|
32
33
|
},
|
|
33
34
|
action: {
|
|
34
35
|
type: Function,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
:value="content"
|
|
10
10
|
:options="editorOption"
|
|
11
11
|
@change="onChange($event)"
|
|
12
|
+
@ready="onReady($event)"
|
|
12
13
|
></quill-editor>
|
|
13
14
|
<p v-if="helpText" class="mt-2 text-sm text-gray-500">
|
|
14
15
|
{{ helpText }}
|
|
@@ -50,6 +51,9 @@ export default {
|
|
|
50
51
|
onChange(params) {
|
|
51
52
|
this.$emit("onEditorChange", params);
|
|
52
53
|
},
|
|
54
|
+
onReady(params) {
|
|
55
|
+
this.$emit("onEditorReady", params);
|
|
56
|
+
},
|
|
53
57
|
},
|
|
54
58
|
computed: {
|
|
55
59
|
editorOption() {
|
|
@@ -20,5 +20,5 @@ export const Default = Template.bind({});
|
|
|
20
20
|
Default.args = {
|
|
21
21
|
isLoading: false,
|
|
22
22
|
label: "Button",
|
|
23
|
-
image:
|
|
23
|
+
image: null,
|
|
24
24
|
};
|