diry 4 hari lalu
induk
melakukan
b8c0782543
5 mengubah file dengan 266 tambahan dan 310 penghapusan
  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

File diff ditekan karena terlalu besar
+ 0 - 0
lib/config.json


File diff ditekan karena terlalu besar
+ 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 { _ as k } from "./index8.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"],
-  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) => {
-        i.value = e;
+        s.value = e;
       },
       { immediate: !0 }
     );
-    const _ = n(t.mode), h = n(8);
-    g(() => {
+    const h = i(o.mode), _ = i(8);
+    b(() => {
       const e = {
         left: "",
         right: "",
         top: "",
         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 = () => {
       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");
     };
     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",
-        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,
         bodyStyle: {
           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)
           ]),
           c("div", x, [
-            s(w, { size: h.value }, {
+            n(w, { size: _.value }, {
               default: a(() => [
                 m(e.$slots, "footer", {}, () => [
-                  s(d, { onClick: r }, {
+                  n(d, { onClick: r }, {
                     default: a(() => [
                       u(f(e.$l("取消")), 1)
                     ]),
                     _: 1
                   }),
-                  s(d, {
+                  n(d, {
                     type: "primary",
                     onClick: v
                   }, {
@@ -101,10 +102,10 @@ const D = { class: "s-drawer-body" }, x = { class: "s-drawer-footer" }, z = {
           ])
         ]),
         _: 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 {
   T as default
 };

+ 1 - 0
lib/js/SDrawer2.js

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

File diff ditekan karena terlalu besar
+ 244 - 290
lib/js/index2.js


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini