bi-element-ui 0.1.71 → 0.1.73

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.
Files changed (36) hide show
  1. package/.eslintrc.js +1 -1
  2. package/.prettierignore +7 -0
  3. package/.prettierrc +1 -1
  4. package/.prettierrc.json +8 -0
  5. package/.vscode/extensions.json +2 -4
  6. package/dist/css/about.2c825c53.css +229 -1
  7. package/dist/css/chunk-vendors.14653146.css +12396 -1
  8. package/dist/css/index.98810efd.css +895 -1
  9. package/dist/js/about.2b6c42d7.js +548 -2
  10. package/dist/js/chunk-vendors.c73b5358.js +45955 -313
  11. package/dist/js/index.278e3840.js +3461 -2
  12. package/lib/bi-element-ui.common.js +167 -166
  13. package/lib/bi-element-ui.css +1 -1
  14. package/lib/bi-element-ui.umd.js +167 -166
  15. package/lib/bi-element-ui.umd.min.js +23 -23
  16. package/package-lock2.json +1 -1
  17. package/package.json +4 -1
  18. package/pnpm-lock.yaml +2558 -2559
  19. package/src/components/BiDatePicker/datePickerOption.js +28 -94
  20. package/src/components/BiDatePicker/index.vue +2 -17
  21. package/src/components/BiTable/columu.vue +6 -29
  22. package/src/components/BiTable/forced.js +10 -23
  23. package/src/components/BiTable/index.js +1 -1
  24. package/src/components/BiTable/table.vue +5 -28
  25. package/src/components/BiTableColumn/Group.vue +10 -12
  26. package/src/components/BiTableColumn/index.vue +28 -115
  27. package/src/components/BiTooltipIcon/index.vue +3 -11
  28. package/src/components/FreeButton/index.vue +6 -25
  29. package/src/components/Pagination/index.vue +2 -15
  30. package/src/components/Pagination/scrollTo.js +5 -9
  31. package/src/main.js +1 -1
  32. package/src/views/Date.vue +7 -43
  33. package/src/views/Home.vue +28 -145
  34. package/src/views/Scene.vue +7 -36
  35. package/src/views/Table.vue +3 -18
  36. package/src/views/showData.vue +4 -4
@@ -13,41 +13,19 @@
13
13
  }"
14
14
  @handleTableColumn="setTableColumn"
15
15
  /> -->
16
- <bi-table
17
- :loading="tableLoading"
18
- border
19
- stripe
20
- :data="data"
21
- pagination
22
- :column="basicColumn"
23
- :total="100"
24
- :auto-scroll="false"
25
- :page.sync="listQuery.page"
26
- :limit.sync="listQuery.limit"
27
- ></bi-table>
16
+ <bi-table :loading="tableLoading" border stripe :data="data" pagination :column="basicColumn" :total="100" :auto-scroll="false" :page.sync="listQuery.page" :limit.sync="listQuery.limit"></bi-table>
28
17
  </div>
29
18
 
30
19
  <div class="example-table-box">
31
20
  <p>支持render渲染</p>
32
- <bi-table
33
- border
34
- :data="data"
35
- :column="renderColumn"
36
- ></bi-table>
21
+ <bi-table border :data="data" :column="renderColumn"></bi-table>
37
22
  </div>
38
23
 
39
24
  <div class="example-table-box">
40
25
  <p>支持slot插槽</p>
41
- <bi-table
42
- border
43
- :data="data"
44
- :column="slotColumn"
45
- >
26
+ <bi-table border :data="data" :column="slotColumn">
46
27
  <template v-slot:zip="{ row }">
47
- <el-tag
48
- class="el-icon-message-solid"
49
- type="success"
50
- >
28
+ <el-tag class="el-icon-message-solid" type="success">
51
29
  {{ row.zip }}
52
30
  </el-tag>
53
31
  </template>
@@ -56,79 +34,32 @@
56
34
 
57
35
  <div class="example-table-box">
