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/lib/style/theme/index.scss +6 -1
- package/lib/xianniu-ui.common.js +44 -31
- package/lib/xianniu-ui.umd.js +44 -31
- package/lib/xianniu-ui.umd.min.js +8 -8
- package/package.json +1 -1
- package/packages/style/src/theme/index.scss +6 -1
- package/packages/table/main.vue +3 -2
- package/src/utils/dayjs.js +1 -0
- package/src/utils/reg.js +4 -1
package/package.json
CHANGED
package/packages/table/main.vue
CHANGED
|
@@ -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(
|
|
224
|
-
console.log('row, rowIndex: ', row, rowIndex);
|
|
225
|
+
headerRowClassName(){
|
|
225
226
|
return 'cus-table-header'
|
|
226
227
|
}
|
|
227
228
|
},
|
package/src/utils/dayjs.js
CHANGED
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
|