yc-design-vue 1.6.2 → 1.6.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/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/es/_shared/icons/IconMinus.vue.js +1 -16
- package/es/_shared/icons/IconMinus.vue2.js +16 -1
- package/lib/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/lib/_shared/icons/IconMinus.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/package.json +2 -14
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$2 from "../_shared/icons/IconMinus.
|
8
|
+
import _sfc_main$2 from "../_shared/icons/IconMinus.vue2.js";
|
9
9
|
import _sfc_main$3 from "../_shared/icons/IconPlus.vue.js";
|
10
10
|
import Button from "../Button/index.js";
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconMinus",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M5 24h38" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconMinus.vue2.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconMinus",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M5 24h38" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconMinus.
|
1
|
+
"use strict";const e=require("vue"),o=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconMinus.vue2.js"),s=require("../_shared/icons/IconPlus.vue.js"),n=require("../Button/index.js"),u=e.defineComponent({__name:"InputOperaBtn",props:{mode:{},type:{},disabled:{type:Boolean},computedValue:{},min:{},max:{},size:{}},emits:["click"],setup(u){const l=u,{disabled:t,computedValue:i,min:c,max:a,type:d}=e.toRefs(l),m=e.computed(()=>t.value?t.value:"minus"==d.value?+i.value<=c.value:+i.value>=a.value);return(u,l)=>(e.openBlock(),e.createBlock(e.unref(n.default),{size:u.size,disabled:m.value,class:e.normalizeClass([{"yc-input-number-plus-embed":"embed"==u.mode}]),onClick:l[0]||(l[0]=o=>u.$emit("click",e.unref(d)))},{icon:e.withCtx(()=>[e.renderSlot(u.$slots,"icon",{},()=>["embed"==u.mode?(e.openBlock(),e.createBlock(e.unref(o),{key:0,rotate:"plus"==e.unref(d)?180:0},null,8,["rotate"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["minus"==e.unref(d)?(e.openBlock(),e.createBlock(e.unref(r),{key:0})):(e.openBlock(),e.createBlock(e.unref(s),{key:1}))],64))],!0)]),_:3},8,["size","disabled","class"]))}});module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("./IconMinus.vue2.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),t=require("../components/Icon.vue2.js"),o=e.defineComponent({__name:"IconMinus",setup:o=>(o,n)=>(e.openBlock(),e.createBlock(t,e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("path",{d:"M5 24h38"},null,-1)])),_:1,__:[0]},16))});module.exports=o;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "yc-design-vue",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.6.
|
4
|
+
"version": "1.6.3",
|
5
5
|
"type": "module",
|
6
6
|
"description": "A Vue 3 component library.",
|
7
7
|
"keywords": [
|
@@ -38,18 +38,6 @@
|
|
38
38
|
"import": "./es/index.js",
|
39
39
|
"require": "./lib/index.js"
|
40
40
|
},
|
41
|
-
"./es": {
|
42
|
-
"types": "./es/index.d.ts",
|
43
|
-
"import": "./es/index.js"
|
44
|
-
},
|
45
|
-
"./lib": {
|
46
|
-
"types": "./lib/index.d.ts",
|
47
|
-
"require": "./lib/index.js"
|
48
|
-
},
|
49
|
-
"./es/style.css": "./es/style.css",
|
50
|
-
"./es/shared.css": "./es/shared.css",
|
51
|
-
"./lib/style.css": "./lib/style.css",
|
52
|
-
"./lib/shared.css": "./lib/shared.css",
|
53
41
|
"./es/*": "./es/*",
|
54
42
|
"./lib/*": "./lib/*"
|
55
43
|
},
|
@@ -86,7 +74,7 @@
|
|
86
74
|
"vite-plugin-dts": "^4.5.4",
|
87
75
|
"vue": "^3.3.4",
|
88
76
|
"vue-tsc": "^2.0.29",
|
89
|
-
"yc-design-vue": "^1.6.
|
77
|
+
"yc-design-vue": "^1.6.2"
|
90
78
|
},
|
91
79
|
"peerDependencies": {
|
92
80
|
"vue": "^3.3.4"
|