@king-one/antdv 1.0.30 → 1.0.32

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.32
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: 修改 pro-title 组件的样式
8
+
9
+ ## 1.0.31
10
+
11
+ ### Patch Changes
12
+
13
+ - feat: 增加 pro-dialog 组家
14
+
3
15
  ## 1.0.30
4
16
 
5
17
  ### Patch Changes
@@ -1,12 +1,13 @@
1
1
  import { withInstall as o } from "../utils/install.mjs";
2
- import "./src/pro-dialog.vue.mjs";
3
- import { useProDialog as s, useProDialogInit as e } from "./hooks/useProDialog.mjs";
4
- import { proDialogProps as g } from "./src/types.mjs";
5
- import r from "./src/pro-dialog.vue2.mjs";
6
- const p = o(r);
2
+ import "./src/ProDialog.vue.mjs";
3
+ import "./style/index.mjs";
4
+ import { useProDialog as e, useProDialogInit as f } from "./hooks/useProDialog.mjs";
5
+ import { proDialogProps as n } from "./src/types.mjs";
6
+ import r from "./src/ProDialog.vue2.mjs";
7
+ const a = o(r);
7
8
  export {
8
- p as KProDialog,
9
- g as proDialogProps,
10
- s as useProDialog,
11
- e as useProDialogInit
9
+ a as KProDialog,
10
+ n as proDialogProps,
11
+ e as useProDialog,
12
+ f as useProDialogInit
12
13
  };
@@ -0,0 +1,4 @@
1
+ import f from "./ProDialog.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as c, mergeModels as r, useModel as d, computed as f, openBlock as C, createBlock as g, unref as P, mergeProps as k } from "vue";
2
+ import { Modal as M } from "ant-design-vue";
3
+ import { useNamespace as v } from "../../../hooks/use-namespace/index.mjs";
4
+ import { proDialogProps as B } from "./types.mjs";
5
+ const b = /* @__PURE__ */ c({
6
+ name: "ProDialog",
7
+ __name: "ProDialog",
8
+ props: /* @__PURE__ */ r(B, {
9
+ modelValue: { required: !0, type: Boolean },
10
+ modelModifiers: {}
11
+ }),
12
+ emits: /* @__PURE__ */ r(["onConfirm", "onCancel"], ["update:modelValue"]),
13
+ setup(a, { emit: l }) {
14
+ const e = l, o = d(a, "modelValue"), { b: m } = v("pro-dialog"), t = f(() => m());
15
+ function p() {
16
+ e("onConfirm");
17
+ }
18
+ function i() {
19
+ e("onCancel");
20
+ }
21
+ return (s, n) => (C(), g(P(M), k({
22
+ open: o.value,
23
+ "onUpdate:open": n[0] || (n[0] = (u) => o.value = u)
24
+ }, s.dialogProps, {
25
+ "wrap-class-name": t.value,
26
+ onOk: p,
27
+ onCancel: i
28
+ }), null, 16, ["open", "wrap-class-name"]));
29
+ }
30
+ });
31
+ export {
32
+ b as default
33
+ };
@@ -0,0 +1,2 @@
1
+ import "../../base/style/index.mjs";
2
+ import "@king-one/antdv/dist/theme-chalk/pro-dialog.css";
@@ -1,18 +1,19 @@
1
- import { defineComponent as l, computed as p, openBlock as a, createElementBlock as m, normalizeClass as c, createElementVNode as i, toDisplayString as u, renderSlot as d } from "vue";
1
+ import { defineComponent as s, computed as a, openBlock as p, createElementBlock as m, normalizeClass as i, createElementVNode as c, toDisplayString as u, renderSlot as d } from "vue";
2
2
  import { useNamespace as f } from "../../../hooks/use-namespace/index.mjs";
3
3
  import { TitleProps as _ } from "./types.mjs";
