(ref)
| 755 | } |
| 756 | |
| 757 | function getRefValue(ref) { |
| 758 | if (!ref) return ""; |
| 759 | const direct = ref.value; |
| 760 | if (typeof direct === "string") return direct; |
| 761 | if (typeof direct === "number") return String(direct); |
| 762 | if (ref.el) { |
| 763 | const elValue = ref.el.value; |
| 764 | if (typeof elValue === "string") return elValue; |
| 765 | if (typeof elValue === "number") return String(elValue); |
| 766 | } |
| 767 | return ""; |
| 768 | } |
| 769 | |
| 770 | function setRefValue(ref, value) { |
| 771 | if (!ref) return; |
no test coverage detected