@vc-shell/framework 1.0.91 → 1.0.93
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/CHANGELOG.md +8 -0
- package/dist/framework.mjs +12596 -12594
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +20 -0
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +2 -0
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +10 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +1 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +125 -69
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +122 -40
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/package.json +3 -3
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +8 -8
- package/ui/components/atoms/vc-label/vc-label.vue +9 -1
- package/ui/components/molecules/vc-editor/vc-editor.vue +34 -13
- package/ui/components/organisms/vc-dynamic-property/index.ts +1 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +208 -295
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
v-if="label"
|
|
14
14
|
class="tw-mb-2"
|
|
15
15
|
:required="required"
|
|
16
|
+
:multilanguage="true"
|
|
17
|
+
:current-language="currentLanguage"
|
|
16
18
|
>
|
|
17
19
|
<span>{{ label }}</span>
|
|
18
20
|
<template
|
|
@@ -63,10 +65,13 @@ export interface Props {
|
|
|
63
65
|
tooltip?: string;
|
|
64
66
|
errorMessage?: string;
|
|
65
67
|
assetsFolder: string;
|
|
68
|
+
//languages?: string[];
|
|
69
|
+
currentLanguage?: string;
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
export interface Emits {
|
|
69
73
|
(event: "update:modelValue", value: string | number | Date | null | undefined): void;
|
|
74
|
+
//(event: "update:currentLanguage", value: string): void;
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
const { getAccessToken } = useUser();
|
|
@@ -79,19 +84,27 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
79
84
|
const emit = defineEmits<Emits>();
|
|
80
85
|
|
|
81
86
|
const content = ref();
|
|
82
|
-
const toolbar =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
const toolbar = {
|
|
88
|
+
container: [
|
|
89
|
+
{ header: 1 },
|
|
90
|
+
{ header: 2 },
|
|
91
|
+
"bold",
|
|
92
|
+
"italic",
|
|
93
|
+
"underline",
|
|
94
|
+
"strike",
|
|
95
|
+
"link",
|
|
96
|
+
"image",
|
|
97
|
+
"blockquote",
|
|
98
|
+
{ list: "ordered" },
|
|
99
|
+
{ list: "bullet" },
|
|
100
|
+
//{ language: [props.currentLanguage, ...props.languages.filter((lang) => lang !== props.currentLanguage)] },
|
|
101
|
+
],
|
|
102
|
+
handlers: {
|
|
103
|
+
// language: function (value: string) {
|
|
104
|
+
// emit("update:currentLanguage", value);
|
|
105
|
+
// },
|
|
106
|
+
},
|
|
107
|
+
};
|
|
95
108
|
|
|
96
109
|
const modules = {
|
|
97
110
|
name: "imageUploader",
|
|
@@ -176,4 +189,12 @@ function isQuillEmpty(value: string) {
|
|
|
176
189
|
}
|
|
177
190
|
}
|
|
178
191
|
}
|
|
192
|
+
|
|
193
|
+
.ql-language.ql-picker .ql-picker-label:before {
|
|
194
|
+
padding-right: 18px;
|
|
195
|
+
content: attr(data-value);
|
|
196
|
+
}
|
|
197
|
+
.ql-language.ql-picker .ql-picker-item:before {
|
|
198
|
+
content: attr(data-value);
|
|
199
|
+
}
|
|
179
200
|
</style>
|