paas-component-library 1.0.74 → 1.0.76

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 (30) hide show
  1. package/dist/paas-ui.js +7204 -6856
  2. package/dist/paas-ui.umd.cjs +176 -176
  3. package/dist/style.css +1 -1
  4. package/package.json +9 -2
  5. package/src/components/PaasCheckbox/index.vue +45 -0
  6. package/src/components/PaasDate/index.vue +2 -2
  7. package/src/components/PaasDateRange/index.vue +79 -0
  8. package/src/components/PaasEditor/index.vue +2 -2
  9. package/src/components/PaasForm/index.vue +2 -2
  10. package/src/components/PaasImageViewer/index.vue +2 -2
  11. package/src/components/PaasInput/index.vue +38 -0
  12. package/src/components/PaasMenu/index.vue +1 -1
  13. package/src/components/PaasNumber/index.vue +32 -0
  14. package/src/components/PaasPageSelect/index.vue +2 -1
  15. package/src/components/PaasPageTable/index.vue +2 -2
  16. package/src/components/PaasRadio/index.vue +45 -0
  17. package/src/components/PaasSelect/index.vue +2 -2
  18. package/src/components/PaasSwitch/index.vue +36 -0
  19. package/src/components/PaasTextarea/index.vue +42 -0
  20. package/src/components/PaasTree/index.vue +2 -2
  21. package/src/components/PaasUpload/index.vue +4 -4
  22. package/src/components/PaasUploadModal/index.vue +1 -1
  23. package/src/components/form/FormDate/index.vue +2 -2
  24. package/src/components/form/FormInput/index.vue +1 -1
  25. package/src/components/form/FormNumber/index.vue +2 -2
  26. package/src/components/form/FormSelect/index.vue +2 -2
  27. package/src/components/form/FormSwitch/index.vue +2 -2
  28. package/src/components/form/FormTextarea/index.vue +1 -1
  29. package/src/components/form/FormTree/index.vue +2 -2
  30. package/src/components/index.js +20 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "paas-component-library",
3
3
  "private": false,
4
- "version": "1.0.74",
4
+ "version": "1.0.76",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -48,7 +48,14 @@
48
48
  "./FormSwitch": "./src/components/form/FormSwitch/index.vue",
49
49
  "./FormDateRange": "./src/components/form/FormDateRange/index.vue",
50
50
  "./FormTree": "./src/components/form/FormTree/index.vue",
51
- "./FormTextarea": "./src/components/form/FormTextarea/index.vue"
51
+ "./FormTextarea": "./src/components/form/FormTextarea/index.vue",
52
+ "./PaasRadio": "./src/components/PaasRadio/index.vue",
53
+ "./PaasCheckbox": "./src/components/PaasCheckbox/index.vue",
54
+ "./PaasTextarea": "./src/components/PaasTextarea/index.vue",
55
+ "./PaasSwitch": "./src/components/PaasSwitch/index.vue",
56
+ "./PaasDateRange": "./src/components/PaasDateRange/index.vue",
57
+ "./PaasInput": "./src/components/PaasInput/index.vue",
58
+ "./PaasNumber": "./src/components/PaasNumber/index.vue"
52
59
  },
53
60
  "scripts": {
54
61
  "dev": "vite",
@@ -0,0 +1,45 @@
1
+ <template>
2
+ <a-checkbox-group v-model:value="innerValue" :options="processedOptions" :disabled="disabled" v-bind="$attrs" />
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "PaasCheckbox",
8
+ inheritAttrs: false,
9
+ props: {
10
+ modelValue: {
11
+ type: Array,
12
+ default: () => []
13
+ },
14
+ options: {
15
+ type: Array,
16
+ default: () => []
17
+ },
18
+ data: {
19
+ type: Array,
20
+ default: () => []
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: false
25
+ }
26
+ },
27
+ computed: {
28
+ processedOptions() {
29
+ const sourceOptions = this.options.length > 0 ? this.options : this.data;
30
+ return sourceOptions.map(item => ({
31
+ label: item.label,
32
+ value: item.value
33
+ }));
34
+ },
35
+ innerValue: {
36
+ get() {
37
+ return this.modelValue;
38
+ },
39
+ set(val) {
40
+ this.$emit("update:modelValue", val);
41
+ },
42
+ },
43
+ },
44
+ };
45
+ </script>
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <a-date-picker v-bind="$attrs" :show-time="showTime" :readonly="readonly" :disabled="disabled" :value="modelValue"
3
- :format="format" :picker="type" @change="handleChange" :placeholder="placeholder" style="width: 100%;"/>
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"/>
4
4
  </template>
