@funcho/ui 1.1.7 → 1.1.9
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.
|
@@ -116,6 +116,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
116
116
|
return `请输入${item.label}`;
|
|
117
117
|
};
|
|
118
118
|
const formRef = vue.ref();
|
|
119
|
+
const handleRef = (el, item) => {
|
|
120
|
+
if (item.attrs?.onRef && el) {
|
|
121
|
+
item.attrs.onRef(el, item);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
119
124
|
__expose(
|
|
120
125
|
new Proxy(
|
|
121
126
|
{},
|
|
@@ -161,13 +166,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
161
166
|
key: 0,
|
|
162
167
|
ref_for: true
|
|
163
168
|
}, item.attrs, {
|
|
169
|
+
ref_for: true,
|
|
170
|
+
ref: (el) => handleRef(el, item),
|
|
164
171
|
placeholder: getPlaceholder(item, item.type),
|
|
165
172
|
style: { "width": "100%" }
|
|
166
173
|
}), null, 16, ["placeholder"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(componentsMap.ComponentsMap)[item.type || "FcInput"]), vue.mergeProps({
|
|
167
174
|
key: 1,
|
|
175
|
+
ref_for: true
|
|
176
|
+
}, item.attrs, {
|
|
177
|
+
ref_for: true,
|
|
178
|
+
ref: (el) => handleRef(el, item),
|
|
168
179
|
modelValue: formModel.value[item.prop],
|
|
169
|
-
"onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event
|
|
170
|
-
}, { ref_for: true }, item.attrs, {
|
|
180
|
+
"onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event,
|
|
171
181
|
placeholder: getPlaceholder(item, item.type),
|
|
172
182
|
style: { "width": "100%" }
|
|
173
183
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"]))
|
|
@@ -112,6 +112,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
return `请输入${item.label}`;
|
|
113
113
|
};
|
|
114
114
|
const formRef = ref();
|
|
115
|
+
const handleRef = (el, item) => {
|
|
116
|
+
if (item.attrs?.onRef && el) {
|
|
117
|
+
item.attrs.onRef(el, item);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
115
120
|
__expose(
|
|
116
121
|
new Proxy(
|
|
117
122
|
{},
|
|
@@ -157,13 +162,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
162
|
key: 0,
|
|
158
163
|
ref_for: true
|
|
159
164
|
}, item.attrs, {
|
|
165
|
+
ref_for: true,
|
|
166
|
+
ref: (el) => handleRef(el, item),
|
|
160
167
|
placeholder: getPlaceholder(item, item.type),
|
|
161
168
|
style: { "width": "100%" }
|
|
162
169
|
}), null, 16, ["placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(unref(ComponentsMap)[item.type || "FcInput"]), mergeProps({
|
|
163
170
|
key: 1,
|
|
171
|
+
ref_for: true
|
|
172
|
+
}, item.attrs, {
|
|
173
|
+
ref_for: true,
|
|
174
|
+
ref: (el) => handleRef(el, item),
|
|
164
175
|
modelValue: formModel.value[item.prop],
|
|
165
|
-
"onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event
|
|
166
|
-
}, { ref_for: true }, item.attrs, {
|
|
176
|
+
"onUpdate:modelValue": ($event) => formModel.value[item.prop] = $event,
|
|
167
177
|
placeholder: getPlaceholder(item, item.type),
|
|
168
178
|
style: { "width": "100%" }
|
|
169
179
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"]))
|
package/dist/style.css
CHANGED
|
@@ -16580,6 +16580,8 @@
|
|
|
16580
16580
|
overflow: auto;
|
|
16581
16581
|
scrollbar-width: thin;
|
|
16582
16582
|
box-sizing: border-box;
|
|
16583
|
+
}.fc-ui-button {
|
|
16584
|
+
padding: 8px 11px;
|
|
16583
16585
|
}.fc-ui-icon.fc-ui-popconfirm__icon {
|
|
16584
16586
|
width: 24px;
|
|
16585
16587
|
height: 24px;
|
|
@@ -16729,6 +16731,14 @@ to {
|
|
|
16729
16731
|
opacity: 1;
|
|
16730
16732
|
transform: translateY(0);
|
|
16731
16733
|
}
|
|
16734
|
+
}.fc-ui-cascader .fc-ui-input__inner {
|
|
16735
|
+
height: 26px;
|
|
16736
|
+
}
|
|
16737
|
+
.fc-ui-cascader .fc-ui-tag {
|
|
16738
|
+
height: 20px;
|
|
16739
|
+
}
|
|
16740
|
+
.fc-ui-cascader .fc-ui-cascader__search-input {
|
|
16741
|
+
height: 20px;
|
|
16732
16742
|
}.fc-ui-form .fc-ui-form-item__label {
|
|
16733
16743
|
color: #494949;
|
|
16734
16744
|
height: 28px;
|
|
@@ -17097,12 +17107,19 @@ to {
|
|
|
17097
17107
|
.fc-mkui-data-table .fc-mkui-data-table__query-form {
|
|
17098
17108
|
flex: 1;
|
|
17099
17109
|
display: grid;
|
|
17100
|
-
grid-template-columns: repeat(auto-fill, minmax(
|
|
17110
|
+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
17101
17111
|
gap: 8px 24px;
|
|
17102
17112
|
}
|
|
17103
17113
|
.fc-mkui-data-table .fc-mkui-data-table__query-form .fc-ui-form-item {
|
|
17104
17114
|
margin: 0;
|
|
17105
17115
|
}
|
|
17116
|
+
.fc-mkui-data-table .fc-mkui-data-table__query-form .fc-ui-form-item .fc-ui-cascader .fc-ui-cascader__tags {
|
|
17117
|
+
display: inline-flex;
|
|
17118
|
+
flex-wrap: nowrap;
|
|
17119
|
+
}
|
|
17120
|
+
.fc-mkui-data-table .fc-mkui-data-table__query-form .fc-ui-form-item .fc-ui-cascader .fc-ui-cascader__tags .fc-ui-tag {
|
|
17121
|
+
max-width: calc(100% - 109px);
|
|
17122
|
+
}
|
|
17106
17123
|
.fc-mkui-data-table__tools {
|
|
17107
17124
|
margin-top: auto;
|
|
17108
17125
|
flex-shrink: 0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funcho/ui",
|
|
3
3
|
"description": "@funcho ui library",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.mjs",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vite-plugin-dts": "^4.5.4",
|
|
45
45
|
"vitest": "^4.0.7",
|
|
46
46
|
"vue": "^3.5.22",
|
|
47
|
-
"@funcho/
|
|
48
|
-
"@funcho/
|
|
47
|
+
"@funcho/typescript-config": "0.0.1",
|
|
48
|
+
"@funcho/icons-vue": "1.0.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"vue": "^3.5.22",
|