@lx-frontend/wrap-element-ui 0.4.6-beta.2 → 1.0.0-beta
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/AddMembers/index.vue.d.ts +31 -0
- package/dist/AuditSteps/index.vue.d.ts +46 -0
- package/dist/DemoComponent/index.vue.d.ts +2 -0
- package/dist/EditableTable/index.vue.d.ts +186 -0
- package/dist/EditableTable/types.d.ts +123 -0
- package/dist/EditableTable/useCellHover.d.ts +11 -0
- package/dist/EditableTable/useColumnHeaderOperation.d.ts +106 -0
- package/dist/EditableTable/useDefaultOperation.d.ts +22 -0
- package/dist/EditableTable/useDragSort.d.ts +15 -0
- package/dist/EditableTable/usePagination.d.ts +13 -0
- package/dist/EditableTable/useRowBgColor.d.ts +16 -0
- package/dist/EditableTable/useViewSetting.d.ts +58 -0
- package/dist/Ellipsis/MultilineEllipsis.vue.d.ts +91 -0
- package/dist/Ellipsis/index.vue.d.ts +89 -0
- package/dist/LxTable/index.vue.d.ts +2 -0
- package/dist/PopoverForm/index.vue.d.ts +50 -0
- package/dist/SearchForm/index.vue.d.ts +105 -0
- package/dist/SearchSelect/index.vue.d.ts +53 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.mjs +40808 -0
- package/dist/singleMessage/index.d.ts +4 -0
- package/package.json +60 -36
- package/{packages/AddMembers/src/AddMembers.vue → src/components/AddMembers/index.vue} +35 -13
- package/{packages/AuditSteps/src/AuditSteps.vue → src/components/AuditSteps/index.vue} +55 -0
- package/{packages/DemoComponent/src/DemoComponent.vue → src/components/DemoComponent/index.vue} +11 -0
- package/src/components/EditableTable/README.md +147 -0
- package/src/components/EditableTable/index.less +716 -0
- package/src/components/EditableTable/index.vue +842 -0
- package/src/components/EditableTable/pin-top.png +0 -0
- package/src/components/EditableTable/types.ts +94 -0
- package/src/components/EditableTable/useCellHover.ts +72 -0
- package/src/components/EditableTable/useColumnHeaderOperation.ts +188 -0
- package/src/components/EditableTable/useDefaultOperation.ts +96 -0
- package/src/components/EditableTable/useDragSort.ts +292 -0
- package/src/components/EditableTable/usePagination.ts +34 -0
- package/src/components/EditableTable/useRowBgColor.ts +51 -0
- package/src/components/EditableTable/useViewSetting.ts +67 -0
- package/{packages/Ellipsis/src → src/components/Ellipsis}/MultilineEllipsis.vue +1 -1
- package/{packages/Ellipsis/src/Ellipsis.vue → src/components/Ellipsis/index.vue} +5 -5
- package/src/components/LxTable/index.vue +296 -0
- package/{packages/SearchForm/src/SearchForm.vue → src/components/SearchForm/index.vue} +47 -21
- package/{packages/SearchSelect/src/SearchSelect.vue → src/components/SearchSelect/index.vue} +7 -4
- package/src/components/index.ts +22 -0
- package/babel.config.js +0 -5
- package/global.d.ts +0 -23
- package/packages/AddMembers/index.js +0 -11
- package/packages/AuditSteps/index.js +0 -7
- package/packages/DemoComponent/index.js +0 -7
- package/packages/Ellipsis/index.js +0 -7
- package/packages/LxTable/index.js +0 -11
- package/packages/LxTable/src/LxTable.vue +0 -296
- package/packages/PopoverForm/index.js +0 -7
- package/packages/SearchForm/index.js +0 -7
- package/packages/SearchSelect/index.js +0 -7
- package/packages/index.js +0 -59
- package/packages/theme-default/gulpfile.js +0 -25
- package/packages/theme-default/lib/AuditSteps.css +0 -1
- package/packages/theme-default/lib/DemoComponent.css +0 -1
- package/packages/theme-default/lib/index.css +0 -1
- package/packages/theme-default/package.json +0 -23
- package/packages/theme-default/src/AuditSteps.scss +0 -52
- package/packages/theme-default/src/DemoComponent.scss +0 -9
- package/packages/theme-default/src/common/var.scss +0 -0
- package/packages/theme-default/src/fonts/.gitkeep +0 -0
- package/packages/theme-default/src/index.css +0 -11
- package/packages/theme-default/src/index.scss +0 -2
- package/packages/utils/.gitkeep +0 -0
- package/plugins/wrap.js +0 -22
- package/postcss.config.js +0 -5
- package/tsconfig.json +0 -41
- /package/{packages/PopoverForm/src/PopoverForm.vue → src/components/PopoverForm/index.vue} +0 -0
- /package/{packages → src/components}/singleMessage/index.ts +0 -0
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
@row-click="handleRowClick" 当某一行被点击时会触发该事件
|
|
3
|
-
@cell-click="handleCellClick" 当某个单元格被点击时会触发该事件
|
|
4
|
-
@sort-change="sortChange" 排序触发事件
|
|
5
|
-
sortable 配置排序
|
|
6
|
-
default-sort: prop默认字段 order排序方式
|
|
7
|
-
slot='key_header' scopeHeader 支持表头可自定义
|
|
8
|
-
highlightCurrentRow 单行选中状态
|
|
9
|
-
-->
|
|
10
|
-
<template>
|
|
11
|
-
<div class="table-content">
|
|
12
|
-
<el-table
|
|
13
|
-
v-loading="loading"
|
|
14
|
-
ref="lxTableRef"
|
|
15
|
-
v-bind="$attrs"
|
|
16
|
-
:data="tableData"
|
|
17
|
-
:empty-text="(customConfig || {}).emptyText || ''"
|
|
18
|
-
@selection-change="handleSelectionChange"
|
|
19
|
-
@row-click="handleRowClick"
|
|
20
|
-
@cell-click="handleCellClick"
|
|
21
|
-
@sort-change="sortChange"
|
|
22
|
-
:highlight-current-row="highlightCurrentRow"
|
|
23
|
-
:row-class-name="tableRowClassName"
|
|
24
|
-
:default-sort="(customConfig || {}).sortValue"
|
|
25
|
-
>
|
|
26
|
-
<ElTableColumn
|
|
27
|
-
v-if="
|
|
28
|
-
customConfig &&
|
|
29
|
-
customConfig.selection &&
|
|
30
|
-
customConfig.selection.isOpenSelection
|
|
31
|
-
"
|
|
32
|
-
type="selection"
|
|
33
|
-
:width="customConfig.selection.width"
|
|
34
|
-
>
|
|
35
|
-
</ElTableColumn>
|
|
36
|
-
<ElTableColumn
|
|
37
|
-
v-for="(item, index) in cloumns"
|
|
38
|
-
:key="`${item}_${index}`"
|
|
39
|
-
:label="item"
|
|
40
|
-
:prop="keys[index]"
|
|
41
|
-
:sortable="getFieldFromConfig(keys[index], 'sortable')"
|
|
42
|
-
:width="getFieldFromConfig(keys[index], 'width')"
|
|
43
|
-
:min-width="getFieldFromConfig(keys[index], 'minWidth')"
|
|
44
|
-
:fixed="getFieldFromConfig(keys[index], 'fixed')"
|
|
45
|
-
>
|
|
46
|
-
<template #header="scope">
|
|
47
|
-
<slot
|
|
48
|
-
template
|
|
49
|
-
:name="`${keys[index]}_header`"
|
|
50
|
-
:keys="keys[index]"
|
|
51
|
-
:row="returnSelf(scope.row)"
|
|
52
|
-
:lable="scope.column"
|
|
53
|
-
:column="scope.$index"
|
|
54
|
-
v-if="getFieldFromConfig(keys[index], 'scopeHeader')"
|
|
55
|
-
>
|
|
56
|
-
</slot>
|
|
57
|
-
<span v-else>
|
|
58
|
-
{{ item }}
|
|
59
|
-
</span>
|
|
60
|
-
</template>
|
|
61
|
-
<template #default="scope">
|
|
62
|
-
<!-- 支持keys字段为'car.id'或者'id' -->
|
|
63
|
-
<!-- @vue-expect-error 这里判断完是数组应该不报ts错误 -->
|
|
64
|
-
<div
|
|
65
|
-
v-if="Array.isArray(keys[index]) && keys[index].indexOf('.') != -1"
|
|
66
|
-
>
|
|
67
|
-
<!-- 一个td需要展示多个字段名 -->
|
|
68
|
-
<div v-if="Array.isArray(keys[index])">
|
|
69
|
-
<div v-for="(array, i) in keys[index]" :key="i">
|
|
70
|
-
{{ scope.row[array] }}
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<!-- 字段formatters存在,数据过滤-->
|
|
74
|
-
<span v-else-if="getFieldFromConfig(keys[index], 'formatters')">
|
|
75
|
-
<!-- @vue-expect-error 这里判断完是数组应该不报ts错误 -->
|
|
76
|
-
{{
|
|
77
|
-
formatterMethods(
|
|
78
|
-
scope.row[keys[index].split(".")[0]][
|
|
79
|
-
keys[index].split(".")[1]
|
|
80
|
-
],
|
|
81
|
-
customConfig[keys[index]].formatters
|
|
82
|
-
)
|
|
83
|
-
}}
|
|
84
|
-
</span>
|
|
85
|
-
<!-- 复杂情况需要自定义---当前keys存在于customConfig.template数据定义中,传入slot的name作为唯一标识符 -->
|
|
86
|
-
<slot
|
|
87
|
-
template
|
|
88
|
-
:name="keys[index]"
|
|
89
|
-
:keys="keys[index]"
|
|
90
|
-
:row="returnSelf(scope.row)"
|
|
91
|
-
:lable="scope.column"
|
|
92
|
-
:column="scope.$index"
|
|
93
|
-
v-else-if="getFieldFromConfig(keys[index], 'template')"
|
|
94
|
-
>
|
|
95
|
-
</slot>
|
|
96
|
-
<div v-else>
|
|
97
|
-
<!-- 传入不需要截取的列 -->
|
|
98
|
-
<span v-if="getFieldFromConfig(keys[index], 'templateCutOut')">
|
|
99
|
-
<!-- @vue-expect-error 忽略ts错误不改动-->
|
|
100
|
-
{{
|
|
101
|
-
formateValue(
|
|
102
|
-
scope.row[keys[index].split(".")[0]][
|
|
103
|
-
keys[index].split(".")[1]
|
|
104
|
-
]
|
|
105
|
-
)
|
|
106
|
-
}}
|
|
107
|
-
</span>
|
|
108
|
-
<!-- @vue-expect-error 忽略ts错误不改动-->
|
|
109
|
-
<Ellipsis
|
|
110
|
-
v-else
|
|
111
|
-
:popoverName="popoverName"
|
|
112
|
-
:lineCount="getFieldFromConfig(keys[index], 'lineCount')"
|
|
113
|
-
:content="
|
|
114
|
-
formateValue([
|
|
115
|
-
`${
|
|
116
|
-
scope.row[keys[index].split('.')[0]][
|
|
117
|
-
keys[index].split('.')[1]
|
|
118
|
-
]
|
|
119
|
-
}`,
|
|
120
|
-
])
|
|
121
|
-
"
|
|
122
|
-
>
|
|
123
|
-
<template #popover>
|
|
124
|
-
<div>
|
|
125
|
-
<!-- @vue-expect-error 忽略ts错误不改动-->
|
|
126
|
-
{{
|
|
127
|
-
formateValue(
|
|
128
|
-
scope.row[keys[index].split(".")[0]][
|
|
129
|
-
keys[index].split(".")[1]
|
|
130
|
-
]
|
|
131
|
-
)
|
|
132
|
-
}}
|
|
133
|
-
</div>
|
|
134
|
-
</template>
|
|
135
|
-
</Ellipsis>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
<div v-else>
|
|
139
|
-
<!-- 一个td需要展示多个字段名 -->
|
|
140
|
-
<div v-if="Array.isArray(keys[index])">
|
|
141
|
-
<div v-for="(array, i) in keys[index]" :key="i">
|
|
142
|
-
{{ scope.row[array] }}
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
<!-- 字段formatters存在,数据过滤-->
|
|
146
|
-
<span v-else-if="getFieldFromConfig(keys[index], 'formatters')">
|
|
147
|
-
<!-- @vue-expect-error 忽略ts错误不改动-->
|
|
148
|
-
{{
|
|
149
|
-
formatterMethods(
|
|
150
|
-
scope.row[keys[index]],
|
|
151
|
-
customConfig[keys[index]].formatters
|
|
152
|
-
)
|
|
153
|
-
}}
|
|
154
|
-
</span>
|
|
155
|
-
<!-- 复杂情况需要自定义---当前keys存在于customConfig.template数据定义中,传入slot的name作为唯一标识符 -->
|
|
156
|
-
<slot
|
|
157
|
-
template
|
|
158
|
-
:name="keys[index]"
|
|
159
|
-
:keys="keys[index]"
|
|
160
|
-
:row="returnSelf(scope.row)"
|
|
161
|
-
:lable="scope.column"
|
|
162
|
-
:column="scope.$index"
|
|
163
|
-
v-else-if="getFieldFromConfig(keys[index], 'template')"
|
|
164
|
-
>
|
|
165
|
-
</slot>
|
|
166
|
-
<div v-else>
|
|
167
|
-
<!-- 传入不需要截取的列 -->
|
|
168
|
-
<span v-if="getFieldFromConfig(keys[index], 'templateCutOut')">
|
|
169
|
-
{{ formateValue(scope.row[keys[index]]) }}
|
|
170
|
-
</span>
|
|
171
|
-
<!-- @vue-expect-error 忽略ts错误不改动-->
|
|
172
|
-
<Ellipsis
|
|
173
|
-
v-else
|
|
174
|
-
:popoverName="popoverName"
|
|
175
|
-
:lineCount="getFieldFromConfig(keys[index], 'lineCount')"
|
|
176
|
-
:content="formateValue([`${scope.row[keys[index]]}`])"
|
|
177
|
-
>
|
|
178
|
-
<template #popover>
|
|
179
|
-
<div>{{ formateValue(scope.row[keys[index]]) }}</div>
|
|
180
|
-
</template>
|
|
181
|
-
</Ellipsis>
|
|
182
|
-
</div>
|
|
183
|
-
</div>
|
|
184
|
-
</template>
|
|
185
|
-
</ElTableColumn>
|
|
186
|
-
</el-table>
|
|
187
|
-
<ElPagination
|
|
188
|
-
@current-change="handleCurrentChange"
|
|
189
|
-
:background="background"
|
|
190
|
-
:current-page="currentPage"
|
|
191
|
-
:page-size="pageSize"
|
|
192
|
-
:total="totals"
|
|
193
|
-
layout="total, prev, pager, next, jumper, slot"
|
|
194
|
-
v-if="currentPage"
|
|
195
|
-
>
|
|
196
|
-
</ElPagination>
|
|
197
|
-
</div>
|
|
198
|
-
</template>
|
|
199
|
-
<script
|
|
200
|
-
lang="ts"
|
|
201
|
-
setup
|
|
202
|
-
generic="K extends (string | number) | (string | number)[], TableData = any"
|
|
203
|
-
>
|
|
204
|
-
import Ellipsis from "../../Ellipsis";
|
|
205
|
-
|
|
206
|
-
const $emit = defineEmits([
|
|
207
|
-
"handleCurrentChange",
|
|
208
|
-
"handleSelectionChange",
|
|
209
|
-
"handleRowClick",
|
|
210
|
-
"handleCellClick",
|
|
211
|
-
"sortChange",
|
|
212
|
-
]);
|
|
213
|
-
const props = withDefaults(
|
|
214
|
-
defineProps<{
|
|
215
|
-
tableData: TableData[];
|
|
216
|
-
cloumns: any[];
|
|
217
|
-
keys: K[];
|
|
218
|
-
customConfig?: Record<string, any>;
|
|
219
|
-
stripe?: boolean;
|
|
220
|
-
loading?: boolean;
|
|
221
|
-
background?: boolean;
|
|
222
|
-
totals?: number;
|
|
223
|
-
pageSize?: number;
|
|
224
|
-
currentPage?: number;
|
|
225
|
-
popoverName?: string;
|
|
226
|
-
highlightCurrentRow?: boolean;
|
|
227
|
-
tableRowClassName?: Record<string, any>;
|
|
228
|
-
}>(),
|
|
229
|
-
{
|
|
230
|
-
tableData: () => [],
|
|
231
|
-
cloumns: () => [],
|
|
232
|
-
keys: () => [],
|
|
233
|
-
customConfig: (): Record<string, any> => ({}),
|
|
234
|
-
stripe: true,
|
|
235
|
-
loading: true,
|
|
236
|
-
background: true,
|
|
237
|
-
highlightCurrentRow: true,
|
|
238
|
-
tableRowClassName: () => ({}),
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
function returnSelf(data: TableData): TableData {
|
|
242
|
-
return data;
|
|
243
|
-
}
|
|
244
|
-
const handleCurrentChange = (val: any) => {
|
|
245
|
-
$emit("handleCurrentChange", val);
|
|
246
|
-
};
|
|
247
|
-
const handleSelectionChange = (val: any) => {
|
|
248
|
-
$emit("handleSelectionChange", val);
|
|
249
|
-
};
|
|
250
|
-
const handleRowClick = (row: any, column: any, cell: any, event: any) => {
|
|
251
|
-
$emit("handleRowClick", row, column, cell, event);
|
|
252
|
-
};
|
|
253
|
-
const handleCellClick = (row: any, column: any, cell: any, event: any) => {
|
|
254
|
-
$emit("handleCellClick", row, column, cell, event);
|
|
255
|
-
};
|
|
256
|
-
const sortChange = (column: any, prop: any, order: any) => {
|
|
257
|
-
$emit("sortChange", column, prop, order);
|
|
258
|
-
};
|
|
259
|
-
const formatterMethods = (
|
|
260
|
-
key: number,
|
|
261
|
-
keyData: { [x: string]: any; unit: string }
|
|
262
|
-
) => {
|
|
263
|
-
// 返回数据,可类型转换; 可添加单位;
|
|
264
|
-
let value = "--";
|
|
265
|
-
if (key || key === 0) {
|
|
266
|
-
const keyValue = keyData[key] || key;
|
|
267
|
-
const unit = keyData.unit || "";
|
|
268
|
-
value = `${keyValue}${unit}`;
|
|
269
|
-
}
|
|
270
|
-
return value;
|
|
271
|
-
};
|
|
272
|
-
const formateValue = (val: string | number | string[]) => {
|
|
273
|
-
if (Array.isArray(val) && (val[0] === "null" || val[0] === "")) {
|
|
274
|
-
val = "";
|
|
275
|
-
}
|
|
276
|
-
return val || val === 0 ? val : "--";
|
|
277
|
-
};
|
|
278
|
-
const getFieldFromConfig = (
|
|
279
|
-
index: (string | number) | (string | number)[],
|
|
280
|
-
name: string | number
|
|
281
|
-
) => {
|
|
282
|
-
if (Array.isArray(index)) return;
|
|
283
|
-
|
|
284
|
-
return (
|
|
285
|
-
props.customConfig &&
|
|
286
|
-
props.customConfig[index] &&
|
|
287
|
-
props.customConfig[index][name]
|
|
288
|
-
);
|
|
289
|
-
};
|
|
290
|
-
</script>
|
|
291
|
-
<style type="scss">
|
|
292
|
-
.table-content .el-pagination {
|
|
293
|
-
text-align: right;
|
|
294
|
-
padding: 14px 0;
|
|
295
|
-
}
|
|
296
|
-
</style>
|
package/packages/index.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Vic
|
|
3
|
-
* Date: 19/03/14
|
|
4
|
-
*/
|
|
5
|
-
import DemoComponent from './DemoComponent/index'
|
|
6
|
-
import AuditSteps from './AuditSteps/index'
|
|
7
|
-
import Ellipsis from './Ellipsis/index'
|
|
8
|
-
import SearchForm from './SearchForm/index'
|
|
9
|
-
import LxTable from './LxTable/index'
|
|
10
|
-
import SearchSelect from './SearchSelect/index'
|
|
11
|
-
import AddMembers from './AddMembers/index'
|
|
12
|
-
import PopoverForm from './PopoverForm/index'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const components = [
|
|
16
|
-
DemoComponent,
|
|
17
|
-
AuditSteps,
|
|
18
|
-
Ellipsis,
|
|
19
|
-
SearchForm,
|
|
20
|
-
LxTable,
|
|
21
|
-
SearchSelect,
|
|
22
|
-
AddMembers,
|
|
23
|
-
PopoverForm
|
|
24
|
-
]
|
|
25
|
-
|
|
26
|
-
const install = function (Vue) {
|
|
27
|
-
if (install.installed) return
|
|
28
|
-
components.map(function(component) {
|
|
29
|
-
Vue.component(component.name, component)
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
|
34
|
-
install(window.Vue)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
install,
|
|
39
|
-
DemoComponent,
|
|
40
|
-
AuditSteps,
|
|
41
|
-
Ellipsis,
|
|
42
|
-
SearchForm,
|
|
43
|
-
LxTable,
|
|
44
|
-
SearchSelect,
|
|
45
|
-
AddMembers,
|
|
46
|
-
PopoverForm
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export default {
|
|
50
|
-
install,
|
|
51
|
-
DemoComponent,
|
|
52
|
-
AuditSteps,
|
|
53
|
-
Ellipsis,
|
|
54
|
-
SearchForm,
|
|
55
|
-
LxTable,
|
|
56
|
-
SearchSelect,
|
|
57
|
-
AddMembers,
|
|
58
|
-
PopoverForm
|
|
59
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var gulp = require('gulp');
|
|
4
|
-
var sass = require('gulp-sass');
|
|
5
|
-
var autoprefixer = require('gulp-autoprefixer');
|
|
6
|
-
var cssmin = require('gulp-cssmin');
|
|
7
|
-
|
|
8
|
-
gulp.task('compile', function() {
|
|
9
|
-
return gulp.src('./src/*.scss')
|
|
10
|
-
.pipe(sass.sync())
|
|
11
|
-
.pipe(autoprefixer({
|
|
12
|
-
browsers: ['ie > 9', 'last 2 versions'],
|
|
13
|
-
cascade: false
|
|
14
|
-
}))
|
|
15
|
-
.pipe(cssmin())
|
|
16
|
-
.pipe(gulp.dest('./lib'));
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
gulp.task('copyfont', function() {
|
|
20
|
-
return gulp.src('./src/fonts/**')
|
|
21
|
-
.pipe(cssmin())
|
|
22
|
-
.pipe(gulp.dest('./lib/fonts'));
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
gulp.task('build', ['compile', 'copyfont']);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.audit-steps{width:612px}.audit-steps .el-step__head{display:none}.audit-steps__step-item{min-height:43px;max-height:43px;margin-bottom:35px}.audit-steps__step-item .el-select{width:400px}.audit-steps__step-item .el-icon-delete{margin-left:10px;font-size:16px;cursor:pointer}.audit-steps__step-order{cursor:default;margin-right:8px;position:relative;display:inline-block;text-align:center;width:20px;height:20px;border-radius:50%;border:1px solid #aaa;background:#aaa;color:#fff}.audit-steps__step-order:not(.first):before{position:absolute;content:'';display:block;width:1px;height:60px;background:#aaa;top:-60px;left:50%}.audit-steps__add{margin-top:-10px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.demo-component__input{width:30px;border-color:red}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.demo-component__input{width:30px;border-color:red}.audit-steps{width:612px}.audit-steps .el-step__head{display:none}.audit-steps__step-item{min-height:43px;max-height:43px;margin-bottom:35px}.audit-steps__step-item .el-select{width:400px}.audit-steps__step-item .el-icon-delete{margin-left:10px;font-size:16px;cursor:pointer}.audit-steps__step-order{cursor:default;margin-right:8px;position:relative;display:inline-block;text-align:center;width:20px;height:20px;border-radius:50%;border:1px solid #aaa;background:#aaa;color:#fff}.audit-steps__step-order:not(.first):before{position:absolute;content:'';display:block;width:1px;height:60px;background:#aaa;top:-60px;left:50%}.audit-steps__add{margin-top:-10px}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "wrap-element-ui-theme-default",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"description": "wrap-element-ui component default theme.",
|
|
5
|
-
"main": "lib/index.css",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "gulp build && gulp watch",
|
|
8
|
-
"build": "gulp build"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"wrap-element-ui",
|
|
12
|
-
"theme"
|
|
13
|
-
],
|
|
14
|
-
"author": "Vic",
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"gulp": "^3.9.1",
|
|
18
|
-
"gulp-cssmin": "^0.1.7",
|
|
19
|
-
"gulp-postcss": "^6.1.1",
|
|
20
|
-
"postcss-salad": "^1.0.5"
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {}
|
|
23
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
.audit-steps {
|
|
2
|
-
width: 612px;
|
|
3
|
-
|
|
4
|
-
.el-step__head {
|
|
5
|
-
display: none;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&__step-item {
|
|
9
|
-
min-height: 43px;
|
|
10
|
-
max-height: 43px;
|
|
11
|
-
margin-bottom: 35px;
|
|
12
|
-
|
|
13
|
-
.el-select {
|
|
14
|
-
width: 400px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.el-icon-delete {
|
|
18
|
-
margin-left: 10px;
|
|
19
|
-
font-size: 16px;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&__step-order {
|
|
25
|
-
cursor: default;
|
|
26
|
-
margin-right: 8px;
|
|
27
|
-
position: relative;
|
|
28
|
-
display: inline-block;
|
|
29
|
-
text-align: center;
|
|
30
|
-
width: 20px;
|
|
31
|
-
height: 20px;
|
|
32
|
-
border-radius: 50%;
|
|
33
|
-
border: 1px solid #aaa;
|
|
34
|
-
background: #aaa;
|
|
35
|
-
color: #fff;
|
|
36
|
-
|
|
37
|
-
&:not(.first):before{
|
|
38
|
-
position: absolute;
|
|
39
|
-
content: '';
|
|
40
|
-
display: block;
|
|
41
|
-
width: 1px;
|
|
42
|
-
height: 60px;
|
|
43
|
-
background: #aaa;
|
|
44
|
-
top: -60px;
|
|
45
|
-
left: 50%;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&__add {
|
|
50
|
-
margin-top: -10px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
@import "button.css";
|
|
2
|
-
@import "row.css";
|
|
3
|
-
@import "col.css";
|
|
4
|
-
@import "icon.css";
|
|
5
|
-
@import "tag.css";
|
|
6
|
-
@import "transiton.css";
|
|
7
|
-
@import "show-more.css";
|
|
8
|
-
@import "limit-textarea.css";
|
|
9
|
-
@import "alert.css";
|
|
10
|
-
@import "loading-bar.css";
|
|
11
|
-
@import "skeleton.css";
|
package/packages/utils/.gitkeep
DELETED
|
File without changes
|
package/plugins/wrap.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
install: function (Vue, options) {
|
|
5
|
-
/* 数字转千分位(支持添加前缀,如"$") */
|
|
6
|
-
Vue.filter('toThousands', (num = 0, prefix = '¥') => {
|
|
7
|
-
num = num.toString()
|
|
8
|
-
let result = ''
|
|
9
|
-
while (num.length > 3) {
|
|
10
|
-
result = ',' + num.slice(-3) + result
|
|
11
|
-
num = num.slice(0, num.length - 3)
|
|
12
|
-
}
|
|
13
|
-
if (num) { result = num + result; }
|
|
14
|
-
return prefix + result
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
Vue.filter('fenToYuan', (val) => {
|
|
18
|
-
return val ? (val / 100).toFixed(2) : '--'
|
|
19
|
-
})
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
package/postcss.config.js
DELETED
package/tsconfig.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"jsx": "preserve",
|
|
7
|
-
"importHelpers": true,
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"allowJs": true,
|
|
12
|
-
"sourceMap": true,
|
|
13
|
-
"baseUrl": ".",
|
|
14
|
-
"types": [
|
|
15
|
-
"webpack-env",
|
|
16
|
-
"jest"
|
|
17
|
-
],
|
|
18
|
-
"paths": {
|
|
19
|
-
"@/*": [
|
|
20
|
-
"src/*"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"lib": [
|
|
24
|
-
"esnext",
|
|
25
|
-
"dom",
|
|
26
|
-
"dom.iterable",
|
|
27
|
-
"scripthost"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"include": [
|
|
31
|
-
"src/**/*.ts",
|
|
32
|
-
"src/**/*.js",
|
|
33
|
-
"src/**/*.tsx",
|
|
34
|
-
"src/**/*.vue",
|
|
35
|
-
"tests/**/*.ts",
|
|
36
|
-
"tests/**/*.tsx"
|
|
37
|
-
],
|
|
38
|
-
"exclude": [
|
|
39
|
-
"node_modules"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
File without changes
|
|
File without changes
|