5
5
  <script>
6
6
  export default {
@@ -0,0 +1,79 @@
1
+ <template>
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" />
4
+ </template>
5
+
6
+ <script>
7
+ import dayjs from "dayjs";
8
+ import weekday from "dayjs/plugin/weekday";
9
+ import localeData from "dayjs/plugin/localeData";
10
+
11
+ dayjs.extend(weekday);
12
+ dayjs.extend(localeData);
13
+ dayjs.locale("zh-cn");
14
+
15
+ export default {
16
+ name: "PaasDateRange",
17
+ inheritAttrs: false, // 禁用自动继承,手动控制透传
18
+ emits: ["update:modelValue"],
19
+ props: {
20
+ placeholder: {
21
+ type: [Array, String],
22
+ default: () => ["开始时间", "结束时间"]
23
+ },
24
+ type: {
25
+ type: String,
26
+ default: "date"
27
+ },
28
+ readonly: {
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+ disabled: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ modelValue: {
37
+ type: Object,
38
+ default: () => ({ start: null, end: null })
39
+ },
40
+ showTime: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ format: {
45
+ type: String,
46
+ default: "YYYY-MM-DD"
47
+ },
48
+ isJoin: {
49
+ type: Boolean,
50
+ default: false
51
+ }
52
+ },
53
+ computed: {
54
+ rangeValue: {
55
+ get() {
56
+ const { start, end } = this.modelValue || {};
57
+ return [
58
+ start ? dayjs(start) : null,
59
+ end ? dayjs(end) : null
60
+ ];
61
+ },
62
+ set([start, end]) {
63
+ let startStr = start ? start.format(this.format) : null;
64
+ let endStr = end ? end.format(this.format) : null;
65
+
66
+ if (this.isJoin && startStr && endStr) {
67
+ startStr += " 00:00:00";
68
+ endStr += " 23:59:59";
69
+ }
70
+
71
+ this.$emit("update:modelValue", {
72
+ start: startStr,
73
+ end: endStr
74
+ });
75
+ }
76
+ }
77
+ }
78
+ };
79
+ </script>
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <quill-editor v-bind="$attrs" ref="editor" v-model:content="htmlValue" :options="editorOption" contentType="html"
2
+ <quill-editor ref="editor" v-model:content="htmlValue" :options="editorOption" contentType="html"
3
3
  @update:content="updateValue($event)" :style='"height: " + this.height + "px;"'
4
- :readOnly="see || readonly" :placeholder="placeholder"></quill-editor>
4
+ :readOnly="see || readonly" :placeholder="placeholder" v-bind="$attrs"></quill-editor>
5
5
  </template>
6
6
 
7
7
  <script>
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <a-form v-bind="$attrs" :ref="refName" :model="model" :rules="rules" @finish="submitForm"
3
- @finishFailed="onFinishFailed" :labelAlign="labelAlign">
2
+ <a-form :ref="refName" :model="model" :rules="rules" @finish="submitForm"
3
+ @finishFailed="onFinishFailed" :labelAlign="labelAlign" v-bind="$attrs">
4
4
  <a-row :gutter="16"
5
5
  :style="{ backgroundColor: 'var(--background-color)', padding: colSpan === 24 ? '0 400px' : '0px' }">
6
6
  <slot></slot>
@@ -2,8 +2,8 @@
2
2
  <div :class="containerClass" :style="containerStyle">
3
3
  <template v-if="hasValidImages">
4
4
  <a-image-preview-group :preview="{ visible, onVisibleChange: vis => (visible = vis) }">
5
- <a-image :preview="preview" v-bind="$attrs" v-for="(url, index) in displayedImages" :src="url"
6
- :key="index" />
5
+ <a-image :preview="preview" v-for="(url, index) in displayedImages" :src="url"
6
+ :key="index" v-bind="$attrs" />
7
7
  </a-image-preview-group>
8
8
  </template>
9
9
  <template v-else>
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <a-input :type="type" :value="modelValue" @input="updateValue" :disabled="disabled || readonly" :placeholder="placeholder" style="width: 100%;" v-bind="$attrs"/>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "PaasInput",
8
+ inheritAttrs: false, // 禁用自动继承,手动控制透传
9
+ props: {
10
+ placeholder: {
11
+ type: String,
12
+ default: "",
13
+ },
14
+ type: {
15
+ type: String,
16
+ default: "text"
17
+ },
18
+ modelValue: {
19
+ type: [String, Number, Object],
20
+ default: ""
21
+ },
22
+ readonly: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ disabled: {
27
+ type: Boolean,
28
+ default: false
29
+ }
30
+ },
31
+ emits: ["update:modelValue"],
32
+ methods: {
33
+ updateValue(event) {
34
+ this.$emit("update:modelValue", event.target.value);
35
+ }
36
+ }
37
+ };
38
+ </script>
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
  </div>
11
11
  <a-menu ref="menus" :theme="theme" :selectedKeys="selectedKeys" :open-keys="openKeys" @openChange="onOpenChange"
12
- v-bind="$attrs" :inline-collapsed="inlineCollapsed" :mode="mode">
12
+ :inline-collapsed="inlineCollapsed" :mode="mode" v-bind="$attrs">
13
13
  <template v-for="item in data" :key="item.id">
14
14
  <a-sub-menu v-if="item.children && item.children.length" :key="item.key" :title="item.title"
15
15
  :icon="renderIcon(item)">
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <a-input-number v-model:value="innerValue" :disabled="disabled || readonly" :min="min" :max="max"
3
+ :placeholder="placeholder" style="width: 100%;" v-bind="$attrs" />
4
+ </template>
5
+
6
+ <script>
7
+ export default {
8
+ name: "PaasNumber",
9
+ inheritAttrs: false, // 禁用自动继承,手动控制透传
10
+ props: {
11
+ placeholder: String,
12
+ modelValue: [String, Number],
13
+ readonly: Boolean,
14
+ disabled: {
15
+ type: Boolean,
16
+ default: false
17
+ },
18
+ min: Number,
19
+ max: Number
20
+ },
21
+ computed: {
22
+ innerValue: {
23
+ get() {
24
+ return this.modelValue;
25
+ },
26
+ set(val) {
27
+ this.$emit("update:modelValue", val);
28
+ },
29
+ },
30
+ },
31
+ };
32
+ </script>
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <a-select :mode="multiple ? 'multiple' : undefined" :disabled="disabled" :value="value" :options="mergedData"
3
- :loading="loading" :allowClear="true" :placeholder="placeholder" :style="style" @change="change">
3
+ :loading="loading" :allowClear="true" :placeholder="placeholder" :style="style" v-bind="$attrs"
4
+ @change="change">
4
5
  <template #dropdownRender="{ menuNode }">
5
6
  <a-input-search v-model:value="filter" placeholder="搜索" style="width: 100%; margin-bottom: 8px;"
6
7
  @search="search" />
@@ -79,10 +79,10 @@
79
79
  </a-dropdown>
80
80
  </a-space>
81
81
  </template>
82
- <a-table v-bind="$attrs" :size="currentSize" ref="table" :data-source="dataList" :columns="filteredColumns"
82
+ <a-table :size="currentSize" ref="table" :data-source="dataList" :columns="filteredColumns"
83
83
  @change="pageClick" :pagination="noPage ? false : page" :row-key="id" :scroll="scroll" :bordered="border"
84
84
  :row-selection="checkbox ? rowSelection : undefined" :customRow="customRow" :locale="{ emptyText: emptyText }"
85
- :class="{ 'striped-table': stripe }">
85
+ :class="{ 'striped-table': stripe }" v-bind="$attrs">
86
86
  <!-- 操作列和序号列 -->
87
87
  <template #bodyCell="{ column, record, index }">
88
88
  <template v-if="column.key === 'action'">
@@ -0,0 +1,45 @@
1
+ <template>
2
+ <a-radio-group v-model:value="innerValue" :options="processedOptions" :disabled="disabled" v-bind="$attrs" />
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "PaasRadio",
8
+ inheritAttrs: false,
9
+ props: {
10
+ modelValue: {
11
+ type: [String, Number, Boolean],
12
+ default: ""
13
+ },
14
+ options: {
15
+ type: Array,
16
+ default: () => []
17
+ },
18
+ data: {
19
+ type: Array,
20
+ default: () => []
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: false
25
+ }
26
+ },
27
+ computed: {
28
+ processedOptions() {
29
+ const sourceOptions = this.options.length > 0 ? this.options : this.data;
30
+ return sourceOptions.map(item => ({
31
+ label: item.label,
32
+ value: item.value
33
+ }));
34
+ },
35
+ innerValue: {
36
+ get() {
37
+ return this.modelValue;
38
+ },
39
+ set(val) {
40
+ this.$emit("update:modelValue", val);
41
+ },
42
+ },
43
+ },
44
+ };
45
+ </script>
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <a-select v-bind="$attrs" :options="internalOptions" :mode="multiple ? 'multiple' : undefined" :value="stringValue"
2
+ <a-select :options="internalOptions" :mode="multiple ? 'multiple' : undefined" :value="stringValue"
3
3
  @update:value="handleValueChange" :disabled="disabled" :allowClear="true" :style="style"
