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