From d29f75b84fccd06917fb8e2c2ee70e9d76f868cd Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 20:15:54 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
index 084b7cb..d790033 100644
--- a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
+++ b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
@@ -4,10 +4,10 @@
* @Author: chen jing wu
* @Date: 2023-05-25 13:59:44
* @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-02 14:28:20
+ * @LastEditTime: 2023-10-24 14:48:59
-->
<template>
- <div>
+ <div data-id="myInput">
<div class="slds-form-element">
<div class="slds-form-element__control">
<div class="slds-combobox_container">
@@ -15,14 +15,18 @@
<div class="slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right" role="none">
<template if:false={recordselected}>
<input class="slds-input slds-combobox__input" id="combobox-id-1" aria-autocomplete="list" aria-controls="listbox-id-1"
- role="textbox" type="text" placeholder="Search..." style="width: 190px;" onkeyup={onKeyChange} value={selectedValue}/ disabled={disabled}>
+ role="textbox" type="text" placeholder="Search..." oninput={onKeyChange} value={selectedValue}/ disabled={disabled} onclick={onKeyChange} onblur={clear}>
</template>
<template if:true={recordselected}>
<span class="slds-pill slds-pill_link fullWidth slds-input slds-combobox__input">
+
<a href="javascript:void(0);"
class="slds-pill__action slds-p-left_x-small" title={selectedValue} style="height: 32px;">
- <lightning-icon icon-name={iconname} size="x-small"></lightning-icon>
- <span class="slds-pill__label slds-p-left_x-small" style="display: inline-flex;width: 150px">{selectedValue}</span>
+ <div style="width: 80%;">
+ <lightning-icon icon-name={iconname} size="x-small"></lightning-icon>
+ <span class="slds-pill__label slds-p-left_x-small" style="display: inline-flex;max-width:185px">{selectedValue}</span>
+ </div>
+
</a>
<button onclick={clearSelection}
class="slds-button slds-button_icon slds-button_icon slds-pill__remove"
@@ -35,8 +39,8 @@
</template>
</div>
<template if:true={recordsList}>
- <div class="slds-combobox_container">
- <div id="listbox-id-1" class="slds-dropdown slds-dropdown_fluid slds-dropdown_autocomplete" role="listbox" style="min-width: 350px; overflow: auto;">
+ <div onmousedown={dontClose} class="slds-combobox_container">
+ <div id="listbox-id-1" class="slds-dropdown slds-dropdown_fluid slds-dropdown_autocomplete" role="listbox" style=" overflow: auto;">
<ul class="slds-listbox slds-listbox_vertical" role="presentation">
<template for:each={recordsList} for:item="item">
<li key={item.Id} role="presentation" class="slds-listbox__item">
--
Gitblit v1.9.1