4
- :placeholder="placeholder" />
4
+ :placeholder="placeholder" v-bind="$attrs" />
5
5
  </template>
6
6
 
7
7
  <script>
@@ -0,0 +1,36 @@
1
+ <template>
2
+ <a-switch :checked="modelValue" :checked-children="checkedText"
3
+ :un-checked-children="unCheckedText" :disabled="disabled" @change="handleChange" v-bind="$attrs" />
4
+ </template>
5
+
6
+ <script>
7
+ export default {
8
+ name: "PaasSwitch",
9
+ inheritAttrs: false, // 禁用自动继承,手动控制透传
10
+ props: {
11
+ modelValue: {
12
+ type: [Number, Boolean],
13
+ required: true,
14
+ },
15
+ checkedText: {
16
+ type: String,
17
+ default: "开",
18
+ },
19
+ unCheckedText: {
20
+ type: String,
21
+ default: "关",
22
+ },
23
+ disabled: {
24
+ type: Boolean,
25
+ default: false,
26
+ },
27
+ },
28
+ methods: {
29
+ handleChange(value) {
30
+ // Ant Design Vue 的 a-switch 在 change 事件中返回的是 value(非对象)
31
+ this.$emit("update:modelValue", value);
32
+ this.$emit("change", value);
33
+ },
34
+ },
35
+ };
36
+ </script>
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <a-textarea :type="type" :value="modelValue" @input="updateValue" :disabled="disabled || readonly" :rows="rows" style="width: 100%;" :placeholder="placeholder" v-bind="$attrs"/>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "PaasTextarea",
8
+ inheritAttrs: false, // 禁用自动继承,手动控制透传
9
+ props: {
10
+ placeholder: {
11
+ type: String,
12
+ default: "",
13
+ },
14
+ rows: {
15
+ type: Number,
16
+ default: 10
17
+ },
18
+ type: {
19
+ type: String,
20
+ default: "text"
21
+ },
22
+ modelValue: {
23
+ type: [String, Number, Object],
24
+ default: ""
25
+ },
26
+ readonly: {
27
+ type: Boolean,
28
+ default: false
29
+ },
30
+ disabled: {
31
+ type: Boolean,
32
+ default: false
33
+ }
34
+ },
35
+ emits: ["update:modelValue"],
36
+ methods: {
37
+ updateValue(event) {
38
+ this.$emit("update:modelValue", event.target.value);
39
+ }
40
+ }
41
+ };
42
+ </script>
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <a-tree-select v-bind="$attrs" :show-search="true" :allow-clear="true" :tree-data="datas" v-model:value="value"
2
+ <a-tree-select :show-search="true" :allow-clear="true" :tree-data="datas" v-model:value="value"
3
3
  :mode="multiple ? 'multiple' : undefined" :disabled="see || disabled" tree-node-filter-prop="label" :treeLine="true"
