@pinnacle0/web-ui 0.5.5 → 0.5.7
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/core/Slider/index.js +4 -2
- package/core/Slider/index.js.map +1 -1
- package/core/Slider/index.less +15 -7
- package/package.json +1 -1
package/core/Slider/index.js
CHANGED
|
@@ -68,10 +68,12 @@ export var Slider = /** @class */ (function (_super) {
|
|
|
68
68
|
var safeStep = step || 1;
|
|
69
69
|
return (React.createElement("span", { className: classNames("g-slider", className) },
|
|
70
70
|
showButton && (React.createElement(Button, { className: "decrease-button", onClick: function () { return _this.onChange(value - safeStep); } },
|
|
71
|
-
React.createElement("
|
|
71
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "4.073", height: "7.802", viewBox: "0 0 4.073 7.802" },
|
|
72
|
+
React.createElement("path", { "data-name": "\u8DEF\u5F84 12", d: "M-5.76.578a.365.365 0 0 1 .052-.5.332.332 0 0 1 .479.055l2.3 2.982a.472.472 0 0 1 0 .572l-2.3 2.982a.332.332 0 0 1-.479.055.365.365 0 0 1-.052-.5L-3.586 3.4z", transform: "translate(6.381 .501)" })))),
|
|
72
73
|
React.createElement(AntSlider, __assign({ range: false, value: value, onChange: this.onChange, step: safeStep }, restProps)),
|
|
73
74
|
showButton && (React.createElement(Button, { className: "increase-button", onClick: function () { return _this.onChange(value + safeStep); } },
|
|
74
|
-
React.createElement("
|
|
75
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "4.073", height: "7.802", viewBox: "0 0 4.073 7.802" },
|
|
76
|
+
React.createElement("path", { "data-name": "\u8DEF\u5F84 12", d: "M-5.76.578a.365.365 0 0 1 .052-.5.332.332 0 0 1 .479.055l2.3 2.982a.472.472 0 0 1 0 .572l-2.3 2.982a.332.332 0 0 1-.479.055.365.365 0 0 1-.052-.5L-3.586 3.4z", transform: "translate(6.381 .501)" }))))));
|
|
75
77
|
};
|
|
76
78
|
Slider.displayName = "Slider";
|
|
77
79
|
Slider.Range = RangeSlider;
|
package/core/Slider/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Slider/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAG1C,OAAO,cAAc,CAAC;AAMtB;IAA4B,0BAA0B;IAAtD;QAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Slider/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAG1C,OAAO,cAAc,CAAC;AAMtB;IAA4B,0BAA0B;IAAtD;QAAA,qEAuDC;QAnDG,cAAQ,GAAG,UAAC,QAAgB;;YACjB,IAAA,GAAG,IAAJ,KAAuB,KAAI,CAAC,KAAK,SAA7B,EAAE,GAAG,SAAA,EAAE,QAAQ,cAAA,CAAe;YACxC,IAAI,GAAG,IAAI,QAAQ,GAAG,GAAG,EAAE;gBACvB,QAAQ,CAAC,GAAG,CAAC,CAAC;aACjB;iBAAM,IAAI,GAAG,IAAI,QAAQ,GAAG,GAAG,EAAE;gBAC9B,QAAQ,CAAC,GAAG,CAAC,CAAC;aACjB;i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EAAC,+JAA+J,EACjK,SAAS,EAAC,uBAAuB,GACnC,CACA,CACD,CACZ,CACE,CACV,CAAC;IACN,CAAC;IArDM,kBAAW,GAAG,QAAQ,AAAX,CAAY;IACvB,YAAK,GAAG,WAAW,AAAd,CAAe;IAqD/B,aAAC;CAAA,AAvDD,CAA4B,KAAK,CAAC,aAAa,GAuD9C"}
|
package/core/Slider/index.less
CHANGED
|
@@ -10,21 +10,29 @@
|
|
|
10
10
|
> .increase-button {
|
|
11
11
|
width: 18px;
|
|
12
12
|
height: 18px;
|
|
13
|
-
line-height: 18px;
|
|
14
|
-
min-width: 18px;
|
|
15
13
|
margin-top: 7px;
|
|
16
14
|
padding: 0;
|
|
17
|
-
display: inline-
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
18
|
|
|
19
|
-
>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
> svg {
|
|
20
|
+
fill: #d9d9d9;
|
|
21
|
+
stroke: #d9d9d9;
|
|
22
|
+
transition: fill 0.3s, stroke 0.3s;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
> svg {
|
|
27
|
+
fill: #3d9cf1;
|
|
28
|
+
stroke: #3d9cf1;
|
|
29
|
+
}
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
> .decrease-button {
|
|
27
34
|
margin-right: 5px;
|
|
35
|
+
transform: rotate(180deg);
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
> .increase-button {
|