@qsxy/element-plus-react 1.0.0-next.4 → 1.0.0-next.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/dist/Carousel/Carousel.d.ts +4 -0
- package/dist/Carousel/Carousel.js +168 -0
- package/dist/Carousel/CarouselContext.d.ts +4 -0
- package/dist/{VirtualList/Item.js → Carousel/CarouselContext.js} +29 -14
- package/dist/Carousel/CarouselItem.d.ts +4 -0
- package/dist/Carousel/CarouselItem.js +75 -0
- package/dist/Carousel/hooks/useCarousel.d.ts +37 -0
- package/dist/Carousel/hooks/useCarousel.js +348 -0
- package/dist/Carousel/hooks/useCarouselItem.d.ts +8 -0
- package/dist/Carousel/hooks/useCarouselItem.js +161 -0
- package/dist/Carousel/index.d.ts +3 -0
- package/dist/{VirtualList → Carousel}/index.js +10 -7
- package/dist/Carousel/typings.d.ts +83 -0
- package/dist/{VirtualList/interface.js → Carousel/typings.js} +3 -3
- package/dist/Cascader/Cascader.js +147 -182
- package/dist/Cascader/CascaderContext.d.ts +4 -10
- package/dist/Cascader/CascaderContext.js +2 -6
- package/dist/Cascader/CascaderDropdown.js +1 -1
- package/dist/Cascader/CascaderMenu.d.ts +0 -7
- package/dist/Cascader/CascaderMenu.js +4 -77
- package/dist/Cascader/Utils.d.ts +0 -2
- package/dist/Cascader/Utils.js +0 -44
- package/dist/Cascader/index.d.ts +1 -1
- package/dist/Cascader/typings.d.ts +2 -18
- package/dist/Cascader/useCascader.d.ts +1 -15
- package/dist/Cascader/useCascader.js +14 -41
- package/dist/DatePicker/DatePicker.js +6 -6
- package/dist/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/dist/Dialog/Dialog.js +2 -2
- package/dist/Drawer/Drawer.js +8 -8
- package/dist/Empty/ImgEmpty.js +1 -1
- package/dist/Form/utils/classUtil.js +2 -2
- package/dist/Input/InputRange.js +3 -3
- package/dist/MessageBox/MessageBox.js +1 -1
- package/dist/Popper/Popper.js +7 -7
- package/dist/Progress/Progress.js +1 -1
- package/dist/Table/hooks/useSelection.d.ts +1 -8
- package/dist/Table/util.js +2 -2
- package/dist/TimePicker/TimePicker.js +1 -1
- package/dist/Tree/DirectoryTree.d.ts +6 -13
- package/dist/Tree/DirectoryTree.js +32 -81
- package/dist/Tree/DropIndicator.d.ts +4 -2
- package/dist/Tree/DropIndicator.js +7 -2
- package/dist/Tree/Indent.d.ts +2 -2
- package/dist/Tree/Indent.js +4 -4
- package/dist/Tree/MotionTreeNode.d.ts +4 -5
- package/dist/Tree/MotionTreeNode.js +69 -52
- package/dist/Tree/NodeList.d.ts +15 -11
- package/dist/Tree/NodeList.js +38 -29
- package/dist/Tree/RCTree.d.ts +77 -75
- package/dist/Tree/RCTree.js +199 -188
- package/dist/Tree/Tree.d.ts +3 -3
- package/dist/Tree/Tree.js +27 -27
- package/dist/Tree/TreeNode.d.ts +5 -90
- package/dist/Tree/TreeNode.js +320 -422
- package/dist/Tree/contextTypes.d.ts +36 -30
- package/dist/Tree/contextTypes.js +17 -4
- package/dist/Tree/index.d.ts +2 -2
- package/dist/Tree/typings.d.ts +60 -19
- package/dist/Tree/typings.js +1 -13
- package/dist/Tree/typings.tsx--bak +245 -0
- package/dist/Tree/useUnmount.d.ts +5 -0
- package/dist/{VirtualList/hooks/useChildren.js → Tree/useUnmount.js} +24 -16
- package/dist/Tree/util.d.ts +17 -21
- package/dist/Tree/util.js +21 -52
- package/dist/Tree/utils/conductUtil.d.ts +2 -2
- package/dist/Tree/utils/conductUtil.js +14 -3
- package/dist/Tree/utils/dictUtil.d.ts +7 -3
- package/dist/Tree/utils/dictUtil.js +49 -32
- package/dist/Tree/utils/diffUtil.d.ts +4 -3
- package/dist/Tree/utils/keyUtil.d.ts +2 -0
- package/dist/{VirtualList/utils/isFirefox.js → Tree/utils/keyUtil.js} +8 -7
- package/dist/Tree/utils/motion.js +6 -5
- package/dist/Tree/utils/treeUtil.d.ts +16 -18
- package/dist/Tree/utils/treeUtil.js +35 -14
- package/dist/TreeSelect/Utils.d.ts +1 -1
- package/dist/Util/base.d.ts +1 -1
- package/dist/Util/base.js +14 -2
- package/dist/hooks/prefix.d.ts +1 -1
- package/dist/hooks/prefix.js +4 -4
- package/dist/hooks/useClassNames.js +1 -1
- package/dist/index.css +228 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/theme-chalk/calendar/month-table.scss +1 -1
- package/dist/theme-chalk/carousel/index.scss +237 -0
- package/dist/theme-chalk/dev.scss +2 -0
- package/dist/theme-chalk/index.scss +1 -1
- package/dist/theme-chalk/input/input.scss +5 -3
- package/package.json +2 -1
- package/dist/Tree/utils/KeyCode.d.ts +0 -436
- package/dist/Tree/utils/KeyCode.js +0 -550
- package/dist/VirtualList/Filler.d.ts +0 -16
- package/dist/VirtualList/Filler.js +0 -78
- package/dist/VirtualList/Item.d.ts +0 -7
- package/dist/VirtualList/ScrollBar.d.ts +0 -43
- package/dist/VirtualList/ScrollBar.js +0 -216
- package/dist/VirtualList/VirtualList.d.ts +0 -36
- package/dist/VirtualList/VirtualList.js +0 -280
- package/dist/VirtualList/hooks/useChildren.d.ts +0 -3
- package/dist/VirtualList/hooks/useDiffItem.d.ts +0 -2
- package/dist/VirtualList/hooks/useDiffItem.js +0 -39
- package/dist/VirtualList/hooks/useFrameWheel.d.ts +0 -6
- package/dist/VirtualList/hooks/useFrameWheel.js +0 -72
- package/dist/VirtualList/hooks/useHeights.d.ts +0 -3
- package/dist/VirtualList/hooks/useHeights.js +0 -83
- package/dist/VirtualList/hooks/useLayoutEffect.d.ts +0 -6
- package/dist/VirtualList/hooks/useLayoutEffect.js +0 -30
- package/dist/VirtualList/hooks/useMobileTouchMove.d.ts +0 -2
- package/dist/VirtualList/hooks/useMobileTouchMove.js +0 -92
- package/dist/VirtualList/hooks/useOriginScroll.d.ts +0 -2
- package/dist/VirtualList/hooks/useOriginScroll.js +0 -56
- package/dist/VirtualList/hooks/useScrollTo.d.ts +0 -5
- package/dist/VirtualList/hooks/useScrollTo.js +0 -111
- package/dist/VirtualList/index.d.ts +0 -2
- package/dist/VirtualList/interface.d.ts +0 -8
- package/dist/VirtualList/mock.d.ts +0 -6
- package/dist/VirtualList/mock.js +0 -29
- package/dist/VirtualList/utils/CacheMap.d.ts +0 -7
- package/dist/VirtualList/utils/CacheMap.js +0 -36
- package/dist/VirtualList/utils/algorithmUtil.d.ts +0 -23
- package/dist/VirtualList/utils/algorithmUtil.js +0 -81
- package/dist/VirtualList/utils/findDOMNode.d.ts +0 -5
- package/dist/VirtualList/utils/findDOMNode.js +0 -30
- package/dist/VirtualList/utils/isFirefox.d.ts +0 -2
- package/dist/VirtualList/utils/raf.d.ts +0 -5
- package/dist/VirtualList/utils/raf.js +0 -57
- package/dist/theme-chalk/bak/common/popup.scss +0 -47
- package/dist/theme-chalk/bak/common/transition.scss +0 -118
- package/dist/theme-chalk/bak/common/var.scss +0 -1476
- package/dist/theme-chalk/bak/mixins/_button.scss +0 -224
- package/dist/theme-chalk/bak/mixins/_col.scss +0 -38
- package/dist/theme-chalk/bak/mixins/_var.scss +0 -55
- package/dist/theme-chalk/bak/mixins/config.scss +0 -5
- package/dist/theme-chalk/bak/mixins/function.scss +0 -85
- package/dist/theme-chalk/bak/mixins/mixins.scss +0 -215
- package/dist/theme-chalk/bak/mixins/utils.scss +0 -39
- package/dist/theme-chalk/build.scss +0 -64
package/dist/Util/base.d.ts
CHANGED
|
@@ -38,4 +38,4 @@ export declare const isNumber: (val: any) => val is number;
|
|
|
38
38
|
export declare const isString: (val: any) => boolean;
|
|
39
39
|
export declare const isStringNumber: (val: string) => boolean;
|
|
40
40
|
export declare function addUnit(value?: string | number, defaultUnit?: string): string;
|
|
41
|
-
export declare function mergeDefaultProps<T
|
|
41
|
+
export declare function mergeDefaultProps<T>(defaultProps: Partial<T>, target: T): T;
|
package/dist/Util/base.js
CHANGED
|
@@ -204,8 +204,20 @@ function addUnit(value, defaultUnit = "px") {
|
|
|
204
204
|
return value;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
function mergeDefaultProps(defaultProps = {},
|
|
208
|
-
|
|
207
|
+
function mergeDefaultProps(defaultProps = {}, target) {
|
|
208
|
+
const props = { ...target };
|
|
209
|
+
if (Object.prototype.toString.call(props) === "[object Object]" && Object.prototype.toString.call(defaultProps) === "[object Object]") {
|
|
210
|
+
for (const item in defaultProps) {
|
|
211
|
+
if (isUndefined(props[item])) {
|
|
212
|
+
Object.assign(props, { [item]: defaultProps[item] });
|
|
213
|
+
} else {
|
|
214
|
+
if (Object.prototype.toString.call(props[item]) === "[object Object]" && Object.prototype.toString.call(defaultProps[item]) === "[object Object]") {
|
|
215
|
+
props[item] = mergeDefaultProps(props[item], defaultProps[item]);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return props;
|
|
209
221
|
}
|
|
210
222
|
// Annotate the CommonJS export names for ESM import in node:
|
|
211
223
|
0 && (module.exports = {
|
package/dist/hooks/prefix.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const namespace = "el";
|
|
3
3
|
export declare const getClassNamePrefix: () => string;
|
|
4
4
|
export declare const defaultClassPrefix: (name: string) => string;
|
|
5
5
|
export type ISplitCode = '-' | '__' | '--';
|
package/dist/hooks/prefix.js
CHANGED
|
@@ -32,15 +32,15 @@ __export(prefix_exports, {
|
|
|
32
32
|
default: () => prefix_default,
|
|
33
33
|
defaultClassPrefix: () => defaultClassPrefix,
|
|
34
34
|
getClassNamePrefix: () => getClassNamePrefix,
|
|
35
|
-
|
|
35
|
+
namespace: () => namespace,
|
|
36
36
|
prefix: () => prefix
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(prefix_exports);
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
40
|
var import_curry = __toESM(require("lodash/curry"));
|
|
41
|
-
var
|
|
41
|
+
var namespace = "el";
|
|
42
42
|
var getClassNamePrefix = () => {
|
|
43
|
-
return
|
|
43
|
+
return namespace + "-";
|
|
44
44
|
};
|
|
45
45
|
var defaultClassPrefix = (name) => `${getClassNamePrefix()}${name}`;
|
|
46
46
|
function prefix(pre, className, split = "-") {
|
|
@@ -57,6 +57,6 @@ var prefix_default = (0, import_curry.default)(prefix);
|
|
|
57
57
|
0 && (module.exports = {
|
|
58
58
|
defaultClassPrefix,
|
|
59
59
|
getClassNamePrefix,
|
|
60
|
-
|
|
60
|
+
namespace,
|
|
61
61
|
prefix
|
|
62
62
|
});
|
|
@@ -37,7 +37,7 @@ var import_isBoolean = __toESM(require("lodash/isBoolean"));
|
|
|
37
37
|
var import_last = __toESM(require("lodash/last"));
|
|
38
38
|
var import_react = require("react");
|
|
39
39
|
var import_prefix = require("./prefix");
|
|
40
|
-
function useClassNames(str, classPrefix = import_prefix.
|
|
40
|
+
function useClassNames(str, classPrefix = import_prefix.namespace) {
|
|
41
41
|
const componentName = (0, import_prefix.prefix)(classPrefix, str);
|
|
42
42
|
const prefixSplit = (0, import_react.useCallback)(
|
|
43
43
|
(splitCode, ...classes) => {
|
package/dist/index.css
CHANGED
|
@@ -4721,6 +4721,228 @@
|
|
|
4721
4721
|
background: transparent;
|
|
4722
4722
|
}
|
|
4723
4723
|
|
|
4724
|
+
.el-carousel__item {
|
|
4725
|
+
position: absolute;
|
|
4726
|
+
top: 0;
|
|
4727
|
+
left: 0;
|
|
4728
|
+
width: 100%;
|
|
4729
|
+
height: 100%;
|
|
4730
|
+
display: inline-block;
|
|
4731
|
+
overflow: hidden;
|
|
4732
|
+
z-index: calc(var(--el-index-normal) - 1);
|
|
4733
|
+
}
|
|
4734
|
+
.el-carousel__item.is-active {
|
|
4735
|
+
z-index: calc(var(--el-index-normal) - 1);
|
|
4736
|
+
}
|
|
4737
|
+
.el-carousel__item.is-animating {
|
|
4738
|
+
transition: transform 0.4s ease-in-out;
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4741
|
+
.el-carousel__item--card {
|
|
4742
|
+
width: 50%;
|
|
4743
|
+
transition: transform 0.4s ease-in-out;
|
|
4744
|
+
}
|
|
4745
|
+
.el-carousel__item--card.is-in-stage {
|
|
4746
|
+
cursor: pointer;
|
|
4747
|
+
z-index: var(--el-index-normal);
|
|
4748
|
+
}
|
|
4749
|
+
.el-carousel__item--card.is-in-stage:hover .el-carousel__mask, .el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask {
|
|
4750
|
+
opacity: 0.12;
|
|
4751
|
+
}
|
|
4752
|
+
.el-carousel__item--card.is-active {
|
|
4753
|
+
z-index: calc(var(--el-index-normal) + 1);
|
|
4754
|
+
}
|
|
4755
|
+
|
|
4756
|
+
.el-carousel__item--card-vertical {
|
|
4757
|
+
width: 100%;
|
|
4758
|
+
height: 50%;
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4761
|
+
.el-carousel__mask {
|
|
4762
|
+
position: absolute;
|
|
4763
|
+
width: 100%;
|
|
4764
|
+
height: 100%;
|
|
4765
|
+
top: 0;
|
|
4766
|
+
left: 0;
|
|
4767
|
+
background-color: var(--el-color-white);
|
|
4768
|
+
opacity: 0.24;
|
|
4769
|
+
transition: var(--el-transition-duration-fast);
|
|
4770
|
+
}
|
|
4771
|
+
|
|
4772
|
+
.el-carousel {
|
|
4773
|
+
--el-carousel-arrow-font-size: 12px;
|
|
4774
|
+
--el-carousel-arrow-size: 36px;
|
|
4775
|
+
--el-carousel-arrow-background: rgba(31, 45, 61, 0.11);
|
|
4776
|
+
--el-carousel-arrow-hover-background: rgba(31, 45, 61, 0.23);
|
|
4777
|
+
--el-carousel-indicator-width: 30px;
|
|
4778
|
+
--el-carousel-indicator-height: 2px;
|
|
4779
|
+
--el-carousel-indicator-padding-horizontal: 4px;
|
|
4780
|
+
--el-carousel-indicator-padding-vertical: 12px;
|
|
4781
|
+
--el-carousel-indicator-out-color: var(--el-border-color-hover);
|
|
4782
|
+
position: relative;
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
.el-carousel--horizontal,
|
|
4786
|
+
.el-carousel--vertical {
|
|
4787
|
+
overflow: hidden;
|
|
4788
|
+
}
|
|
4789
|
+
|
|
4790
|
+
.el-carousel__container {
|
|
4791
|
+
position: relative;
|
|
4792
|
+
height: 300px;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
.el-carousel__arrow {
|
|
4796
|
+
border: none;
|
|
4797
|
+
outline: none;
|
|
4798
|
+
padding: 0;
|
|
4799
|
+
margin: 0;
|
|
4800
|
+
height: var(--el-carousel-arrow-size);
|
|
4801
|
+
width: var(--el-carousel-arrow-size);
|
|
4802
|
+
cursor: pointer;
|
|
4803
|
+
transition: var(--el-transition-duration);
|
|
4804
|
+
border-radius: 50%;
|
|
4805
|
+
background-color: var(--el-carousel-arrow-background);
|
|
4806
|
+
color: #fff;
|
|
4807
|
+
position: absolute;
|
|
4808
|
+
top: 50%;
|
|
4809
|
+
z-index: 10;
|
|
4810
|
+
transform: translateY(-50%);
|
|
4811
|
+
text-align: center;
|
|
4812
|
+
font-size: var(--el-carousel-arrow-font-size);
|
|
4813
|
+
display: inline-flex;
|
|
4814
|
+
justify-content: center;
|
|
4815
|
+
align-items: center;
|
|
4816
|
+
}
|
|
4817
|
+
.el-carousel__arrow:hover {
|
|
4818
|
+
background-color: var(--el-carousel-arrow-hover-background);
|
|
4819
|
+
}
|
|
4820
|
+
.el-carousel__arrow i {
|
|
4821
|
+
cursor: pointer;
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
.el-carousel__arrow--left {
|
|
4825
|
+
left: 16px;
|
|
4826
|
+
}
|
|
4827
|
+
|
|
4828
|
+
.el-carousel__arrow--right {
|
|
4829
|
+
right: 16px;
|
|
4830
|
+
}
|
|
4831
|
+
|
|
4832
|
+
.el-carousel__indicators {
|
|
4833
|
+
position: absolute;
|
|
4834
|
+
list-style: none;
|
|
4835
|
+
margin: 0;
|
|
4836
|
+
padding: 0;
|
|
4837
|
+
z-index: calc(var(--el-index-normal) + 1);
|
|
4838
|
+
}
|
|
4839
|
+
|
|
4840
|
+
.el-carousel__indicators--horizontal {
|
|
4841
|
+
bottom: 0;
|
|
4842
|
+
left: 50%;
|
|
4843
|
+
transform: translate(-50%);
|
|
4844
|
+
}
|
|
4845
|
+
|
|
4846
|
+
.el-carousel__indicators--vertical {
|
|
4847
|
+
right: 0;
|
|
4848
|
+
top: 50%;
|
|
4849
|
+
transform: translateY(-50%);
|
|
4850
|
+
}
|
|
4851
|
+
|
|
4852
|
+
.el-carousel__indicators--outside {
|
|
4853
|
+
bottom: calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);
|
|
4854
|
+
text-align: center;
|
|
4855
|
+
position: static;
|
|
4856
|
+
transform: none;
|
|
4857
|
+
}
|
|
4858
|
+
.el-carousel__indicators--outside .el-carousel__indicator:hover button {
|
|
4859
|
+
opacity: 0.64;
|
|
4860
|
+
}
|
|
4861
|
+
.el-carousel__indicators--outside button {
|
|
4862
|
+
background-color: var(--el-carousel-indicator-out-color);
|
|
4863
|
+
opacity: 0.24;
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4866
|
+
.el-carousel__indicators--right {
|
|
4867
|
+
right: 0;
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
.el-carousel__indicators--labels {
|
|
4871
|
+
left: 0;
|
|
4872
|
+
right: 0;
|
|
4873
|
+
transform: none;
|
|
4874
|
+
text-align: center;
|
|
4875
|
+
}
|
|
4876
|
+
.el-carousel__indicators--labels .el-carousel__button {
|
|
4877
|
+
height: auto;
|
|
4878
|
+
width: auto;
|
|
4879
|
+
padding: 2px 18px;
|
|
4880
|
+
font-size: 12px;
|
|
4881
|
+
color: #000;
|
|
4882
|
+
}
|
|
4883
|
+
.el-carousel__indicators--labels .el-carousel__indicator {
|
|
4884
|
+
padding: 6px 4px;
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
.el-carousel__indicator {
|
|
4888
|
+
background-color: transparent;
|
|
4889
|
+
cursor: pointer;
|
|
4890
|
+
}
|
|
4891
|
+
.el-carousel__indicator:hover button {
|
|
4892
|
+
opacity: 0.72;
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
.el-carousel__indicator--horizontal {
|
|
4896
|
+
display: inline-block;
|
|
4897
|
+
padding: var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal);
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
.el-carousel__indicator--vertical {
|
|
4901
|
+
padding: var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical);
|
|
4902
|
+
}
|
|
4903
|
+
.el-carousel__indicator--vertical .el-carousel__button {
|
|
4904
|
+
width: var(--el-carousel-indicator-height);
|
|
4905
|
+
height: calc(var(--el-carousel-indicator-width) / 2);
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
.el-carousel__indicator.is-active button {
|
|
4909
|
+
opacity: 1;
|
|
4910
|
+
}
|
|
4911
|
+
|
|
4912
|
+
.el-carousel__button {
|
|
4913
|
+
display: block;
|
|
4914
|
+
opacity: 0.48;
|
|
4915
|
+
width: var(--el-carousel-indicator-width);
|
|
4916
|
+
height: var(--el-carousel-indicator-height);
|
|
4917
|
+
background-color: #fff;
|
|
4918
|
+
border: none;
|
|
4919
|
+
outline: none;
|
|
4920
|
+
padding: 0;
|
|
4921
|
+
margin: 0;
|
|
4922
|
+
cursor: pointer;
|
|
4923
|
+
transition: var(--el-transition-duration);
|
|
4924
|
+
}
|
|
4925
|
+
|
|
4926
|
+
.carousel-arrow-left-enter-from,
|
|
4927
|
+
.carousel-arrow-left-leave-active {
|
|
4928
|
+
transform: translateY(-50%) translate(-10px);
|
|
4929
|
+
opacity: 0;
|
|
4930
|
+
}
|
|
4931
|
+
|
|
4932
|
+
.carousel-arrow-right-enter-from,
|
|
4933
|
+
.carousel-arrow-right-leave-active {
|
|
4934
|
+
transform: translateY(-50%) translate(10px);
|
|
4935
|
+
opacity: 0;
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
.el-transitioning {
|
|
4939
|
+
filter: url(#elCarouselHorizontal);
|
|
4940
|
+
}
|
|
4941
|
+
|
|
4942
|
+
.el-transitioning-vertical {
|
|
4943
|
+
filter: url(#elCarouselVertical);
|
|
4944
|
+
}
|
|
4945
|
+
|
|
4724
4946
|
.el-checkbox {
|
|
4725
4947
|
--el-checkbox-text-color: var(--el-text-color-regular);
|
|
4726
4948
|
--el-checkbox-input-width: 16px;
|
|
@@ -5705,11 +5927,12 @@
|
|
|
5705
5927
|
}
|
|
5706
5928
|
|
|
5707
5929
|
.el-input {
|
|
5930
|
+
--el-input-inner-height: calc(var(--el-input-height, 32px) - 2px);
|
|
5708
5931
|
position: relative;
|
|
5709
5932
|
display: inline-flex;
|
|
5710
5933
|
width: 100%;
|
|
5711
5934
|
font-size: 14px;
|
|
5712
|
-
line-height: var(--el-input-height,
|
|
5935
|
+
line-height: var(--el-input-inner-height, 30px);
|
|
5713
5936
|
box-sizing: border-box;
|
|
5714
5937
|
vertical-align: middle;
|
|
5715
5938
|
}
|
|
@@ -5931,6 +6154,7 @@
|
|
|
5931
6154
|
.el-input-group__prepend .el-button {
|
|
5932
6155
|
display: inline-block;
|
|
5933
6156
|
margin: 0 -20px;
|
|
6157
|
+
line-height: 0;
|
|
5934
6158
|
}
|
|
5935
6159
|
.el-input-group__append button.el-button,
|
|
5936
6160
|
.el-input-group__append button.el-button:hover,
|
|
@@ -6052,13 +6276,13 @@
|
|
|
6052
6276
|
|
|
6053
6277
|
.el-input--large {
|
|
6054
6278
|
--el-input-height: var(--el-component-size-large);
|
|
6055
|
-
--el-input-inner-height: calc(var(--el-input-height,
|
|
6279
|
+
--el-input-inner-height: calc(var(--el-input-height, 40px) - 2px);
|
|
6056
6280
|
font-size: 14px;
|
|
6057
6281
|
}
|
|
6058
6282
|
|
|
6059
6283
|
.el-input--small {
|
|
6060
6284
|
--el-input-height: var(--el-component-size-small);
|
|
6061
|
-
--el-input-inner-height: var(--el-
|
|
6285
|
+
--el-input-inner-height: calc(var(--el-input-height, 24px) - 2px);
|
|
6062
6286
|
font-size: 12px;
|
|
6063
6287
|
}
|
|
6064
6288
|
|
|
@@ -6928,7 +7152,7 @@
|
|
|
6928
7152
|
color: #ffffff;
|
|
6929
7153
|
}
|
|
6930
7154
|
.el-month-table td.start-date .cell, .el-month-table td.end-date .cell {
|
|
6931
|
-
color: #ffffff;
|
|
7155
|
+
color: #ffffff !important;
|
|
6932
7156
|
background: var(--el-datepicker-active-color);
|
|
6933
7157
|
}
|
|
6934
7158
|
.el-month-table td.start-date div {
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { PopperOptionRef, PopperOptions, PopperProps } from './Popper';
|
|
|
16
16
|
export { Transition as ElTransition } from './Transition';
|
|
17
17
|
export type { TransitionProps } from './Transition';
|
|
18
18
|
export { Cascader as ElCascader } from './Cascader';
|
|
19
|
-
export type { CascaderMenuProps, CascaderProps
|
|
19
|
+
export type { CascaderMenuProps, CascaderProps } from './Cascader';
|
|
20
20
|
export { Checkbox as ElCheckbox, CheckboxButton as ElCheckboxButton } from './Checkbox';
|
|
21
21
|
export type { CheckboxProps, ValueType as CheckboxValueType } from './Checkbox';
|
|
22
22
|
export { CheckboxGroup as ElCheckboxGroup } from './CheckboxGroup';
|
|
@@ -53,6 +53,8 @@ export { Badge as ElBadge } from './Badge';
|
|
|
53
53
|
export type { BadgeProps } from './Badge';
|
|
54
54
|
export { Card as ElCard } from './Card';
|
|
55
55
|
export type { CardProps } from './Card';
|
|
56
|
+
export { Carousel as ElCarousel, CarouselItem as ElCarouselItem } from './Carousel';
|
|
57
|
+
export type { CarouselItemProps, CarouselProps, CarouselRef } from './Carousel';
|
|
56
58
|
export { Collapse as ElCollapse, CollapseItem as ElCollapseItem } from './Collapse';
|
|
57
59
|
export type { CollapseItemProps, CollapseProps } from './Collapse';
|
|
58
60
|
export { Descriptions as ElDescriptions, DescriptionsItem as ElDescriptionsItem } from './Descriptions';
|
|
@@ -67,12 +69,10 @@ export { Tag as ElTag } from './Tag';
|
|
|
67
69
|
export type { TagProps } from './Tag';
|
|
68
70
|
export { TimeLine as ElTimeLine, TimeLineItem as ElTimeLineItem } from './TimeLine';
|
|
69
71
|
export type { TimeLineItemProps, TimeLineProps } from './TimeLine';
|
|
70
|
-
export { DirectoryTree as ElDirectoryTree, Tree as ElTree
|
|
71
|
-
export type {
|
|
72
|
+
export { DirectoryTree as ElDirectoryTree, Tree as ElTree } from './Tree';
|
|
73
|
+
export type { BasicDataNode, DataNode, DirectoryTreeExpandAction, DirectoryTreeProps, EventDataNode, Key, TreeProps, } from './Tree';
|
|
72
74
|
export { TreeSelect as ElTreeSelect } from './TreeSelect';
|
|
73
75
|
export type { SelectInfo, TreeSelectProps, TreeSelectRef } from './TreeSelect';
|
|
74
|
-
export { VirtualList } from './VirtualList';
|
|
75
|
-
export type { ListProps, ListRef, ScrollTo } from './VirtualList';
|
|
76
76
|
export { Breadcrumb as ElBreadcrumb, BreadcrumbItem as ElBreadcrumbItem } from './Breadcrumb';
|
|
77
77
|
export type { BreadcrumbItemProps, BreadcrumbProps } from './Breadcrumb';
|
|
78
78
|
export { Dropdown as ElDropdown, DropdownItem as ElDropdownItem, DropdownMenu as ElDropdownMenu } from './Dropdown';
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,8 @@ __export(src_exports, {
|
|
|
28
28
|
ElBreadcrumbItem: () => import_Breadcrumb.BreadcrumbItem,
|
|
29
29
|
ElButton: () => import_Button.Button,
|
|
30
30
|
ElCard: () => import_Card.Card,
|
|
31
|
+
ElCarousel: () => import_Carousel.Carousel,
|
|
32
|
+
ElCarouselItem: () => import_Carousel.CarouselItem,
|
|
31
33
|
ElCascader: () => import_Cascader.Cascader,
|
|
32
34
|
ElCheckbox: () => import_Checkbox.Checkbox,
|
|
33
35
|
ElCheckboxButton: () => import_Checkbox.CheckboxButton,
|
|
@@ -85,8 +87,6 @@ __export(src_exports, {
|
|
|
85
87
|
ElUpload: () => import_Upload.Upload,
|
|
86
88
|
PopupManager: () => import_Util.PopupManager,
|
|
87
89
|
RowContext: () => import_Row.RowContext,
|
|
88
|
-
TreeNode: () => import_Tree.TreeNode,
|
|
89
|
-
VirtualList: () => import_VirtualList.VirtualList,
|
|
90
90
|
download: () => import_Util.download,
|
|
91
91
|
genFileId: () => import_Util.genFileId,
|
|
92
92
|
generateTree: () => import_Util.generateTree,
|
|
@@ -125,6 +125,7 @@ var import_Form = require("./Form");
|
|
|
125
125
|
var import_Upload = require("./Upload");
|
|
126
126
|
var import_Badge = require("./Badge");
|
|
127
127
|
var import_Card = require("./Card");
|
|
128
|
+
var import_Carousel = require("./Carousel");
|
|
128
129
|
var import_Collapse = require("./Collapse");
|
|
129
130
|
var import_Descriptions = require("./Descriptions");
|
|
130
131
|
var import_Pagination = require("./Pagination");
|
|
@@ -134,7 +135,6 @@ var import_Tag = require("./Tag");
|
|
|
134
135
|
var import_TimeLine = require("./TimeLine");
|
|
135
136
|
var import_Tree = require("./Tree");
|
|
136
137
|
var import_TreeSelect = require("./TreeSelect");
|
|
137
|
-
var import_VirtualList = require("./VirtualList");
|
|
138
138
|
var import_Breadcrumb = require("./Breadcrumb");
|
|
139
139
|
var import_Dropdown = require("./Dropdown");
|
|
140
140
|
var import_Tabs = require("./Tabs");
|
|
@@ -163,6 +163,8 @@ var import_ConfigProvider = require("./ConfigProvider");
|
|
|
163
163
|
ElBreadcrumbItem,
|
|
164
164
|
ElButton,
|
|
165
165
|
ElCard,
|
|
166
|
+
ElCarousel,
|
|
167
|
+
ElCarouselItem,
|
|
166
168
|
ElCascader,
|
|
167
169
|
ElCheckbox,
|
|
168
170
|
ElCheckboxButton,
|
|
@@ -220,8 +222,6 @@ var import_ConfigProvider = require("./ConfigProvider");
|
|
|
220
222
|
ElUpload,
|
|
221
223
|
PopupManager,
|
|
222
224
|
RowContext,
|
|
223
|
-
TreeNode,
|
|
224
|
-
VirtualList,
|
|
225
225
|
download,
|
|
226
226
|
genFileId,
|
|
227
227
|
generateTree,
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
@use '../common/var';
|
|
2
|
+
|
|
3
|
+
.#{$namespace}-carousel__item {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
z-index: calc(var(--#{$namespace}-index-normal) - 1);
|
|
12
|
+
|
|
13
|
+
&.is-active {
|
|
14
|
+
z-index: calc(var(--#{$namespace}-index-normal) - 1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.is-animating {
|
|
18
|
+
transition: transform 0.4s ease-in-out;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.#{$namespace}-carousel__item--card {
|
|
23
|
+
width: 50%;
|
|
24
|
+
transition: transform 0.4s ease-in-out;
|
|
25
|
+
|
|
26
|
+
&.is-in-stage {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
z-index: var(--#{$namespace}-index-normal);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.is-in-stage:hover .#{$namespace}-carousel__mask,
|
|
32
|
+
&.is-in-stage.is-hover .#{$namespace}-carousel__mask {
|
|
33
|
+
opacity: 0.12;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.is-active {
|
|
37
|
+
z-index: calc(var(--#{$namespace}-index-normal) + 1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.#{$namespace}-carousel__item--card-vertical {
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 50%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.#{$namespace}-carousel__mask {
|
|
47
|
+
position: absolute;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
background-color: var(--#{$namespace}-color-white);
|
|
53
|
+
opacity: 0.24;
|
|
54
|
+
transition: var(--#{$namespace}-transition-duration-fast);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.#{$namespace}-carousel {
|
|
58
|
+
--#{$namespace}-carousel-arrow-font-size: 12px;
|
|
59
|
+
--#{$namespace}-carousel-arrow-size: 36px;
|
|
60
|
+
--#{$namespace}-carousel-arrow-background: rgba(31, 45, 61, 0.11);
|
|
61
|
+
--#{$namespace}-carousel-arrow-hover-background: rgba(31, 45, 61, 0.23);
|
|
62
|
+
--#{$namespace}-carousel-indicator-width: 30px;
|
|
63
|
+
--#{$namespace}-carousel-indicator-height: 2px;
|
|
64
|
+
--#{$namespace}-carousel-indicator-padding-horizontal: 4px;
|
|
65
|
+
--#{$namespace}-carousel-indicator-padding-vertical: 12px;
|
|
66
|
+
--#{$namespace}-carousel-indicator-out-color: var(--#{$namespace}-border-color-hover);
|
|
67
|
+
position: relative;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.#{$namespace}-carousel--horizontal,
|
|
71
|
+
.#{$namespace}-carousel--vertical {
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$namespace}-carousel__container {
|
|
76
|
+
position: relative;
|
|
77
|
+
height: 300px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.#{$namespace}-carousel__arrow {
|
|
81
|
+
border: none;
|
|
82
|
+
outline: none;
|
|
83
|
+
padding: 0;
|
|
84
|
+
margin: 0;
|
|
85
|
+
height: var(--#{$namespace}-carousel-arrow-size);
|
|
86
|
+
width: var(--#{$namespace}-carousel-arrow-size);
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
transition: var(--#{$namespace}-transition-duration);
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
background-color: var(--#{$namespace}-carousel-arrow-background);
|
|
91
|
+
color: #fff;
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 50%;
|
|
94
|
+
z-index: 10;
|
|
95
|
+
transform: translateY(-50%);
|
|
96
|
+
text-align: center;
|
|
97
|
+
font-size: var(--#{$namespace}-carousel-arrow-font-size);
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
align-items: center;
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
background-color: var(--#{$namespace}-carousel-arrow-hover-background);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& i {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.#{$namespace}-carousel__arrow--left {
|
|
112
|
+
left: 16px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.#{$namespace}-carousel__arrow--right {
|
|
116
|
+
right: 16px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.#{$namespace}-carousel__indicators {
|
|
120
|
+
position: absolute;
|
|
121
|
+
list-style: none;
|
|
122
|
+
margin: 0;
|
|
123
|
+
padding: 0;
|
|
124
|
+
z-index: calc(var(--#{$namespace}-index-normal) + 1);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.#{$namespace}-carousel__indicators--horizontal {
|
|
128
|
+
bottom: 0;
|
|
129
|
+
left: 50%;
|
|
130
|
+
transform: translate(-50%);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.#{$namespace}-carousel__indicators--vertical {
|
|
134
|
+
right: 0;
|
|
135
|
+
top: 50%;
|
|
136
|
+
transform: translateY(-50%);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.#{$namespace}-carousel__indicators--outside {
|
|
140
|
+
bottom: calc(var(--#{$namespace}-carousel-indicator-height) + var(--#{$namespace}-carousel-indicator-padding-vertical) * 2);
|
|
141
|
+
text-align: center;
|
|
142
|
+
position: static;
|
|
143
|
+
transform: none;
|
|
144
|
+
|
|
145
|
+
.#{$namespace}-carousel__indicator:hover button {
|
|
146
|
+
opacity: 0.64;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
button {
|
|
150
|
+
background-color: var(--#{$namespace}-carousel-indicator-out-color);
|
|
151
|
+
opacity: 0.24;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.#{$namespace}-carousel__indicators--right {
|
|
156
|
+
right: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.#{$namespace}-carousel__indicators--labels {
|
|
160
|
+
left: 0;
|
|
161
|
+
right: 0;
|
|
162
|
+
transform: none;
|
|
163
|
+
text-align: center;
|
|
164
|
+
|
|
165
|
+
.#{$namespace}-carousel__button {
|
|
166
|
+
height: auto;
|
|
167
|
+
width: auto;
|
|
168
|
+
padding: 2px 18px;
|
|
169
|
+
font-size: 12px;
|
|
170
|
+
color: #000;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.#{$namespace}-carousel__indicator {
|
|
174
|
+
padding: 6px 4px;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.#{$namespace}-carousel__indicator {
|
|
179
|
+
background-color: transparent;
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
|
|
182
|
+
&:hover button {
|
|
183
|
+
opacity: 0.72;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.#{$namespace}-carousel__indicator--horizontal {
|
|
188
|
+
display: inline-block;
|
|
189
|
+
padding: var(--#{$namespace}-carousel-indicator-padding-vertical) var(--#{$namespace}-carousel-indicator-padding-horizontal);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.#{$namespace}-carousel__indicator--vertical {
|
|
193
|
+
padding: var(--#{$namespace}-carousel-indicator-padding-horizontal) var(--#{$namespace}-carousel-indicator-padding-vertical);
|
|
194
|
+
|
|
195
|
+
.#{$namespace}-carousel__button {
|
|
196
|
+
width: var(--#{$namespace}-carousel-indicator-height);
|
|
197
|
+
height: calc(var(--#{$namespace}-carousel-indicator-width) / 2);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.#{$namespace}-carousel__indicator.is-active button {
|
|
202
|
+
opacity: 1;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.#{$namespace}-carousel__button {
|
|
206
|
+
display: block;
|
|
207
|
+
opacity: 0.48;
|
|
208
|
+
width: var(--#{$namespace}-carousel-indicator-width);
|
|
209
|
+
height: var(--#{$namespace}-carousel-indicator-height);
|
|
210
|
+
background-color: #fff;
|
|
211
|
+
border: none;
|
|
212
|
+
outline: none;
|
|
213
|
+
padding: 0;
|
|
214
|
+
margin: 0;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
transition: var(--#{$namespace}-transition-duration);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.carousel-arrow-left-enter-from,
|
|
220
|
+
.carousel-arrow-left-leave-active {
|
|
221
|
+
transform: translateY(-50%) translate(-10px);
|
|
222
|
+
opacity: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.carousel-arrow-right-enter-from,
|
|
226
|
+
.carousel-arrow-right-leave-active {
|
|
227
|
+
transform: translateY(-50%) translate(10px);
|
|
228
|
+
opacity: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.#{$namespace}-transitioning {
|
|
232
|
+
filter: url(#elCarouselHorizontal);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.#{$namespace}-transitioning-vertical {
|
|
236
|
+
filter: url(#elCarouselVertical);
|
|
237
|
+
}
|