paas-component-library 1.0.78 → 1.0.79

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "paas-component-library",
3
3
  "private": false,
4
- "version": "1.0.78",
4
+ "version": "1.0.79",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="mention-wrapper" ref="wrapperRef">
3
3
  <div ref="inputRef" class="mention-input"
4
- :style="{ height: typeof height === 'number' ? height + 'px' : height || '120px', width: typeof width === 'number' ? width + 'px' : width }"
4
+ :style="{ height: typeof height === 'number' ? height + 'px' : height || '120px', ...(typeof width === 'number' ? { width: width + 'px' } : width ? { width } : {}), ...style }"
5
5
  :contenteditable="mode !== 'select'" @input="onInput" @keydown="onKeydown" @click="onInputClick" tabindex="0"
6
6
  :placeholder="placeholder || '请输入内容...'"></div>
7
7
 
@@ -54,7 +54,8 @@ export default {
54
54
  multiple: {
55
55
  type: Boolean,
56
56
  default: true
57
- }
57
+ },
58
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" }
58
59
  },
59
60
  emits: ['update:modelValue', 'change'],
60
61
  data() {
@@ -2,7 +2,7 @@
2
2
  <a-cascader v-bind="filteredAttrs" v-model:value="innerValue" :options="options" :load-data="loadData"
3
3
  :placeholder="placeholder || '请选择'" :show-search="showSearch" :disabled="disabled" :size="size" :multiple="multiple"
4
4
  :change-on-select="false" :field-names="{ label: 'label', value: 'value', children: 'children' }"
5
- @change="handleChange" :show-checked-strategy="showCheckedStrategy" @dropdown-visible-change="handleDropdown" />
5
+ @change="handleChange" :show-checked-strategy="showCheckedStrategy" @dropdown-visible-change="handleDropdown" :style="style" />
6
6
  </template>
7
7
 
8
8
  <script>
@@ -25,6 +25,7 @@ export default {
25
25
  size: { type: String, default: 'middle' },
26
26
  multiple: { type: Boolean, default: false },
27
27
  placeholder: String,
28
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" },
28
29
  },
29
30
 
30
31
  data() {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <a-date-picker :show-time="showTime" :readonly="readonly" :disabled="disabled" :value="modelValue"
3
- :format="format" :picker="type" @change="handleChange" :placeholder="placeholder" style="width: 100%;" v-bind="$attrs"/>
3
+ :format="format" :picker="type" @change="handleChange" :placeholder="placeholder" :style="style" v-bind="$attrs"/>
4
4
  </template>
5
5
  <script>
6
6
  export default {
@@ -39,7 +39,8 @@ export default {
39
39
  onChange: {
40
40
  type: Function,
41
41
  default: null
42
- }
42
+ },
43
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" }
43
44
  },
44
45
  data() {
45
46
  return {};
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <a-range-picker v-model:value="rangeValue" :show-time="showTime" :readonly="readonly" :disabled="disabled"
3
- :format="format" :picker="type" :placeholder="placeholder" style="width: 100%;" v-bind="$attrs" />
3
+ :format="format" :picker="type" :placeholder="placeholder" :style="style" v-bind="$attrs" />
4
4
  </template>
5
5
 
6
6
  <script>
@@ -52,7 +52,8 @@ export default {
52
52
  onChange: {
53
53
  type: Function,
54
54
  default: null
55
- }
55
+ },
56
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" }
56
57
  },
57
58
  computed: {
58
59
  rangeValue: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a-input :type="type" :value="modelValue" @input="updateValue" :disabled="disabled || readonly" :placeholder="placeholder" style="width: 100%;" v-bind="$attrs"/>
2
+ <a-input :type="type" :value="modelValue" @input="updateValue" :disabled="disabled || readonly" :placeholder="placeholder" :style="style" v-bind="$attrs"/>
3
3
  </template>
4
4
 
5
5
  <script>
@@ -26,7 +26,8 @@ export default {
26
26
  disabled: {
27
27
  type: Boolean,
28
28
  default: false
29
- }
29
+ },
30
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" }
30
31
  },
31
32
  emits: ["update:modelValue"],
32
33
  methods: {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <a-input-number v-model:value="innerValue" :disabled="disabled || readonly" :min="min" :max="max"
3
- :placeholder="placeholder" style="width: 100%;" v-bind="$attrs" />
3
+ :placeholder="placeholder" :style="style" v-bind="$attrs" />
4
4
  </template>
5
5
 
6
6
  <script>
@@ -16,7 +16,8 @@ export default {
16
16
  default: false
17
17
  },
18
18
  min: Number,
19
- max: Number
19
+ max: Number,
20
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" }
20
21
  },
21
22
  computed: {
22
23
  innerValue: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a-radio-group v-model:value="innerValue" :options="processedOptions" :disabled="disabled" v-bind="$attrs" />
2
+ <a-radio-group v-model:value="innerValue" :options="processedOptions" :disabled="disabled" :style="style" v-bind="$attrs" />
3
3
  </template>
4
4
 
5
5
  <script>
@@ -22,7 +22,8 @@ export default {
22
22
  disabled: {
23
23
  type: Boolean,
24
24
  default: false
25
- }
25
+ },
26
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" }
26
27
  },
27
28
  computed: {
28
29
  processedOptions() {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a-textarea :type="type" :value="modelValue" @input="updateValue" :disabled="disabled || readonly" :rows="rows" style="width: 100%;" :placeholder="placeholder" v-bind="$attrs"/>
2
+ <a-textarea :type="type" :value="modelValue" @input="updateValue" :disabled="disabled || readonly" :rows="rows" :style="style" :placeholder="placeholder" v-bind="$attrs"/>
3
3
  </template>
4
4
 
5
5
  <script>
@@ -30,7 +30,8 @@ export default {
30
30
  disabled: {
31
31
  type: Boolean,
32
32
  default: false
33
- }
33
+ },
34
+ style: { type: [String, Object], default: "min-width: 200px; width: 100%;" }
34
35
  },
35
36
  emits: ["update:modelValue"],
36
37
  methods: {