@ctzy-web-client/plugin-component-vue 1.0.29 → 1.0.30

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.
Files changed (28) hide show
  1. package/es/advance-select/advance-option.mjs +2 -3
  2. package/es/data-form/data-form.mjs +0 -1
  3. package/es/data-form/form-components/bwa-rich-text.mjs +0 -1
  4. package/es/data-table/data-table.mjs +4 -2
  5. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +1 -1
  6. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +0 -1
  7. package/es/pct-filter-panel/pct-filter-panel.mjs +0 -1
  8. package/es/utils.css +1 -0
  9. package/lib/advance-select/advance-option.js +2 -3
  10. package/lib/data-form/data-form.js +0 -1
  11. package/lib/data-form/form-components/bwa-rich-text.js +0 -1
  12. package/lib/data-table/data-table.js +4 -2
  13. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +1 -1
  14. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +0 -1
  15. package/lib/pct-filter-panel/pct-filter-panel.js +0 -1
  16. package/lib/utils.css +1 -0
  17. package/package.json +1 -1
  18. package/src/advance-select/advance-option.vue +1 -1
  19. package/src/data-form/data-form.vue +1 -1
  20. package/src/data-form/form-components/bwa-rich-text.vue +1 -1
  21. package/src/data-table/data-table.vue +7 -2
  22. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +1 -1
  23. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +1 -1
  24. package/src/pct-filter-panel/pct-filter-panel.vue +1 -1
  25. package/es/plugins.css +0 -1
  26. package/lib/plugins.css +0 -1
  27. /package/es/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.mjs → advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.mjs} +0 -0
  28. /package/lib/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.js → advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.js} +0 -0
@@ -4,7 +4,7 @@ import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
4
4
  import { useEvent } from './events-helpers.mjs';
5
5
  import { useAdvanceOption } from './use-advance-option.mjs';
6
6
  import { pinyin } from 'pinyin-pro';
7
- import './advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.mjs';
7
+ import './advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.mjs';
8
8
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
9
9
 
10
10
  // Inject __name helper
@@ -39,7 +39,6 @@ const _sfc_main = {
39
39
  const show = ref(true);
40
40
  const clickFlag = ref(true);
41
41
  const showLetterAvatarStatus = computed(() => props.showLetterAvatar);
42
- console.log(showLetterAvatarStatus.value, "\u4E0B\u4E00\u7EA7");
43
42
  const contentText = ref();
44
43
  expose({ currentLabel });
45
44
  const filterOptionClick = () => {
@@ -160,6 +159,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
159
  }, 8, ["class"])) : createCommentVNode("v-if", true)
161
160
  ], 2);
162
161
  }
163
- var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-daae7edd"], ["__file", "advance-option.vue"]]);
162
+ var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4c0fde1d"], ["__file", "advance-option.vue"]]);
164
163
 
165
164
  export { BwaAdvanceOption as default };
@@ -123,7 +123,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
123
123
  ElMessage.info("\u4FDD\u5B58\u6210\u529F!");
124
124
  }).catch((e) => ElMessage.error(e.message));
125
125
  }).catch((result) => {
126
- console.log(result);
127
126
  });
128
127
  };
129
128
  onMounted(() => {
@@ -193,7 +193,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
193
193
  if (evt.clipboardData && evt.clipboardData.files && evt.clipboardData.files.length) {
194
194
  evt.preventDefault();
195
195
  [].forEach.call(evt.clipboardData.files, async (file) => {
196
- console.log(file);
197
196
  if (file.type.match(/^image\/(gif|jpe?g|a?png|bmp)/i)) {
198
197
  const filePathResult = await updateImage(file);
199
198
  if (filePathResult.code != 0) {
@@ -147,7 +147,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
147
147
  })
148
148
  );
149
149
  }
150
- console.log(userListResult);
151
150
  } finally {
152
151
  processing.value = false;
153
152
  }
@@ -167,10 +166,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
167
166
  dataTable.load();
168
167
  };
169
168
  useEventDispatcher(dataTable, "load-successfully", (res) => {
169
+ var _a2, _b;
170
170
  if (!elTable.value) {
171
171
  return;
172
172
  }
173
- unref(elTable).store.updateSelectionByRowKey();
173
+ if ((_b = (_a2 = unref(elTable)) == null ? void 0 : _a2.store) == null ? void 0 : _b.updateSelectionByRowKey) {
174
+ unref(elTable).store.updateSelectionByRowKey();
175
+ }
174
176
  if (res.code != 0) {
175
177
  ElMessage.error(res.msg);
176
178
  }
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
23
23
  },
24
24
  valueFormat: {
25
25
  type: String,
26
- default: "YYYY-MM-DD"
26
+ default: "YYYY-MM-DD HH:mm:ss"
27
27
  },
28
28
  showTitle: {
29
29
  type: Boolean,
@@ -132,7 +132,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
132
132
  var _a2, _b;
133
133
  return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.showLetterAvatar) || props.showLetterAvatar;
134
134
  });