58
36
  <p>支持组件引入</p>
59
- <bi-table
60
- border
61
- :data="data"
62
- :column="componentColumn"
63
- ></bi-table>
37
+ <bi-table border :data="data" :column="componentColumn"></bi-table>
64
38
  </div>
65
39
 
66
40
  <div class="example-table-box">
67
41
  <p>支持树形数据</p>
68
- <bi-table
69
- border
70
- :data="data"
71
- :column="componentColumn"
72
- default-expand-all
73
- row-key="id"
74
- :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
75
- ></bi-table>
42
+ <bi-table border :data="data" :column="componentColumn" default-expand-all row-key="id" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"></bi-table>
76
43
  </div>
77
44
 
78
45
  <div class="example-table-box">
79
46
  <p>支持selection/index/expand</p>
80
- <bi-table
81
- border
82
- :data="data"
83
- :column="typesColumn"
84
- ></bi-table>
47
+ <bi-table border :data="data" :column="typesColumn"></bi-table>
85
48
  </div>
86
49
 
87
50
  <div class="example-table-box">
88
51
  <p>带分页功能</p>
89
- <bi-table
90
- border
91
- :data="data"
92
- :column="complexColumn"
93
- :columns-props="columnsProps"
94
- pagination
95
- :auto-scroll="false"
96
- :total="100"
97
- :page.sync="listQuery.page"
98
- :limit.sync="listQuery.limit"
99
- @selection-change="selectionChange"
100
- @pagination="getList"
101
- >
102
- </bi-table>
52
+ <bi-table border :data="data" :column="complexColumn" :columns-props="columnsProps" pagination :auto-scroll="false" :total="100" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @selection-change="selectionChange" @pagination="getList"> </bi-table>
103
53
 
104
- <el-dialog
105
- title="收货地址"
106
- :visible.sync="dialogVisible"
107
- >
108
- <el-form
109
- :model="editForm"
110
- label-width="100px"
111
- >
54
+ <el-dialog title="收货地址" :visible.sync="dialogVisible">
55
+ <el-form :model="editForm" label-width="100px">
112
56
  <el-form-item label="名称">
113
- <el-input
114
- v-model="editForm.name"
115
- autocomplete="off"
116
- ></el-input>
57
+ <el-input v-model="editForm.name" autocomplete="off"></el-input>
117
58
  </el-form-item>
118
59
  <el-form-item label="区域">
119
- <el-select
120
- v-model="editForm.province"
121
- placeholder="请选择区域"
122
- style="width: 100%"
123
- >
124
- <el-option
125
- label="上海"
126
- value="shanghai"
127
- ></el-option>
128
- <el-option
129
- label="北京"
130
- value="beijing"
131
- ></el-option>
60
+ <el-select v-model="editForm.province" placeholder="请选择区域" style="width: 100%">
61
+ <el-option label="上海" value="shanghai"></el-option>
62
+ <el-option label="北京" value="beijing"></el-option>
132
63
  </el-select>
133
64
  </el-form-item>
134
65
  <el-form-item label="市区">
@@ -138,94 +69,46 @@
138
69
  <el-input v-model="editForm.address"></el-input>
139
70
  </el-form-item>
140
71
  </el-form>
141
- <div
142
- slot="footer"
143
- class="dialog-footer"
144
- >
72
+ <div slot="footer" class="dialog-footer">
145
73
  <el-button @click="dialogVisible = false">取 消</el-button>
146
- <el-button
147
- type="primary"
148
- @click="dialogVisible = false"
149
- >确 定</el-button>
74
+ <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
150
75
  </div>
151
76
  </el-dialog>
152
77
  </div>
153
78
 
154
79
  <div class="example-table-box">
155
80
  <p>sticky表格</p>
156
- <bi-table
157
- border
158
- stripe
159
- fixed="sticky"
160
- :data="data"
161
- :column="fullscreenColumn"
162
- ></bi-table>
81
+ <bi-table border stripe fixed="sticky" :data="data" :column="fullscreenColumn"></bi-table>
163
82
  </div>
