@yoooloo42/joker 1.0.60 → 1.0.62
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 +20 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +21 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22423,14 +22423,10 @@ var script$h = {
|
|
|
22423
22423
|
|
|
22424
22424
|
const props = __props;
|
|
22425
22425
|
|
|
22426
|
-
const style = {
|
|
22427
|
-
box:
|
|
22428
|
-
|
|
22429
|
-
|
|
22430
|
-
label: vue.computed(()=>{
|
|
22431
|
-
return styleModule.label.label(props.item)
|
|
22432
|
-
}),
|
|
22433
|
-
};
|
|
22426
|
+
const style = vue.ref({
|
|
22427
|
+
box: styleModule.label.box(props.item),
|
|
22428
|
+
label: styleModule.label.label(props.item),
|
|
22429
|
+
});
|
|
22434
22430
|
|
|
22435
22431
|
const hdlClick = () => {
|
|
22436
22432
|
if(props.item.hdlLabelClick){
|
|
@@ -22442,11 +22438,11 @@ return (_ctx, _cache) => {
|
|
|
22442
22438
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
22443
22439
|
vue.createCommentVNode(" label-box "),
|
|
22444
22440
|
vue.createElementVNode("div", {
|
|
22445
|
-
style: vue.normalizeStyle(style.box),
|
|
22441
|
+
style: vue.normalizeStyle(style.value.box),
|
|
22446
22442
|
onClick: hdlClick
|
|
22447
22443
|
}, [
|
|
22448
22444
|
vue.createElementVNode("span", {
|
|
22449
|
-
style: vue.normalizeStyle(style.label)
|
|
22445
|
+
style: vue.normalizeStyle(style.value.label)
|
|
22450
22446
|
}, vue.toDisplayString(__props.item.label), 5 /* TEXT, STYLE */)
|
|
22451
22447
|
], 4 /* STYLE */)
|
|
22452
22448
|
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
@@ -22635,7 +22631,6 @@ const images = vue.reactive({
|
|
|
22635
22631
|
});
|
|
22636
22632
|
|
|
22637
22633
|
const richtextProps = vue.ref({
|
|
22638
|
-
value: props.dataBox.fieldsValue[props.item.fieldName],
|
|
22639
22634
|
uploadUrl: props.dataBox.upload
|
|
22640
22635
|
});
|
|
22641
22636
|
|
|
@@ -23060,7 +23055,11 @@ return (_ctx, _cache) => {
|
|
|
23060
23055
|
key: 15,
|
|
23061
23056
|
style: vue.normalizeStyle(style.richtext(__props.item, __props.myProps))
|
|
23062
23057
|
}, [
|
|
23063
|
-
vue.createVNode(_component_ly0Richtext, {
|
|
23058
|
+
vue.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"])
|
|
23064
23063
|
], 4 /* STYLE */))
|
|
23065
23064
|
: vue.createCommentVNode("v-if", true),
|
|
23066
23065
|
vue.createCommentVNode(" 富文本show "),
|
|
@@ -40682,19 +40681,24 @@ const QuillEditor = vue.defineComponent({
|
|
|
40682
40681
|
});
|
|
40683
40682
|
|
|
40684
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
|
+
*/
|
|
40685
40689
|
|
|
40686
40690
|
|
|
40687
40691
|
var script$c = {
|
|
40688
40692
|
__name: 'index',
|
|
40689
40693
|
props: ["myProps"],
|
|
40690
|
-
emits: ['update:
|
|
40694
|
+
emits: ['update:modelValue'],
|
|
40691
40695
|
setup(__props, { emit: __emit }) {
|
|
40692
40696
|
|
|
40693
40697
|
const props = __props;
|
|
40694
40698
|
const emit = __emit;
|
|
40695
40699
|
|
|
40696
40700
|
// 富文本的值
|
|
40697
|
-
|
|
40701
|
+
const modelValue = vue.ref('');
|
|
40698
40702
|
// 文件上传地址
|
|
40699
40703
|
const uploadUrl = vue.ref(props.myProps.uploadUrl ? props.myProps.uploadUrl : request.ly0.upload);
|
|
40700
40704
|
// 指定上传文件的参数名称(Field Name)
|
|
@@ -40798,7 +40802,7 @@ const editorOptions = vue.computed(() => {
|
|
|
40798
40802
|
|
|
40799
40803
|
// 处理富文本内容更新,同步到 v-model
|
|
40800
40804
|
const handleContentUpdate = (content) => {
|
|
40801
|
-
emit('update:
|
|
40805
|
+
emit('update:modelValue', content);
|
|
40802
40806
|
};
|
|
40803
40807
|
|
|
40804
40808
|
return (_ctx, _cache) => {
|
|
@@ -40806,7 +40810,7 @@ return (_ctx, _cache) => {
|
|
|
40806
40810
|
vue.createVNode(vue.unref(QuillEditor), {
|
|
40807
40811
|
ref_key: "quillEditor",
|
|
40808
40812
|
ref: quillEditor,
|
|
40809
|
-
content:
|
|
40813
|
+
content: modelValue.value,
|
|
40810
40814
|
options: editorOptions.value,
|
|
40811
40815
|
theme: theme.value,
|
|
40812
40816
|
contentType: "html",
|