mooho-base-admin-plus 2.5.32 → 2.5.33

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,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.5.32",
4
+ "version": "2.5.33",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -28,7 +28,7 @@
28
28
  :readonly="readonly || column.isReadonly"
29
29
  :embedded="true"
30
30
  :parent-data="data"
31
- @on-change="onDataChange(column)"
31
+ @on-change="(row, sender, selected) => onDataChange(column, null, row, sender, selected)"
32
32
  >
33
33
  <template #column="scope">
34
34
  <!--
@@ -1321,7 +1321,7 @@
1321
1321
  this.onDataChange(sender, model);
1322
1322
  },
1323
1323
  // 数据变化事件
1324
- async onDataChange(sender, selected) {
1324
+ async onDataChange(sender, selected, tableRow, tableSender, tableSelected) {
1325
1325
  for (let column of this.columns) {
1326
1326
  // 判断是否需要显示
1327
1327
  if (!!(column.showJson || '').trim()) {
@@ -1375,8 +1375,11 @@
1375
1375
  * @property {object} oldValue 原数据
1376
1376
  * @property {object} newValue 新数据
1377
1377
  * @property {object} selected 选中对象(弹出选择框等有效)
1378
+ * @property {object} tableRow 表格行
1379
+ * @property {object} tableSender 表格中的控件
1380
+ * @property {object} tableSelected 表格中的选中项
1378
1381
  */
1379
- this.$emit('on-change', sender, null, null, this.$refs['table_' + sender.code][0].data);
1382
+ this.$emit('on-change', sender, null, null, this.$refs['table_' + sender.code][0].data, tableRow, tableSender, tableSelected);
1380
1383
  } else if (sender != null) {
1381
1384
  let oldValue = this.parseData(this.dataBefore, sender.code);
1382
1385
  let newValue = this.parseData(this.data, sender.code);
@@ -1,51 +0,0 @@
1
- const VueLoaderPlugin = require('vue-loader/lib/plugin');
2
-
3
- module.exports = {
4
- title: 'mooho-base-admin-plus',
5
- components: [
6
- 'src/components/view/modal-form.vue',
7
- 'src/components/view/modal-table.vue',
8
- 'src/components/view/view-form.vue',
9
- 'src/components/view/view-table.vue',
10
- 'src/components/view/view-chart.vue',
11
- 'src/components/input/*.vue'
12
- ],
13
- styleguideDir: 'styleguide-dist',
14
- // 在编辑器的右上角添加一个小按钮,用于将编辑器的内容复制到剪贴板
15
- copyCodeButton: true,
16
- // 是否每个章节是一个独立的页面. 默认:false
17
- pagePerSection: false,
18
- // props/events/slot的说明默认是展开还是收缩: expand / collapse / hide
19
- usageMode: 'expand',
20
- // 左侧导航默认是展开还是收缩: expand / collapse / hide
21
- tocMode: 'expand',
22
- // 显示 prop、事件、槽或方法是否来自当前文件或在 mixin 或扩展组件中配置。如果它是外部的,它会显示组件的名称,并在悬停时显示文件的相对路径。
23
- displayOrigins: true,
24
- webpackConfig: {
25
- module: {
26
- rules: [
27
- // Vue loader
28
- {
29
- test: /\.vue$/,
30
- exclude: /node_modules/,
31
- loader: 'vue-loader'
32
- },
33
- // Babel loader, will use your project’s .babelrc
34
- {
35
- test: /\.js?$/,
36
- exclude: /node_modules/,
37
- loader: 'babel-loader'
38
- },
39
- // Other loaders that are needed for your components
40
- {
41
- test: /\.css$/,
42
- loader: 'style-loader!css-loader'
43
- }
44
- ]
45
- },
46
- plugins: [
47
- // add vue-loader plugin
48
- new VueLoaderPlugin()
49
- ]
50
- }
51
- };