@ctzy-web-client/plugin-component-vue 1.0.58 → 1.0.60

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.
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
71
71
  default: true
72
72
  }
73
73
  },
74
- emits: ["drag", "headerWidthChange"],
74
+ emits: ["drag", "headerWidthChange", "selectionRow", "selectionRowAll"],
75
75
  setup(__props, { emit: __emit }) {
76
76
  var _a;
77
77
  ;
@@ -241,6 +241,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
241
241
  };
242
242
  emit("headerWidthChange", widthObj);
243
243
  };
244
+ const selectionRow = (row, selected) => {
245
+ emit("selectionRow", row, selected);
246
+ };
247
+ const selectionRowAll = (selection) => {
248
+ emit("selectionRowAll", selection);
249
+ };
244
250
  const totalPage = computed(() => dataTable.getTotalPage());
245
251
  const tableSelectSubscription = tableSelectSubject.pipe(debounceTime(debounceDelay)).subscribe(unref(dataTable).setSelection.bind(unref(dataTable)));
246
252
  const selectChangeAPIObservable = new Observable(
@@ -323,6 +329,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
323
329
  fit: ""
324
330
  }, unref(attrs), {
325
331
  onHeaderDragend: headerDragend,
332
+ onSelect: selectionRow,
333
+ onSelectAll: selectionRowAll,
326
334
  onSelectionChange: unref(selectionChange),
327
335
  onSortChange: sortHandle,
328
336
  border: __props.border
package/es/utils.css ADDED
@@ -0,0 +1 @@
1
+ .letter-circle[data-v-9ba46efc]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}.pct-select-ellipsis .el-select-dropdown__item{box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;width:100%!important}.letter-circle[data-v-c1065f11]{align-items:center;border-radius:50%;color:#fff;display:flex;flex-shrink:0;font-size:12px;height:22px;justify-content:center;width:22px}.option-container[data-v-c1065f11]{align-items:center;display:flex;width:100%}.option-text[data-v-c1065f11]{flex:1;margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@@ -75,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
75
75
  default: true
76
76
  }
77
77
  },
78
- emits: ["drag", "headerWidthChange"],
78
+ emits: ["drag", "headerWidthChange", "selectionRow", "selectionRowAll"],
79
79
  setup(__props, { emit: __emit }) {
80
80
  var _a;
81
81
  ;
@@ -245,6 +245,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
245
245
  };
246
246
  emit("headerWidthChange", widthObj);
247
247
  };
248
+ const selectionRow = (row, selected) => {
249
+ emit("selectionRow", row, selected);
250
+ };
251
+ const selectionRowAll = (selection) => {
252
+ emit("selectionRowAll", selection);
253
+ };
248
254
  const totalPage = vue.computed(() => dataTable.getTotalPage());
249
255
  const tableSelectSubscription = tableSelectSubject.pipe(rxjs.debounceTime(debounceDelay)).subscribe(vue.unref(dataTable).setSelection.bind(vue.unref(dataTable)));
250
256
  const selectChangeAPIObservable = new rxjs.Observable(
@@ -327,6 +333,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
327
333
  fit: ""
328
334
  }, vue.unref(attrs), {
329
335
  onHeaderDragend: headerDragend,
336
+ onSelect: selectionRow,
337
+ onSelectAll: selectionRowAll,
330
338
  onSelectionChange: vue.unref(selectionChange),
331
339
  onSortChange: sortHandle,
332
340
  border: __props.border
package/lib/utils.css ADDED
@@ -0,0 +1 @@
1
+ .letter-circle[data-v-9ba46efc]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}.pct-select-ellipsis .el-select-dropdown__item{box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;width:100%!important}.letter-circle[data-v-c1065f11]{align-items:center;border-radius:50%;color:#fff;display:flex;flex-shrink:0;font-size:12px;height:22px;justify-content:center;width:22px}.option-container[data-v-c1065f11]{align-items:center;display:flex;width:100%}.option-text[data-v-c1065f11]{flex:1;margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzy-web-client/plugin-component-vue",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "exports": {
@@ -13,6 +13,8 @@
13
13
  fit
14
14
  v-bind="attrs"
15
15
  @header-dragend='headerDragend'
16
+ @select="selectionRow"
17
+ @select-all="selectionRowAll"
16
18
  @selection-change="selectionChange"
17
19
  @sort-change="sortHandle"
18
20
  :border="border"
@@ -221,7 +223,7 @@ watch(
221
223
 
222
224
  const searchParams = computed(() => props.searchParams);
223
225
 
224
- const emit = defineEmits(['drag','headerWidthChange']);
226
+ const emit = defineEmits(['drag','headerWidthChange','selectionRow','selectionRowAll']);
225
227
 
226
228
  const debounceDelay = useGlobalConfig('debounceDelay', 500);const calculateNameLengthPx = (
227
229
  name,
@@ -422,6 +424,12 @@ const headerDragend = (newWidth,oldWidth,column) =>{
422
424
  }
423
425
  emit('headerWidthChange',widthObj)
424
426
  }
427
+ const selectionRow = (row, selected) => {
428
+ emit('selectionRow', row, selected);
429
+ }
430
+ const selectionRowAll = (selection) => {
431
+ emit('selectionRowAll', selection);
432
+ }
425
433
  const totalPage = computed(() => dataTable.getTotalPage());
426
434
 
427
435
  const tableSelectSubscription = tableSelectSubject
package/es/index.css DELETED
@@ -1 +0,0 @@
1
- .letter-circle[data-v-9ba46efc]{font-size:14px;height:24px;margin-right:8px;width:24px}.letter-circle[data-v-9ba46efc],.letter-circle[data-v-c1065f11]{align-items:center;border-radius:50%;color:#fff;display:flex;justify-content:center}.letter-circle[data-v-c1065f11]{flex-shrink:0;font-size:12px;height:22px;width:22px}.option-container[data-v-c1065f11]{align-items:center;display:flex;width:100%}.option-text[data-v-c1065f11]{flex:1;margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pct-select-ellipsis .el-select-dropdown__item{box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;width:100%!important}
package/lib/index.css DELETED
@@ -1 +0,0 @@
1
- .letter-circle[data-v-9ba46efc]{font-size:14px;height:24px;margin-right:8px;width:24px}.letter-circle[data-v-9ba46efc],.letter-circle[data-v-c1065f11]{align-items:center;border-radius:50%;color:#fff;display:flex;justify-content:center}.letter-circle[data-v-c1065f11]{flex-shrink:0;font-size:12px;height:22px;width:22px}.option-container[data-v-c1065f11]{align-items:center;display:flex;width:100%}.option-text[data-v-c1065f11]{flex:1;margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pct-select-ellipsis .el-select-dropdown__item{box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;width:100%!important}