@baosight/erm 1.0.60 → 1.0.61
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/index.common.js +100 -1
- package/lib/index.common.js.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.esm.css +107 -107
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +100 -1
- package/lib/index.umd.js.map +1 -1
- package/lib/index.umd.min.js +2 -2
- package/lib/index.umd.min.js.map +1 -1
- package/lib/utils/ermHelper.d.ts +71 -0
- package/package.json +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -39851,7 +39851,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39851
39851
|
"default": () => (/* binding */ entry_lib),
|
|
39852
39852
|
ermAttach: () => (/* reexport */ packages_ermAttach),
|
|
39853
39853
|
ermForm: () => (/* reexport */ packages_ermForm),
|
|
39854
|
-
|
|
39854
|
+
ermFormHelper: () => (/* reexport */ ermFormHelper),
|
|
39855
|
+
ermList: () => (/* reexport */ packages_ermList),
|
|
39856
|
+
ermListHelper: () => (/* reexport */ ermListHelper)
|
|
39855
39857
|
});
|
|
39856
39858
|
|
|
39857
39859
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -57153,6 +57155,102 @@ const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttac
|
|
|
57153
57155
|
|
|
57154
57156
|
const ermAttach_ermAttach = install(ermAttach);
|
|
57155
57157
|
/* harmony default export */ const packages_ermAttach = (ermAttach);
|
|
57158
|
+
;// CONCATENATED MODULE: ./packages/utils/ermHelper.ts
|
|
57159
|
+
class ermListHelper {
|
|
57160
|
+
/**
|
|
57161
|
+
* 获取表名
|
|
57162
|
+
* @param ref 组件实例
|
|
57163
|
+
*/
|
|
57164
|
+
static getTableName(ref) {
|
|
57165
|
+
return ref.value.getTableName();
|
|
57166
|
+
}
|
|
57167
|
+
/**
|
|
57168
|
+
* 结束加载状态
|
|
57169
|
+
* @param ref 组件实例
|
|
57170
|
+
*/
|
|
57171
|
+
static endLoad(ref) {
|
|
57172
|
+
return ref.value.endLoad();
|
|
57173
|
+
}
|
|
57174
|
+
/**
|
|
57175
|
+
* 全选
|
|
57176
|
+
* @param ref 组件实例
|
|
57177
|
+
*/
|
|
57178
|
+
static selectAll(ref) {
|
|
57179
|
+
return ref.value.selectAll();
|
|
57180
|
+
}
|
|
57181
|
+
/**
|
|
57182
|
+
* 全不选
|
|
57183
|
+
* @param ref 组件实例
|
|
57184
|
+
*/
|
|
57185
|
+
static selectNone(ref) {
|
|
57186
|
+
return ref.value.selectNone();
|
|
57187
|
+
}
|
|
57188
|
+
/**
|
|
57189
|
+
* 获取选择行数据
|
|
57190
|
+
* @param ref 组件实例
|
|
57191
|
+
*/
|
|
57192
|
+
static getSelectedRows(ref) {
|
|
57193
|
+
return ref.value.getSelectedRows();
|
|
57194
|
+
}
|
|
57195
|
+
}
|
|
57196
|
+
class ermFormHelper {
|
|
57197
|
+
/**
|
|
57198
|
+
* 获取表单数据
|
|
57199
|
+
* @param ref 组件实例
|
|
57200
|
+
*/
|
|
57201
|
+
static getGridData(ref) {
|
|
57202
|
+
return ref.value.getGridData();
|
|
57203
|
+
}
|
|
57204
|
+
/**
|
|
57205
|
+
* 获取表单某行某字段
|
|
57206
|
+
* @param ref 组件实例
|
|
57207
|
+
* @param rowNo 行号
|
|
57208
|
+
* @param itemCode 字段名
|
|
57209
|
+
*/
|
|
57210
|
+
static getGridCellData(ref, rowNo, itemCode) {
|
|
57211
|
+
return ref.value.getGridCellData(rowNo, itemCode);
|
|
57212
|
+
}
|
|
57213
|
+
/**
|
|
57214
|
+
* 表单某行某字段赋值
|
|
57215
|
+
* @param ref 组件实例
|
|
57216
|
+
* @param rowNo 行号
|
|
57217
|
+
* @param itemCode 字段名
|
|
57218
|
+
* @param value 字段值
|
|
57219
|
+
*/
|
|
57220
|
+
static setGridData(ref, rowNo, itemCode, value) {
|
|
57221
|
+
return ref.value.setGridData(rowNo, itemCode, value);
|
|
57222
|
+
}
|
|
57223
|
+
/**
|
|
57224
|
+
* 校验必输项
|
|
57225
|
+
* @param ref 组件实例
|
|
57226
|
+
*/
|
|
57227
|
+
static checkRequireInput(ref) {
|
|
57228
|
+
return ref.value.checkRequireInput();
|
|
57229
|
+
}
|
|
57230
|
+
/**
|
|
57231
|
+
* 重置默认值
|
|
57232
|
+
* @param ref 组件实例
|
|
57233
|
+
*/
|
|
57234
|
+
static resetData(ref) {
|
|
57235
|
+
return ref.value.resetData();
|
|
57236
|
+
}
|
|
57237
|
+
/**
|
|
57238
|
+
* 重置默认值
|
|
57239
|
+
* @param ref 组件实例
|
|
57240
|
+
* @param rowNo 行号
|
|
57241
|
+
* @param rowObj 行对象
|
|
57242
|
+
*/
|
|
57243
|
+
static mergeDataRow(ref, rowNo, rowObj) {
|
|
57244
|
+
return ref.value.mergeDataRow(rowNo, rowObj);
|
|
57245
|
+
}
|
|
57246
|
+
/**
|
|
57247
|
+
* 获取表名
|
|
57248
|
+
* @param ref 组件实例
|
|
57249
|
+
*/
|
|
57250
|
+
static getTableName(ref) {
|
|
57251
|
+
return ref.value.getTableName();
|
|
57252
|
+
}
|
|
57253
|
+
}
|
|
57156
57254
|
;// CONCATENATED MODULE: ./packages/index.ts
|
|
57157
57255
|
// 全局样式
|
|
57158
57256
|
|
|
@@ -57160,6 +57258,7 @@ const ermAttach_ermAttach = install(ermAttach);
|
|
|
57160
57258
|
|
|
57161
57259
|
|
|
57162
57260
|
|
|
57261
|
+
|
|
57163
57262
|
// 所有组件列表
|
|
57164
57263
|
const components = [packages_ermList, packages_ermForm, packages_ermAttach];
|
|
57165
57264
|
// 定义 install 方法, App 作为参数
|