el-crud-page 1.0.0 → 1.0.2

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,6 @@
1
1
  {
2
2
  "name": "el-crud-page",
3
- "version": "1.0.0",
4
- "type": "module",
3
+ "version": "1.0.2",
5
4
  "description": "A powerful CRUD page component library for Element UI v2",
6
5
  "main": "dist/index.js",
7
6
  "module": "dist/index.esm.js",
@@ -14,8 +13,8 @@
14
13
  "scripts": {
15
14
  "build": "rollup -c",
16
15
  "dev": "rollup -c -w",
17
- "demo": "vite",
18
- "demo:build": "vite build",
16
+ "demo": "vue-cli-service serve",
17
+ "demo:build": "vue-cli-service build",
19
18
  "prepublishOnly": "npm run build"
20
19
  },
21
20
  "keywords": [
@@ -46,15 +45,14 @@
46
45
  "@rollup/plugin-babel": "^6.0.0",
47
46
  "@rollup/plugin-commonjs": "^25.0.0",
48
47
  "@rollup/plugin-node-resolve": "^15.0.0",
49
- "@vitejs/plugin-vue2": "^2.3.1",
50
48
  "@vue/babel-preset-jsx": "^1.4.0",
49
+ "@vue/cli-service": "4.4.6",
51
50
  "element-ui": "^2.15.0",
52
51
  "rollup": "^3.0.0",
53
52
  "rollup-plugin-scss": "^4.0.0",
54
53
  "rollup-plugin-vue": "^5.1.9",
55
- "vite": "^5.0.0",
56
- "vue": "^2.7.0",
57
- "vue-template-compiler": "^2.7.0",
58
- "sass": "^1.93.2"
54
+ "sass": "^1.93.2",
55
+ "vue": "^2.6.12",
56
+ "vue-template-compiler": "^2.6.12"
59
57
  }
60
58
  }
package/src/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import Crud from './index.vue';
2
2
  import CrudTable from './table.vue';
3
- import CrudForm from './form.vue';
4
3
  import QueryForm from "./queryForm.vue";
5
4
  import "./style.scss";
6
5
 
7
- export { Crud, CrudTable, CrudForm, QueryForm };
6
+ export { Crud, CrudTable, QueryForm };
package/src/index.vue CHANGED
@@ -34,7 +34,7 @@
34
34
  <div class="flex justify-between el-crud-toolbar">
35
35
  <slot name="buttons" :selections="selections">
36
36
  <div>
37
- <el-button :size="item.size" @click="handleButtonClick(item)" v-for="item in actionButtons"
37
+ <el-button :size="item.size" @click="handleButtonClick(item)" v-for="(item,index) in actionButtons" :key="`${item.key || ('action-btn-'+index)}`"
38
38
  :plain="item.plain" :disabled="item.disabled" :type="item.type" :icon="item.icon">{{
39
39
  item.text
40
40
  }}</el-button>
package/src/table.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <!-- crud table 组件 -->
2
2
  <template>
3
3
  <el-table :data="data" class="crud-table" ref="table" v-bind="combinedProps" v-on="combinedEvents">
4
- <crud-table-column v-for="column in columns" :indexMethod="(index)=>( baseIndex + 1 + index )"
4
+ <crud-table-column v-for="(column,index) in columns" :key="`${ column.key || ('column_'+index) }`" :indexMethod="(index)=>( baseIndex + 1 + index )"
5
5
  v-if="!column[`v-hasPermi`] || !column[`v-hasPermi`].length || $auth.hasPermiOr(column[`v-hasPermi`] || [])"
6
6
  :column="column" @action="onRowAction">
7
7
  </crud-table-column>