✨(component): 发布 1.6.0 版本
This commit is contained in:
		
							parent
							
								
									e0f1f0affe
								
							
						
					
					
						commit
						04a7764156
					
				@ -17,7 +17,7 @@ import {
 | 
			
		||||
 | 
			
		||||
export interface LaySelectOptionProps {
 | 
			
		||||
  label: string;
 | 
			
		||||
  value: string | number |object;
 | 
			
		||||
  value: string | number | object;
 | 
			
		||||
  disabled?: boolean;
 | 
			
		||||
  keyword?: string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -170,7 +170,7 @@ const isChildAllSelected = computed(() => {
 | 
			
		||||
          :class="{
 | 
			
		||||
            'layui-tree-txt': true,
 | 
			
		||||
            'layui-disabled': node.isDisabled,
 | 
			
		||||
            'layui-this': selectedKey === node.id
 | 
			
		||||
            'layui-this': selectedKey === node.id,
 | 
			
		||||
          }"
 | 
			
		||||
          @click.stop="handleTitleClick(node)"
 | 
			
		||||
        >
 | 
			
		||||
 | 
			
		||||
@ -144,9 +144,9 @@ function handleClick(node: TreeData) {
 | 
			
		||||
      :only-icon-control="onlyIconControl"
 | 
			
		||||
      @node-click="handleClick"
 | 
			
		||||
    >
 | 
			
		||||
        <template v-if="$slots.title" v-slot:title="{ data }">
 | 
			
		||||
          <slot name="title" :data="data"></slot>
 | 
			
		||||
        </template>
 | 
			
		||||
      <template v-if="$slots.title" v-slot:title="{ data }">
 | 
			
		||||
        <slot name="title" :data="data"></slot>
 | 
			
		||||
      </template>
 | 
			
		||||
    </tree-node>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
@ -62,8 +62,8 @@ const checkedKeys = computed({
 | 
			
		||||
  set(value) {
 | 
			
		||||
    emits("update:modelValue", value);
 | 
			
		||||
    emits("change", value);
 | 
			
		||||
  }
 | 
			
		||||
})
 | 
			
		||||
  },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
watch(
 | 
			
		||||
  [selectedValue],
 | 
			
		||||
@ -77,7 +77,7 @@ watch(
 | 
			
		||||
      });
 | 
			
		||||
    } else {
 | 
			
		||||
      const node: any = getNode(props.data, selectedValue.value);
 | 
			
		||||
      if(node) {
 | 
			
		||||
      if (node) {
 | 
			
		||||
        singleValue.value = node.title;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -179,7 +179,7 @@ const components: Record<string, Plugin> = {
 | 
			
		||||
  LayAffix,
 | 
			
		||||
  LaySpace,
 | 
			
		||||
  LayTag,
 | 
			
		||||
  LayTagInput
 | 
			
		||||
  LayTagInput,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const install = (app: App, options?: InstallOptions): void => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user