xianniu-ui 0.8.4 → 0.8.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xianniu-ui",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "private": false,
5
5
  "main": "lib/xianniu-ui.umd.min.js",
6
6
  "scripts": {
@@ -1 +1,6 @@
1
- @import './element-variables.scss';
1
+ @import './element-variables.scss';
2
+ @import './variables.scss';
3
+ @import './mixin.scss';
4
+ @import './transition.scss';
5
+ @import './sidebar.scss';
6
+ @import './element-ui.scss';
@@ -194,6 +194,7 @@ export default {
194
194
  (item, idx) => item[idKey] === val[idKey] && idx === val.rowIndex
195
195
  );
196
196
  this.$emit("on-single", res, column);
197
+ this.$emit("on-radio", res, column);
197
198
  },
198
199
  handleToolsItem(row, index) {
199
200
  this.$emit("on-tools", { row, index });
@@ -202,6 +203,7 @@ export default {
202
203
  selectionChange(val) {
203
204
  this.selectedData = val;
204
205
  this.$emit("selection-change", val);
206
+ this.$emit("on-selection", val);
205
207
  // this.$refs.table.get
206
208
  },
207
209
  toggleRowSelection(row, status) {
@@ -220,8 +222,7 @@ export default {
220
222
  tableRowClassName({ row, rowIndex }) {
221
223
  row.rowIndex = rowIndex;
222
224
  },
223
- headerRowClassName(row, rowIndex){
224
- console.log('row, rowIndex: ', row, rowIndex);
225
+ headerRowClassName(){
225
226
  return 'cus-table-header'
226
227
  }
227
228
  },
@@ -1,2 +1,3 @@
1
1
  import dayjs from 'dayjs'
2
+ require('dayjs/locale/zh-cn')
2
3
  export default dayjs
package/src/utils/reg.js CHANGED
@@ -9,7 +9,10 @@ const Reg = {
9
9
  positiveInteger: /^[1-9]\d*$/, // 正整数
10
10
  twoDecimal: /(^[0-9]{1,20}$)|(^[0-9]{1,20}[.][0-9]{1,2}$)/, // 2位小数
11
11
  text: /^[a-z\d\u4E00-\u9FA5]+$/i, // 不含特殊字符和标点
12
- getCity: /.+?(省|市|自治区|自治州|县|区)/g //获取地址中的省市区[省,市,区]
12
+ getCity: /.+?(省|市|自治区|自治州|县|区)/g, //获取地址中的省市区[省,市,区]
13
+ Tel: /^[0-9-]{7,18}$/, // 座机号
14
+ telAndPhone: /^[0-9-]{7,18}$/ || /^[0-9]{7,18}$/ || /^1\d{10}$/, // 校验手机号、座机号 010-88888888 01088888888
15
+ oneDecimal: /(^[0-9]{1,20}$)|(^[0-9]{1,20}[.][0-9]{1}$)/ // 1位小数
13
16
  }
14
17
 
15
18
  export default Reg