@vipl520/dk-ui 1.0.10 → 1.0.12

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 (85) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +133 -104
  3. package/dist/index.min.js +6 -6
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +6 -6
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/index.mjs +133 -104
  8. package/dist/web-types.json +1 -1
  9. package/es/api/attachment.mjs +10 -6
  10. package/es/api/attachment.mjs.map +1 -1
  11. package/es/attachment/src/attachment.vue2.mjs +7 -7
  12. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  13. package/es/dialog/index.d.ts +15 -0
  14. package/es/dialog/src/dialog.vue.d.ts +9 -0
  15. package/es/dialog/src/dialog.vue2.mjs +3 -2
  16. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  17. package/es/dialog/src/props.d.ts +4 -0
  18. package/es/dialog/src/props.mjs +4 -0
  19. package/es/dialog/src/props.mjs.map +1 -1
  20. package/es/file-input/style/index.css +1 -1
  21. package/es/file-input/style/index.scss +2 -0
  22. package/es/file-list-input/style/index.css +1 -1
  23. package/es/file-list-input/style/index.scss +1 -0
  24. package/es/form/index.d.ts +0 -3
  25. package/es/form/src/form.vue.d.ts +0 -2
  26. package/es/form/src/form.vue2.mjs +28 -40
  27. package/es/form/src/form.vue2.mjs.map +1 -1
  28. package/es/form/src/props.d.ts +0 -1
  29. package/es/form/src/props.mjs +2 -3
  30. package/es/form/src/props.mjs.map +1 -1
  31. package/es/form/style/index.css +1 -1
  32. package/es/form/style/index.scss +5 -0
  33. package/es/select/src/select.vue2.mjs +3 -3
  34. package/es/select/src/select.vue2.mjs.map +1 -1
  35. package/es/table/src/components/ComSearch.vue2.mjs +3 -1
  36. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  37. package/es/table/src/components/RecycleDialog.vue2.mjs +1 -2
  38. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  39. package/es/table/src/components/header.vue2.mjs +0 -1
  40. package/es/table/src/components/header.vue2.mjs.map +1 -1
  41. package/es/table/src/table.vue2.mjs +0 -4
  42. package/es/table/src/table.vue2.mjs.map +1 -1
  43. package/es/table/style/index.css +1 -1
  44. package/es/table/style/index.scss +0 -5
  45. package/es/table/utils/dkTableApi.mjs +66 -32
  46. package/es/table/utils/dkTableApi.mjs.map +1 -1
  47. package/lib/api/attachment.js +10 -6
  48. package/lib/api/attachment.js.map +1 -1
  49. package/lib/attachment/src/attachment.vue2.js +7 -7
  50. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  51. package/lib/dialog/index.d.ts +15 -0
  52. package/lib/dialog/src/dialog.vue.d.ts +9 -0
  53. package/lib/dialog/src/dialog.vue2.js +3 -2
  54. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  55. package/lib/dialog/src/props.d.ts +4 -0
  56. package/lib/dialog/src/props.js +4 -0
  57. package/lib/dialog/src/props.js.map +1 -1
  58. package/lib/file-input/style/index.css +1 -1
  59. package/lib/file-input/style/index.scss +2 -0
  60. package/lib/file-list-input/style/index.css +1 -1
  61. package/lib/file-list-input/style/index.scss +1 -0
  62. package/lib/form/index.d.ts +0 -3
  63. package/lib/form/src/form.vue.d.ts +0 -2
  64. package/lib/form/src/form.vue2.js +27 -39
  65. package/lib/form/src/form.vue2.js.map +1 -1
  66. package/lib/form/src/props.d.ts +0 -1
  67. package/lib/form/src/props.js +2 -3
  68. package/lib/form/src/props.js.map +1 -1
  69. package/lib/form/style/index.css +1 -1
  70. package/lib/form/style/index.scss +5 -0
  71. package/lib/select/src/select.vue2.js +3 -3
  72. package/lib/select/src/select.vue2.js.map +1 -1
  73. package/lib/table/src/components/ComSearch.vue2.js +3 -1
  74. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  75. package/lib/table/src/components/RecycleDialog.vue2.js +1 -2
  76. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  77. package/lib/table/src/components/header.vue2.js +0 -1
  78. package/lib/table/src/components/header.vue2.js.map +1 -1
  79. package/lib/table/src/table.vue2.js +0 -4
  80. package/lib/table/src/table.vue2.js.map +1 -1
  81. package/lib/table/style/index.css +1 -1
  82. package/lib/table/style/index.scss +0 -5
  83. package/lib/table/utils/dkTableApi.js +66 -32
  84. package/lib/table/utils/dkTableApi.js.map +1 -1
  85. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -187,13 +187,13 @@
