xt-element-ui 2.1.5 → 2.1.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/docs/components/base/xt-badge.md +0 -2
- package/docs/components/base/xt-bar.md +5 -32
- package/docs/components/base/xt-button.md +0 -2
- package/docs/components/base/xt-card-item.md +0 -2
- package/docs/components/base/xt-card.md +17 -19
- package/docs/components/base/xt-chart.md +5 -31
- package/docs/components/base/xt-config-provider.md +0 -2
- package/docs/components/base/xt-date-picker.md +268 -180
- package/docs/components/base/xt-flex-box.md +25 -25
- package/docs/components/base/xt-form-schema.md +356 -0
- package/docs/components/base/xt-grid-box.md +4 -6
- package/docs/components/base/xt-icon.md +0 -2
- package/docs/components/base/xt-input.md +204 -44
- package/docs/components/base/xt-line.md +4 -30
- package/docs/components/base/xt-list.md +456 -458
- package/docs/components/base/xt-map-provider.md +0 -2
- package/docs/components/base/xt-map.md +0 -2
- package/docs/components/base/xt-multi.md +5 -44
- package/docs/components/base/xt-page.md +17 -6
- package/docs/components/base/xt-pie.md +5 -30
- package/docs/components/base/xt-progress.md +0 -2
- package/docs/components/base/xt-scroll-arrow.md +0 -2
- package/docs/components/base/xt-select-tree.md +0 -2
- package/docs/components/base/xt-step-price.md +0 -2
- package/docs/components/base/xt-table.md +2 -2
- package/docs/components/base/xt-tabs.md +0 -2
- package/docs/components/base/xt-text.md +1 -2
- package/docs/components/base/xt-time.md +0 -2
- package/docs/components/base/xt-transfer-tree.md +0 -2
- package/docs/components/base/xt-upload.md +11 -8
- package/docs/components/utils/config.md +285 -0
- package/docs/components/utils/format.md +445 -0
- package/package.json +5 -2
- package/src/components/xt-badge/style/index.scss +0 -22
- package/src/components/xt-chart/XtBar.vue +0 -3
- package/src/components/xt-date-picker/component/Picker.vue +196 -0
- package/src/components/xt-date-picker/component/RangeDate.vue +136 -0
- package/src/components/xt-date-picker/index.vue +164 -144
- package/src/components/xt-flex-box/index.vue +1 -1
- package/src/components/xt-form-schema/index.js +8 -0
- package/src/components/xt-form-schema/index.vue +328 -0
- package/src/components/xt-grid-item/index.vue +2 -2
- package/src/components/xt-input/index.vue +224 -28
- package/src/components/xt-input/style/index.scss +10 -0
- package/src/components/xt-layout/ExFieldset.vue +4 -4
- package/src/components/xt-list/index.js +7 -7
- package/src/components/xt-list/index.vue +885 -885
- package/src/components/xt-page/index.vue +148 -75
- package/src/components/xt-progress/style/index.scss +0 -14
- package/src/components/xt-tab-pane/index.js +10 -0
- package/src/components/{xt-tabs/TabPane.vue → xt-tab-pane/index.vue} +14 -1
- package/src/components/xt-table/XtTableCell.vue +2 -2
- package/src/components/xt-table/index.vue +5 -7
- package/src/components/xt-tabs/index.js +1 -3
- package/src/components/xt-tabs/index.vue +303 -44
- package/src/components/xt-tabs/style/index.scss +0 -40
- package/src/components/xt-text/style/index.scss +0 -15
- package/src/components/xt-transfer-tree/index.js +7 -7
- package/src/components/xt-transfer-tree/index.vue +493 -493
- package/src/components/xt-upload/index.vue +12 -6
- package/src/enhance/index.scss +13 -0
- package/src/index.js +7 -2
- package/src/styles/theme/colors.scss +0 -44
- package/src/styles/theme/dark-variables.scss +0 -29
- package/lib/demo.html +0 -10
- package/lib/index.common.js +0 -126851
- package/lib/index.css +0 -1
- package/lib/index.umd.js +0 -126861
- package/lib/index.umd.min.js +0 -1
- package/src/components/xt-date-picker/SearchDate.vue +0 -45
- package/src/components/xt-date-picker/quarter.vue +0 -154
- package/src/components/xt-table/index copy.vue +0 -663
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<XtFlexBox type="inline-flex" gap="5px">
|
|
3
3
|
<el-upload
|
|
4
4
|
v-if="action"
|
|
5
5
|
ref="uploadFile"
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
:show-file-list="false"
|
|
14
14
|
:auto-upload="autoUpload"
|
|
15
15
|
:before-upload="uploadBefore"
|
|
16
|
-
accept="
|
|
16
|
+
:accept="accept"
|
|
17
17
|
>
|
|
18
|
-
<
|
|
18
|
+
<span style="font-size: 20px;padding: 20px;background:#f0f0f1;color:#409EFF" :style="{padding: plusPx / 2 + 'px',cursor:disabled ? 'not-allowed':'pointer'}">
|
|
19
|
+
<slot><i :class="icon"></i></slot>
|
|
20
|
+
</span>
|
|
19
21
|
</el-upload>
|
|
20
|
-
<
|
|
22
|
+
<XtFlexBox class="el-upload-list el-upload-list--picture-card" gap="5px" wrap="wrap" style="flex: 1" v-if="fileList!==null&&fileList.length>0">
|
|
21
23
|
<li v-for="(ite,index) in fileList" :key="index" class="el-upload-list__item is-ready" style="margin: 0;width:62px;height: 62px;" :style="{ width: (plusPx + 22)+ 'px',height: (plusPx + 22)+ 'px'}">
|
|
22
24
|
<el-image class="el-upload-list__item-thumbnail" :src="YSSQP+'/'+ite" alt="" @click="clickHandler" />
|
|
23
25
|
<span class="el-upload-list__item-actions" @click="preShowPicture(ite, index)">
|
|
@@ -29,11 +31,11 @@
|
|
|
29
31
|
</span>
|
|
30
32
|
</span>
|
|
31
33
|
</li>
|
|
32
|
-
</
|
|
34
|
+
</XtFlexBox>
|
|
33
35
|
<template v-if="preview">
|
|
34
36
|
<ImageViewer v-if="previewVisible" :z-index="3000" :base-url="baseUrl + '/'" :infiniteLoop="false" :initial-index="imageIndex" :url-list="allFileList || fileList" :on-close="closeViewer" />
|
|
35
37
|
</template>
|
|
36
|
-
</
|
|
38
|
+
</XtFlexBox>
|
|
37
39
|
</template>
|
|
38
40
|
<script>
|
|
39
41
|
import ImageViewer from "./preview.vue";
|
|
@@ -111,6 +113,10 @@ export default {
|
|
|
111
113
|
// 当前图片在图片库中预览
|
|
112
114
|
allFileList: {
|
|
113
115
|
type: Array
|
|
116
|
+
},
|
|
117
|
+
icon: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: "el-icon-camera"
|
|
114
120
|
}
|
|
115
121
|
},
|
|
116
122
|
data() {
|
package/src/index.js
CHANGED
|
@@ -31,6 +31,7 @@ import XtMapProvider from './components/xt-map-provider'
|
|
|
31
31
|
import XtGridBox from './components/xt-grid-box'
|
|
32
32
|
import XtGridItem from './components/xt-grid-item'
|
|
33
33
|
import XtProgress from './components/xt-progress'
|
|
34
|
+
import XtTabPane from './components/xt-tab-pane'
|
|
34
35
|
import XtTabs from './components/xt-tabs'
|
|
35
36
|
import XtBadge from './components/xt-badge'
|
|
36
37
|
import XtDatePicker from './components/xt-date-picker'
|
|
@@ -47,6 +48,7 @@ import XtPage from './components/xt-page'
|
|
|
47
48
|
import XtSelectTree from './components/xt-select-tree'
|
|
48
49
|
import XtUpload from './components/xt-upload'
|
|
49
50
|
import XtTransferTree from './components/xt-transfer-tree' // XtTransferTree 组件(树形穿梭框)
|
|
51
|
+
import XtFormSchema from './components/xt-form-schema' // XtFormSchema 组件(表单配置化搜索)
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
const components = [
|
|
@@ -65,6 +67,7 @@ const components = [
|
|
|
65
67
|
XtGridBox,
|
|
66
68
|
XtGridItem,
|
|
67
69
|
XtProgress,
|
|
70
|
+
XtTabPane,
|
|
68
71
|
XtTabs,
|
|
69
72
|
XtBadge,
|
|
70
73
|
XtDatePicker,
|
|
@@ -80,7 +83,8 @@ const components = [
|
|
|
80
83
|
XtPage,
|
|
81
84
|
XtSelectTree,
|
|
82
85
|
XtUpload,
|
|
83
|
-
XtTransferTree
|
|
86
|
+
XtTransferTree,
|
|
87
|
+
XtFormSchema
|
|
84
88
|
]
|
|
85
89
|
|
|
86
90
|
const install = function (Vue, options = {}) {
|
|
@@ -159,7 +163,8 @@ export default {
|
|
|
159
163
|
XtPage,
|
|
160
164
|
XtSelectTree,
|
|
161
165
|
XtUpload,
|
|
162
|
-
XtTransferTree
|
|
166
|
+
XtTransferTree,
|
|
167
|
+
XtFormSchema
|
|
163
168
|
}
|
|
164
169
|
|
|
165
170
|
// XtChart 组件按需导出(使用时需自行安装 echarts 依赖)
|
|
@@ -55,47 +55,3 @@ $xt-color-info-light-8: #e0e1e2; // 信息色浅色 80%
|
|
|
55
55
|
$xt-color-info-light-9: #f0f0f0; // 信息色浅色 90%
|
|
56
56
|
$xt-color-info-dark-2: #7a7c80; // 信息色深色 20%
|
|
57
57
|
|
|
58
|
-
// ============================
|
|
59
|
-
// 暗色主题渐变色系(参考 Element Plus)
|
|
60
|
-
// ============================
|
|
61
|
-
|
|
62
|
-
// Primary 暗色主题渐变色系
|
|
63
|
-
$xt-dark-color-primary-light-3: #336eb9; // 主色暗色 30%
|
|
64
|
-
$xt-dark-color-primary-light-5: #2a598a; // 主色暗色 50%
|
|
65
|
-
$xt-dark-color-primary-light-7: #213d5b; // 主色暗色 70%
|
|
66
|
-
$xt-dark-color-primary-light-8: #1d3043; // 主色暗色 80%
|
|
67
|
-
$xt-dark-color-primary-light-9: #18222b; // 主色暗色 90%
|
|
68
|
-
$xt-dark-color-primary-dark-2: #66b1ff; // 主色亮色 20%
|
|
69
|
-
|
|
70
|
-
// Success 暗色主题渐变色系
|
|
71
|
-
$xt-dark-color-success-light-3: #4e8e2f; // 成功色暗色 30%
|
|
72
|
-
$xt-dark-color-success-light-5: #3e6b27; // 成功色暗色 50%
|
|
73
|
-
$xt-dark-color-success-light-7: #2d481f; // 成功色暗色 70%
|
|
74
|
-
$xt-dark-color-success-light-8: #25371c; // 成功色暗色 80%
|
|
75
|
-
$xt-dark-color-success-light-9: #1c2518; // 成功色暗色 90%
|
|
76
|
-
$xt-dark-color-success-dark-2: #85ce61; // 成功色亮色 20%
|
|
77
|
-
|
|
78
|
-
// Warning 暗色主题渐变色系
|
|
79
|
-
$xt-dark-color-warning-light-3: #a77730; // 警告色暗色 30%
|
|
80
|
-
$xt-dark-color-warning-light-5: #7d5b28; // 警告色暗色 50%
|
|
81
|
-
$xt-dark-color-warning-light-7: #533f20; // 警告色暗色 70%
|
|
82
|
-
$xt-dark-color-warning-light-8: #3e301c; // 警告色暗色 80%
|
|
83
|
-
$xt-dark-color-warning-light-9: #292218; // 警告色暗色 90%
|
|
84
|
-
$xt-dark-color-warning-dark-2: #ebb563; // 警告色亮色 20%
|
|
85
|
-
|
|
86
|
-
// Danger 暗色主题渐变色系
|
|
87
|
-
$xt-dark-color-danger-light-3: #b25252; // 危险色暗色 30%
|
|
88
|
-
$xt-dark-color-danger-light-5: #854040; // 危险色暗色 50%
|
|
89
|
-
$xt-dark-color-danger-light-7: #582e2e; // 危险色暗色 70%
|
|
90
|
-
$xt-dark-color-danger-light-8: #412626; // 危险色暗色 80%
|
|
91
|
-
$xt-dark-color-danger-light-9: #2a1d1d; // 危险色暗色 90%
|
|
92
|
-
$xt-dark-color-danger-dark-2: #f78989; // 危险色亮色 20%
|
|
93
|
-
|
|
94
|
-
// Info 暗色主题渐变色系
|
|
95
|
-
$xt-dark-color-info-light-3: #6b6d71; // 信息色暗色 30%
|
|
96
|
-
$xt-dark-color-info-light-5: #525457; // 信息色暗色 50%
|
|
97
|
-
$xt-dark-color-info-light-7: #393a3c; // 信息色暗色 70%
|
|
98
|
-
$xt-dark-color-info-light-8: #2d2d2f; // 信息色暗色 80%
|
|
99
|
-
$xt-dark-color-info-light-9: #202121; // 信息色暗色 90%
|
|
100
|
-
$xt-dark-color-info-dark-2: #a6a9ad; // 信息色亮色 20%
|
|
101
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$xt-dark-color-primary: #0a7be0; // 暗色主题主色调
|
|
2
|
-
$xt-dark-color-success: #4BC376; // 暗色主题成功颜色
|
|
3
|
-
$xt-dark-color-warning: #E6B61e; // 暗色主题警告颜色
|
|
4
|
-
$xt-dark-color-danger: #c13737; // 暗色主题危险颜色
|
|
5
|
-
$xt-dark-color-info: #3f4249; // 暗色主题信息文字颜色
|
|
6
|
-
|
|
7
|
-
$xt-dark-color-text-primary: rgba(255, 255, 255, 0.95); // 暗色主题主要文字颜色
|
|
8
|
-
$xt-dark-color-text-regular: rgba(255, 255, 255, 0.8); // 暗色主题常规文字颜色
|
|
9
|
-
$xt-dark-color-text-secondary: rgba(255, 255, 255, 0.6); // 暗色主题次要文字颜色
|
|
10
|
-
$xt-dark-color-text-placeholder: rgba(255, 255, 255, 0.4); // 暗色主题占位符文字颜色
|
|
11
|
-
$xt-dark-color-text-disabled: rgba(255, 255, 255, 0.3); // 暗色主题禁用状态文字颜色
|
|
12
|
-
|
|
13
|
-
$xt-dark-color-bg-primary: #1f1f1f; // 暗色主题主背景色
|
|
14
|
-
$xt-dark-color-bg-secondary: #2d2d2d; // 暗色主题次要背景色
|
|
15
|
-
$xt-dark-color-bg-hover: #3d3d3d; // 暗色主题悬停背景色
|
|
16
|
-
$xt-dark-color-bg-container: #1f1f1f; // 暗色主题容器背景色
|
|
17
|
-
$xt-dark-color-bg-overlay: #2d2d2d; // 暗色主题浮层背景色
|
|
18
|
-
|
|
19
|
-
$xt-dark-color-border: #434343; // 暗色主题边框颜色
|
|
20
|
-
$xt-dark-color-border-light: #3d3d3d; // 暗色主题边框浅色
|
|
21
|
-
$xt-dark-color-border-lighter: #3d3d3d; // 暗色主题边框更浅色
|
|
22
|
-
$xt-dark-color-border-extra-light: #434343; // 暗色主题边框极浅色
|
|
23
|
-
|
|
24
|
-
// 暗色主题按钮颜色
|
|
25
|
-
$xt-dark-button-primary-bg: #1e40af; // 暗色主题主按钮背景色
|
|
26
|
-
$xt-dark-button-success-bg: #166534; // 暗色主题成功按钮背景色
|
|
27
|
-
$xt-dark-button-warning-bg: #78350f; // 暗色主题警告按钮背景色
|
|
28
|
-
$xt-dark-button-danger-bg: #991b1b; // 暗色主题危险按钮背景色
|
|
29
|
-
$xt-dark-button-info-bg: #374151; // 暗色主题信息按钮背景色
|