bkui-vue 2.0.2-beta.42 → 2.0.2-beta.44

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.
@@ -9,6 +9,13 @@
9
9
  .bk-infobox .bk-modal-wrapper .bk-modal-body {
10
10
  min-height: 176px;
11
11
  }
12
+ .bk-infobox .bk-modal-wrapper .bk-modal-body .bk-modal-content {
13
+ color: #63656e;
14
+ font-size: 14px;
15
+ }
16
+ .bk-infobox.no-content-infobox .bk-modal-content {
17
+ display: none;
18
+ }
12
19
  .bk-infobox-header {
13
20
  padding-top: 24px;
14
21
  }
@@ -140,6 +140,13 @@
140
140
  .bk-infobox .bk-modal-wrapper .bk-modal-body {
141
141
  min-height: 176px;
142
142
  }
143
+ .bk-infobox .bk-modal-wrapper .bk-modal-body .bk-modal-content {
144
+ color: #63656e;
145
+ font-size: 14px;
146
+ }
147
+ .bk-infobox.no-content-infobox .bk-modal-content {
148
+ display: none;
149
+ }
143
150
  .bk-infobox-header {
144
151
  padding-top: 24px;
145
152
  }
package/lib/index.js CHANGED
@@ -3,5 +3,5 @@ export * from './hooks';
3
3
  export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
- export const version = "2.0.2-beta.42";
6
+ export const version = "2.0.2-beta.44";
7
7
  window.__bkui_vue_version__ = version;
@@ -782,7 +782,11 @@ var genDefaultState = function genDefaultState() {
782
782
  };