164
83
 
165
84
  <div class="example-table-box">
166
85
  <p>普通固定表头</p>
167
- <bi-table
168
- border
169
- stripe
170
- fixed="fullscreen"
171
- :data="data"
172
- :column="fullscreenColumn"
173
- max-height="200px"
174
- fixed-offset="60"
175
- pagination
176
- :auto-scroll="false"
177
- :total="100"
178
- :page.sync="listQuery.page"
179
- :limit.sync="listQuery.limit"
180
- @selection-change="selectionChange"
181
- @pagination="getList"
182
- ></bi-table>
86
+ <bi-table border stripe fixed="fullscreen" :data="data" :column="fullscreenColumn" max-height="200px" fixed-offset="60" pagination :auto-scroll="false" :total="100" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @selection-change="selectionChange" @pagination="getList"></bi-table>
183
87
  </div>
184
88
 
185
89
  <div class="example-table-box">
186
90
  <p>sticky-tabs表格</p>
187
91
  <el-tabs>
188
92
  <el-tab-pane label="tabs">
189
- <div style="height:300px;background:#eee"></div>
190
- <bi-table
191
- border
192
- stripe
193
- fixed="sticky"
194
- :data="data"
195
- :column="fullscreenColumn"
196
- :summary-method="getSummaries"
197
- show-summary
198
- ></bi-table>
93
+ <div style="height: 300px; background: #eee"></div>
94
+ <bi-table border stripe fixed="sticky" :data="data" :column="fullscreenColumn" :summary-method="getSummaries" show-summary></bi-table>
199
95
  </el-tab-pane>
200
96
  </el-tabs>
201
97
  </div>
202
98
  <div class="example-table-box">
203
99
  <p>tooltipIcon在表格内的组件使用</p>
204
- <bi-table
205
- border
206
- stripe
207
- fixed="sticky"
208
- :data="minData"
209
- :column="renderColumn"
210
- >
211
- <template v-slot:province="{row}">
212
- <BiTooltipIcon
213
- :label="row.province"
214
- content="这是props继承的写法,<br/>可根据不同需求配置属性"
215
- placement="right"
216
- icon="el-icon-warning-outline"
217
- effect="light"
218
- ></BiTooltipIcon>
100
+ <bi-table border stripe fixed="sticky" :data="minData" :column="renderColumn">
101
+ <template v-slot:province="{ row }">
102
+ <BiTooltipIcon :label="row.province" content="这是props继承的写法,<br/>可根据不同需求配置属性" placement="right" icon="el-icon-warning-outline" effect="light"></BiTooltipIcon>
219
103
  </template>
220
- <template v-slot:city="{row}">
104
+ <template v-slot:city="{ row }">
221
105
  <BiTooltipIcon placement="right">
222
- <template slot="tip-label"><span>{{ row.city }}</span></template>
106
+ <template slot="tip-label"
107
+ ><span>{{ row.city }}</span></template
108
+ >
223
109
  <template slot="tip-content"><span>这是slot默认替换的写法,可用自定义的内容配合tooltip使用</span></template>
224
110
  <template slot="tip-icon">
225
- <i
226
- class="el-icon-chat-dot-round"
227
- style="color:#ff6700"
228
- ></i>
111
+ <i class="el-icon-chat-dot-round" style="color: #ff6700"></i>
229
112
  </template>
230
113
  </BiTooltipIcon>
231
114
  </template>
@@ -2,49 +2,20 @@
2
2
  <div class="free-table-container">
3
3
  <free-button @search="search"></free-button>
4
4
 
5
- <free-table
6
- v-loading="loading"
7
- style="min-height: 50vh"
8
- border
9
- pagination
10
- :data="data"
11
- :column="column"
12
- :total="total"
13
- :page.sync="params.page"
14
- :limit.sync="params.limit"
15
- @pagination="getList"
16
- ></free-table>
5
+ <free-table v-loading="loading" style="min-height: 50vh" border pagination :data="data" :column="column" :total="total" :page.sync="params.page" :limit.sync="params.limit" @pagination="getList"></free-table>
17
6
 