187
187
 
188
188
  const globalConfig = {
189
189
  // TODO 参数如果未填写自动获取
190
- ApiUrl: "https://independence.heiduoke.cn",
190
+ ApiUrl: "",
191
191
  // 默认的 API 地址
192
- AccessToken: "b5fe9c57-24fc-44da-b7f0-e655554c31d1",
192
+ AccessToken: "",
193
193
  // 用户登录后的 token
194
- Plaid: 16,
194
+ Plaid: 0,
195
195
  // 平台ID
196
- AddonName: "demo_wx",
196
+ AddonName: "",
197
197
  ProjectType: "addon"
198
198
  };
199
199
  function setGlobalConfig(newConfig) {
@@ -379,14 +379,14 @@
379
379
  customOptions.code_error_show && elementPlus.ElMessage.error(res.msg);
380
380
  switch (code) {
381
381
  case -1:
382
- return Promise.reject(res);
383
382
  case 401:
384
- break;
383
+ case 402:
384
+ case 403:
385
+ return Promise.reject(res);
385
386
  default:
386
387
  return Promise.reject(response.data || { msg: "\u672A\u77E5\u9519\u8BEF" });
387
388
  }
388
389
  }
389
- return res;
390
390
  },
391
391
  (error) => {
392
392
  console.log("error", error);
@@ -10296,12 +10296,16 @@
10296
10296
  });
10297
10297
  }
10298
10298
  function getAttachmentGroupList(type) {
10299
- console.log("typetypetype", type);
10300
- return request({
10301
- method: "get",
10302
- url: "/adminapi/attachment/group",
10303
- params: { type }
10304
- });
10299
+ return request(
10300
+ {
10301
+ method: "get",
10302
+ url: "/adminapi/attachment/group",
10303
+ params: { type }
10304
+ },
10305
+ {
10306
+ code_error_show: true
10307
+ }
10308
+ );
10305
10309
  }
10306
10310
  function delAttachmentGroup(id) {
10307
10311
  return request(
@@ -10724,6 +10728,10 @@
10724
10728
  draggable: {
10725
10729
  type: Boolean,
10726
10730
  default: true
10731
+ },
10732
+ zIndex: {
10733
+ type: Number,
10734
+ default: 1299
10727
10735
  }
10728
10736
  };
10729
10737
 
@@ -10793,7 +10801,8 @@
10793
10801
  draggable: _ctx.draggable,
10794
10802
  "close-on-click-modal": false,
10795
10803
  "show-close": false,
10796
- class: "dk-dialog"
10804
+ class: "dk-dialog",
10805
+ "z-index": props.zIndex
10797
10806
  }), require$$0.createSlots({
10798
10807
  header: require$$0.withCtx(({ close }) => [
10799
10808
  require$$0.renderSlot(_ctx.$slots, "header", {}, () => [
@@ -10846,7 +10855,7 @@
10846
10855
  ]),
10847
10856
  key: "0"
10848
10857
  } : void 0
10849
- ]), 1040, ["fullscreen", "draggable"]);
10858
+ ]), 1040, ["fullscreen", "draggable", "z-index"]);
10850
10859
  };
10851
10860
  }
10852
10861
  });
@@ -10874,7 +10883,7 @@
10874
10883
  // 显示加载
10875
10884
  isLoading: { default: true, type: Boolean },
10876
10885
  // 默认高度
10877
- minHeight: { default: "300px", type: String },
10886
+ minHeight: { default: "100px", type: String },
10878
10887
  // 是否为弹窗
10879
10888
  isDialog: { default: false, type: Boolean },
10880
10889
  // 弹窗显示后获取formData
@@ -10885,8 +10894,7 @@
10885
10894
  return {
10886
10895
  width: "800px",
10887
10896
  fullscreen: false,
10888
- minHeight: "200px",
10889
- draggable: true
10897
+ draggable: false
10890
10898
  };
