@yoooloo42/joker 1.0.60 → 1.0.61
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/dist/bundle.css +0 -1306
- package/dist/index.cjs.js +14 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22631,7 +22631,6 @@ const images = reactive({
|
|
|
22631
22631
|
});
|
|
22632
22632
|
|
|
22633
22633
|
const richtextProps = ref({
|
|
22634
|
-
value: props.dataBox.fieldsValue[props.item.fieldName],
|
|
22635
22634
|
uploadUrl: props.dataBox.upload
|
|
22636
22635
|
});
|
|
22637
22636
|
|
|
@@ -23056,7 +23055,11 @@ return (_ctx, _cache) => {
|
|
|
23056
23055
|
key: 15,
|
|
23057
23056
|
style: normalizeStyle(style.richtext(__props.item, __props.myProps))
|
|
23058
23057
|
}, [
|
|
23059
|
-
createVNode(_component_ly0Richtext, {
|
|
23058
|
+
createVNode(_component_ly0Richtext, {
|
|
23059
|
+
modelValue: __props.dataBox.fieldsValue[__props.item.fieldName],
|
|
23060
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((__props.dataBox.fieldsValue[__props.item.fieldName]) = $event)),
|
|
23061
|
+
myProps: richtextProps.value
|
|
23062
|
+
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23060
23063
|
], 4 /* STYLE */))
|
|
23061
23064
|
: createCommentVNode("v-if", true),
|
|
23062
23065
|
createCommentVNode(" 富文本show "),
|
|
@@ -40678,19 +40681,24 @@ const QuillEditor = defineComponent({
|
|
|
40678
40681
|
});
|
|
40679
40682
|
|
|
40680
40683
|
const _hoisted_1$c = { class: "rich-text-editor-container" };
|
|
40684
|
+
/* 以下quill富文本组件的样式库需要在宿主项目的main.js中引入
|
|
40685
|
+
import '@vueup/vue-quill/dist/vue-quill.core.css'
|
|
40686
|
+
import '@vueup/vue-quill/dist/vue-quill.snow.css' // snow主题
|
|
40687
|
+
import '@vueup/vue-quill/dist/vue-quill.bubble.css'
|
|
40688
|
+
*/
|
|
40681
40689
|
|
|
40682
40690
|
|
|
40683
40691
|
var script$c = {
|
|
40684
40692
|
__name: 'index',
|
|
40685
40693
|
props: ["myProps"],
|
|
40686
|
-
emits: ['update:
|
|
40694
|
+
emits: ['update:modelValue'],
|
|
40687
40695
|
setup(__props, { emit: __emit }) {
|
|
40688
40696
|
|
|
40689
40697
|
const props = __props;
|
|
40690
40698
|
const emit = __emit;
|
|
40691
40699
|
|
|
40692
40700
|
// 富文本的值
|
|
40693
|
-
|
|
40701
|
+
const modelValue = ref('');
|
|
40694
40702
|
// 文件上传地址
|
|
40695
40703
|
const uploadUrl = ref(props.myProps.uploadUrl ? props.myProps.uploadUrl : request.ly0.upload);
|
|
40696
40704
|
// 指定上传文件的参数名称(Field Name)
|
|
@@ -40794,7 +40802,7 @@ const editorOptions = computed(() => {
|
|
|
40794
40802
|
|
|
40795
40803
|
// 处理富文本内容更新,同步到 v-model
|
|
40796
40804
|
const handleContentUpdate = (content) => {
|
|
40797
|
-
emit('update:
|
|
40805
|
+
emit('update:modelValue', content);
|
|
40798
40806
|
};
|
|
40799
40807
|
|
|
40800
40808
|
return (_ctx, _cache) => {
|
|
@@ -40802,7 +40810,7 @@ return (_ctx, _cache) => {
|
|
|
40802
40810
|
createVNode(unref(QuillEditor), {
|
|
40803
40811
|
ref_key: "quillEditor",
|
|
40804
40812
|
ref: quillEditor,
|
|
40805
|
-
content:
|
|
40813
|
+
content: modelValue.value,
|
|
40806
40814
|
options: editorOptions.value,
|
|
40807
40815
|
theme: theme.value,
|
|
40808
40816
|
contentType: "html",
|