18
- <el-dialog
19
- title="收货地址"
20
- :visible.sync="dialogVisible"
21
- >
22
- <el-form
23
- :model="editForm"
24
- label-width="100px"
25
- >
7
+ <el-dialog title="收货地址" :visible.sync="dialogVisible">
8
+ <el-form :model="editForm" label-width="100px">
26
9
  <el-form-item label="名称">
27
- <el-input
28
- v-model="editForm.title"
29
- autocomplete="off"
30
- ></el-input>
10
+ <el-input v-model="editForm.title" autocomplete="off"></el-input>
31
11
  </el-form-item>
32
- <el-form-item
33
- v-if="editForm.author"
34
- label="作者"
35
- >
12
+ <el-form-item v-if="editForm.author" label="作者">
36
13
  <el-input v-model="editForm.author.loginname"></el-input>
37
14
  </el-form-item>
38
15
  </el-form>
39
- <div
40
- slot="footer"
41
- class="dialog-footer"
42
- >
16
+ <div slot="footer" class="dialog-footer">
43
17
  <el-button @click="dialogVisible = false">取 消</el-button>
44
- <el-button
45
- type="primary"
46
- @click="dialogVisible = false"
47
- >确 定</el-button>
18
+ <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
48
19
  </div>
49
20
  </el-dialog>
50
21
  </div>
@@ -1,24 +1,9 @@
1
1
  <template>
2
2
  <div>
3
- <el-button
4
- type=""
5
- @click="search"
6
- >搜索</el-button>
7
- <div
8
- class="example-table-box"
9
- style="padding-top:20px"
10
- >
3
+ <el-button type="" @click="search">搜索</el-button>
4
+ <div class="example-table-box" style="padding-top: 20px">
11
5
  <p>sticky表格</p>
12
- <bi-table
13
- ref="table"
14
- border
15
- stripe
16
- fixed="sticky"
17
- :data="data"
18
- :column="basicColumn"
19
- show-summary
20
- :summary-method="getSummaries"
21
- ></bi-table>
6
+ <bi-table ref="table" border stripe fixed="sticky" :data="data" :column="basicColumn" show-summary :summary-method="getSummaries"></bi-table>
22
7
  </div>
23
8
 
24
9
  <!-- <div style="padding-bottom:600px"></div>
@@ -11,11 +11,11 @@
11
11
  </div>
12
12
  <div class="data">
13
13
  <div class="data_search">
14
- <el-input placeholder="输入标题/关键字" v-model="searchData.combination" size="small" style="width:14vw;">
15
- <el-button icon="el-icon-search" slot="append" style="width:3vw;height:32px;" @click="clickSearch"></el-button>
14
+ <el-input v-model="searchData.combination" placeholder="输入标题/关键字" size="small" style="width: 14vw">
15
+ <el-button slot="append" icon="el-icon-search" style="width: 3vw; height: 32px" @click="clickSearch"></el-button>
16
16
  </el-input>
17
17
  <div>
18
- <el-button v-for="(item, index) in options.buttonList" :key="index" size="small" style="width:84px;height:32px;" @click="buttonClick(item.value)">{{ item.label }}</el-button>
18
+ <el-button v-for="(item, index) in options.buttonList" :key="index" size="small" style="width: 84px; height: 32px" @click="buttonClick(item.value)">{{ item.label }}</el-button>
19
19
  </div>
20
20
  </div>
21
21
  <div class="data_content">
@@ -171,7 +171,7 @@ export default {
171
171
  }
172
172
  },
173
173
  returnCategory(id) {
174
- const list = this.options.buttonList.filter(data => {
174
+ const list = this.options.buttonList.filter((data) => {
175
175
  return data.value === id
176
176
  })
177
177
  if (list.length) {