4
- const C = /* @__PURE__ */ l({
4
+ const k = /* @__PURE__ */ s({
5
+ name: "ProTitle",
5
6
  __name: "ProTitle",
6
7
  props: _,
7
8
  setup(t) {
8
- const o = t, { b: e, m: n } = f("pro-title"), s = p(() => o.unBorder ? [e(), n("unborder")] : [e()]);
9
- return (r, B) => (a(), m(
9
+ const o = t, { b: e, m: n } = f("pro-title"), l = a(() => o.unBorder ? [e(), n("unborder")] : [e()]);
10
+ return (r, B) => (p(), m(
10
11
  "div",
11
12
  {
12
- class: c(s.value)
13
+ class: i(l.value)
13
14
  },
14
15
  [
15
- i(
16
+ c(
16
17
  "span",
17
18
  null,
18
19
  u(r.title),
@@ -27,5 +28,5 @@ const C = /* @__PURE__ */ l({
27
28
  }
28
29
  });
29
30
  export {
30
- C as default
31
+ k as default
31
32
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils/install.js");require("./src/pro-dialog.vue.js");const o=require("./hooks/useProDialog.js"),r=require("./src/types.js"),i=require("./src/pro-dialog.vue2.js"),t=e.withInstall(i.default);exports.useProDialog=o.useProDialog;exports.useProDialogInit=o.useProDialogInit;exports.proDialogProps=r.proDialogProps;exports.KProDialog=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../utils/install.js");require("./src/ProDialog.vue.js");require("./style/index.js");const e=require("./hooks/useProDialog.js"),r=require("./src/types.js"),i=require("./src/ProDialog.vue2.js"),t=o.withInstall(i.default);exports.useProDialog=e.useProDialog;exports.useProDialogInit=e.useProDialogInit;exports.proDialogProps=r.proDialogProps;exports.KProDialog=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ProDialog.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("ant-design-vue"),m=require("../../../hooks/use-namespace/index.js"),g=require("./types.js"),f=e.defineComponent({name:"ProDialog",__name:"ProDialog",props:e.mergeModels(g.proDialogProps,{modelValue:{required:!0,type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["onConfirm","onCancel"],["update:modelValue"]),setup(l,{emit:a}){const o=a,n=e.useModel(l,"modelValue"),{b:t}=m.useNamespace("pro-dialog"),u=e.computed(()=>t());function s(){o("onConfirm")}function i(){o("onCancel")}return(c,r)=>(e.openBlock(),e.createBlock(e.unref(p.Modal),e.mergeProps({open:n.value,"onUpdate:open":r[0]||(r[0]=d=>n.value=d)},c.dialogProps,{"wrap-class-name":u.value,onOk:s,onCancel:i}),null,16,["open","wrap-class-name"]))}});exports.default=f;
@@ -0,0 +1 @@
1
+ "use strict";require("../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/pro-dialog.css");
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../hooks/use-namespace/index.js"),c=require("./types.js"),i=e.defineComponent({__name:"ProTitle",props:c.TitleProps,setup(o){const n=o,{b:t,m:s}=u.useNamespace("pro-title"),l=e.computed(()=>n.unBorder?[t(),s("unborder")]:[t()]);return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("span",null,e.toDisplayString(r.title),1),e.renderSlot(r.$slots,"default")],2))}});exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../hooks/use-namespace/index.js"),i=require("./types.js"),a=e.defineComponent({name:"ProTitle",__name:"ProTitle",props:i.TitleProps,setup(o){const n=o,{b:t,m:s}=u.useNamespace("pro-title"),l=e.computed(()=>n.unBorder?[t(),s("unborder")]:[t()]);return(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("span",null,e.toDisplayString(r.title),1),e.renderSlot(r.$slots,"default")],2))}});exports.default=a;
@@ -1 +1 @@
1
- :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto}.king-pro-title{border-bottom:1px solid #ccc;position:relative;padding-left:10px}.king-pro-title::before{content:"";position:absolute;width:3px;height:16px;background:#517cfc;left:0;top:3px}.king-pro-title--unborder::before{content:"";position:absolute;width:3px;height:16px;background:#517cfc;left:0;top:3px}
1
+ :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto}.king-pro-title{border-bottom:1px solid #ccc;position:relative;padding-left:10px}.king-pro-title::before{content:"";position:absolute;width:3px;height:16px;background:#517cfc;left:0;top:3px}.king-pro-title--unborder{border:none}.king-pro-dialog .ant-modal-content{padding:0}.king-pro-dialog .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-dialog .ant-modal-body{padding:10px 20px;max-height:65vh;overflow:auto}.king-pro-dialog .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}
@@ -1 +1 @@
1
- .king-pro-title{border-bottom:1px solid #ccc;position:relative;padding-left:10px}.king-pro-title::before{content:"";position:absolute;width:3px;height:16px;background:#517cfc;left:0;top:3px}.king-pro-title--unborder::before{content:"";position:absolute;width:3px;height:16px;background:#517cfc;left:0;top:3px}
1
+ .king-pro-title{border-bottom:1px solid #ccc;position:relative;padding-left:10px}.king-pro-title::before{content:"";position:absolute;width:3px;height:16px;background:#517cfc;left:0;top:3px}.king-pro-title--unborder{border:none}
@@ -12,6 +12,8 @@ export declare const KProDialog: SFCWithInstall<DefineComponent<{
12
12
  required: true;
13
13
  };
14
14
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ onCancel: (...args: any[]) => void;
16
+ onConfirm: (...args: any[]) => void;
15
17
  "update:modelValue": (modelValue: boolean) => void;
16
18
  }, string, PublicProps, Readonly< ExtractPropTypes<{
17
19
  dialogProps: {
@@ -22,5 +24,7 @@ export declare const KProDialog: SFCWithInstall<DefineComponent<{
22
24
  required: true;
23
25
  };
24
26
  }>> & {
27
+ onOnCancel?: ((...args: any[]) => any) | undefined;
28
+ onOnConfirm?: ((...args: any[]) => any) | undefined;
25
29
  "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
26
30
  }, {}, {}>>;
@@ -9,6 +9,8 @@ declare const _default: DefineComponent<{
9
9
  required: true;
10
10
  };
11
11
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ onCancel: (...args: any[]) => void;
13
+ onConfirm: (...args: any[]) => void;
12
14
  "update:modelValue": (modelValue: boolean) => void;
13
15
  }, string, PublicProps, Readonly< ExtractPropTypes<{
14
16
  dialogProps: {
@@ -19,6 +21,8 @@ declare const _default: DefineComponent<{
19
21
  required: true;
20
22
  };
21
23
  }>> & {
24
+ onOnCancel?: ((...args: any[]) => any) | undefined;
25
+ onOnConfirm?: ((...args: any[]) => any) | undefined;
22
26
  "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
23
27
  }, {}, {}>;
24
28
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.0.30",
4
+ "version": "1.0.32",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
@@ -1,4 +0,0 @@
1
- import f from "./pro-dialog.vue2.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,21 +0,0 @@
1
- import { defineComponent as n, mergeModels as t, useModel as a, openBlock as m, createBlock as d, unref as u, mergeProps as s } from "vue";
2
- import { Modal as i } from "ant-design-vue";
3
- import { proDialogProps as f } from "./types.mjs";
4
- const B = /* @__PURE__ */ n({
5
- __name: "pro-dialog",
6
- props: /* @__PURE__ */ t(f, {
7
- modelValue: { required: !0, type: Boolean },
8
- modelModifiers: {}
9
- }),
10
- emits: ["update:modelValue"],
11
- setup(r) {
12
- const e = a(r, "modelValue");
13
- return (l, o) => (m(), d(u(i), s({
14
- open: e.value,
15
- "onUpdate:open": o[0] || (o[0] = (p) => e.value = p)
16
- }, l.dialogProps), null, 16, ["open"]));
17
- }
18
- });
19
- export {
20
- B as default
21
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./pro-dialog.vue2.js");exports.default=e.default;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("ant-design-vue"),s=require("./types.js"),a=e.defineComponent({__name:"pro-dialog",props:e.mergeModels(s.proDialogProps,{modelValue:{required:!0,type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const o=e.useModel(l,"modelValue");return(u,r)=>(e.openBlock(),e.createBlock(e.unref(t.Modal),e.mergeProps({open:o.value,"onUpdate:open":r[0]||(r[0]=n=>o.value=n)},u.dialogProps),null,16,["open"]))}});exports.default=a;