135
- console.log(showLetterAvatarStatus.value, "\u6253\u5370\u4F20\u503C");
136
135
  const handleClose = (val) => {
137
136
  const currentModelValue = Array.isArray(modelValue.value) ? modelValue.value : [];
138
137
  modelValue.value = currentModelValue.filter(
@@ -72,7 +72,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
72
72
  handleReset,
73
73
  handleSearch
74
74
  } = useFilterPanel(props, { emit });
75
- console.log(currentFilterColumns);
76
75
  watch(
77
76
  filterPanel,
78
77
  (filterPanel2, _, onCleanup) => {
package/es/utils.css ADDED
@@ -0,0 +1 @@
1
+ .letter-circle[data-v-4c0fde1d]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
@@ -8,7 +8,7 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
8
8
  var eventsHelpers = require('./events-helpers.js');
9
9
  var useAdvanceOption = require('./use-advance-option.js');
10
10
  var pinyinPro = require('pinyin-pro');
11
- require('./advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.js');
11
+ require('./advance-option.vue_vue_type_style_index_0_scoped_4c0fde1d_lang.js');
12
12
  var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
13
13
 
14
14
  // Inject __name helper
@@ -43,7 +43,6 @@ const _sfc_main = {
43
43
  const show = vue.ref(true);
44
44
  const clickFlag = vue.ref(true);
45
45
  const showLetterAvatarStatus = vue.computed(() => props.showLetterAvatar);
46
- console.log(showLetterAvatarStatus.value, "\u4E0B\u4E00\u7EA7");
47
46
  const contentText = vue.ref();
48
47
  expose({ currentLabel });
49
48
  const filterOptionClick = () => {
@@ -164,6 +163,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
164
163
  }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
165
164
  ], 2);
166
165
  }
167
- var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-daae7edd"], ["__file", "advance-option.vue"]]);
166
+ var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4c0fde1d"], ["__file", "advance-option.vue"]]);
168
167
 
169
168
  exports["default"] = BwaAdvanceOption;
@@ -127,7 +127,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
127
127
  ElementPlus.ElMessage.info("\u4FDD\u5B58\u6210\u529F!");
128
128
  }).catch((e) => ElementPlus.ElMessage.error(e.message));
129
129
  }).catch((result) => {
130
- console.log(result);
131
130
  });
132
131
  };
133
132
  vue.onMounted(() => {
@@ -201,7 +201,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
201
201
  if (evt.clipboardData && evt.clipboardData.files && evt.clipboardData.files.length) {
202
202
  evt.preventDefault();
203
203
  [].forEach.call(evt.clipboardData.files, async (file) => {
204
- console.log(file);
205
204
  if (file.type.match(/^image\/(gif|jpe?g|a?png|bmp)/i)) {
206
205
  const filePathResult = await updateImage(file);
207
206
  if (filePathResult.code != 0) {
@@ -151,7 +151,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
151
151
  })
152
152
  );
153
153
  }
154
- console.log(userListResult);
155
154
  } finally {
156
155
  processing.value = false;
157
156
  }
@@ -171,10 +170,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
171
170
  dataTable.load();
172
171
  };
173
172
  webBaseClientVue.useEventDispatcher(dataTable, "load-successfully", (res) => {
173
+ var _a2, _b;
174
174
  if (!elTable.value) {
175
175
  return;
176
176
  }
177
- vue.unref(elTable).store.updateSelectionByRowKey();
177
+ if ((_b = (_a2 = vue.unref(elTable)) == null ? void 0 : _a2.store) == null ? void 0 : _b.updateSelectionByRowKey) {
178
+ vue.unref(elTable).store.updateSelectionByRowKey();
179
+ }
178
180
  if (res.code != 0) {
179
181
  ElementPlus.ElMessage.error(res.msg);
180
182
  }
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
27
27
  },
28
28
  valueFormat: {
29
29
  type: String,
30
- default: "YYYY-MM-DD"
30
+ default: "YYYY-MM-DD HH:mm:ss"
31
31
  },
32
32
  showTitle: {
33
33
  type: Boolean,
@@ -136,7 +136,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
136
136
  var _a2, _b;
137
137
  return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.showLetterAvatar) || props.showLetterAvatar;
138
138
  });