4
- :fieldNames="fieldNames" class="paas-select" :tree-default-expand-all="open" :placeholder="placeholder" style="width: 100%;"></a-tree-select>
4
+ :fieldNames="fieldNames" class="paas-select" :tree-default-expand-all="open" :placeholder="placeholder" style="width: 100%;" v-bind="$attrs"></a-tree-select>
5
5
  </template>
6
6
  <script>
7
7
  export default {
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <div>
3
- <a-upload v-bind="$attrs" :action="currentUploadUrl" :file-list="fileList" :accept="accept" :multiple="multiple"
3
+ <a-upload :action="currentUploadUrl" :file-list="fileList" :accept="accept" :multiple="multiple"
4
4
  :disabled="isLoading || see" :show-upload-list="false" :before-upload="beforeUpload" @preview="previewFile"
5
- @remove="deleteFile">
5
+ @remove="deleteFile" v-bind="$attrs">
6
6
  <a-button :loading="isLoading" :disabled="see" ref="uploadButton" v-show="false">
7
7
  </a-button>
8
8
  </a-upload>
9
- <a-button :loading="isLoading" :disabled="see" type="primary" v-bind="$attrs" v-if="closeButton"
10
- @click="$refs.uploadButton.$el.click()">
9
+ <a-button :loading="isLoading" :disabled="see" type="primary" v-if="closeButton"
10
+ @click="$refs.uploadButton.$el.click()" v-bind="$attrs">
11
11
  <paas-icon v-if="icon" :icon="icon" />
12
12
  <span v-if="label">{{ label }}</span>
13
13
  </a-button>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a-modal v-bind="$attrs" v-model:open="isOpen" :title="title" :closable="false" :mask-closable="false">
2
+ <a-modal v-model:open="isOpen" :title="title" :closable="false" :mask-closable="false" v-bind="$attrs">
3
3
  <a-upload-dragger v-model:fileList="selectList" :before-upload="beforeUpload" :name="multiple ? 'files' : 'file'"
4
4
  :placeholder="placeholder" style="width: 100%;">
5
5
  <p class="ant-upload-drag-icon">
@@ -2,9 +2,9 @@
2
2
  <a-col :span="colSpan ? colSpan : defaultColSpan">
3
3
  <a-form-item :label="label" :name="name" :label-col="{ style: { width: !!textWidth ? textWidth : labelWidth } }"
4
4
  :wrapper-col="{ style: { flex: 1 } }">
5
- <a-date-picker v-bind="$attrs" :value="value" :show-time="showTime" :readonly="readonly"
5
+ <a-date-picker :value="value" :show-time="showTime" :readonly="readonly"
6
6
  :disabled="see || disabled" :format="format" :picker="type" @change="handleChange" :placeholder="placeholder"
7
- style="width: 100%;" />
7
+ style="width: 100%;" v-bind="$attrs" />
8
8
  </a-form-item>
9
9
  </a-col>
10
10
  </template>
@@ -2,7 +2,7 @@
2
2
  <a-col :span="colSpan ? colSpan : defaultColSpan">
3
3
  <a-form-item :label="label" :name="name" :icon="icon" :label-col="{ style: { width: !!textWidth ? textWidth : labelWidth } }"
4
4
  :wrapper-col="{ style: { flex: 1 } }">
5
- <a-input v-bind="$attrs" :type="type" :value="modelValue" @input="updateValue" :disabled="see || readonly" :placeholder="placeholder"/>
5
+ <a-input :type="type" :value="modelValue" @input="updateValue" :disabled="see || readonly" :placeholder="placeholder" v-bind="$attrs"/>
6
6
  </a-form-item>
7
7
  </a-col>
8
8
  </template>
@@ -2,8 +2,8 @@
2
2
  <a-col :span="colSpan ? colSpan : defaultColSpan">
3
3
  <a-form-item :label="label" :name="name" :icon="icon" :label-col="{ style: { width: textWidth || labelWidth } }"
4
4
  :wrapper-col="{ style: { flex: 1 } }">
5
- <a-input-number v-bind="$attrs" v-model:value="innerValue" :disabled="see || readonly" :min="min" :max="max"
6
- :placeholder="placeholder" style="width: 100%;" />
5
+ <a-input-number v-model:value="innerValue" :disabled="see || readonly" :min="min" :max="max"
6
+ :placeholder="placeholder" style="width: 100%;" v-bind="$attrs" />
7
7
  </a-form-item>
8
8
  </a-col>
9
9
  </template>
@@ -2,9 +2,9 @@
2
2
  <a-col :span="colSpan ? colSpan : defaultColSpan">
3
3
  <a-form-item :label="label" :name="name" :label-col="{ style: { width: textWidth || labelWidth } }"
4
4
  :wrapper-col="{ style: { flex: 1 } }">
5
- <paas-select v-bind="$attrs" :model-value="modelValue" @update:modelValue="$emit('update:modelValue', $event)"
5
+ <paas-select :model-value="modelValue" @update:modelValue="$emit('update:modelValue', $event)"
6
6
  @change="$emit('change', $event)" :data="data" :params="params" :multiple="multiple" :disabled="see || disabled"
7
- :placeholder="placeholder" />
7
+ :placeholder="placeholder" v-bind="$attrs" />
8
8
  </a-form-item>
9
9
  </a-col>
10
10
  </template>
@@ -2,8 +2,8 @@
2
2
  <a-col :span="colSpan ? colSpan : defaultColSpan">
3
3
  <a-form-item :label="label" :name="name" :label-col="{ style: { width: !!textWidth ? textWidth : labelWidth } }"
4
4
  :wrapper-col="{ style: { flex: 1 } }">
5
- <a-switch v-bind="$attrs" :checked="modelValue" :checked-children="checkedText"
6
- :un-checked-children="unCheckedText" :disabled="isDisabled" @change="handleChange" />
5
+ <a-switch :checked="modelValue" :checked-children="checkedText"
6
+ :un-checked-children="unCheckedText" :disabled="isDisabled" @change="handleChange" v-bind="$attrs" />
7
7
  </a-form-item>
8
8
  </a-col>
9
9
  </template>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <a-col :span="colSpan ? colSpan : defaultColSpan">
3
3
  <a-form-item :label="label" :name="name" :icon="icon" :label-col="{ style: { width: !!textWidth ? textWidth : labelWidth } }" :wrapper-col="{ style: { flex: 1 } }">
4
- <a-textarea v-bind="$attrs" :type="type" :value="modelValue" @input="updateValue" :disabled="see || readonly" :rows="rows" style="width: 100%;" :placeholder="placeholder"/>
4
+ <a-textarea :type="type" :value="modelValue" @input="updateValue" :disabled="see || readonly" :rows="rows" style="width: 100%;" :placeholder="placeholder" v-bind="$attrs"/>
5
5
  </a-form-item>
6
6
  </a-col>
7
7
  </template>
@@ -2,9 +2,9 @@
2
2
  <a-col :span="colSpan ? colSpan : defaultColSpan">
3
3
  <a-form-item :label="label" :name="name" :label-col="{ style: { width: !!textWidth ? textWidth : labelWidth } }"
4
4
  :wrapper-col="{ style: { flex: 1 } }">
5
- <paas-tree v-bind="$attrs" :params="params" :disabled="see || disabled" :multiple="multiple" :modelValue="modelValue"
5
+ <paas-tree :params="params" :disabled="see || disabled" :multiple="multiple" :modelValue="modelValue"
6
6
  @change="handleTreeChange" :url="url" :fieldNames="fieldNames" :open="open" :placeholder="placeholder"
7
- style="width: 100%;"></paas-tree>
7
+ style="width: 100%;" v-bind="$attrs"></paas-tree>
8
8
  </a-form-item>
9
9
  </a-col>
10
10
  </template>
@@ -37,6 +37,13 @@ import PaasCodeEditor from "./PaasCodeEditor/index.vue";
37
37
  import PaasForm from "./PaasForm/index.vue";
38
38
  import OrgPathSelector from "./OrgPathSelector/index.vue";
39
39
  import PaasImageViewer from "./PaasImageViewer/index.vue";
40
+ import PaasInput from "./PaasInput/index.vue";
41
+ import PaasNumber from "./PaasNumber/index.vue";
42
+ import PaasTextarea from "./PaasTextarea/index.vue";
43
+ import PaasSwitch from "./PaasSwitch/index.vue";
44
+ import PaasDateRange from "./PaasDateRange/index.vue";
45
+ import PaasRadio from "./PaasRadio/index.vue";
46
+ import PaasCheckbox from "./PaasCheckbox/index.vue";
40
47
 
41
48
  import * as Icons from '@ant-design/icons-vue';
42
49
 
@@ -67,7 +74,14 @@ const component = [
67
74
  PaasIcon,
68
75
  PaasCodeEditor,
69
76
  PaasQueryBar,
70
- PaasImageViewer, // 添加图片查看器组件
77
+ PaasImageViewer,
78
+ PaasInput,
79
+ PaasNumber,
80
+ PaasTextarea,
81
+ PaasSwitch,
82
+ PaasDateRange,
83
+ PaasRadio,
84
+ PaasCheckbox,
71
85
  ];
72
86
 
73
87
  const globalComponents = {
@@ -110,6 +124,11 @@ export {
110
124
  PaasCodeEditor,
111
125
  PaasQueryBar,
112
126
  PaasImageViewer,
127
+ PaasInput,
128
+ PaasNumber,
129
+ PaasTextarea,
130
+ PaasSwitch,
131
+ PaasDateRange,
113
132
  };
114
133
 
115
134
  export const widgets = component.filter(c => c.name)