@baosight/erm 1.0.60 → 1.0.62

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.
@@ -39833,7 +39833,9 @@ __webpack_require__.d(__webpack_exports__, {
39833
39833
  "default": () => (/* binding */ entry_lib),
39834
39834
  ermAttach: () => (/* reexport */ packages_ermAttach),
39835
39835
  ermForm: () => (/* reexport */ packages_ermForm),
39836
- ermList: () => (/* reexport */ packages_ermList)
39836
+ ermFormHelper: () => (/* reexport */ ermFormHelper),
39837
+ ermList: () => (/* reexport */ packages_ermList),
39838
+ ermListHelper: () => (/* reexport */ ermListHelper)
39837
39839
  });
39838
39840
 
39839
39841
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
@@ -57135,6 +57137,109 @@ const ermAttach_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(ermAttac
57135
57137
 
57136
57138
  const ermAttach_ermAttach = install(ermAttach);
57137
57139
  /* harmony default export */ const packages_ermAttach = (ermAttach);
57140
+ ;// CONCATENATED MODULE: ./packages/utils/ermHelper.ts
57141
+ class ermListHelper {
57142
+ /**
57143
+ * 获取表名
57144
+ * @param ref 组件实例
57145
+ */
57146
+ static getTableName(ref) {
57147
+ return ref.value.getTableName();
57148
+ }
57149
+ /**
57150
+ * 结束加载状态
57151
+ * @param ref 组件实例
57152
+ */
57153
+ static endLoad(ref) {
57154
+ return ref.value.endLoad();
57155
+ }
57156
+ /**
57157
+ * 全选
57158
+ * @param ref 组件实例
57159
+ */
57160
+ static selectAll(ref) {
57161
+ return ref.value.selectAll();
57162
+ }
57163
+ /**
57164
+ * 全不选
57165
+ * @param ref 组件实例
57166
+ */
57167
+ static selectNone(ref) {
57168
+ return ref.value.selectNone();
57169
+ }
57170
+ /**
57171
+ * 获取选择行数据
57172
+ * @param ref 组件实例
57173
+ */
57174
+ static getSelectedRows(ref) {
57175
+ return ref.value.getSelectedRows();
57176
+ }
57177
+ }
57178
+ class ermFormHelper {
57179
+ /**
57180
+ * 获取表单数据
57181
+ * @param ref 组件实例
57182
+ */
57183
+ static getGridData(ref) {
57184
+ return ref.value.getGridData();
57185
+ }
57186
+ /**
57187
+ * 获取表单某行某字段
57188
+ * @param ref 组件实例
57189
+ * @param rowNo 行号
57190
+ * @param itemCode 字段名
57191
+ */
57192
+ static getGridCellData(ref, rowNo, itemCode) {
57193
+ return ref.value.getGridCellData(rowNo, itemCode);
57194
+ }
57195
+ /**
57196
+ * 表单某行某字段赋值
57197
+ * @param ref 组件实例
57198
+ * @param rowNo 行号
57199
+ * @param itemCode 字段名
57200
+ * @param value 字段值
57201
+ */
57202
+ static setGridData(ref, rowNo, itemCode, value) {
57203
+ return ref.value.setGridData(rowNo, itemCode, value);
57204
+ }
57205
+ /**
57206
+ * 校验必输项
57207
+ * @param ref 组件实例
57208
+ */
57209
+ static checkRequireInput(ref) {
57210
+ return ref.value.checkRequireInput();
57211
+ }
57212
+ /**
57213
+ * 重置默认值
57214
+ * @param ref 组件实例
57215
+ */
57216
+ static resetData(ref) {
57217
+ return ref.value.resetData();
57218
+ }
57219
+ /**
57220
+ * 重置默认值
57221
+ * @param ref 组件实例
57222
+ * @param rowNo 行号
57223
+ * @param rowObj 行对象
57224
+ */
57225
+ static mergeDataRow(ref, rowNo, rowObj) {
57226
+ return ref.value.mergeDataRow(rowNo, rowObj);
57227
+ }
57228
+ /**
57229
+ * 获取表名
57230
+ * @param ref 组件实例
57231
+ */
57232
+ static getTableName(ref) {
57233
+ return ref.value.getTableName();
57234
+ }
57235
+ /**
57236
+ *
57237
+ * @param ref 新增一行
57238
+ */
57239
+ static addRow(ref) {
57240
+ return ref.value.addRow();
57241
+ }
57242
+ }
57138
57243
  ;// CONCATENATED MODULE: ./packages/index.ts
57139
57244
  // 全局样式
57140
57245
 
@@ -57142,6 +57247,7 @@ const ermAttach_ermAttach = install(ermAttach);
57142
57247
 
57143
57248
 
57144
57249
 
57250
+
57145
57251
  // 所有组件列表
57146
57252
  const components = [packages_ermList, packages_ermForm, packages_ermAttach];
57147
57253
  // 定义 install 方法, App 作为参数