diry 4 дней назад
Родитель
Сommit
b8c0782543
5 измененных файлов с 266 добавлено и 310 удалено
  1. 0 0
      lib/config.json
  2. 0 0
      lib/css/style.css
  3. 21 20
      lib/js/SDrawer.js
  4. 1 0
      lib/js/SDrawer2.js
  5. 244 290
      lib/js/index2.js

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
lib/config.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
lib/css/style.css


+ 21 - 20
lib/js/SDrawer.js

@@ -1,4 +1,4 @@
-import { ref as n, watch as b, watchEffect as g, openBlock as S, createBlock as C, withCtx as a, createElementVNode as c, renderSlot as m, createVNode as s, createTextVNode as u, toDisplayString as f } from "vue";
+import { ref as i, watch as y, watchEffect as b, openBlock as S, createBlock as C, withCtx as a, createElementVNode as c, renderSlot as m, createVNode as n, createTextVNode as u, toDisplayString as f } from "vue";
 import { n as N, B as $ } from "./index2.js";
 import { n as N, B as $ } from "./index2.js";
 import { _ as k } from "./index8.js";
 import { _ as k } from "./index8.js";
 import { S as B } from "./index9.js";
 import { S as B } from "./index9.js";
@@ -32,24 +32,24 @@ const D = { class: "s-drawer-body" }, x = { class: "s-drawer-footer" }, z = {
     }
     }
   },
   },
   emits: ["update:value", "confirm"],
   emits: ["update:value", "confirm"],
-  setup(o, { emit: p }) {
-    const l = p, t = o, i = n(t.value);
-    b(
-      () => t.value,
+  setup(t, { emit: p }) {
+    const l = p, o = t, s = i(o.value);
+    y(
+      () => o.value,
       (e) => {
       (e) => {
-        i.value = e;
+        s.value = e;
       },
       },
       { immediate: !0 }
       { immediate: !0 }
     );
     );
-    const _ = n(t.mode), h = n(8);
-    g(() => {
+    const h = i(o.mode), _ = i(8);
+    b(() => {
       const e = {
       const e = {
         left: "",
         left: "",
         right: "",
         right: "",
         top: "",
         top: "",
         bottom: ""
         bottom: ""
       };
       };
-      Object.keys(e).includes(t.mode) || (console.warn(`当前设置mode【${t.mode}】不在【${e}】中,已默认为【right】`), _.value = "right");
+      Object.keys(e).includes(o.mode) || (console.warn(`当前设置mode【${o.mode}】不在【${e}】中,已默认为【right】`), h.value = "right");
     });
     });
     const r = () => {
     const r = () => {
       l("update:value", !1);
       l("update:value", !1);
@@ -57,13 +57,14 @@ const D = { class: "s-drawer-body" }, x = { class: "s-drawer-footer" }, z = {
       l("update:value", !1), l("confirm");
       l("update:value", !1), l("confirm");
     };
     };
     return (e, V) => {
     return (e, V) => {
-      const d = $, w = B, y = k;
-      return S(), C(y, {
+      const d = $, w = B, g = k;
+      return S(), C(g, {
         rootClassName: "s-drawer-wrap",
         rootClassName: "s-drawer-wrap",
-        title: o.title,
-        placement: o.mode,
-        width: o.width,
-        visible: i.value,
+        title: t.title,
+        placement: t.mode,
+        width: t.width,
+        height: t.height,
+        visible: s.value,
         onClose: r,
         onClose: r,
         bodyStyle: {
         bodyStyle: {
           padding: 0,
           padding: 0,
@@ -76,16 +77,16 @@ const D = { class: "s-drawer-body" }, x = { class: "s-drawer-footer" }, z = {
             m(e.$slots, "default", {}, void 0, !0)
             m(e.$slots, "default", {}, void 0, !0)
           ]),
           ]),
           c("div", x, [
           c("div", x, [
-            s(w, { size: h.value }, {
+            n(w, { size: _.value }, {
               default: a(() => [
               default: a(() => [
                 m(e.$slots, "footer", {}, () => [
                 m(e.$slots, "footer", {}, () => [
-                  s(d, { onClick: r }, {
+                  n(d, { onClick: r }, {
                     default: a(() => [
                     default: a(() => [
                       u(f(e.$l("取消")), 1)
                       u(f(e.$l("取消")), 1)
                     ]),
                     ]),
                     _: 1
                     _: 1
                   }),
                   }),
-                  s(d, {
+                  n(d, {
                     type: "primary",
                     type: "primary",
                     onClick: v
                     onClick: v
                   }, {
                   }, {
@@ -101,10 +102,10 @@ const D = { class: "s-drawer-body" }, x = { class: "s-drawer-footer" }, z = {
           ])
           ])
         ]),
         ]),
         _: 3
         _: 3
-      }, 8, ["title", "placement", "width", "visible"]);
+      }, 8, ["title", "placement", "width", "height", "visible"]);
     };
     };
   }
   }
-}, T = /* @__PURE__ */ N(z, [["__scopeId", "data-v-61d4308e"]]);
+}, T = /* @__PURE__ */ N(z, [["__scopeId", "data-v-db140b8a"]]);
 export {
 export {
   T as default
   T as default
 };
 };

+ 1 - 0
lib/js/SDrawer2.js

@@ -4,6 +4,7 @@ const n = `<template>
     :title="title"
     :title="title"
     :placement="mode"
     :placement="mode"
     :width="width"
     :width="width"
+    :height="height"
     :visible="visible"
     :visible="visible"
     @close="handClose"
     @close="handClose"
     :bodyStyle="{
     :bodyStyle="{

Разница между файлами не показана из-за своего большого размера
+ 244 - 290
lib/js/index2.js


Некоторые файлы не были показаны из-за большого количества измененных файлов