xt-element-ui 2.2.2 → 2.2.4
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/README.md +140 -192
- package/docs/README.md +162 -81
- package/docs/components/base/theme.md +248 -0
- package/docs/components/base/xt-button.md +11 -4
- package/docs/components/base/xt-card.md +5 -11
- package/docs/components/base/xt-config-provider.md +2 -0
- package/docs/components/base/xt-flow.md +404 -0
- package/docs/components/base/xt-list.md +1 -1
- package/docs/components/base/xt-multi.md +5 -5
- package/docs/components/base/xt-scroll-arrow.md +87 -1
- package/docs/components/base/xt-scroll.md +237 -0
- package/docs/components/business/xt-chart.md +1 -0
- package/docs/components/utils/config.md +18 -4
- package/docs/components/utils/theme.md +280 -183
- package/lib/index.common.1.js +4 -26
- package/lib/index.common.2.js +1 -1
- package/lib/index.common.js +4577 -109925
- package/lib/index.css +1 -1
- package/lib/index.umd.1.js +4 -26
- package/lib/index.umd.2.js +1 -1
- package/lib/index.umd.js +4583 -109930
- package/lib/index.umd.min.1.js +1 -1
- package/lib/index.umd.min.js +1 -1
- package/lib/theme/element-overrides.css +607 -0
- package/lib/theme/element-vars.css +280 -0
- package/lib/xt-badge/xt-badge.common.js +1 -1
- package/lib/xt-badge/xt-badge.css +1 -1
- package/lib/xt-badge/xt-badge.umd.js +1 -1
- package/lib/xt-button/xt-button.common.js +13 -8
- package/lib/xt-button/xt-button.css +1 -1
- package/lib/xt-button/xt-button.umd.js +13 -8
- package/lib/xt-button/xt-button.umd.min.js +1 -1
- package/lib/xt-card/xt-card.common.js +5 -5
- package/lib/xt-card/xt-card.umd.js +5 -5
- package/lib/xt-card/xt-card.umd.min.js +1 -1
- package/lib/xt-card-item/xt-card-item.common.js +4 -4
- package/lib/xt-card-item/xt-card-item.umd.js +4 -4
- package/lib/xt-card-item/xt-card-item.umd.min.js +1 -1
- package/lib/xt-chart/xt-chart.common.js +1969 -108924
- package/lib/xt-chart/xt-chart.css +1 -1
- package/lib/xt-chart/xt-chart.umd.js +1975 -108929
- package/lib/xt-chart/xt-chart.umd.min.js +1 -1
- package/lib/xt-config-provider/xt-config-provider.common.js +561 -107504
- package/lib/xt-config-provider/xt-config-provider.css +1 -1
- package/lib/xt-config-provider/xt-config-provider.umd.js +567 -107509
- package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -1
- package/lib/xt-date-picker/xt-date-picker.common.1.js +4 -26
- package/lib/xt-date-picker/xt-date-picker.common.2.js +1 -1
- package/lib/xt-date-picker/xt-date-picker.common.js +1 -47
- package/lib/xt-date-picker/xt-date-picker.css +1 -1
- package/lib/xt-date-picker/xt-date-picker.umd.1.js +4 -26
- package/lib/xt-date-picker/xt-date-picker.umd.2.js +1 -1
- package/lib/xt-date-picker/xt-date-picker.umd.js +1 -47
- package/lib/xt-date-picker/xt-date-picker.umd.min.1.js +1 -1
- package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -1
- package/lib/xt-flex-box/xt-flex-box.common.js +1 -1
- package/lib/xt-flex-box/xt-flex-box.umd.js +1 -1
- package/lib/xt-flow/demo.html +10 -0
- package/lib/xt-flow/index.js +1 -0
- package/lib/xt-flow/xt-flow.common.js +638 -0
- package/lib/xt-flow/xt-flow.css +1 -0
- package/lib/xt-flow/xt-flow.umd.js +648 -0
- package/lib/xt-flow/xt-flow.umd.min.js +1 -0
- package/lib/xt-form-schema/xt-form-schema.common.js +1 -1
- package/lib/xt-form-schema/xt-form-schema.umd.js +1 -1
- package/lib/xt-grid-box/xt-grid-box.common.js +1 -1
- package/lib/xt-grid-box/xt-grid-box.umd.js +1 -1
- package/lib/xt-grid-item/xt-grid-item.common.js +1 -1
- package/lib/xt-grid-item/xt-grid-item.umd.js +1 -1
- package/lib/xt-icon/xt-icon.common.js +1 -1
- package/lib/xt-icon/xt-icon.umd.js +1 -1
- package/lib/xt-input/xt-input.common.js +1 -1
- package/lib/xt-input/xt-input.umd.js +1 -1
- package/lib/xt-list/xt-list.common.js +457 -118
- package/lib/xt-list/xt-list.css +1 -1
- package/lib/xt-list/xt-list.umd.js +457 -118
- package/lib/xt-list/xt-list.umd.min.js +1 -1
- package/lib/xt-map/xt-map.common.js +1 -1
- package/lib/xt-map/xt-map.umd.js +1 -1
- package/lib/xt-map-provider/xt-map-provider.common.js +1 -1
- package/lib/xt-map-provider/xt-map-provider.umd.js +1 -1
- package/lib/xt-page/xt-page.common.js +1 -1
- package/lib/xt-page/xt-page.umd.js +1 -1
- package/lib/xt-progress/xt-progress.common.js +1 -1
- package/lib/xt-progress/xt-progress.umd.js +1 -1
- package/lib/xt-scroll/demo.html +10 -0
- package/lib/xt-scroll/index.js +1 -0
- package/lib/xt-scroll/xt-scroll.common.js +551 -0
- package/lib/xt-scroll/xt-scroll.css +1 -0
- package/lib/xt-scroll/xt-scroll.umd.js +561 -0
- package/lib/xt-scroll/xt-scroll.umd.min.js +1 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +591 -170
- package/lib/xt-scroll-arrow/xt-scroll-arrow.css +1 -1
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +591 -170
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.min.js +1 -1
- package/lib/xt-select-tree/xt-select-tree.common.js +1 -1
- package/lib/xt-select-tree/xt-select-tree.umd.js +1 -1
- package/lib/xt-step-price/xt-step-price.common.js +2 -2
- package/lib/xt-step-price/xt-step-price.umd.js +2 -2
- package/lib/xt-step-price-item/xt-step-price-item.common.js +1 -1
- package/lib/xt-step-price-item/xt-step-price-item.umd.js +1 -1
- package/lib/xt-tab-pane/xt-tab-pane.common.js +1 -1
- package/lib/xt-tab-pane/xt-tab-pane.umd.js +1 -1
- package/lib/xt-table/xt-table.common.js +2 -2
- package/lib/xt-table/xt-table.umd.js +2 -2
- package/lib/xt-tabs/xt-tabs.common.js +1 -1
- package/lib/xt-tabs/xt-tabs.umd.js +1 -1
- package/lib/xt-text/xt-text.common.js +1 -1
- package/lib/xt-text/xt-text.css +1 -1
- package/lib/xt-text/xt-text.umd.js +1 -1
- package/lib/xt-time/xt-time.common.js +1 -1
- package/lib/xt-time/xt-time.umd.js +1 -1
- package/lib/xt-transfer-tree/xt-transfer-tree.common.js +1 -1
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +1 -1
- package/lib/xt-upload/xt-upload.common.js +11 -11
- package/lib/xt-upload/xt-upload.umd.js +12 -12
- package/lib/xt-upload/xt-upload.umd.min.js +1 -1
- package/package.json +6 -5
- package/src/components/index.scss +7 -1
- package/src/components/theme/element-overrides.css +607 -0
- package/src/components/theme/element-vars.css +280 -0
- package/src/components/theme/iframe-injector.js +502 -0
- package/src/components/theme/index.js +64 -0
- package/src/components/xt-badge/style/index.scss +6 -6
- package/src/components/xt-button/index.vue +11 -6
- package/src/components/xt-button/style/index.scss +7 -5
- package/src/components/xt-card/index.vue +3 -3
- package/src/components/xt-card-item/index.vue +2 -2
- package/src/components/xt-chart/XtMulti.vue +8 -18
- package/src/components/xt-chart/XtPie.vue +1 -0
- package/src/components/xt-chart/utils.js +84 -50
- package/src/components/xt-config-provider/index.vue +56 -54
- package/src/components/xt-config-provider/style/index.scss +0 -11
- package/src/components/xt-date-picker/component/RangeDate.vue +1 -29
- package/src/components/xt-date-picker/style/index.scss +79 -54
- package/src/components/xt-flow/flowable-parser.js +244 -0
- package/src/components/xt-flow/index.js +8 -0
- package/src/components/xt-flow/index.vue +226 -0
- package/src/components/xt-flow/style/index.scss +359 -0
- package/src/components/xt-list/index.vue +23 -12
- package/src/components/xt-scroll/index.js +9 -0
- package/src/components/xt-scroll/index.vue +363 -0
- package/src/components/xt-scroll/style/index.scss +107 -0
- package/src/components/xt-scroll-arrow/index.vue +200 -83
- package/src/components/xt-scroll-arrow/style/index.scss +16 -5
- package/src/components/xt-text/style/index.scss +6 -6
- package/src/index.js +15 -13
- package/src/styles/css-variables.scss +73 -1
- package/src/utils/color.js +105 -0
- package/src/utils/index.js +456 -468
- package/src/utils/theme-vars.js +134 -0
- package/lib/css/1.87a493be.css +0 -1
- package/lib/xt-date-picker/css/1.87a493be.css +0 -1
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
* XT-Element-UI 主题 CSS 变量定义
|
|
3
|
+
* 用于注入到子系统 iframe 的 <head> 中
|
|
4
|
+
*
|
|
5
|
+
* 设计原则:
|
|
6
|
+
* 1. 定义 Element UI 所需的全部 CSS 变量(--el-*)
|
|
7
|
+
* 2. 亮色主题为默认值(:root)
|
|
8
|
+
* 3. 暗色主题通过 [data-theme="dark"] 切换
|
|
9
|
+
* 4. 子系统无需任何改造,变量注入即生效
|
|
10
|
+
* ============================================================ */
|
|
11
|
+
|
|
12
|
+
/* ==================== 亮色主题(默认) ==================== */
|
|
13
|
+
:root {
|
|
14
|
+
/* 基础色 */
|
|
15
|
+
--el-color-white: #ffffff;
|
|
16
|
+
--el-color-black: #000000;
|
|
17
|
+
|
|
18
|
+
/* 主色 RGB */
|
|
19
|
+
--el-color-primary-rgb: 24, 144, 255;
|
|
20
|
+
--el-color-success-rgb: 103, 194, 58;
|
|
21
|
+
--el-color-warning-rgb: 230, 162, 60;
|
|
22
|
+
--el-color-danger-rgb: 245, 108, 108;
|
|
23
|
+
--el-color-error-rgb: 245, 108, 108;
|
|
24
|
+
--el-color-info-rgb: 144, 147, 153;
|
|
25
|
+
|
|
26
|
+
/* 主色 */
|
|
27
|
+
--el-color-primary: #1890ff;
|
|
28
|
+
--el-color-primary-light-3: #5db1ff;
|
|
29
|
+
--el-color-primary-light-5: #8cc8ff;
|
|
30
|
+
--el-color-primary-light-7: #badeff;
|
|
31
|
+
--el-color-primary-light-8: #d1e9ff;
|
|
32
|
+
--el-color-primary-light-9: #e8f4ff;
|
|
33
|
+
--el-color-primary-dark-2: #1373cc;
|
|
34
|
+
|
|
35
|
+
/* 成功色 */
|
|
36
|
+
--el-color-success: #67c23a;
|
|
37
|
+
--el-color-success-light-3: #95d475;
|
|
38
|
+
--el-color-success-light-5: #b3e19d;
|
|
39
|
+
--el-color-success-light-7: #d1edc4;
|
|
40
|
+
--el-color-success-light-8: #e1f3d8;
|
|
41
|
+
--el-color-success-light-9: #f0f9eb;
|
|
42
|
+
--el-color-success-dark-2: #529b2e;
|
|
43
|
+
|
|
44
|
+
/* 警告色 */
|
|
45
|
+
--el-color-warning: #e6a23c;
|
|
46
|
+
--el-color-warning-light-3: #eebe77;
|
|
47
|
+
--el-color-warning-light-5: #f3d19e;
|
|
48
|
+
--el-color-warning-light-7: #f8e3c5;
|
|
49
|
+
--el-color-warning-light-8: #faecd8;
|
|
50
|
+
--el-color-warning-light-9: #fdf6ec;
|
|
51
|
+
--el-color-warning-dark-2: #b88230;
|
|
52
|
+
|
|
53
|
+
/* 危险色 */
|
|
54
|
+
--el-color-danger: #f56c6c;
|
|
55
|
+
--el-color-danger-light-3: #f89898;
|
|
56
|
+
--el-color-danger-light-5: #fab6b6;
|
|
57
|
+
--el-color-danger-light-7: #fcd3d3;
|
|
58
|
+
--el-color-danger-light-8: #fde2e2;
|
|
59
|
+
--el-color-danger-light-9: #fef0f0;
|
|
60
|
+
--el-color-danger-dark-2: #c45656;
|
|
61
|
+
|
|
62
|
+
/* 错误色 */
|
|
63
|
+
--el-color-error: #f56c6c;
|
|
64
|
+
--el-color-error-light-3: #f89898;
|
|
65
|
+
--el-color-error-light-5: #fab6b6;
|
|
66
|
+
--el-color-error-light-7: #fcd3d3;
|
|
67
|
+
--el-color-error-light-8: #fde2e2;
|
|
68
|
+
--el-color-error-light-9: #fef0f0;
|
|
69
|
+
--el-color-error-dark-2: #c45656;
|
|
70
|
+
|
|
71
|
+
/* 信息色 */
|
|
72
|
+
--el-color-info: #909399;
|
|
73
|
+
--el-color-info-light-3: #b1b3b8;
|
|
74
|
+
--el-color-info-light-5: #c8c9cc;
|
|
75
|
+
--el-color-info-light-7: #dedfe0;
|
|
76
|
+
--el-color-info-light-8: #e9e9eb;
|
|
77
|
+
--el-color-info-light-9: #f4f4f5;
|
|
78
|
+
--el-color-info-dark-2: #73767a;
|
|
79
|
+
|
|
80
|
+
/* 背景色 */
|
|
81
|
+
--el-bg-color: #ffffff;
|
|
82
|
+
--el-bg-color-page: #f2f3f5;
|
|
83
|
+
--el-bg-color-overlay: #ffffff;
|
|
84
|
+
--el-bg-color-block: #ffffff;
|
|
85
|
+
|
|
86
|
+
/* 文字色 */
|
|
87
|
+
--el-text-color-primary: #303133;
|
|
88
|
+
--el-text-color-regular: #606266;
|
|
89
|
+
--el-text-color-secondary: #909399;
|
|
90
|
+
--el-text-color-placeholder: #a8abb2;
|
|
91
|
+
--el-text-color-disabled: #c0c4cc;
|
|
92
|
+
|
|
93
|
+
/* 边框色 */
|
|
94
|
+
--el-border-color: #dcdfe6;
|
|
95
|
+
--el-border-color-light: #e4e7ed;
|
|
96
|
+
--el-border-color-lighter: #ebeef5;
|
|
97
|
+
--el-border-color-extra-light: #f2f6fc;
|
|
98
|
+
--el-border-color-dark: #d4d7de;
|
|
99
|
+
--el-border-color-darker: #cdd0d6;
|
|
100
|
+
|
|
101
|
+
/* 填充色 */
|
|
102
|
+
--el-fill-color: #f0f2f5;
|
|
103
|
+
--el-fill-color-light: #f5f7fa;
|
|
104
|
+
--el-fill-color-lighter: #fafafa;
|
|
105
|
+
--el-fill-color-extra-light: #fafcff;
|
|
106
|
+
--el-fill-color-dark: #ebedf0;
|
|
107
|
+
--el-fill-color-darker: #e6e8eb;
|
|
108
|
+
--el-fill-color-blank: #ffffff;
|
|
109
|
+
|
|
110
|
+
/* 阴影 */
|
|
111
|
+
--el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);
|
|
112
|
+
--el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);
|
|
113
|
+
--el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);
|
|
114
|
+
--el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);
|
|
115
|
+
|
|
116
|
+
/* 禁用状态 */
|
|
117
|
+
--el-disabled-bg-color: var(--el-fill-color-light);
|
|
118
|
+
--el-disabled-text-color: var(--el-text-color-placeholder);
|
|
119
|
+
--el-disabled-border-color: var(--el-border-color-light);
|
|
120
|
+
|
|
121
|
+
/* 遮罩 */
|
|
122
|
+
--el-overlay-color: rgba(0, 0, 0, .8);
|
|
123
|
+
--el-overlay-color-light: rgba(0, 0, 0, .7);
|
|
124
|
+
--el-overlay-color-lighter: rgba(0, 0, 0, .5);
|
|
125
|
+
--el-mask-color: rgba(255, 255, 255, .9);
|
|
126
|
+
--el-mask-color-extra-light: rgba(255, 255, 255, .3);
|
|
127
|
+
|
|
128
|
+
/* 边框 */
|
|
129
|
+
--el-border-width: 1px;
|
|
130
|
+
--el-border-style: solid;
|
|
131
|
+
--el-border-color-hover: var(--el-text-color-disabled);
|
|
132
|
+
--el-border: var(--el-border-width) var(--el-border-style) var(--el-border-color);
|
|
133
|
+
|
|
134
|
+
/* 字体 */
|
|
135
|
+
--el-font-size-extra-large: 20px;
|
|
136
|
+
--el-font-size-large: 18px;
|
|
137
|
+
--el-font-size-medium: 16px;
|
|
138
|
+
--el-font-size-base: 14px;
|
|
139
|
+
--el-font-size-small: 13px;
|
|
140
|
+
--el-font-size-extra-small: 12px;
|
|
141
|
+
--el-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|
142
|
+
--el-font-weight-primary: 500;
|
|
143
|
+
|
|
144
|
+
/* 圆角 */
|
|
145
|
+
--el-border-radius-base: 4px;
|
|
146
|
+
--el-border-radius-small: 2px;
|
|
147
|
+
--el-border-radius-round: 20px;
|
|
148
|
+
--el-border-radius-circle: 100%;
|
|
149
|
+
|
|
150
|
+
/* 过渡 */
|
|
151
|
+
--el-transition-duration: .3s;
|
|
152
|
+
--el-transition-duration-fast: .2s;
|
|
153
|
+
--el-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);
|
|
154
|
+
--el-transition-fast-bezier: cubic-bezier(.23, 1, .32, 1);
|
|
155
|
+
--el-transition-all: all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);
|
|
156
|
+
--el-transition-fade: opacity var(--el-transition-duration) var(--el-transition-fast-bezier);
|
|
157
|
+
--el-transition-md-fade: transform var(--el-transition-duration) var(--el-transition-fast-bezier), opacity var(--el-transition-duration) var(--el-transition-fast-bezier);
|
|
158
|
+
--el-transition-fade-linear: opacity var(--el-transition-duration-fast) linear;
|
|
159
|
+
--el-transition-border: border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);
|
|
160
|
+
--el-transition-box-shadow: box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);
|
|
161
|
+
--el-transition-color: color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);
|
|
162
|
+
|
|
163
|
+
/* 组件尺寸 */
|
|
164
|
+
--el-component-size-large: 40px;
|
|
165
|
+
--el-component-size: 32px;
|
|
166
|
+
--el-component-size-small: 24px;
|
|
167
|
+
|
|
168
|
+
/* 间距 */
|
|
169
|
+
--el-spacing-xs: 8px;
|
|
170
|
+
--el-spacing-sm: 12px;
|
|
171
|
+
--el-spacing-md: 16px;
|
|
172
|
+
--el-spacing-lg: 24px;
|
|
173
|
+
--el-spacing-xl: 32px;
|
|
174
|
+
|
|
175
|
+
/* 层级 */
|
|
176
|
+
--el-index-normal: 1;
|
|
177
|
+
--el-index-top: 1000;
|
|
178
|
+
--el-index-popper: 2000;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* ==================== 暗色主题 ==================== */
|
|
182
|
+
:root[data-theme="dark"],
|
|
183
|
+
[data-theme="dark"],
|
|
184
|
+
html.dark {
|
|
185
|
+
color-scheme: dark;
|
|
186
|
+
|
|
187
|
+
/* 主色 - 暗色下稍亮 */
|
|
188
|
+
--el-color-primary: #409eff;
|
|
189
|
+
--el-color-primary-light-3: #3375b9;
|
|
190
|
+
--el-color-primary-light-5: #2a598a;
|
|
191
|
+
--el-color-primary-light-7: #213d5b;
|
|
192
|
+
--el-color-primary-light-8: #1d3043;
|
|
193
|
+
--el-color-primary-light-9: #18222b;
|
|
194
|
+
--el-color-primary-dark-2: #66b1ff;
|
|
195
|
+
|
|
196
|
+
/* 成功色 */
|
|
197
|
+
--el-color-success: #67c23a;
|
|
198
|
+
--el-color-success-light-3: #4e8e2f;
|
|
199
|
+
--el-color-success-light-5: #3e6b27;
|
|
200
|
+
--el-color-success-light-7: #2d481f;
|
|
201
|
+
--el-color-success-light-8: #25371c;
|
|
202
|
+
--el-color-success-light-9: #1c2518;
|
|
203
|
+
--el-color-success-dark-2: #85ce61;
|
|
204
|
+
|
|
205
|
+
/* 警告色 */
|
|
206
|
+
--el-color-warning: #e6a23c;
|
|
207
|
+
--el-color-warning-light-3: #a77730;
|
|
208
|
+
--el-color-warning-light-5: #7d5b28;
|
|
209
|
+
--el-color-warning-light-7: #533f20;
|
|
210
|
+
--el-color-warning-light-8: #3e301c;
|
|
211
|
+
--el-color-warning-light-9: #292218;
|
|
212
|
+
--el-color-warning-dark-2: #ebb563;
|
|
213
|
+
|
|
214
|
+
/* 危险色 */
|
|
215
|
+
--el-color-danger: #f56c6c;
|
|
216
|
+
--el-color-danger-light-3: #b25252;
|
|
217
|
+
--el-color-danger-light-5: #854040;
|
|
218
|
+
--el-color-danger-light-7: #582e2e;
|
|
219
|
+
--el-color-danger-light-8: #412626;
|
|
220
|
+
--el-color-danger-light-9: #2a1d1d;
|
|
221
|
+
--el-color-danger-dark-2: #f78989;
|
|
222
|
+
|
|
223
|
+
/* 错误色 */
|
|
224
|
+
--el-color-error: #f56c6c;
|
|
225
|
+
--el-color-error-light-3: #b25252;
|
|
226
|
+
--el-color-error-light-5: #854040;
|
|
227
|
+
--el-color-error-light-7: #582e2e;
|
|
228
|
+
--el-color-error-light-8: #412626;
|
|
229
|
+
--el-color-error-light-9: #2a1d1d;
|
|
230
|
+
--el-color-error-dark-2: #f78989;
|
|
231
|
+
|
|
232
|
+
/* 信息色 */
|
|
233
|
+
--el-color-info: #909399;
|
|
234
|
+
--el-color-info-light-3: #6b6d71;
|
|
235
|
+
--el-color-info-light-5: #525457;
|
|
236
|
+
--el-color-info-light-7: #393a3c;
|
|
237
|
+
--el-color-info-light-8: #2d2d2f;
|
|
238
|
+
--el-color-info-light-9: #202121;
|
|
239
|
+
--el-color-info-dark-2: #a6a9ad;
|
|
240
|
+
|
|
241
|
+
/* 背景色 */
|
|
242
|
+
--el-bg-color: #141414;
|
|
243
|
+
--el-bg-color-page: #0a0a0a;
|
|
244
|
+
--el-bg-color-overlay: #1d1e1f;
|
|
245
|
+
--el-bg-color-block: #141414;
|
|
246
|
+
|
|
247
|
+
/* 文字色 */
|
|
248
|
+
--el-text-color-primary: #E5EAF3;
|
|
249
|
+
--el-text-color-regular: #CFD3DC;
|
|
250
|
+
--el-text-color-secondary: #A3A6AD;
|
|
251
|
+
--el-text-color-placeholder: #8D9095;
|
|
252
|
+
--el-text-color-disabled: #6C6E72;
|
|
253
|
+
|
|
254
|
+
/* 边框色 */
|
|
255
|
+
--el-border-color: #4C4D4F;
|
|
256
|
+
--el-border-color-light: #414243;
|
|
257
|
+
--el-border-color-lighter: #363637;
|
|
258
|
+
--el-border-color-extra-light: #2B2B2C;
|
|
259
|
+
--el-border-color-dark: #58585B;
|
|
260
|
+
--el-border-color-darker: #636466;
|
|
261
|
+
|
|
262
|
+
/* 填充色 */
|
|
263
|
+
--el-fill-color: #303030;
|
|
264
|
+
--el-fill-color-light: #262727;
|
|
265
|
+
--el-fill-color-lighter: #1D1D1D;
|
|
266
|
+
--el-fill-color-extra-light: #191919;
|
|
267
|
+
--el-fill-color-dark: #39393A;
|
|
268
|
+
--el-fill-color-darker: #424243;
|
|
269
|
+
--el-fill-color-blank: #141414;
|
|
270
|
+
|
|
271
|
+
/* 阴影 */
|
|
272
|
+
--el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);
|
|
273
|
+
--el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);
|
|
274
|
+
--el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);
|
|
275
|
+
--el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;
|
|
276
|
+
|
|
277
|
+
/* 遮罩 */
|
|
278
|
+
--el-mask-color: rgba(0, 0, 0, .8);
|
|
279
|
+
--el-mask-color-extra-light: rgba(0, 0, 0, .3);
|
|
280
|
+
}
|
|
@@ -120,7 +120,7 @@ if (typeof window !== 'undefined') {
|
|
|
120
120
|
// EXTERNAL MODULE: ./src/components/xt-badge/style/index.scss
|
|
121
121
|
var style = __webpack_require__("bf3f");
|
|
122
122
|
|
|
123
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
123
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-badge/index.vue?vue&type=template&id=3f0a6b4e
|
|
124
124
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{class:_vm.rootClasses},[_c('span',{staticClass:"xt-badge__content"},[_vm._t("default")],2),(!_vm.hidden && (_vm.value || _vm.isDot))?_c('span',{staticClass:"xt-badge__badge",style:(_vm.badgeStyle)},[(_vm.isDot)?_c('span'):(_vm.isOverflow)?_c('span',[_vm._v(_vm._s(_vm.overflowText))]):_c('span',[_vm._v(_vm._s(_vm.value))])]):_vm._e()])
|
|
125
125
|
}
|
|
126
126
|
var staticRenderFns = []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.xt-badge{position:relative}.xt-badge,.xt-badge__content{display:inline-flex;align-items:center}.xt-badge__badge{position:absolute;top:-6px;right:-8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:12px;font-weight:500;line-height:18px;color:#fff;text-align:center;white-space:nowrap;background
|
|
1
|
+
.xt-badge{position:relative}.xt-badge,.xt-badge__content{display:inline-flex;align-items:center}.xt-badge__badge{position:absolute;top:-6px;right:-8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:12px;font-weight:500;line-height:18px;color:#fff;text-align:center;white-space:nowrap;background:var(--xt-color-danger)}.xt-badge--dot .xt-badge__badge{min-width:8px;width:8px;height:8px;padding:0;border-radius:50%}.xt-badge--fixed .xt-badge__badge{top:-4px;right:-4px}.xt-badge--primary .xt-badge__badge{background:var(--xt-color-primary)}.xt-badge--success .xt-badge__badge{background:var(--xt-color-success)}.xt-badge--warning .xt-badge__badge{background:var(--xt-color-warning)}.xt-badge--danger .xt-badge__badge{background:var(--xt-color-danger)}.xt-badge--info .xt-badge__badge{background:var(--xt-color-info)}.xt-badge--hidden{display:none}
|
|
@@ -129,7 +129,7 @@ if (typeof window !== 'undefined') {
|
|
|
129
129
|
// EXTERNAL MODULE: ./src/components/xt-badge/style/index.scss
|
|
130
130
|
var style = __webpack_require__("bf3f");
|
|
131
131
|
|
|
132
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
132
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-badge/index.vue?vue&type=template&id=3f0a6b4e
|
|
133
133
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{class:_vm.rootClasses},[_c('span',{staticClass:"xt-badge__content"},[_vm._t("default")],2),(!_vm.hidden && (_vm.value || _vm.isDot))?_c('span',{staticClass:"xt-badge__badge",style:(_vm.badgeStyle)},[(_vm.isDot)?_c('span'):(_vm.isOverflow)?_c('span',[_vm._v(_vm._s(_vm.overflowText))]):_c('span',[_vm._v(_vm._s(_vm.value))])]):_vm._e()])
|
|
134
134
|
}
|
|
135
135
|
var staticRenderFns = []
|
|
@@ -123,13 +123,13 @@ if (typeof window !== 'undefined') {
|
|
|
123
123
|
// EXTERNAL MODULE: ./src/components/xt-button/style/index.scss
|
|
124
124
|
var style = __webpack_require__("0ba5");
|
|
125
125
|
|
|
126
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
126
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-button/index.vue?vue&type=template&id=51370cdf
|
|
127
127
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-button',_vm._b({staticClass:"xt-button",class:_vm.buttonClasses,attrs:{"type":_vm.type},on:{"click":_vm.handleClick}},'el-button',_vm.$attrs,false),[_vm._t("default")],2)
|
|
128
128
|
}
|
|
129
129
|
var staticRenderFns = []
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
// CONCATENATED MODULE: ./src/components/xt-button/index.vue?vue&type=template&id=
|
|
132
|
+
// CONCATENATED MODULE: ./src/components/xt-button/index.vue?vue&type=template&id=51370cdf
|
|
133
133
|
|
|
134
134
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-button/index.vue?vue&type=script&lang=js
|
|
135
135
|
|
|
@@ -139,17 +139,17 @@ var staticRenderFns = []
|
|
|
139
139
|
inject: {
|
|
140
140
|
xtConfig: {
|
|
141
141
|
default: () => ({
|
|
142
|
-
theme:
|
|
143
|
-
size:
|
|
144
|
-
primaryColor:
|
|
142
|
+
theme: undefined,
|
|
143
|
+
size: undefined,
|
|
144
|
+
primaryColor: undefined
|
|
145
145
|
})
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
props: {
|
|
149
149
|
type: {
|
|
150
150
|
type: String,
|
|
151
|
-
default: '
|
|
152
|
-
validator: (val) => ['
|
|
151
|
+
default: '',
|
|
152
|
+
validator: (val) => ['', 'primary', 'success', 'warning', 'danger'].includes(val)
|
|
153
153
|
},
|
|
154
154
|
throttle: {
|
|
155
155
|
type: Number,
|
|
@@ -159,6 +159,10 @@ var staticRenderFns = []
|
|
|
159
159
|
type: String,
|
|
160
160
|
default: null,
|
|
161
161
|
validator: (val) => !val || ['mini', 'small', 'medium', 'large'].includes(val)
|
|
162
|
+
},
|
|
163
|
+
square: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
default: false
|
|
162
166
|
}
|
|
163
167
|
},
|
|
164
168
|
data() {
|
|
@@ -174,7 +178,8 @@ var staticRenderFns = []
|
|
|
174
178
|
buttonClasses() {
|
|
175
179
|
return [
|
|
176
180
|
`xt-button-${this.finalSize}`,
|
|
177
|
-
`xt-button-${this.type}
|
|
181
|
+
`xt-button-${this.type}`,
|
|
182
|
+
this.square ? 'is-square' : ''
|
|
178
183
|
]
|
|
179
184
|
}
|
|
180
185
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.xt-button{padding:8px 16px;border-radius:var(--xt-border-radius-small);font-size:var(--xt-font-size-small);border:1px solid var(--xt-border-color,#dcdfe6);transition:all .3s
|
|
1
|
+
.xt-button{padding:8px 16px;border-radius:var(--xt-border-radius-small);font-size:var(--xt-font-size-small);border:1px solid var(--xt-border-color,#dcdfe6);transition:all .3s;background-color:var(--xt-bg-color,#fff);color:var(--xt-text-color-primary,#303133)}.xt-button-primary{background-color:var(--xt-color-primary,#fff);border-color:var(--xt-color-primary,#fff);color:var(--xt-color-white,#fff)}.xt-button-success{background-color:var(--xt-color-success,#fff);border-color:var(--xt-color-success,#fff);color:var(--xt-color-white,#fff)}.xt-button-warning{background-color:var(--xt-color-warning,#fff);border-color:var(--xt-color-warning,#fff);color:var(--xt-color-white,#fff)}.xt-button-danger{background-color:var(--xt-color-danger,#fff);border-color:var(--xt-color-danger,#fff);color:var(--xt-color-white,#fff)}.xt-button-info{background-color:var(--xt-color-info,#fff);border-color:var(--xt-color-info,#fff);color:var(--xt-color-white,#fff)}.xt-button.is-square{padding:12px;border-radius:0}.xt-button:hover{opacity:.8}.xt-button-mini{padding:2px 4px;font-size:var(--xt-font-size-mini)}.xt-button-small{padding:5px 10px;font-size:var(--xt-font-size-small)}.xt-button-medium{padding:8px 16px;font-size:var(--xt-font-size-medium)}.xt-button-large{padding:11px 22px;font-size:var(--xt-font-size-large)}
|
|
@@ -132,13 +132,13 @@ if (typeof window !== 'undefined') {
|
|
|
132
132
|
// EXTERNAL MODULE: ./src/components/xt-button/style/index.scss
|
|
133
133
|
var style = __webpack_require__("0ba5");
|
|
134
134
|
|
|
135
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
135
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-button/index.vue?vue&type=template&id=51370cdf
|
|
136
136
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-button',_vm._b({staticClass:"xt-button",class:_vm.buttonClasses,attrs:{"type":_vm.type},on:{"click":_vm.handleClick}},'el-button',_vm.$attrs,false),[_vm._t("default")],2)
|
|
137
137
|
}
|
|
138
138
|
var staticRenderFns = []
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
// CONCATENATED MODULE: ./src/components/xt-button/index.vue?vue&type=template&id=
|
|
141
|
+
// CONCATENATED MODULE: ./src/components/xt-button/index.vue?vue&type=template&id=51370cdf
|
|
142
142
|
|
|
143
143
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-button/index.vue?vue&type=script&lang=js
|
|
144
144
|
|
|
@@ -148,17 +148,17 @@ var staticRenderFns = []
|
|
|
148
148
|
inject: {
|
|
149
149
|
xtConfig: {
|
|
150
150
|
default: () => ({
|
|
151
|
-
theme:
|
|
152
|
-
size:
|
|
153
|
-
primaryColor:
|
|
151
|
+
theme: undefined,
|
|
152
|
+
size: undefined,
|
|
153
|
+
primaryColor: undefined
|
|
154
154
|
})
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
props: {
|
|
158
158
|
type: {
|
|
159
159
|
type: String,
|
|
160
|
-
default: '
|
|
161
|
-
validator: (val) => ['
|
|
160
|
+
default: '',
|
|
161
|
+
validator: (val) => ['', 'primary', 'success', 'warning', 'danger'].includes(val)
|
|
162
162
|
},
|
|
163
163
|
throttle: {
|
|
164
164
|
type: Number,
|
|
@@ -168,6 +168,10 @@ var staticRenderFns = []
|
|
|
168
168
|
type: String,
|
|
169
169
|
default: null,
|
|
170
170
|
validator: (val) => !val || ['mini', 'small', 'medium', 'large'].includes(val)
|
|
171
|
+
},
|
|
172
|
+
square: {
|
|
173
|
+
type: Boolean,
|
|
174
|
+
default: false
|
|
171
175
|
}
|
|
172
176
|
},
|
|
173
177
|
data() {
|
|
@@ -183,7 +187,8 @@ var staticRenderFns = []
|
|
|
183
187
|
buttonClasses() {
|
|
184
188
|
return [
|
|
185
189
|
`xt-button-${this.finalSize}`,
|
|
186
|
-
`xt-button-${this.type}
|
|
190
|
+
`xt-button-${this.type}`,
|
|
191
|
+
this.square ? 'is-square' : ''
|
|
187
192
|
]
|
|
188
193
|
}
|
|
189
194
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["xt-button"]=e():t["xt-button"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0ba5":function(t,e,n){},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"XtButton",(function(){return c})),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("0ba5");var i=function(){var t=this,e=t._self._c;return e("el-button",t._b({staticClass:"xt-button",class:t.buttonClasses,attrs:{type:t.type},on:{click:t.handleClick}},"el-button",t.$attrs,!1),[t._t("default")],2)},
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["xt-button"]=e():t["xt-button"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0ba5":function(t,e,n){},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"XtButton",(function(){return c})),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("0ba5");var i=function(){var t=this,e=t._self._c;return e("el-button",t._b({staticClass:"xt-button",class:t.buttonClasses,attrs:{type:t.type},on:{click:t.handleClick}},"el-button",t.$attrs,!1),[t._t("default")],2)},s=[],u={name:"XtButton",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:void 0,size:void 0,primaryColor:void 0})}},props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},throttle:{type:Number,default:0},size:{type:String,default:null,validator:t=>!t||["mini","small","medium","large"].includes(t)},square:{type:Boolean,default:!1}},data(){return{lastClickTime:0}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},buttonClasses(){return["xt-button-"+this.finalSize,"xt-button-"+this.type,this.square?"is-square":""]}},methods:{handleClick(){this.throttle>0&&Date.now()-this.lastClickTime<this.throttle||(this.lastClickTime=Date.now(),this.$emit("click"))}}},a=u;function l(t,e,n,r,o,i,s,u){var a,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=a):o&&(a=u?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(l.functional){l._injectStyles=a;var f=l.render;l.render=function(t,e){return a.call(e),f(t,e)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,a):[a]}return{exports:t,options:l}}var f=l(a,i,s,!1,null,null,null),c=f.exports;c.install=function(t){t.component(c.name,c)};var d=c;e["default"]=d}})}));
|
|
@@ -120,13 +120,13 @@ if (typeof window !== 'undefined') {
|
|
|
120
120
|
// EXTERNAL MODULE: ./src/components/xt-card/style/index.scss
|
|
121
121
|
var style = __webpack_require__("419e");
|
|
122
122
|
|
|
123
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
123
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card/index.vue?vue&type=template&id=27e108a6
|
|
124
124
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-card',_vm._b({staticClass:"xt-card",class:_vm.cardClasses,scopedSlots:_vm._u([(_vm.$slots.header || _vm.title)?{key:"header",fn:function(){return [_vm._t("header",function(){return [_vm._v(_vm._s(_vm.title))]})]},proxy:true}:null],null,true)},'el-card',_vm.$attrs,false),[_vm._t("default")],2)
|
|
125
125
|
}
|
|
126
126
|
var staticRenderFns = []
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
// CONCATENATED MODULE: ./src/components/xt-card/index.vue?vue&type=template&id=
|
|
129
|
+
// CONCATENATED MODULE: ./src/components/xt-card/index.vue?vue&type=template&id=27e108a6
|
|
130
130
|
|
|
131
131
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card/index.vue?vue&type=script&lang=js
|
|
132
132
|
|
|
@@ -136,9 +136,9 @@ var staticRenderFns = []
|
|
|
136
136
|
inject: {
|
|
137
137
|
xtConfig: {
|
|
138
138
|
default: () => ({
|
|
139
|
-
theme:
|
|
140
|
-
size:
|
|
141
|
-
primaryColor:
|
|
139
|
+
theme: undefined,
|
|
140
|
+
size: undefined,
|
|
141
|
+
primaryColor: undefined
|
|
142
142
|
})
|
|
143
143
|
}
|
|
144
144
|
},
|
|
@@ -129,13 +129,13 @@ if (typeof window !== 'undefined') {
|
|
|
129
129
|
// EXTERNAL MODULE: ./src/components/xt-card/style/index.scss
|
|
130
130
|
var style = __webpack_require__("419e");
|
|
131
131
|
|
|
132
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
132
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card/index.vue?vue&type=template&id=27e108a6
|
|
133
133
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-card',_vm._b({staticClass:"xt-card",class:_vm.cardClasses,scopedSlots:_vm._u([(_vm.$slots.header || _vm.title)?{key:"header",fn:function(){return [_vm._t("header",function(){return [_vm._v(_vm._s(_vm.title))]})]},proxy:true}:null],null,true)},'el-card',_vm.$attrs,false),[_vm._t("default")],2)
|
|
134
134
|
}
|
|
135
135
|
var staticRenderFns = []
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
// CONCATENATED MODULE: ./src/components/xt-card/index.vue?vue&type=template&id=
|
|
138
|
+
// CONCATENATED MODULE: ./src/components/xt-card/index.vue?vue&type=template&id=27e108a6
|
|
139
139
|
|
|
140
140
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card/index.vue?vue&type=script&lang=js
|
|
141
141
|
|
|
@@ -145,9 +145,9 @@ var staticRenderFns = []
|
|
|
145
145
|
inject: {
|
|
146
146
|
xtConfig: {
|
|
147
147
|
default: () => ({
|
|
148
|
-
theme:
|
|
149
|
-
size:
|
|
150
|
-
primaryColor:
|
|
148
|
+
theme: undefined,
|
|
149
|
+
size: undefined,
|
|
150
|
+
primaryColor: undefined
|
|
151
151
|
})
|
|
152
152
|
}
|
|
153
153
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["xt-card"]=t():e["xt-card"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"419e":function(e,t,n){},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("419e");var i=function(){var e=this,t=e._self._c;return t("el-card",e._b({staticClass:"xt-card",class:e.cardClasses,scopedSlots:e._u([e.$slots.header||e.title?{key:"header",fn:function(){return[e._t("header",(function(){return[e._v(e._s(e.title))]}))]},proxy:!0}:null],null,!0)},"el-card",e.$attrs,!1),[e._t("default")],2)},s=[],a={name:"XtCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["xt-card"]=t():e["xt-card"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"419e":function(e,t,n){},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("419e");var i=function(){var e=this,t=e._self._c;return t("el-card",e._b({staticClass:"xt-card",class:e.cardClasses,scopedSlots:e._u([e.$slots.header||e.title?{key:"header",fn:function(){return[e._t("header",(function(){return[e._v(e._s(e.title))]}))]},proxy:!0}:null],null,!0)},"el-card",e.$attrs,!1),[e._t("default")],2)},s=[],a={name:"XtCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:void 0,size:void 0,primaryColor:void 0})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:e=>["always","hover","never"].includes(e)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:e=>!e||["small","medium","large"].includes(e)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["xt-card-"+this.shadow,"xt-card-"+this.finalSize,{"xt-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},d=a;function l(e,t,n,r,o,i,s,a){var d,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=d):o&&(d=a?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(e,t){return d.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:l}}var u=l(d,i,s,!1,null,null,null),f=u.exports;f.install=function(e){e.component(f.name,f)};var c=f;t["default"]=c}})}));
|
|
@@ -123,13 +123,13 @@ if (typeof window !== 'undefined') {
|
|
|
123
123
|
// EXTERNAL MODULE: ./src/components/xt-card-item/style/index.scss
|
|
124
124
|
var style = __webpack_require__("c1e7");
|
|
125
125
|
|
|
126
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
127
|
-
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.
|
|
126
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=template&id=d091942c
|
|
127
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.reference),callback:function ($$v) {_vm.reference=$$v},expression:"reference"}})],1)],1),_c('div',{staticStyle:{"height":"100%"}},[_vm._t("icon",function(){return [_c('xt-text',{attrs:{"size":"extra-large","type":_vm.type}},[_c('xt-icon',{attrs:{"name":"el-icon-user","size":48}})],1)]})],2)])],1)
|
|
128
128
|
}
|
|
129
129
|
var staticRenderFns = []
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
// CONCATENATED MODULE: ./src/components/xt-card-item/index.vue?vue&type=template&id=
|
|
132
|
+
// CONCATENATED MODULE: ./src/components/xt-card-item/index.vue?vue&type=template&id=d091942c
|
|
133
133
|
|
|
134
134
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=script&lang=js
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ var staticRenderFns = []
|
|
|
140
140
|
title: { type: String, default: '' },
|
|
141
141
|
diff: { type: Number, default: 0 },
|
|
142
142
|
value: { type: Number, default: 0 },
|
|
143
|
-
|
|
143
|
+
reference: { type: Number, default: 0 },
|
|
144
144
|
},
|
|
145
145
|
data() {
|
|
146
146
|
return {
|
|
@@ -132,13 +132,13 @@ if (typeof window !== 'undefined') {
|
|
|
132
132
|
// EXTERNAL MODULE: ./src/components/xt-card-item/style/index.scss
|
|
133
133
|
var style = __webpack_require__("c1e7");
|
|
134
134
|
|
|
135
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
136
|
-
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.
|
|
135
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1d9e3ae5-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=template&id=d091942c
|
|
136
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.reference),callback:function ($$v) {_vm.reference=$$v},expression:"reference"}})],1)],1),_c('div',{staticStyle:{"height":"100%"}},[_vm._t("icon",function(){return [_c('xt-text',{attrs:{"size":"extra-large","type":_vm.type}},[_c('xt-icon',{attrs:{"name":"el-icon-user","size":48}})],1)]})],2)])],1)
|
|
137
137
|
}
|
|
138
138
|
var staticRenderFns = []
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
// CONCATENATED MODULE: ./src/components/xt-card-item/index.vue?vue&type=template&id=
|
|
141
|
+
// CONCATENATED MODULE: ./src/components/xt-card-item/index.vue?vue&type=template&id=d091942c
|
|
142
142
|
|
|
143
143
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=script&lang=js
|
|
144
144
|
|
|
@@ -149,7 +149,7 @@ var staticRenderFns = []
|
|
|
149
149
|
title: { type: String, default: '' },
|
|
150
150
|
diff: { type: Number, default: 0 },
|
|
151
151
|
value: { type: Number, default: 0 },
|
|
152
|
-
|
|
152
|
+
reference: { type: Number, default: 0 },
|
|
153
153
|
},
|
|
154
154
|
data() {
|
|
155
155
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["xt-card-item"]=t():e["xt-card-item"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({c1e7:function(e,t,n){},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"XtCardItem",(function(){return l})),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("c1e7");var i=function(){var e=this,t=e._self._c;return t("xt-card",{staticClass:"xt-card-item",class:{["is-"+e.type]:!!e.type},attrs:{bordered:!1}},[t("xt-flex-box",{attrs:{content:"between"}},[t("div",[t("div",[t("xt-text",{attrs:{bold:"",size:"extra-large"}},[e._v(e._s(e.title))])],1),t("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:e.type,decimals:0},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),t("div",{staticStyle:{margin:"5px 0"}},[t("xt-text",{attrs:{size:"small"}},[e._v("较昨日")]),t("xt-text",{attrs:{format:"normal",type:e.diff>0?"success":"danger",suffix:e.diff>0?"↑":"↓"},model:{value:e.
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["xt-card-item"]=t():e["xt-card-item"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({c1e7:function(e,t,n){},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"XtCardItem",(function(){return l})),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("c1e7");var i=function(){var e=this,t=e._self._c;return t("xt-card",{staticClass:"xt-card-item",class:{["is-"+e.type]:!!e.type},attrs:{bordered:!1}},[t("xt-flex-box",{attrs:{content:"between"}},[t("div",[t("div",[t("xt-text",{attrs:{bold:"",size:"extra-large"}},[e._v(e._s(e.title))])],1),t("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:e.type,decimals:0},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),t("div",{staticStyle:{margin:"5px 0"}},[t("xt-text",{attrs:{size:"small"}},[e._v("较昨日")]),t("xt-text",{attrs:{format:"normal",type:e.diff>0?"success":"danger",suffix:e.diff>0?"↑":"↓"},model:{value:e.reference,callback:function(t){e.reference=t},expression:"reference"}})],1)],1),t("div",{staticStyle:{height:"100%"}},[e._t("icon",(function(){return[t("xt-text",{attrs:{size:"extra-large",type:e.type}},[t("xt-icon",{attrs:{name:"el-icon-user",size:48}})],1)]}))],2)])],1)},a=[],s={name:"XtCardItem",props:{type:{type:String,default:"primary"},title:{type:String,default:""},diff:{type:Number,default:0},value:{type:Number,default:0},reference:{type:Number,default:0}},data(){return{}}},u=s;function f(e,t,n,r,o,i,a,s){var u,f="function"===typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=u):o&&(u=s?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(f.functional){f._injectStyles=u;var c=f.render;f.render=function(e,t){return u.call(t),c(e,t)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,u):[u]}return{exports:e,options:f}}var c=f(u,i,a,!1,null,null,null),l=c.exports;l.install=function(e){e.component(l.name,l)};var d=l;t["default"]=d}})}));
|