@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/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useRouter } from 'vue-router';
2
- import { computed, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, reactive, ref, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1, unref } from 'vue';
2
+ import { ref, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, reactive, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1, unref } from 'vue';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
5
5
  m.forEach(function (e) {
@@ -22419,14 +22419,10 @@ var script$h = {
22419
22419
 
22420
22420
  const props = __props;
22421
22421
 
22422
- const style = {
22423
- box: computed(()=>{
22424
- return styleModule.label.box(props.item)
22425
- }),
22426
- label: computed(()=>{
22427
- return styleModule.label.label(props.item)
22428
- }),
22429
- };
22422
+ const style = ref({
22423
+ box: styleModule.label.box(props.item),
22424
+ label: styleModule.label.label(props.item),
22425
+ });
22430
22426
 
22431
22427
  const hdlClick = () => {
22432
22428
  if(props.item.hdlLabelClick){
@@ -22438,11 +22434,11 @@ return (_ctx, _cache) => {
22438
22434
  return (openBlock(), createElementBlock(Fragment, null, [
22439
22435
  createCommentVNode(" label-box "),
22440
22436
  createElementVNode("div", {
22441
- style: normalizeStyle(style.box),
22437
+ style: normalizeStyle(style.value.box),
22442
22438
  onClick: hdlClick
22443
22439
  }, [
22444
22440
  createElementVNode("span", {
22445
- style: normalizeStyle(style.label)
22441
+ style: normalizeStyle(style.value.label)
22446
22442
  }, toDisplayString(__props.item.label), 5 /* TEXT, STYLE */)
22447
22443
  ], 4 /* STYLE */)
22448
22444
  ], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
@@ -22631,7 +22627,6 @@ const images = reactive({
22631
22627
  });
22632
22628
 
22633
22629
  const richtextProps = ref({
22634
- value: props.dataBox.fieldsValue[props.item.fieldName],
22635
22630
  uploadUrl: props.dataBox.upload
22636
22631
  });
22637
22632
 
@@ -23056,7 +23051,11 @@ return (_ctx, _cache) => {
23056
23051
  key: 15,
23057
23052
  style: normalizeStyle(style.richtext(__props.item, __props.myProps))
23058
23053
  }, [
23059
- createVNode(_component_ly0Richtext, { myProps: richtextProps.value }, null, 8 /* PROPS */, ["myProps"])
23054
+ createVNode(_component_ly0Richtext, {
23055
+ modelValue: __props.dataBox.fieldsValue[__props.item.fieldName],
23056
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((__props.dataBox.fieldsValue[__props.item.fieldName]) = $event)),
23057
+ myProps: richtextProps.value
23058
+ }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23060
23059
  ], 4 /* STYLE */))
23061
23060
  : createCommentVNode("v-if", true),
23062
23061
  createCommentVNode(" 富文本show "),
@@ -40678,19 +40677,24 @@ const QuillEditor = defineComponent({
40678
40677
  });
40679
40678
 
40680
40679
  const _hoisted_1$c = { class: "rich-text-editor-container" };
40680
+ /* 以下quill富文本组件的样式库需要在宿主项目的main.js中引入
40681
+ import '@vueup/vue-quill/dist/vue-quill.core.css'
40682
+ import '@vueup/vue-quill/dist/vue-quill.snow.css' // snow主题
40683
+ import '@vueup/vue-quill/dist/vue-quill.bubble.css'
40684
+ */
40681
40685
 
40682
40686
 
40683
40687
  var script$c = {
40684
40688
  __name: 'index',
40685
40689
  props: ["myProps"],
40686
- emits: ['update:myProps.value'],
40690
+ emits: ['update:modelValue'],
40687
40691
  setup(__props, { emit: __emit }) {
40688
40692
 
40689
40693
  const props = __props;
40690
40694
  const emit = __emit;
40691
40695
 
40692
40696
  // 富文本的值
40693
- // myProps.value
40697
+ const modelValue = ref('');
40694
40698
  // 文件上传地址
40695
40699
  const uploadUrl = ref(props.myProps.uploadUrl ? props.myProps.uploadUrl : request.ly0.upload);
40696
40700
  // 指定上传文件的参数名称(Field Name)
@@ -40794,7 +40798,7 @@ const editorOptions = computed(() => {
40794
40798
 
40795
40799
  // 处理富文本内容更新,同步到 v-model
40796
40800
  const handleContentUpdate = (content) => {
40797
- emit('update:myProps.value', content);
40801
+ emit('update:modelValue', content);
40798
40802
  };
40799
40803
 
40800
40804
  return (_ctx, _cache) => {
@@ -40802,7 +40806,7 @@ return (_ctx, _cache) => {
40802
40806
  createVNode(unref(QuillEditor), {
40803
40807
  ref_key: "quillEditor",
40804
40808
  ref: quillEditor,
40805
- content: __props.myProps.value,
40809
+ content: modelValue.value,
40806
40810
  options: editorOptions.value,
40807
40811
  theme: theme.value,
40808
40812
  contentType: "html",