139
- console.log(showLetterAvatarStatus.value, "\u6253\u5370\u4F20\u503C");
140
139
  const handleClose = (val) => {
141
140
  const currentModelValue = Array.isArray(modelValue.value) ? modelValue.value : [];
142
141
  modelValue.value = currentModelValue.filter(
@@ -76,7 +76,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
76
76
  handleReset,
77
77
  handleSearch
78
78
  } = useFilterPanel.useFilterPanel(props, { emit });
79
- console.log(currentFilterColumns);
80
79
  vue.watch(
81
80
  filterPanel,
82
81
  (filterPanel2, _, onCleanup) => {
package/lib/utils.css ADDED
@@ -0,0 +1 @@
1
+ .letter-circle[data-v-4c0fde1d]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzy-web-client/plugin-component-vue",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "exports": {
@@ -65,7 +65,7 @@ export default {
65
65
  const clickFlag = ref(true)
66
66
  const showLetterAvatarStatus = computed(() => props.showLetterAvatar);
67
67
 
68
- console.log(showLetterAvatarStatus.value,'下一级')
68
+ // console.log(showLetterAvatarStatus.value,'下一级')
69
69
  const contentText = ref()
70
70
 
71
71
  expose({ currentLabel });
@@ -186,7 +186,7 @@ const submit = (data) => {
186
186
  .catch((e) => ElMessage.error(e.message));
187
187
  })
188
188
  .catch((result) => {
189
- console.log(result);
189
+ // console.log(result);
190
190
  });
191
191
  };
192
192
 
@@ -277,7 +277,7 @@ onMounted(() => {
277
277
  ) {
278
278
  evt.preventDefault();
279
279
  [].forEach.call(evt.clipboardData.files, async (file) => {
280
- console.log(file)
280
+ // console.log(file)
281
281
  if (file.type.match(/^image\/(gif|jpe?g|a?png|bmp)/i)) {
282
282
  const filePathResult = await updateImage(file);
283
283
 
@@ -297,7 +297,6 @@ useEventDispatcher(dataTable, 'load-successfully', async (res) => {
297
297
  );
298
298
  }
299
299
 
300
- console.log(userListResult);
301
300
  } finally {
302
301
  processing.value = false;
303
302
  }
@@ -324,7 +323,13 @@ useEventDispatcher(dataTable, 'load-successfully', (res) => {
324
323
  return;
325
324
  }
326
325
 
327
- unref(elTable).store.updateSelectionByRowKey();
326
+ if (unref(elTable)?.store?.updateSelectionByRowKey) {
327
+ unref(elTable).store.updateSelectionByRowKey()
328
+ }
329
+ // else {
330
+ // console.log('方法不存在,当前 store 结构:', unref(elTable)?.store)
331
+ // }
332
+ // unref(elTable).store.updateSelectionByRowKey();
328
333
 
329
334
  if (res.code != 0) {
330
335
  ElMessage.error(res.msg);
@@ -29,7 +29,7 @@ const props = defineProps({
29
29
  },
30
30
  valueFormat: {
31
31
  type: String,
32
- default: 'YYYY-MM-DD',
32
+ default: 'YYYY-MM-DD HH:mm:ss',
33
33
  },
34
34
  showTitle: {
35
35
  type: Boolean,
@@ -222,7 +222,7 @@ const placeholderStr = computed(() => showTitle.value ? props.placeholder : colu
222
222
  const labelPropStr = computed(() => column.value?.componentProps?.labelAttr || props.labelProp)
223
223
  const valuePropStr = computed(() => column.value?.componentProps?.valueAttr || props.valueProp)
224
224
  const showLetterAvatarStatus = computed(() => column.value?.componentProps?.showLetterAvatar || props.showLetterAvatar)
225
- console.log(showLetterAvatarStatus.value,'打印传值')
225
+
226
226
  const handleClose = (val)=>{
227
227
 
228
228
  // 优化后
@@ -175,7 +175,7 @@ const {
175
175
  handleReset,
176
176
  handleSearch
177
177
  } = useFilterPanel(props, { emit });
178
- console.log(currentFilterColumns)
178
+
179
179
  watch(
180
180
  filterPanel,
181
181
  (filterPanel, _, onCleanup) => {
package/es/plugins.css DELETED
@@ -1 +0,0 @@
1
- .letter-circle[data-v-daae7edd]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
package/lib/plugins.css DELETED
@@ -1 +0,0 @@
1
- .letter-circle[data-v-daae7edd]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}