10891
10899
  },
10892
10900
  type: Object
@@ -10998,56 +11006,48 @@
10998
11006
  );
10999
11007
  const dialogWidth = require$$0.computed(() => {
11000
11008
  let defaultWidth = "800px";
11009
+ const config2 = _formData.value?.config || {};
11010
+ if (config2?.width) {
11011
+ return config2?.width;
11012
+ }
11001
11013
  if (props.dialog?.width) {
11002
11014
  defaultWidth = props.dialog?.width;
11003
11015
  }
11004
- if (_formData.value?.config?.width) {
11005
- defaultWidth = _formData.value?.config?.width;
11016
+ if (config2?.defaultWidth) {
11017
+ defaultWidth = config2?.defaultWidth;
11006
11018
  }
11007
- return width.value < 768 ? "100%" : defaultWidth;
11008
- });
11009
- const dialogStyle = require$$0.computed(() => {
11010
- const style = {
11011
- minHeight: void 0,
11012
- maxHeight: void 0
11013
- };
11014
- if (props.dialog?.minHeight) {
11015
- style.minHeight = props.dialog?.minHeight;
11016
- }
11017
- if (props.dialog?.maxHeight) {
11018
- style.maxHeight = props.dialog?.maxHeight;
11019
- }
11020
- if (_formData.value?.config?.minHeight) {
11021
- style.minHeight = _formData.value?.config?.minHeight;
11019
+ let minWidth = 768;
11020
+ if (!defaultWidth.endsWith("%")) {
11021
+ minWidth = parseInt(defaultWidth);
11022
11022
  }
11023
- if (_formData.value?.config?.maxHeight) {
11024
- style.maxHeight = _formData.value?.config?.maxHeight;
11025
- }
11026
- return style;
11023
+ return width.value < minWidth ? "100%" : defaultWidth;
11027
11024
  });
11028
- const draggable = require$$0.computed(() => {
11029
- let draggable2 = true;
11030
- if (props.dialog?.draggable) {
11031
- draggable2 = props.dialog?.draggable;
11025
+ const dialogStyle = require$$0.computed(() => {
11026
+ if (_formData.value?.config?.style) {
11027
+ return _formData.value?.config?.style;
11032
11028
  }
11033
- if (_formData.value?.config?.draggable !== void 0) {
11034
- draggable2 = _formData.value?.config?.draggable;
11029
+ if (props.dialog?.style) {
11030
+ return props.dialog?.style;
11035
11031
  }
11036
- return draggable2;
11032
+ return {};
11037
11033
  });
11038
11034
  const isFullscreen = require$$0.computed(() => {
11039
11035
  let defaultFullscreen = false;
11036
+ const autoFullscreen = _formData.value?.config?.autoFullscreen !== false;
11040
11037
  if (props.dialog?.width) {
11041
11038
  defaultFullscreen = props.dialog?.fullscreen;
11042
11039
  }
11043
11040
  if (_formData.value?.config?.fullscreen) {
11044
11041
  defaultFullscreen = _formData.value?.config?.fullscreen;
11045
11042
  }
11046
- if (width.value < 768) {
11043
+ if (width.value < 768 && autoFullscreen) {
11047
11044
  defaultFullscreen = true;
11048
11045
  }
11049
11046
  return defaultFullscreen;
11050
11047
  });
11048
+ const dialogProps = require$$0.computed(() => {
11049
+ return Object.assign(props.dialog, _formData.value?.config?.dialog);
11050
+ });
11051
11051
  const setFormData = (formData) => {
11052
11052
  value.value = null;
11053
11053
  _formData.value = formData;
@@ -11073,7 +11073,6 @@
11073
11073
  loading.value = false;
11074
11074
  }).catch((res) => {
11075
11075
  loading.value = false;
11076
- console.error(res);
11077
11076
  });
11078
11077
  }
11079
11078
  };
@@ -11131,17 +11130,15 @@
11131
11130
  });
11132
11131
  return (_ctx, _cache) => {
11133
11132
  const _component_DkDialog = require$$0.resolveComponent("DkDialog");
11134
- return props.isDialog ? (require$$0.openBlock(), require$$0.createBlock(_component_DkDialog, {
11133
+ return props.isDialog ? (require$$0.openBlock(), require$$0.createBlock(_component_DkDialog, require$$0.mergeProps({
11135
11134
  key: 0,
11136
11135
  modelValue: showDialog.value,
11137
11136
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => showDialog.value = $event),
11138
11137
  title: _formData.value?.title ? _formData.value?.title : "\u8868\u5355",
11139
11138
  width: dialogWidth.value,
11140
11139
  "default-fullscreen": isFullscreen.value,
11141
- "min-height": "200px",
11142
- draggable: draggable.value,
11143
- "append-to-body": ""
11144
- }, {
11140
+ "min-height": "200px"
11141
+ }, dialogProps.value, { "append-to-body": "" }), {
11145
11142
  default: require$$0.withCtx(() => [
11146
11143
  require$$0.createElementVNode(
11147
11144
  "div",
@@ -11157,7 +11154,6 @@
11157
11154
  rule: _formData.value.rules,
11158
11155
  "handle-icon": false,
11159
11156
  class: "formBox",
11160
- style: { "padding": "10px" },
11161
11157
  "onUpdate:api": _cache[1] || (_cache[1] = ($event) => fApi.value = $event),
11162
11158
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => value.value = $event)
11163
11159
  }, null, 8, ["modelValue", "option", "rule"]),
@@ -11175,7 +11171,7 @@
11175
11171
  onClick: checkForm
11176
11172
  }, {
11177
11173
  default: require$$0.withCtx(() => [
11178
- require$$0.createTextVNode(" \u63D0\u4EA4 ")
11174
+ require$$0.createTextVNode(" \u63D0\u4EA4")
11179
11175
  ]),
11180
11176
  _: 1
11181
11177
  /* STABLE */
@@ -11192,7 +11188,7 @@
11192
11188
  ]),
11193
11189
  _: 3
11194
11190
  /* FORWARDED */
11195
- }, 8, ["modelValue", "title", "width", "default-fullscreen", "draggable"])) : (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_1$F, [
11191
+ }, 16, ["modelValue", "title", "width", "default-fullscreen"])) : (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_1$F, [
11196
11192
  require$$0.createElementVNode(
11197
11193
  "div",
11198
11194
  {
@@ -11224,7 +11220,7 @@
11224
11220
  onClick: checkForm
11225
11221
  }, {
11226
11222
  default: require$$0.withCtx(() => [
11227
- require$$0.createTextVNode(" \u63D0\u4EA4 ")
11223
+ require$$0.createTextVNode(" \u63D0\u4EA4")
11228
11224
  ]),
11229
11225
  _: 1
11230
11226
  /* STABLE */
@@ -11517,10 +11513,10 @@
11517
11513
  const chooseFileList = require$$0.ref([]);
11518
11514
  const chooseFileId = require$$0.ref([]);
11519
11515
  const globalConfig = getGlobalConfig();
11520
- const uploadUrl = require$$0.ref(globalConfig.ApiUrl);
11521
- const headers = require$$0.ref({
11516
+ const uploadUrl = globalConfig.ApiUrl + "/adminapi/attachment/upload";
11517
+ const headers = {
11522
11518
  "Access-Token": globalConfig.AccessToken
11523
- });
11519
+ };
11524
11520
  const upload = require$$0.ref();
11525
11521
  const data = require$$0.reactive({
11526
11522
  type: _type.value,
@@ -11534,6 +11530,7 @@
11534
11530
  });
11535
11531
  };
11536
11532
  const handleUploadSuccess = (res) => {
11533
+ console.log("res", res);
11537
11534
  if (res.code === 0) {
11538
11535
  elementPlus.ElMessage.success(res.msg);
11539
11536
  onGetAttachmentList();
@@ -11657,7 +11654,6 @@
11657
11654
  count.value = res.msg;
11658
11655
  loading.value = false;
11659
11656
  } catch (e) {
11660
- console.log(e);
11661
11657
  }
11662
11658
  };
11663
11659
  const clearChoose = () => {
@@ -11789,11 +11785,11 @@
11789
11785
  ref_key: "upload",
11790
11786
  ref: upload,
11791
11787
  class: "dk-upload-button",
11792
- action: uploadUrl.value,
11788
+ action: uploadUrl,
11793
11789
  multiple: "",
11794
11790
  data,
11795
11791
  "show-file-list": false,
11796
- headers: headers.value,
11792
+ headers,
11797
11793
  "on-success": handleUploadSuccess,
11798
11794
  accept: _accept.value,
11799
11795
  "list-type": "text"
@@ -11810,7 +11806,7 @@
11810
11806
  ]),
11811
11807
  _: 1
11812
11808
  /* STABLE */
11813
- }, 8, ["action", "data", "headers", "accept"])
11809
+ }, 8, ["data", "accept"])
11814
11810
  ])
