mortise-tenon-design 0.0.2 → 0.0.3
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/es/components/button/index.d.ts +2 -2
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button.vue.mjs +2 -2
- package/es/components/button/src/button.vue2.mjs +3 -3
- package/es/core/index.mjs +2 -2
- package/es/style.css +1 -1
- package/lib/components/button/index.d.ts +2 -2
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/src/button.vue.js +1 -1
- package/lib/components/button/src/button.vue2.js +1 -1
- package/lib/core/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +3 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const MtButton: {
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
|
3
3
|
mode: {
|
4
4
|
type: import('vue').PropType<"debounce" | "throttle">;
|
@@ -78,4 +78,4 @@ export declare const XButton: {
|
|
78
78
|
};
|
79
79
|
});
|
80
80
|
export * from './src/types';
|
81
|
-
export default
|
81
|
+
export default MtButton;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import o from "./button.vue2.mjs";
|
2
2
|
/* empty css */
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c1292849"]]);
|
5
5
|
export {
|
6
|
-
|
6
|
+
_ as default
|
7
7
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as c, ref as i, computed as m, onMounted as f, openBlock as b, createElementBlock as p, normalizeClass as v, unref as k, normalizeStyle as _, renderSlot as h } from "vue";
|
2
|
-
const y = ["disabled"],
|
3
|
-
name: "
|
2
|
+
const y = ["disabled"], M = /* @__PURE__ */ c({
|
3
|
+
name: "MtButton",
|
4
4
|
__name: "button",
|
5
5
|
props: {
|
6
6
|
mode: {},
|
@@ -34,5 +34,5 @@ const y = ["disabled"], S = /* @__PURE__ */ c({
|
|
34
34
|
}
|
35
35
|
});
|
36
36
|
export {
|
37
|
-
|
37
|
+
M as default
|
38
38
|
};
|
package/es/core/index.mjs
CHANGED
package/es/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.ex-button[data-v-
|
1
|
+
.ex-button[data-v-c1292849]{animation:temp-animation-c1292849 step-end forwards}.ex-button[data-v-c1292849]:active{animation:none}@keyframes temp-animation-c1292849{}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const MtButton: {
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
|
3
3
|
mode: {
|
4
4
|
type: import('vue').PropType<"debounce" | "throttle">;
|
@@ -78,4 +78,4 @@ export declare const XButton: {
|
|
78
78
|
};
|
79
79
|
});
|
80
80
|
export * from './src/types';
|
81
|
-
export default
|
81
|
+
export default MtButton;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./src/button.vue.js");t.default.install=u=>{t.default.name&&u.component(t.default.name,t.default)};const e=t.default;exports.MtButton=e;exports.default=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./button.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./button.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-c1292849"]]);exports.default=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=["disabled"],f=e.defineComponent({name:"
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=["disabled"],f=e.defineComponent({name:"MtButton",__name:"button",props:{mode:{},time:{default:"1s"},disabled:{type:Boolean}},emits:["click"],setup(i,{emit:s}){const t=i,r=s,n=e.ref(!1),u=e.computed(()=>t.disabled?!0:t.mode==="throttle"&&n.value),l=t.mode&&["throttle","debounce"].includes(t.mode),a=e.ref();e.onMounted(()=>{l&&a.value.$el.addEventListener("animationend",()=>{n.value=!1})});function d(o){n.value||(r("click",o),l&&(n.value=!0))}return(o,m)=>(e.openBlock(),e.createElementBlock("button",{ref_key:"buttonRef",ref:a,disabled:u.value,class:e.normalizeClass({"ex-button":e.unref(l)}),style:e.normalizeStyle({"animation-duration":o.time,"pointer-events":u.value?"none":"all"}),onClick:d},[e.renderSlot(o.$slots,"default",{},void 0,!0)],14,c))}});exports.default=f;
|
package/lib/core/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../components/button/index.js");exports.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../components/button/index.js");exports.MtButton=t.MtButton;
|
package/lib/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.ex-button[data-v-
|
1
|
+
.ex-button[data-v-c1292849]{animation:temp-animation-c1292849 step-end forwards}.ex-button[data-v-c1292849]:active{animation:none}@keyframes temp-animation-c1292849{}
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "mortise-tenon-design",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.3",
|
4
4
|
"description": "榫卯组件库",
|
5
5
|
"author": "nixwai",
|
6
6
|
"license": "ISC",
|
7
|
-
"main": "lib/index.js",
|
8
|
-
"module": "es/index.mjs",
|
7
|
+
"main": "lib/core/index.js",
|
8
|
+
"module": "es/core/index.mjs",
|
9
9
|
"types": "es/core/index.d.ts",
|
10
10
|
"repository": {
|
11
11
|
"type": "git",
|