@vipl520/dk-ui 1.0.55 → 1.0.57

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -5689,7 +5689,7 @@
5689
5689
  const height = vue.computed(() => {
5690
5690
  if (props.height === "auto") {
5691
5691
  const h = width.value / 1.8;
5692
- return h > 300 ? 300 : h;
5692
+ return h > 200 ? 200 : h;
5693
5693
  } else {
5694
5694
  return props.height;
5695
5695
  }
@@ -27151,12 +27151,20 @@
27151
27151
  emits: ["submit"],
27152
27152
  setup(__props, { emit }) {
27153
27153
  const props = __props;
27154
+ const urlInputData = vue.inject("urlInputData", []);
27154
27155
  const _urlData = vue.computed(() => {
27155
27156
  console.log("urlData", props.urlData);
27156
27157
  if (props.urlData?.length > 0) {
27157
27158
  return props.urlData;
27158
27159
  } else {
27159
- return vue.inject("urlInputData", []);
27160
+ return urlInputData.urlData;
27161
+ }
27162
+ });
27163
+ const _jumpMinApp = vue.computed(() => {
27164
+ if (urlInputData.jumpMinApp !== void 0) {
27165
+ return urlInputData.jumpMinApp;
27166
+ } else {
27167
+ return props.jumpMinApp;
27160
27168
  }
27161
27169
  });
27162
27170
  const minapp = vue.reactive({
@@ -27292,7 +27300,7 @@
27292
27300
  vue.createVNode(_component_el_tab_pane, { label: "\u81EA\u5B9A\u4E49\u94FE\u63A5" }, {
27293
27301
  default: vue.withCtx(() => [
27294
27302
  vue.createElementVNode("div", _hoisted_12, [
27295
- __props.jumpMinApp ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
27303
+ _jumpMinApp.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
27296
27304
  vue.createVNode(_component_el_radio_group, {
27297
27305
  modelValue: urlType.value,
27298
27306
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => urlType.value = $event),
@@ -27428,16 +27436,25 @@
27428
27436
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
27429
27437
  ...__default__,
27430
27438
  props: urlInputProps,
27431
- emits: ["update:modelValue"],
27439
+ emits: ["input", "update:modelValue", "change"],
27432
27440
  setup(__props, { emit }) {
27433
27441
  const props = __props;
27434
27442
  const show = vue.ref(false);
27435
27443
  const url = vue.ref(props.modelValue);
27436
27444
  const updateUrl = (value) => {
27445
+ console.log("url", url);
27437
27446
  url.value = value;
27438
27447
  emit("update:modelValue", value);
27439
27448
  show.value = false;
27440
27449
  };
27450
+ vue.watch(
27451
+ () => url.value,
27452
+ (val) => {
27453
+ emit("update:modelValue", val);
27454
+ emit("input", val);
27455
+ emit("change", val);
27456
+ }
27457
+ );
27441
27458
  return (_ctx, _cache) => {
27442
27459
  const _component_el_button = vue.resolveComponent("el-button");
27443
27460
  const _component_el_input = vue.resolveComponent("el-input");