matrix_components 2.0.304 → 2.0.305
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/README.md +8 -0
- package/dist/ComponentDemo/DialogDemo.vue +210 -0
- package/dist/ComponentDemo/ExampleFormConfig.js +270 -0
- package/dist/ComponentDemo/ExcelDemo.vue +263 -0
- package/dist/ComponentDemo/FormDemo.vue +400 -0
- package/dist/ComponentDemo/OfficeDemo.vue +189 -0
- package/dist/ComponentDemo/PdfDemo.vue +207 -0
- package/dist/ComponentDemo/SaturationLineDemo.vue +155 -0
- package/dist/ComponentDemo/SimpleFormConfig.json +97 -0
- package/dist/ComponentDemo/Test.vue +79 -0
- package/dist/ComponentDemo/TestFormConfig.js +129 -0
- package/dist/ComponentDemo/VideoDemo.vue +264 -0
- package/dist/ComponentDemo/WordDemo.vue +191 -0
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +21 -9
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -47183,13 +47183,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
47183
47183
|
},
|
|
47184
47184
|
setup(__props) {
|
|
47185
47185
|
useCssVars((_ctx) => ({
|
|
47186
|
-
"
|
|
47187
|
-
"
|
|
47188
|
-
"
|
|
47189
|
-
"
|
|
47190
|
-
"
|
|
47191
|
-
"
|
|
47192
|
-
"
|
|
47186
|
+
"03d1e268": __props.modalColor,
|
|
47187
|
+
"66b60ff0": _height.value,
|
|
47188
|
+
"82142824": dialogPosition.value.left,
|
|
47189
|
+
"6941dc8e": dialogPosition.value.top,
|
|
47190
|
+
"31dbe626": tbPadding.value,
|
|
47191
|
+
"79fd3a56": lrPadding.value,
|
|
47192
|
+
"212479e5": _centerHeight.value
|
|
47193
47193
|
}));
|
|
47194
47194
|
const asyncDom = computed(() => {
|
|
47195
47195
|
var _a2;
|
|
@@ -47221,6 +47221,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
47221
47221
|
const props = __props;
|
|
47222
47222
|
const componentRef = ref$1(null);
|
|
47223
47223
|
const currentOption = reactive({ ...props.option });
|
|
47224
|
+
const currentTitle = ref$1(props.title);
|
|
47224
47225
|
const currentWidth = ref$1(props.width);
|
|
47225
47226
|
const currentHeight = ref$1(props.height);
|
|
47226
47227
|
const currentX = ref$1(props.x);
|
|
@@ -47311,11 +47312,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
47311
47312
|
},
|
|
47312
47313
|
{ deep: true }
|
|
47313
47314
|
);
|
|
47315
|
+
watch(
|
|
47316
|
+
() => props.title,
|
|
47317
|
+
(newVal) => {
|
|
47318
|
+
currentTitle.value = newVal;
|
|
47319
|
+
},
|
|
47320
|
+
{ immediate: true }
|
|
47321
|
+
);
|
|
47314
47322
|
onMounted(() => {
|
|
47315
47323
|
if (props.dialogInstance) {
|
|
47316
47324
|
const instance = props.dialogInstance;
|
|
47317
47325
|
instance.updateOption = (newOption) => {
|
|
47318
|
-
|
|
47326
|
+
if (newOption.title !== void 0) {
|
|
47327
|
+
currentTitle.value = newOption.title;
|
|
47328
|
+
}
|
|
47329
|
+
const { title, ...otherOptions } = newOption;
|
|
47330
|
+
Object.assign(currentOption, otherOptions);
|
|
47319
47331
|
};
|
|
47320
47332
|
instance.close = () => {
|
|
47321
47333
|
closeDialog();
|
|
@@ -47453,7 +47465,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
47453
47465
|
...props.headerEvents,
|
|
47454
47466
|
close: closeDialog
|
|
47455
47467
|
})), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
47456
|
-
createTextVNode(toDisplayString(
|
|
47468
|
+
createTextVNode(toDisplayString(currentTitle.value), 1)
|
|
47457
47469
|
], 64))
|
|
47458
47470
|
]),
|
|
47459
47471
|
createElementVNode("div", _hoisted_4$1, [
|