leisure-common 0.5.3 → 0.5.4

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.
@@ -47,6 +47,15 @@
47
47
  </el-form-item>
48
48
  </le-list-form>
49
49
  </template>
50
+ <template v-slot:rowAllBtns="{ rowdata }">
51
+ <le-button @click="editItem(rowdata)" v-if="rowdata.pcode != 0">
52
+ 编辑</le-button>
53
+ </template>
54
+ <template #paramSlot>
55
+ <el-form-item label="名称">
56
+ <le-input v-model="searchParam.title" placeholder="请输入菜单名称"></le-input>
57
+ </el-form-item>
58
+ </template>
50
59
  </le-list>
51
60
  </div>
52
61
  </template>
@@ -88,7 +97,7 @@ export default {
88
97
  },
89
98
  fieldOptions: {
90
99
  },
91
- searchParam: { name: "", title: '' },
100
+ searchParam: { title: '' },
92
101
  status: 2, //0:详情 1:新增 2:编辑
93
102
  };
94
103
  },
@@ -110,6 +119,9 @@ export default {
110
119
  delBtn(index) {
111
120
  this.btnInfos.splice(index, 1);
112
121
  },
122
+ editItem(row) {
123
+ this.$refs.commonPage.editItem(row);
124
+ },
113
125
  saveBtns(item) {
114
126
  if (this.btnInfos && this.btnInfos.length > 0 && this.btnInfos[0].id) {
115
127
  item.btns = JSON.stringify(this.btnInfos);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-common",
3
- "version": "0.5.03",
3
+ "version": "0.5.04",
4
4
  "description": "leisure-common是京心数据在leisure-core基础上开发的一套后台管理系统基于故事的电商行业组件库,封装了大量实用的UI控件模板,方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",
@@ -13,7 +13,7 @@
13
13
  "registry": "https://registry.npmjs.org/"
14
14
  },
15
15
  "dependencies": {
16
- "leisure-core": "^0.5.03"
16
+ "leisure-core": "^0.5.04"
17
17
  },
18
18
  "devDependencies": {}
19
19
  }