@ctzy-web-client/plugin-component-vue 1.0.57 → 1.0.59

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.
@@ -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
@@ -271,7 +271,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
271
271
  createElementVNode("span", _hoisted_1, [
272
272
  _cache[3] || (_cache[3] = createElementVNode("svg", {
273
273
  t: "1782437689736",
274
- class: "icon",
275
274
  viewBox: "0 0 1616 1024",
276
275
  version: "1.1",
277
276
  xmlns: "http://www.w3.org/2000/svg",
@@ -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}
@@ -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
@@ -275,7 +275,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
275
275
  vue.createElementVNode("span", _hoisted_1, [
276
276
  _cache[3] || (_cache[3] = vue.createElementVNode("svg", {
277
277
  t: "1782437689736",
278
- class: "icon",
279
278
  viewBox: "0 0 1616 1024",
280
279
  version: "1.1",
281
280
  xmlns: "http://www.w3.org/2000/svg",
@@ -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.57",
3
+ "version": "1.0.59",
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"
@@ -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
@@ -67,7 +67,7 @@
67
67
  <div :class="ns.be('section', 'content')">
68
68
  <div :class="ns.e('field-item')">
69
69
  <span style="display: flex;align-items: center">
70
- <svg t="1782437689736" class="icon" viewBox="0 0 1616 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8064" width="20" height="20"><path d="M384 768C348.653776 768 320 796.653776 320 832 320 867.346224 348.653776 896 384 896 419.346224 896 448 867.346224 448 832 448 796.653776 419.346224 768 384 768ZM384 448C348.653776 448 320 476.653776 320 512 320 547.346224 348.653776 576 384 576 419.346224 576 448 547.346224 448 512 448 476.653776 419.346224 448 384 448ZM384 128C348.653776 128 320 156.653779 320 192 320 227.346221 348.653776 256 384 256 419.346224 256 448 227.346221 448 192 448 156.653779 419.346224 128 384 128ZM640 768C604.653776 768 576 796.653776 576 832 576 867.346224 604.653776 896 640 896 675.346221 896 704 867.346224 704 832 704 796.653776 675.346221 768 640 768ZM640 448C604.653776 448 576 476.653776 576 512 576 547.346224 604.653776 576 640 576 675.346221 576 704 547.346224 704 512 704 476.653776 675.346221 448 640 448ZM640 128C604.653776 128 576 156.653779 576 192 576 227.346221 604.653776 256 640 256 675.346221 256 704 227.346221 704 192 704 156.653779 675.346221 128 640 128Z" fill="#2c2c2c" p-id="8065"></path></svg>
70
+ <svg t="1782437689736" viewBox="0 0 1616 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8064" width="20" height="20"><path d="M384 768C348.653776 768 320 796.653776 320 832 320 867.346224 348.653776 896 384 896 419.346224 896 448 867.346224 448 832 448 796.653776 419.346224 768 384 768ZM384 448C348.653776 448 320 476.653776 320 512 320 547.346224 348.653776 576 384 576 419.346224 576 448 547.346224 448 512 448 476.653776 419.346224 448 384 448ZM384 128C348.653776 128 320 156.653779 320 192 320 227.346221 348.653776 256 384 256 419.346224 256 448 227.346221 448 192 448 156.653779 419.346224 128 384 128ZM640 768C604.653776 768 576 796.653776 576 832 576 867.346224 604.653776 896 640 896 675.346221 896 704 867.346224 704 832 704 796.653776 675.346221 768 640 768ZM640 448C604.653776 448 576 476.653776 576 512 576 547.346224 604.653776 576 640 576 675.346221 576 704 547.346224 704 512 704 476.653776 675.346221 448 640 448ZM640 128C604.653776 128 576 156.653779 576 192 576 227.346221 604.653776 256 640 256 675.346221 256 704 227.346221 704 192 704 156.653779 675.346221 128 640 128Z" fill="#2c2c2c" p-id="8065"></path></svg>
71
71
  {{ item.title }}
72
72
  </span>
73
73
  <ElSwitch
package/es/components.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}
@@ -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}