11815
11811
  ]),
11816
11812
  require$$0.createCommentVNode("\u5185\u90E8"),
@@ -26276,62 +26272,92 @@
26276
26272
  * 获取表格配置
26277
26273
  */
26278
26274
  table() {
26279
- return request({
26280
- url: this.actionUrl.get("table"),
26281
- method: "post"
26282
- });
26275
+ return request(
26276
+ {
26277
+ url: this.actionUrl.get("table"),
26278
+ method: "post"
26279
+ },
26280
+ {
26281
+ code_error_show: true
26282
+ }
26283
+ );
26283
26284
  }
26284
26285
  /**
26285
26286
  * 获取表格配置
26286
26287
  */
26287
26288
  recycleTable() {
26288
- return request({
26289
- url: this.actionUrl.get("recycleTable"),
26290
- method: "post"
26291
- });
26289
+ return request(
26290
+ {
26291
+ url: this.actionUrl.get("recycleTable"),
26292
+ method: "post"
26293
+ },
26294
+ {
26295
+ code_error_show: true
26296
+ }
26297
+ );
26292
26298
  }
26293
26299
  /**
26294
26300
  * 获取表单
26295
26301
  */
26296
26302
  form(id) {
26297
- return request({
26298
- url: this.actionUrl.get("form"),
26299
- method: "post",
26300
- data: { id }
26301
- });
26303
+ return request(
26304
+ {
26305
+ url: this.actionUrl.get("form"),
26306
+ method: "post",
26307
+ data: { id }
26308
+ },
26309
+ {
26310
+ code_error_show: true
26311
+ }
26312
+ );
26302
26313
  }