783
783
  return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], {
784
784
  "width": renderWidth(),
785
- "class": [resolveClassName('infobox'), state["class"]],
785
+ "class": [_defineProperty({}, resolveClassName('infobox'), true),
786
+ // 处理无提示内容modal-content还会占位高度
787
+ {
788
+ 'no-content-infobox': !state.content
789
+ }, state["class"]],
786
790
  "animateType": "fadein",
787
791
  "closeIcon": state.closeIcon,
788
792
  "isShow": isShow.value,
@@ -9,6 +9,13 @@
9
9
  .bk-infobox .bk-modal-wrapper .bk-modal-body {
10
10
  min-height: 176px;
11
11
  }
12
+ .bk-infobox .bk-modal-wrapper .bk-modal-body .bk-modal-content {
13
+ color: #63656e;
14
+ font-size: 14px;
15
+ }
16
+ .bk-infobox.no-content-infobox .bk-modal-content {
17
+ display: none;
18
+ }
12
19
  .bk-infobox-header {
13
20
  padding-top: 24px;
14
21
  }
@@ -1,7 +1,7 @@
1
1
  @import '../styles/themes/themes.less';
2
2
 
3
3
  .@{bk-prefix}-infobox {
4
- font-size: 12px;
4
+ font-size: @font-size-base;
5
5
 
6
6
  .@{bk-prefix}-modal-wrapper {
7
7
  top: 50%;
@@ -10,9 +10,20 @@
10
10
 
11
11
  .@{bk-prefix}-modal-body {
12
12
  min-height: 176px;
13
+
14
+ .@{bk-prefix}-modal-content {
15
+ color: @default-color;
16
+ font-size: @font-size-medium;
17
+ }
13
18
  }
14
19
 
15
20
  }
21
+
22
+ &.no-content-infobox {
23
+ .@{bk-prefix}-modal-content {
24
+ display: none;
25
+ }
26
+ }
16
27
  }
17
28
 
18
29
  .@{bk-prefix}-infobox-header {
@@ -130,7 +130,7 @@
130
130
  --sub-title-bg-color: #f5f6fa;
131
131
  }
132
132
  .bk-infobox {
133
- font-size: 12px;
133
+ font-size: var(--font-size-base);
134
134
  }
135
135
  .bk-infobox .bk-modal-wrapper {
136
136
  top: 50%;
@@ -140,6 +140,13 @@
140
140
  .bk-infobox .bk-modal-wrapper .bk-modal-body {
141
141
  min-height: 176px;
142
142
  }
143
+ .bk-infobox .bk-modal-wrapper .bk-modal-body .bk-modal-content {
144
+ color: var(--default-color);
145
+ font-size: var(--font-size-medium);
146
+ }
147
+ .bk-infobox.no-content-infobox .bk-modal-content {
148
+ display: none;
149
+ }
143
150
  .bk-infobox-header {
144
151
  padding-top: 24px;
145
152
  }
@@ -1,3 +1,4 @@
1
1
  export { default as en } from './lang/en';
2
2
  export type { Language } from './lang/en';
3
+ export { default as jp } from './lang/ja-jp';
3
4
  export { default as zhCn } from './lang/zh-cn';
@@ -26,6 +26,7 @@ var __webpack_exports__ = {};
26
26
  // EXPORTS
27
27
  __webpack_require__.d(__webpack_exports__, {
28
28
  en: () => (/* reexport */ lang_en),
29
+ jp: () => (/* reexport */ ja_jp),
29
30
  zhCn: () => (/* reexport */ zh_cn)
30
31
  });
31
32
 
@@ -237,6 +238,171 @@ var en = {
237
238
  }
238
239
  };
239
240
  /* harmony default export */ const lang_en = (en);
241
+ ;// CONCATENATED MODULE: ../../packages/locale/src/lang/ja-jp.ts
242
+ /*
243
+ * Tencent is pleased to support the open source community by making
244
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
245
+ *
246
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
247
+ *
248
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
249
+ *
250
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
251
+ *
252
+ * ---------------------------------------------------
253
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
254
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
255
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
256
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
257
+ *
258
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
259
+ * the Software.
260
+ *
261
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
262
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
263
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
264
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
265
+ * IN THE SOFTWARE.
266
+ */
267
+ var jp = {
268
+ lang: 'ja',
269
+ steps: {
270
+ step1: 'ステップ1',
271
+ step2: 'ステップ2',
272
+ step3: 'ステップ3'
273
+ },
274
+ datePicker: {
275
+ selectDate: '日付を選択',
276
+ selectTime: '時間を選択',
277
+ clear: 'クリア',
278
+ ok: 'OK',
279
+ weekdays: {
280
+ sun: '日',
281
+ mon: '月',
282
+ tue: '火',
283
+ wed: '水',
284
+ thu: '木',
285
+ fri: '金',
286
+ sat: '土'
287
+ },
288
+ hour: '時間',
289
+ min: '分',
290
+ sec: '秒',
291
+ toNow: '現在まで'
292
+ },
293
+ dialog: {
294
+ ok: 'OK',
295
+ cancel: 'キャンセル',
296
+ prev: '前へ',
297
+ next: '次へ'
298
+ },
299
+ popConfirm: {
300
+ ok: 'OK',
301
+ cancel: 'キャンセル'
302
+ },
303
+ form: {
304
+ notBeEmpty: '空にできません',
305
+ incorrectFormat: '形式が正しくありません',
306
+ max: '最大値',
307
+ min: '最小値',
308
+ maxLen: '最大長',
309
+ verifyError: '検証エラー'
310
+ },
311
+ pagination: {
312
+ eachPage: '各ページ',
313
+ strip: '',
314
+ total: '合計'
315
+ },
316
+ process: {
317
+ step1: 'ステップ1',
318
+ step2: 'ステップ2',
319
+ step3: 'ステップ3',
320
+ step4: 'ステップ4'
321
+ },
322
+ searchSelect: {
323
+ pleaseSelect: '選択してください',
324
+ loading: 'ロード中...',
325
+ filterQueryMustHasValue: 'フィルタークエリに値を含める必要があります',
326
+ ok: 'OK',
327
+ cancel: 'キャンセル',
328
+ or: 'または',
329
+ and: 'そして',
330
+ logical: '論理:'
331
+ },
332
+ select: {
333
+ noData: 'データなし',
334
+ noMatchedData: '一致するデータがありません',
335
+ loading: '読み込み中...',
336
+ pleaseSelect: '選んでください',
337
+ enterKeywords: 'キーワードを入力してください',
338
+ all: 'すべて',
339
+ selectAll: 'すべて選択'
340
+ },
341
+ table: {
342
+ emptyText: 'データがありません',
343
+ confirm: '確認',
344
+ reset: 'リセット',
345
+ sort: 'ソート',
346
+ setting: {
347
+ title: 'テーブル設定',
348
+ fields: {
349
+ title: '表示フィールド設定',
350
+ subtitle: function subtitle(max) {
351
+ return "\uFF08".concat(max, "\u30D5\u30A3\u30FC\u30EB\u30C9\u6700\u5927\uFF09");
352
+ },
353
+ selectAll: 'すべて選択'
354
+ },
355
+ lineHeight: {
356
+ title: 'テーブル行の高さ',
357
+ small: '小',
358
+ medium: '中',
359
+ large: '大'
360
+ },
361
+ options: {
362
+ ok: 'OK',
363
+ cancel: 'キャンセル'
364
+ }
365
+ }
366
+ },
367
+ transfer: {
368
+ sourceList: 'ソースリスト',
369
+ targetList: 'ターゲットリスト',
370
+ removeAll: 'すべて削除',
371
+ selectAll: 'すべて選択',
372
+ noData: 'データがありません',
373
+ noSelected: '選択されていません',
374
+ search: '検索'
375
+ },
376
+ upload: {
377
+ uploadSuccess: 'アップロード成功',
378
+ uploadFailed: 'アップロード失敗',
379
+ drapFileOr: 'ここにファイルをドラッグまたは',
380
+ clickUpload: 'クリックしてアップロード',
381
+ uploadLabel: 'ファイルをアップロード'
382
+ },
383
+ input: {
384
+ placeholder: '入力してください',
385
+ maxlengthLimitTips: '文字数制限に達しました'
386
+ },
387
+ tagInput: {
388
+ placeholder: '入力してEnterキーで終了'
389
+ },
390
+ message: {
391
+ assistant: 'アシスタント',
392
+ details: '詳細',
393
+ copySuccess: 'コピー成功',
394
+ copyFailed: 'コピー失敗'
395
+ },
396
+ cascader: {
397
+ pleaseSelect: '選択してください',
398
+ noData: 'データがありません',
399
+ emptyText: 'データがありません'
400
+ },
401
+ versionLog: {
402
+ current: '現在のバージョン'
403
+ }
404
+ };
405
+ /* harmony default export */ const ja_jp = (jp);
240
406
  ;// CONCATENATED MODULE: ../../packages/locale/src/lang/zh-cn.ts
241
407
  /*
242
408
  * Tencent is pleased to support the open source community by making
@@ -473,6 +639,8 @@ var zhCn = {
473
639
  */
474
640
 
475
641
 
642
+
476
643
  var __webpack_exports__en = __webpack_exports__.en;
644
+ var __webpack_exports__jp = __webpack_exports__.jp;
477
645
  var __webpack_exports__zhCn = __webpack_exports__.zhCn;
478
- export { __webpack_exports__en as en, __webpack_exports__zhCn as zhCn };
646
+ export { __webpack_exports__en as en, __webpack_exports__jp as jp, __webpack_exports__zhCn as zhCn };
@@ -0,0 +1,3 @@
1
+ import { Language as EnLanguage } from './en';
2
+ declare const jp: EnLanguage;
3
+ export default jp;
@@ -9,6 +9,13 @@
9
9
  .bk-infobox .bk-modal-wrapper .bk-modal-body {
10
10
  min-height: 176px;
11
11
  }
12
+ .bk-infobox .bk-modal-wrapper .bk-modal-body .bk-modal-content {
13
+ color: #63656e;
14
+ font-size: 14px;
15
+ }
16
+ .bk-infobox.no-content-infobox .bk-modal-content {
17
+ display: none;
18
+ }
12
19
  .bk-infobox-header {
13
20
  padding-top: 24px;
14
21
  }
@@ -140,6 +140,13 @@
140
140
  .bk-infobox .bk-modal-wrapper .bk-modal-body {
141
141
  min-height: 176px;
142
142
  }
143
+ .bk-infobox .bk-modal-wrapper .bk-modal-body .bk-modal-content {
144
+ color: #63656e;
145
+ font-size: 14px;
146
+ }
147
+ .bk-infobox.no-content-infobox .bk-modal-content {
148
+ display: none;
149
+ }
143
150
  .bk-infobox-header {
144
151
  padding-top: 24px;
145
152
  }
@@ -388,7 +388,7 @@ declare const BkSelect: {
388
388
  inputRef: import("vue").Ref<HTMLElement>;
389
389
  triggerRef: import("vue").Ref<HTMLElement>;
390
390
  contentRef: import("vue").Ref<HTMLElement>;
391
- searchRef: import("vue").Ref<HTMLElement>;
391
+ searchRef: import("vue").Ref<HTMLInputElement>;
392
392
  scrollContainerRef: import("vue").Ref<HTMLElement>;
393
393
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
394
394
  selected: {
@@ -1572,7 +1572,7 @@ declare const BkSelect: {
1572
1572
  inputRef: import("vue").Ref<HTMLElement>;
1573
1573
  triggerRef: import("vue").Ref<HTMLElement>;
1574
1574
  contentRef: import("vue").Ref<HTMLElement>;
1575
- searchRef: import("vue").Ref<HTMLElement>;
1575
+ searchRef: import("vue").Ref<HTMLInputElement>;
1576
1576
  scrollContainerRef: import("vue").Ref<HTMLElement>;
1577
1577
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
1578
1578
  selected: {
@@ -2391,7 +2391,7 @@ declare const BkSelect: {
2391
2391
  inputRef: import("vue").Ref<HTMLElement>;
2392
2392
  triggerRef: import("vue").Ref<HTMLElement>;
2393
2393
  contentRef: import("vue").Ref<HTMLElement>;
2394
- searchRef: import("vue").Ref<HTMLElement>;
2394
+ searchRef: import("vue").Ref<HTMLInputElement>;
2395
2395
  scrollContainerRef: import("vue").Ref<HTMLElement>;
2396
2396
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
2397
2397
  selected: {
@@ -4292,6 +4292,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4292
4292
  emit('change', val, modelValue.value);
4293
4293
  // 重置Selected 以model-value为主
4294
4294
  handleSetSelectedData();
4295
+ if (multiple.value) {
4296
+ // 多选时enter之后变成tag不需要保存当前值
4297
+ customOptionName.value = '';
4298
+ }
4295
4299
  };
4296
4300
  // 派发toggle事件
4297
4301
  var handleTogglePopover = function handleTogglePopover() {
@@ -4317,7 +4321,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4317
4321
  if (filterable.value && matchedOption) {
4318
4322
  // 开启搜索后,正好匹配到自定义选项,则不进行创建操作
4319
4323
  handleOptionSelected(matchedOption);
4320
- customOptionName.value = '';
4321
4324
  return;
4322
4325
  }
4323
4326
  var data = optionsMap.value.get(value);
@@ -4338,7 +4341,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4338
4341
  emitChange(value);
4339
4342
  handleHidePopover();
4340
4343
  }
4341
- customOptionName.value = '';
4342
4344
  };
4343
4345
  // Option点击事件
4344
4346
  var handleOptionSelected = function handleOptionSelected(option) {
@@ -4379,9 +4381,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4379
4381
  label: option.optionName || option.optionID,
4380
4382
  value: option.optionID
4381
4383
  }];
4382
- if (filterable.value && allowCreate.value) {
4383
- customOptionName.value = '';
4384
- }
4385
4384
  emitChange(option.optionID);
4386
4385
  emit('select', option.optionID);
4387
4386
  handleHidePopover();
@@ -4429,6 +4428,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4429
4428
  var handleClear = function handleClear(e) {
4430
4429
  e.stopPropagation();
4431
4430
  selected.value = [];
4431
+ customOptionName.value = '';
4432
4432
  clearMultipleInputValue();
4433
4433
  emitChange(multiple.value ? [] : '');
4434
4434
  emit('clear', multiple.value ? [] : '');
@@ -4605,9 +4605,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4605
4605
  case 'NumpadEnter':
4606
4606
  case 'Enter':
4607
4607
  {
4608
+ var _searchRef$value2;
4608
4609
  var value = e.target.value;
4609
4610
  // 搜索和创建的时候不触发enter事件
4610
- if (allowCreate.value && value || e.target === searchRef.value) return;
4611
+ if (allowCreate.value && value || e.target === searchRef.value && (_searchRef$value2 = searchRef.value) !== null && _searchRef$value2 !== void 0 && _searchRef$value2.value) return;
4611
4612
  var option = optionsMap.value.get(activeOptionValue.value);
4612
4613
  handleOptionSelected(option);
4613
4614
  break;
@@ -4730,7 +4731,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4730
4731
  "theme": "primary"
4731
4732
  }, null);
4732
4733
  }
4733
- if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
4734
+ if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled || _this.allowCreate && _this.isHover && _this.customOptionName && !_this.isDisabled) {
4734
4735
  return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
4735
4736
  "class": "clear-icon",
4736
4737
  "onClick": _this.handleClear
@@ -4832,7 +4833,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
4832
4833
  "ref": "inputRef",
4833
4834
  "behavior": _this.behavior,
4834
4835
  "disabled": _this.isDisabled,
4835
- "modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
4836
+ "modelValue": _this.isInput && _this.customOptionName ? _this.customOptionName : _this.selectedLabel.join(','),
4836
4837
  "placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
4837
4838
  "readonly": !_this.isInput,
4838
4839
  "selectReadonly": true,
@@ -375,7 +375,7 @@ declare const _default: import("vue").DefineComponent<{
375
375
  inputRef: import("vue").Ref<HTMLElement>;
376
376
  triggerRef: import("vue").Ref<HTMLElement>;
377
377
  contentRef: import("vue").Ref<HTMLElement>;
378
- searchRef: import("vue").Ref<HTMLElement>;
378
+ searchRef: import("vue").Ref<HTMLInputElement>;
379
379
  scrollContainerRef: import("vue").Ref<HTMLElement>;
380
380
  selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
381
381
  selected: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.2-beta.42",
3
+ "version": "2.0.2-beta.44",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",