26303
26314
  /**
26304
26315
  * 获取表格列表
26305
26316
  * @param filter
26306
26317
  */
26307
26318
  index(filter = {}) {
26308
- return request({
26309
- url: this.actionUrl.get("index"),
26310
- method: "get",
26311
- params: filter
26312
- });
26319
+ return request(
26320
+ {
26321
+ url: this.actionUrl.get("index"),
26322
+ method: "get",
26323
+ params: filter
26324
+ },
26325
+ {
26326
+ code_error_show: true
26327
+ }
26328
+ );
26313
26329
  }
26314
26330
  /**
26315
26331
  * 回收站列表
26316
26332
  * @param filter
26317
26333
  */
26318
26334
  recycle(filter = {}) {
26319
- return request({
26320
- url: this.actionUrl.get("recycle"),
26321
- method: "get",
26322
- params: filter
26323
- });
26335
+ return request(
26336
+ {
26337
+ url: this.actionUrl.get("recycle"),
26338
+ method: "get",
26339
+ params: filter
26340
+ },
26341
+ {
26342
+ code_error_show: true
26343
+ }
26344
+ );
26324
26345
  }
26325
26346
  /**
26326
26347
  * 编辑
26327
26348
  * @param params
26328
26349
  */
26329
26350
  edit(params) {
26330
- return request({
26331
- url: this.actionUrl.get("edit"),
26332
- method: "get",
26333
- params
26334
- });
26351
+ return request(
26352
+ {
26353
+ url: this.actionUrl.get("edit"),
26354
+ method: "get",
26355
+ params
26356
+ },
26357
+ {
26358
+ code_error_show: true
26359
+ }
26360
+ );
26335
26361
  }
26336
26362
  /**
26337
26363
  * 删除
@@ -26347,7 +26373,8 @@
26347
26373
  }
26348
26374
  },
26349
26375
  {
26350
- code_success_show: true
26376
+ code_success_show: true,
26377
+ code_error_show: true
26351
26378
  }
26352
26379
  );
26353
26380
  }
@@ -26365,7 +26392,8 @@
26365
26392
  }
26366
26393
  },
26367
26394
  {
26368
- code_success_show: true
26395
+ code_success_show: true,
26396
+ code_error_show: true
26369
26397
  }
26370
26398
  );
26371
26399
  }
@@ -26383,7 +26411,8 @@
26383
26411
  }
26384
26412
  },
26385
26413
  {
26386
- code_success_show: true
26414
+ code_success_show: true,
26415
+ code_error_show: true
26387
26416
  }
26388
26417
  );
26389
26418
  }
@@ -26400,7 +26429,8 @@
26400
26429
  data
26401
26430
  },
26402
26431
  {
26403
- code_success_show: true
26432
+ code_success_show: true,
26433
+ code_error_show: true
26404
26434
  }
26405
26435
  );
26406
26436
  }
@@ -28206,8 +28236,10 @@
28206
28236
  require$$0.createVNode(_component_dk_select, {
28207
28237
  modelValue: require$$0.unref(DkTable).comSearch.form[item.prop],
28208
28238
  "onUpdate:modelValue": ($event) => require$$0.unref(DkTable).comSearch.form[item.prop] = $event,
28239
+ filterable: "",
28240
+ placeholder: item.operatorPlaceholder,
28209
28241
  "remote-url": item.remoteUrl
28210
- }, null, 8, ["modelValue", "onUpdate:modelValue", "remote-url"])
28242
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "remote-url"])
28211
28243
  ],
28212
28244
  2112
28213
28245
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
@@ -28412,7 +28444,6 @@
28412
28444
  }
28413
28445
  item.type === "selection" || item.render === "buttons" || item.enableColumnDisplayControl === false ? "" : columnDisplayArr.push(item);
28414
28446
  }
28415
- console.log("columnDisplayArr", columnDisplayArr);
28416
28447
  return columnDisplayArr;
28417
28448
  });
28418
28449
  const enableBatchOpt = require$$0.computed(() => DkTable.table.selection.length > 0);
@@ -29410,7 +29441,6 @@
29410
29441
  onSelectionChange
29411
29442
  }, {
29412
29443
  default: require$$0.withCtx(() => [
29413
- require$$0.createCommentVNode(' <template v-for="(item, key) in DkTable.recycleTable.column">'),
29414
29444
  (require$$0.openBlock(true), require$$0.createElementBlock(
29415
29445
  require$$0.Fragment,
29416
29446
  null,
@@ -29429,7 +29459,7 @@
29429
29459
  require$$0.createCommentVNode(" </template>"),
29430
29460
  require$$0.createVNode(_component_el_table_column, {
29431
29461
  label: "\u64CD\u4F5C",
29432
- width: "100"
29462
+ align: "right"
29433
29463
  }, {
29434
29464
  default: require$$0.withCtx(({ row }) => [
29435
29465
  require$$0.createVNode(_component_el_button, {
@@ -29503,7 +29533,6 @@
29503
29533
  DkTable.table.ref = TableRef.value;
29504
29534
  DkTable.form.ref = FormRef.value;
29505
29535
  });
29506
- require$$0.ref(false);
29507
29536
  const onTableSizeChange = (val) => {
29508
29537
  DkTable.onTableAction("page-size-change", { size: val });
29509
29538
  };
@@ -30063,10 +30092,10 @@
30063
30092
  emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "blur", "focus"],
30064
30093
  setup(__props, { emit }) {
30065
30094
  const props = __props;
30066
- console.log("options", props.placeholder);
30067
30095
  const internalValue = require$$0.ref(props.modelValue);
30068
- const internalOptions = require$$0.ref(props.options || []);
30096
+ const internalOptions = require$$0.ref(props.options || {});
30069
30097
  require$$0.watch(internalValue, (newValue) => {
30098
+ console.log("new", newValue);
30070
30099
  emit("update:modelValue", newValue);
30071
30100
  });
30072
30101
  const remoteMethod = (query) => {
@@ -30101,7 +30130,7 @@
30101
30130
  }, { ...props }, {
30102
30131
  "remote-method": remoteMethod,
30103
30132
  remote: "",
30104
- placeholder: "\u8BF7\u9009\u62E9",
30133
+ placeholder: "c\u6D4B\u8BD5",
30105
30134
  options: internalOptions.value,
30106
30135
  style: { "width": "100%" },
30107
30136
  onChange: handleChange,